I am a HA newbie so forgive if I mix something up.
Basically I want to turn on / off my room lights using a (1) staircase switch on the wall or (2) via HomeAssitant hosted on my Raspberry Pi.
my config is similar to:
switch:
platform: rpi_gpio
ports:
11: Room light
invert_logic: false
The problem is that when I turn the light on/off with my staircase switch mounted on the wall obviously the state of the “Room light” doesn’t change. To get feedback from the circuit I installed a simple Raspberry PI Gpio sensor:
binary_sensor:
platform: rpi_gpio
ports:
12: Light On
pull_mode: "UP"
bouncetime: 50
invert_logic: false
What I want to do now is just change the state of the “Room Light” in Home Assistant without turning it on or off to update the current state of the light. How do I get around doing that?