Need extra command line switch

Oh, domotic, not domoticz.

Anyway, then for your question you could try adding both URLs to the same curl command. Curl allows you to have several URLs in a row and it will keep the session alive.

curl https://[email protected]:8080 https://xxx.xxx.x.xxx:8080/action/6640

@ chrio, because the curl url://[email protected]:8080/action/6640 to login to the webserver was not working like I said in my first post.
I managed to make the switch worked by copying the curl with the headers when I was logged in on my original domotic system webserver. Unfortunately is this with a phpsessid limited lifetime.
Thatā€™s why I think it can be bypassed by turning a switch on for a few seconds and then turning it off again to keep the session alive

I have a working switch called vloer that I want to toggle to turn on every hour for 30 seconds, but does not work. II have this in the automations.yaml

- alias: Turn off switch test
  trigger:
    platform: state
    entity_id: switch.vloer
    to: 'on'
    for:
       seconds: 30
       hour: 1
   action:
       service: switch.vloer
       entity_id: switch.vloer 

What am I doing wrong here?
Iā€™m pretty new to HA and still learningā€¦ :blush:

Solved with automations in HASS

1 Like