From 2674a5226e13a68b1ee570aef552e78b7a7337b8 Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Fri, 23 Jun 2023 04:44:16 +0400 Subject: Massive update: Few fixes, more new integrations & extensions --- blueprints/script/devices/aircon_off.yaml | 37 +++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 blueprints/script/devices/aircon_off.yaml (limited to 'blueprints/script/devices/aircon_off.yaml') 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 -- cgit v1.2.3