diff --git a/configuration.yaml b/configuration.yaml index 00069c0..6d8abb1 100644 --- a/configuration.yaml +++ b/configuration.yaml @@ -124,7 +124,7 @@ rest: !include rest.yaml # script # https://www.home-assistant.io/integrations/script script: !include scripts.yaml -script split: !include_dir_named ../scripts +script split: !include_dir_merge_named scripts/ # sensor # https://www.home-assistant.io/integrations/sensor/ diff --git a/scripts/livingroom_remote_tv.yaml b/scripts/livingroom_remote_tv.yaml index 71083c5..e8cfc93 100644 --- a/scripts/livingroom_remote_tv.yaml +++ b/scripts/livingroom_remote_tv.yaml @@ -18,7 +18,7 @@ livingroom_remote_tv: - choose: - conditions: - condition: template - value_template: "{{ command = 'power' }}" + value_template: "{{ command == 'power' }}" sequence: - action: remote.send_command target: @@ -29,8 +29,8 @@ livingroom_remote_tv: xPAAEpSBMADE8AASdJEwAMTgABKEkTAAxOAAEoSRIADE8AASdJEwAMTgABKEg\ TAAxPAAEnSRMADE4AASdJEwANBQAAAAAAAA==" - conditions: - - condition: - value_template: "{{ command = 'volume_up' }}" + - condition: template + value_template: "{{ command == 'volume_up' }}" sequence: - action: remote.send_command target: @@ -40,8 +40,8 @@ livingroom_remote_tv: zYTNxMSEjcTEhITEhITEhMSEhITNxITEjcSNxM3EjcTNxI3EwAFIwABJ0oTAA\ xPAAEnShIADE8AAShJEwAMTwABJ0oSAA0FAAAAAAAAAAAAAAAAAAA=" - conditions: - - condition: - value_template: "{{ command = 'volume_down' }}" + - condition: template + value_template: "{{ command == 'volume_down' }}" sequence: - action: remote.send_command target: @@ -51,8 +51,8 @@ livingroom_remote_tv: YTNxM2EzcSEhMSExISExISExITEhISEzcSNxM3EjcTNhM3EwAFIwABKEkTAAx\ PAAEnSRMADQUAAAAAAAAAAAAAAAAAAA==" - conditions: - - condition: - value_template: "{{ command = 'volume_mute' }}" + - condition: template + value_template: "{{ command == 'volume_mute' }}" sequence: - action: remote.send_command target: @@ -62,8 +62,8 @@ livingroom_remote_tv: kROBE5ERQQFBE5EBQRFBEUERQQFBE5EDkRFBE4ETkQORE4EQAFJgABJ0oQAAx\ RAAElSxEADFAAAShJEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'channel_up' }}" + - condition: template + value_template: "{{ command == 'channel_up' }}" sequence: - action: remote.send_command target: @@ -73,8 +73,8 @@ livingroom_remote_tv: jcTNxISExITEhMSEhITEhMSEhITNxM2EzcSNxM2EzcTNhM3EwAFJAABJ0kTAA\ xPAAEnSRMADE8AAShJEgANBQAAAAAAAA==" - conditions: - - condition: - value_template: "{{ command = 'channel_down' }}" + - condition: template + value_template: "{{ command == 'channel_down' }}" sequence: - action: remote.send_command target: @@ -84,8 +84,8 @@ livingroom_remote_tv: jcTNhM3EhMSEhMSExISEhMSExITEhI3EzYTNxM2EzcSNxM3EgAFJAABKEkSAA\ xPAAEoSBMADE8AASdJEwANBQAAAAAAAA==" - conditions: - - condition: - value_template: "{{ command = 'input' }}" + - condition: template + value_template: "{{ command == 'input' }}" sequence: - action: remote.send_command target: @@ -95,8 +95,8 @@ livingroom_remote_tv: zYTNxI3EzYTEhM2ExITEhMSEhITEhMSEzYTEhM2EzcTNhM2EwAFJAABJ0kTAA\ xPAAEoSBMADFAAASZJEwANBQAAAAAAAA==" - conditions: - - condition: - value_template: "{{ command = 'number_1' }}" + - condition: template + value_template: "{{ command == 'number_1' }}" sequence: - action: remote.send_command target: @@ -106,8 +106,8 @@ livingroom_remote_tv: YUNhM2ExITEhMRFDYTEhMRFBEUERM2FDYSNxMSEzYUNhI3EwAFIwABKEkTAAxP\ AAEoSRIADE8AAShJEwAMTwABKEkSAA0F" - conditions: - - condition: - value_template: "{{ command = 'number_2' }}" + - condition: template + value_template: "{{ command == 'number_2' }}" sequence: - action: remote.send_command target: @@ -117,8 +117,8 @@ livingroom_remote_tv: DkROBEUETgRFBEUETgRFBEUERQQOREUEDkRORAUETkQORE5EAAFJgABJ0oQAA\ xQAAEoShAADFIAASdJEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'number_3' }}" + - condition: template + value_template: "{{ command == 'number_3' }}" sequence: - action: remote.send_command target: @@ -128,8 +128,8 @@ livingroom_remote_tv: TkQORE4ETkRFBISEzcQFRAUEhMRFBISETkQOREUETgRORE4EQAFJQABKEkRAA\ xRAAEnShAADQU=" - conditions: - - condition: - value_template: "{{ command = 'number_4' }}" + - condition: template + value_template: "{{ command == 'number_4' }}" sequence: - action: remote.send_command target: @@ -139,8 +139,8 @@ livingroom_remote_tv: zYUNhMRExIUNhMRFDYTEhISExITNhQ2ExITNhQREzYUNhM2FAAFIwABJ0kUAA\ xNAAEoSRQADE4AASVLEwANBQ==" - conditions: - - condition: - value_template: "{{ command = 'number_5' }}" + - condition: template + value_template: "{{ command == 'number_5' }}" sequence: - action: remote.send_command target: @@ -150,8 +150,8 @@ livingroom_remote_tv: zYUNhM2FBETNhMSFDYTERQRFBETEhM2ExITNhQREzYUNhM2EwAFIwABKEkTAA\ xNAAEpSRIADE4AASlIFAANBQ==" - conditions: - - condition: - value_template: "{{ command = 'number_6' }}" + - condition: template + value_template: "{{ command == 'number_6' }}" sequence: - action: remote.send_command target: @@ -161,8 +161,8 @@ livingroom_remote_tv: TcTNxITEjcSNxMSEjcTEhMSEhMSNxITEhITNxITEjcSNxM3EgAFJAABKEkTAA\ xOAAEoSRIADE8AAShJEgANBQ==" - conditions: - - condition: - value_template: "{{ command = 'number_7' }}" + - condition: template + value_template: "{{ command == 'number_7' }}" sequence: - action: remote.send_command target: @@ -172,8 +172,8 @@ livingroom_remote_tv: zcSNxM3EjcTNxISEzcSExISExITEhITEhITNxISEzcTNxI3EgAFJAABKEkSAA\ xPAAEoSRIADFAAASdJEwANBQ==" - conditions: - - condition: - value_template: "{{ command = 'number_8' }}" + - condition: template + value_template: "{{ command == 'number_8' }}" sequence: - action: remote.send_command target: @@ -183,8 +183,8 @@ livingroom_remote_tv: TkQOREUEhMQFBE5EDkRFBITEBQTNxA5ETkQFBMSETgRORE4EQAFJgABJ0kRAA\ xQAAEpSBEADQU=" - conditions: - - condition: - value_template: "{{ command = 'number_9' }}" + - condition: template + value_template: "{{ command == 'number_9' }}" sequence: - action: remote.send_command target: @@ -194,8 +194,8 @@ livingroom_remote_tv: TkQORE5EBQRFBE4ETkRFBAUERQRFBA5ETgRFBEUETgRORA5EQAFJQABKEkRAA\ xPAAEoSREADE8AAShJEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'number_0' }}" + - condition: template + value_template: "{{ command == 'number_0' }}" sequence: - action: remote.send_command target: @@ -205,8 +205,8 @@ livingroom_remote_tv: DkROBEUERQRFBAUEzcQFRAUExISNxE5ETgRORAUETkROBE5EAAFJgABKEkRAA\ xQAAEoSRAADFAAAShJEwANBQ==" - conditions: - - condition: - value_template: "{{ command = 'sleep' }}" + - condition: template + value_template: "{{ command == 'sleep' }}" sequence: - action: remote.send_command target: @@ -216,8 +216,8 @@ livingroom_remote_tv: DkROBEUETkQORE4ERQRFBEUEBQRORAVEBQRFBE4ETkROBE5EAAFJgABJksRAA\ xQAAEmSxEADFAAASZLEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'settings' }}" + - condition: template + value_template: "{{ command == 'settings' }}" sequence: - action: remote.send_command target: @@ -227,8 +227,8 @@ livingroom_remote_tv: TkQORE4ETkRFBAUERQRFBE4ERQRFBAUETkROBE5EDkRFBE4EQAFJQABKEkRAA\ xQAAEoSREADFAAAShJEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'nav_up' }}" + - condition: template + value_template: "{{ command == 'nav_up' }}" sequence: - action: remote.send_command target: @@ -238,8 +238,8 @@ livingroom_remote_tv: TkQOREUEBQRFBEUERQQFBE5EBUQORE4ETkQORE5EDkRFBE4EQAFJgABJUsRAA\ xQAAEmSxEADFEAASVLEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'nav_down' }}" + - condition: template + value_template: "{{ command == 'nav_down' }}" sequence: - action: remote.send_command target: @@ -249,8 +249,8 @@ livingroom_remote_tv: TkQORE5EBQRFBEUEBUQFBE5EBQRFBE4ETkROBE5ETgRFBE4EQAFJgABJksQAA\ xRAAEmSxEADFEAASVLEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'nav_left' }}" + - condition: template + value_template: "{{ command == 'nav_left' }}" sequence: - action: remote.send_command target: @@ -260,8 +260,8 @@ livingroom_remote_tv: jcTNxI3EzYTNxITEhITEhITEhITEhMSEhMSNxI3EzcSNxM3EgAFJAABKEkSAA\ xOAAEoSREADFEAASdJEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'nav_right' }}" + - condition: template + value_template: "{{ command == 'nav_right' }}" sequence: - action: remote.send_command target: @@ -271,8 +271,8 @@ livingroom_remote_tv: TgROREUEDkROBEUERQRFBAUERQROBEUERQROBE5ETgRORA5EQAFJgABJUsRAA\ xQAAEmSxEADFAAASZLEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'nav_ok' }}" + - condition: template + value_template: "{{ command == 'nav_ok' }}" sequence: - action: remote.send_command target: @@ -282,8 +282,8 @@ livingroom_remote_tv: DkRORAUERQROBEUERQRFBA5ERQROBE5EBQRORE4ETkQFBE5EQAFJQABJksRAA\ xQAAEmSxAADFAAASZLEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'nav_back' }}" + - condition: template + value_template: "{{ command == 'nav_back' }}" sequence: - action: remote.send_command target: @@ -293,8 +293,8 @@ livingroom_remote_tv: TkROBEUERQQFBE5ERQQOREUEBQRORE4ETkQFBE5ERQQORE4EQAFJQABKUgRAA\ xRAAEnSRAADFAAAShJEQANBQ==" - conditions: - - condition: - value_template: "{{ command = 'nav_exit' }}" + - condition: template + value_template: "{{ command == 'nav_exit' }}" sequence: - action: remote.send_command target: