From 351307de869f75bee8a0366bac513af6af6a799f Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Wed, 27 Apr 2022 23:13:02 +0200 Subject: [PATCH] Add scripts for enabling and disabling iPhone charging --- scripts/50.iphone-scripts.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/scripts/50.iphone-scripts.yaml b/scripts/50.iphone-scripts.yaml index 96b6077..bacbcea 100644 --- a/scripts/50.iphone-scripts.yaml +++ b/scripts/50.iphone-scripts.yaml @@ -9,4 +9,22 @@ wake_up: woken_up: alias: '[Alarm clock] woken up' sequence: - - service: script.good_morning \ No newline at end of file + - service: script.good_morning + +ios_disable_charging: + alias: '[iOS] Disable charging' + sequence: + - service: switch.turn_off + target: + entity_id: + - switch.usb_switch_1 + - switch.usb_switch_2 + +ios_enable_charging: + alias: '[iOS] Enable charging' + sequence: + - service: switch.turn_on + target: + entity_id: + - switch.usb_switch_1 + - switch.usb_switch_2