How to change BI profile using HomeAssistant?

As promised... here is a more secure revision using ssl with a self signed cert. If your using a valid cert you can use verify_ssl: true

YAML:
# RESTful api
rest_command:
  bi_profile_away:
    url: "https://192.168.10.13:443/admin?profile=2&lock=2"
    method: get
    content_type: "application/x-www-form-urlencoded"
    username: HomeAssistant
    password: 123password.HA
    verify_ssl: false
  bi_profile_home:
    url: "https://192.168.10.13:443/admin?profile=-1"
    method: get
    content_type: "application/x-www-form-urlencoded"
    username: HomeAssistant
    password: 123password.HA
    verify_ssl: false
 
Last edited:
Unfortunately I'm still struggling with this as the BI integration sets lock everytime and doesn't give you an option

Tried this with no such luck.
- switch:
name: blueiris_profile_daytime
command_on: 'curl -X GET ""'
command_off: 'curl -X GET ""'

Also tried this
curl -k "" >/dev/null

Either BI is rejecting these curl commands (permissions) or they have the wrong parameters.

Any suggestions?
thanks