I Have an home automation system from PeHa (PHC) with a 942 STM-AN control module. The lamps are switched via the control module or by pushing buttons. It is also possible to switch the lamps via HTTP command.
In HA I created a switch
The code in configuration.yaml:
- platform: command_line
switches:
light_ledspots:
command_on: curl "http://192.xxx.xxx.xx:80/postEvent.html?action=input&STM=0&MOD=2&CHA=0&EVT=2"
command_off: curl "http://192.xxx.xxx.xx:80/postEvent.html?action=input&STM=0&MOD=2&CHA=4&EVT=2"
When I turn on the switch the light goes on, but the status will not change to “on” (color lightbulb from blue to yellow) .
In the dev-info an error will show up.
Command failed: curl "http://192.xxx.xxx.xx:80/postEvent.html?action=input&STM=0&MOD=2&CHA=0&EVT=2"
Does anybody have an suggestion on how I can fix this problem?
Thanks in advance
kind regards
oudnm