- 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 description: A sensor that toggles on and off
selector: selector:
entity: 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: sensor_on_action:
name: When enabled name: When enabled
description: The action to perform when the sensor is enabled description: The action to perform when the sensor is enabled
selector: selector:
action: action:
default: [] default: []
sensor_off_state:
name: Sensor "off"
description: State the sensor is considered "off"
selector:
text:
sensor_off_action: sensor_off_action:
name: When disabled name: When disabled
description: The action to perform when the sensor is disabled description: The action to perform when the sensor is disabled
@ -33,12 +49,12 @@ trigger:
entity_id: !input sensor entity_id: !input sensor
for: !input duration for: !input duration
platform: state platform: state
to: "False" to: !input sensor_off_state
- id: "on" - id: "on"
entity_id: !input sensor entity_id: !input sensor
platform: state platform: state
to: "True" to: !input sensor_on_state
condition: [] condition: []