Closed
Description
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
Labels
No labels