Skip to content

Feature Request: cleaner @state_trigger('True or ... ') #44

Closed
@dlashua

Description

@dlashua

This syntax is a bit hacky looking and hard for new users to follow:

@state_trigger('True or binary_sensor.dark')

There's no reason to make the above syntax NOT work, but think a convenience decorator for this use pattern might be beneficial. Something like this:

@state_change_trigger('binary_sensor.dark')

@state_change_trigger([
  'binary_sensor.dark',
  'binary_sensor.motion'
])

Though, naming things is hard. There's probably something better than state_change_trigger.

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