I am have a problem getting my Leviton Light switches to works with my automation. They work perfectly when I control them individually, they just don’t activate with any kind of automation.
I also have a Honeywell Switch that works perfectly with my automation.
So here is my code that works with the Honeywell light switch but will not work with a Leviton light switch.
light.turn_on turns on my Honeywell Light Switch, not my Leviton light switch. switch.turn_on does not work on my light switches but Thank You! for trying.
I have never used device ID. Not sure if it is better in some case but entity_id is better in my opinion
If you change device you only need to change the devices entity ID in one location vs change device ID in all automation/scenes. Again, I never use device ID so this may not be true.
The DZ15S shows as a switch not a light natively. Switch.turn_on would work. But what I’ve done is gone to the devices and clicked show as ‘light’, then light turn on works fine. Calling a service that isn’t the domain of the entity won’t work.
See screen, you can see I’ve clicked on the original switch and changed the show as to ‘light’. The Switch entity gets hidden and a light entity gets created.