Skip to content

Bug with multiple state-triggers #157

Closed
@Beiri22

Description

@Beiri22

I just tried to use multiple state triggers as described with one decorator:

@state_trigger("binary_sensor.bad_bewegung=='on'","binary_sensor.wohnzimmer_bewegung=='on'", "person.rico == 'home'")

But, as long as the third trigger is included (which is always true, but should not trigger, because it does not change), the function triggers on every binary_sensors change, not only when changing to "on" (as stated)

binary_sensor.wohnzimmer_bewegung: {'trigger_type': 'state', 'value': 'on', 'old_value': 'off', 'context': Context(user_id=None, parent_id=None, id='466747cb06fdd2a162b1813d5e60dcce')}
binary_sensor.wohnzimmer_bewegung: {'trigger_type': 'state', 'value': 'off', 'old_value': 'on', 'context': Context(user_id=None, parent_id=None, id='24eeef4f530f9b24657ad7b4205d3c32')}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions