using a set of command_line switches
switch:
#Hue hub 2
- platform: command_line
switches:
driveway_buiten_sensor_motion:
friendly_name: Driveway buiten sensor
command_on: >
curl -X PUT -d '{"on":true}' "http://192.168.1.58/api/redactede/sensors/27/config/"
command_off: >
curl -X PUT -d '{"on":false}' "http://192.168.1.58/api/redactede/sensors/27/config/"
command_state: curl http://192.168.1.58/api/redactede/sensors/27/
value_template: >
{{value_json.config.on}}
I now (hunting for an unknown error) see this (the command_state) is updated every 30 seconds,
2021-05-01 17:03:44 INFO (SyncWorker_17) [homeassistant.components.command_line.switch] Running state value command: curl http://192.168.1.58/api/redactede/sensors/27/
where I believed it to update only on ‘command’… given the fact I have 23 of these, it would be welcome to bring that down somehow, and still be able to respond per state switch.
Please have a look? thanks