Skip to content

Help setting up YAML for Jinvoo SM-PW712UA 10A Plug #2323

Answered by oxan
boctok asked this question in Q&A
Discussion options

You must be logged in to vote

It's probably easier to turn the LED on/off when the relay is turned on/off using on_turn_on and on_turn_off on the relay1 and relay2 switches, instead of creating a template switch.

For the template switch you'll need to provide a lambda that returns the current state of the switch.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@boctok
Comment options

Answer selected by boctok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants