I know it has to be a service call, I was looking for something like z.wave.turn_on, which did not work. Also I tried to look for something called switch.turn_on, but not that either. So what should I use to turn on/off for instance the switch named switch4 or switch1 in entity_registry.yaml?
Try homeassistant.turn_on
Thanks! I have tried that too, actually, but didn’t get anywyere. Probably because the service data was wrong. What should I use as the service data? The Z-Wave device ID is 4 for the Switch4. I tried this, which didn’t work:
{
"node_id": 4
}
You need to put the entity_id there. Like this:
(please dont be confused that my switches have “switch_switch” in them, this is just the way they ended up being named by zwave/homeassistant)
Thanks for the tip about finding the correct syntax in services! And I managed now. I had to mess a bit with the name of the switch in entity_registry.yaml, for some reason it did not accept being called the name I had given it, but finally it works. Thanks!