From 826f858c5ef3a06cac57bbd67be6e304463cb33c Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Sat, 24 Jul 2021 00:35:39 +0200 Subject: [PATCH] Fix harmony modes when TV is turned off --- configuration/automations/tv-automations.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configuration/automations/tv-automations.yaml b/configuration/automations/tv-automations.yaml index 8ac15e7..0ae356c 100644 --- a/configuration/automations/tv-automations.yaml +++ b/configuration/automations/tv-automations.yaml @@ -30,3 +30,13 @@ to: 'on' action: - service: script.pc_sleep + +- id: tv-set-harmony-mode + alias: '[TV] Set harmony mode' + mode: single + trigger: + - platform: state + entity_id: media_player.samsung_qe55q6fam + to: 'unavailable' + action: + - service: script.tv_off \ No newline at end of file