Change state of SWITCH without turning it on/off

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? :confused:

Hello? Anyone here?

This will be possible with the switch.template that will be released in 0.13

Fantastic! When is the next release expected?
Will this new feature be documented with an example?

Btw. loving the Home Assistant app.

Hi, I’m have the same problem.
How was the problem solved?