Hello, could you help me with counter switch on?
- if:
condition:
lambda: |-
if (id(Relay_ON).state) {
return true;
} else {
return false;
}
then:
- switch.turn_on: relay_output
# counter = counter + 1