Mysensors trigger

I have a mysensors scene controller to set my hue lights.
The scene controller has states 1,2 and 3. Depending on state my hue lights get set. (I activate the scene controllers with a single, double and long press.)

consider the following scenario:

  • I set my scene controller at state 1. : scenario “all hue’s on” are activated.
  • I use the hue app to switch one light off.
  • Now I want to re-activate the “all hue’s on” scene. But state 1 doesn’t trigger anymore because it was set previously. I now need to first set state 2 and then change to state 1.

This is not what I want, but I don’t know how to set a state trigger which “triggers” regardless of current state.
I was looking if I could use an “event” trigger instead of a “state” trigger, but I don’t know what events the mysensors component exposes. (If any.)

Right now I use the following in my config.yaml.

- alias: turn on all lights on scene state 1
  trigger:
    platform: state
    entity_id: sensor.scene_controller_110
  condition:
    platform: state
    entity_id: sensor.scene_controller_110
    state: '1'
  action:
    service: scene.turn_on
    entity_id: scene.lights_on  

Any help appreciated…

Hi!

Maybe you can change to a push button instead, which will go back to off when you release? Then trigger from off to on in the automation.

Another way could be to have two rules, trigger from off to on and the other from on to off, both activating the scene.