Scene problem with homebridge

Hello all,

I use home-assistant with homebridge and most of all works perfect. But scenes do not work correctly because they are switches in homebridge. So when I turn on a scene the switch changes to on. So if I want to open the scene again I need to turn off the switch first. This takes some time because in home-assistant it is no switch and I need to wait for the timeout. Is there a solution for this? Maybe change after the the trigger, only the state to off?

Greetings Daranto

Nobody? :frowning:

I’m interested in this as well. Haven’t found a workaround. I moved back to HA scenes due to the problems with the plugin losing the rooms for the accessories which then destroyed HomeKit scenes.

I’d be keen for something like this too. Having setup limitlessled lamps and using scenes to alter the colours, they don’t turn off and get confused. I took this screenshot at 22.32, and still at 23.15 the toggles are still all on. I had all lamps turned on, then changed them to purple, then red, then back to normal. It would be great if the scene switches were more like a momentary toggle switch not expecting information back and would send the command and timeout after five seconds.

I would use a switch template and have the turn on and turn off both activate the scene. Then homebridge would turn on the scene when it either turns on or off the switch you created. The newly created switch doesn’t need to be used or seen in HA, just exposed by homebridge to homekit. (Alternatively, you could leave the turn off blank and automate HA to turn it off when turned on. That way you can tell Siri always to Turn on MyScene instead of alternating Turn on and Turn off.)

switch:
  - platform: template
    switches:
      skylight:
        value_template: "{{ is_state('sensor.skylight', 'on') }}"
        turn_on:
          service: scene.turn_on
          entity_id: scene.myscene
        turn_off:
          service: scene.turn_on
          entity_id: scene.myscene