Hi I am having problem when trying to automate my wifi switch. It works fine from web UI I can trun it on/off.
It also works from: http://host:8123/dev-service
Service: switch.toggle
Entity: switch.schody_led
Service Data(JSON, optional)
{
“entity_id”: “switch.schody_led”
}
So in my .homeassistant/automations.yaml I have:
#### TEST ###
- id: test-light-onoff
alias: Testing
trigger:
platform: time
seconds: '/5'
action:
service: switch.toogle
entity_id:
- switch.schody_led
I can see automation running in Logbook but it is not operating a switch ?
I eventually managed to get it working with UI configurator and than check the config. My main problem was that all examples and docs did not mention data block, but this might be down to specific service provider i used.