- Option to set boolean values

This commit is contained in:
nwithan8 2023-03-29 10:51:43 -06:00
parent 430e1cbec6
commit 6ce6fa2f62
1 changed files with 19 additions and 3 deletions

View File

@ -10,13 +10,29 @@ blueprint:
description: A sensor that toggles on and off
selector:
entity:
domain: sensor
domain:
- sensor
- binary_sensor
- input_boolean
- light
- switch
- outlet
sensor_on_state:
name: Sensor "on"
description: State the sensor is considered "on"
selector:
text:
sensor_on_action:
name: When enabled
description: The action to perform when the sensor is enabled
selector:
action:
default: []
sensor_off_state:
name: Sensor "off"
description: State the sensor is considered "off"
selector:
text:
sensor_off_action:
name: When disabled
description: The action to perform when the sensor is disabled
@ -33,12 +49,12 @@ trigger:
entity_id: !input sensor
for: !input duration
platform: state
to: "False"
to: !input sensor_off_state
- id: "on"
entity_id: !input sensor
platform: state
to: "True"
to: !input sensor_on_state
condition: []