mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-15 12:34:42 +00:00
Replace service_templates
This commit is contained in:
@@ -45,7 +45,7 @@ input_number:
|
|||||||
script:
|
script:
|
||||||
toshiba_ac_toggle_cool:
|
toshiba_ac_toggle_cool:
|
||||||
sequence:
|
sequence:
|
||||||
- service_template: >-
|
- service: >-
|
||||||
{% if is_state('climate.toshiba_ac', 'off') %}
|
{% if is_state('climate.toshiba_ac', 'off') %}
|
||||||
script.toshiba_ac_on_cool
|
script.toshiba_ac_on_cool
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ automation:
|
|||||||
value_template: >
|
value_template: >
|
||||||
{{ trigger.payload_json.action == "on" }}
|
{{ trigger.payload_json.action == "on" }}
|
||||||
action:
|
action:
|
||||||
- service_template: light.turn_on
|
- service: light.turn_on
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: >-
|
entity_id: >-
|
||||||
{% set groupId = (trigger.payload_json.action_group % 10) %}
|
{% set groupId = (trigger.payload_json.action_group % 10) %}
|
||||||
|
|||||||
@@ -76,11 +76,11 @@
|
|||||||
# action:
|
# action:
|
||||||
# - delay: 00:00:03
|
# - delay: 00:00:03
|
||||||
|
|
||||||
# - service_template: "input_boolean.turn_{{ states('light.kitchen_main') }}"
|
# - service: "input_boolean.turn_{{ states('light.kitchen_main') }}"
|
||||||
# entity_id: input_boolean.tuya_kitchen_main_lights_state
|
# entity_id: input_boolean.tuya_kitchen_main_lights_state
|
||||||
|
|
||||||
# - service_template: "input_boolean.turn_{{ states('light.kitchen_secondary') }}"
|
# - service: "input_boolean.turn_{{ states('light.kitchen_secondary') }}"
|
||||||
# entity_id: input_boolean.tuya_kitchen_secondary_lights_state
|
# entity_id: input_boolean.tuya_kitchen_secondary_lights_state
|
||||||
|
|
||||||
# - service_template: "input_boolean.turn_{{ states('light.hallway_main') }}"
|
# - service: "input_boolean.turn_{{ states('light.hallway_main') }}"
|
||||||
# entity_id: input_boolean.tuya_hallway_main_lights_state
|
# entity_id: input_boolean.tuya_hallway_main_lights_state
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ script:
|
|||||||
alias: Speech · Say discretely
|
alias: Speech · Say discretely
|
||||||
sequence:
|
sequence:
|
||||||
# Figure out whether to talk or send a text.
|
# Figure out whether to talk or send a text.
|
||||||
- service_template: >
|
- service: >
|
||||||
{% if (is_state('media_player.master_bedroom', 'playing')
|
{% if (is_state('media_player.master_bedroom', 'playing')
|
||||||
and is_state('binary_sensor.sonos_recoverable', 'off'))
|
and is_state('binary_sensor.sonos_recoverable', 'off'))
|
||||||
or is_state('input_boolean.speech_notifications', 'off')
|
or is_state('input_boolean.speech_notifications', 'off')
|
||||||
|
|||||||
@@ -93,6 +93,6 @@ automation:
|
|||||||
event_data:
|
event_data:
|
||||||
action: "call-service"
|
action: "call-service"
|
||||||
action:
|
action:
|
||||||
- service_template: "{{ trigger.event.data.service }}"
|
- service: "{{ trigger.event.data.service }}"
|
||||||
data_template:
|
data_template:
|
||||||
entity_id: "{{ trigger.event.data.entity_id }}"
|
entity_id: "{{ trigger.event.data.entity_id }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user