- Option to set boolean values
This commit is contained in:
parent
430e1cbec6
commit
6ce6fa2f62
|
@ -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: []
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue