I am configuring two switches using command_line platform.
switch:
platform: command_line
switches:
sw_000_000:
command_on: "./setget set 0 0 1"
command_off: "./setget set 0 0 0"
command_state: "./setget get 0 0"
value_template: '{{ value == "1" }}'
friendly_name: Kitchen Lightswitch
sw_000_001:
command_on: "./setget set 0 1 1"
command_off: "./setget set 0 1 0"
command_state: "./setget get 0 0"
value_template: '{{ value == "1" }}'
friendly_name: Hall Lightswitch
if i try to turn on Hall Lightswitch its going back to OFF state. If Kitchen Lightswitch was ON and I tries to turn ON Hall Lightswitch it stays in ON state. Can anybody help?