diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2023-06-23 04:44:16 +0400 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2023-06-23 04:44:16 +0400 |
commit | 2674a5226e13a68b1ee570aef552e78b7a7337b8 (patch) | |
tree | caf3b55045249cd124717109a652506576ff2cfc /blueprints/script/devices | |
parent | 756a33999df9255deb1c08a443a5621d94da0126 (diff) | |
download | hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.gz hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.bz2 hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.tar.xz hass-2674a5226e13a68b1ee570aef552e78b7a7337b8.zip |
Massive update: Few fixes, more new integrations & extensions
Diffstat (limited to 'blueprints/script/devices')
-rw-r--r-- | blueprints/script/devices/aircon.yaml | 20 | ||||
-rw-r--r-- | blueprints/script/devices/aircon_off.yaml | 37 |
2 files changed, 38 insertions, 19 deletions
diff --git a/blueprints/script/devices/aircon.yaml b/blueprints/script/devices/aircon.yaml index b2641be..1677c69 100644 --- a/blueprints/script/devices/aircon.yaml +++ b/blueprints/script/devices/aircon.yaml @@ -1,6 +1,6 @@ blueprint: name: AirCon - description: Stream photos from security camera + description: Automatically on/off Air Condition (current state and temperature based) domain: script input: power: @@ -114,22 +114,4 @@ sequence: - choose: [] default: !input "confirm" -# - if: -# - condition: state -# entity_id: switch.bedroom_aircon -# state: 'off' -# then: -# - service: switch.turn_on -# data: {} -# target: -# entity_id: switch.bedroom_aircon -# - delay: -# hours: 0 -# minutes: 0 -# seconds: 5 -# milliseconds: 0 - - service: scene.turn_on - target: - entity_id: scene.hyundai_aircon_cool_18 - metadata: {} mode: single diff --git a/blueprints/script/devices/aircon_off.yaml b/blueprints/script/devices/aircon_off.yaml new file mode 100644 index 0000000..f0132f1 --- /dev/null +++ b/blueprints/script/devices/aircon_off.yaml @@ -0,0 +1,37 @@ +blueprint: + name: AirCon Off + description: Turn off Air Condition + domain: script + input: + power: + name: Power + description: Aircon Smart Power Plug + selector: + entity: + domain: switch + off_scene: + name: Off Scene + description: Off scene of Aircon + selector: + entity: + domain: scene + +alias: AirCon +sequence: + - if: + - condition: state + entity_id: !input power + state: 'on' + then: + - service: scene.turn_on + target: + entity_id: !input off_scene + - delay: + hours: 0 + minutes: 0 + seconds: 5 + milliseconds: 0 + - service: switch.turn_off + target: + entity_id: !input power +mode: single |