mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-08 10:38:44 +00:00
Trust remote in guest bedroom
This commit is contained in:
@@ -99,6 +99,7 @@ cards:
|
|||||||
- automation.lighting_sync_tasmota_states_on_start_up
|
- automation.lighting_sync_tasmota_states_on_start_up
|
||||||
- automation.lighting_sync_zigbee_states_on_start_up
|
- automation.lighting_sync_zigbee_states_on_start_up
|
||||||
- type: divider
|
- type: divider
|
||||||
|
- automation.trust_remote_guest_bedroom
|
||||||
- automation.trust_remote_dimming
|
- automation.trust_remote_dimming
|
||||||
- automation.trust_remote_turn_on
|
- automation.trust_remote_turn_on
|
||||||
- automation.trust_remote_turn_off
|
- automation.trust_remote_turn_off
|
||||||
|
|||||||
@@ -34,6 +34,9 @@
|
|||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: v3_badge
|
template: v3_badge
|
||||||
entity: binary_sensor.someone_sleeping
|
entity: binary_sensor.someone_sleeping
|
||||||
|
- type: custom:button-card
|
||||||
|
template: v3_badge
|
||||||
|
entity: sensor.house_mode
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: v3_section_title
|
template: v3_section_title
|
||||||
|
|||||||
@@ -18,6 +18,29 @@ mqtt:
|
|||||||
value_template: "{{ value_json.linkquality }}"
|
value_template: "{{ value_json.linkquality }}"
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
|
- alias: Trust remote · Guest bedroom
|
||||||
|
trigger:
|
||||||
|
- platform: mqtt
|
||||||
|
topic: z2m_deconz/trust_remote
|
||||||
|
action:
|
||||||
|
- choose:
|
||||||
|
- conditions: "{{ trigger.payload_json.action == 'up-press' }}"
|
||||||
|
sequence:
|
||||||
|
- service: light.turn_on
|
||||||
|
entity_id: light.tradfri_large
|
||||||
|
data_template:
|
||||||
|
brightness_pct: "{{ is_state('input_select.guest_bedroom_mode', 'day') | iif(100, 10) }}"
|
||||||
|
color_temp: "{{ states('input_number.guest_bedroom_light_temp') }}"
|
||||||
|
- conditions: "{{ trigger.payload_json.action == 'down-press' }}"
|
||||||
|
sequence:
|
||||||
|
- service: light.turn_off
|
||||||
|
entity_id: light.tradfri_large
|
||||||
|
- conditions: "{{ trigger.payload_json.action == 'on' or trigger.payload_json.action == 'off' }}"
|
||||||
|
sequence:
|
||||||
|
- service: script.guest_bedroom_bedside_confirm
|
||||||
|
- service: input_select.select_next
|
||||||
|
entity_id: input_select.guest_bedroom_mode
|
||||||
|
|
||||||
- alias: Trust remote · Dimming
|
- alias: Trust remote · Dimming
|
||||||
trigger:
|
trigger:
|
||||||
- platform: state
|
- platform: state
|
||||||
|
|||||||
@@ -9,12 +9,14 @@ script:
|
|||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.tradfri_large
|
entity_id: light.tradfri_large
|
||||||
data:
|
data:
|
||||||
rgb_color: [110, 255, 0]
|
color_temp: 500
|
||||||
|
# rgb_color: [110, 255, 0]
|
||||||
- delay: 00:00:02
|
- delay: 00:00:02
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.tradfri_large
|
entity_id: light.tradfri_large
|
||||||
data_template:
|
data_template:
|
||||||
color_temp: "{{ states('input_number.guest_bedroom_light_temp') }}"
|
color_temp: "{{ states('input_number.guest_bedroom_light_temp') }}"
|
||||||
|
- delay: 00:00:02
|
||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
entity_id: scene.guest_bedroom_before_confirm
|
entity_id: scene.guest_bedroom_before_confirm
|
||||||
- delay: 00:00:01
|
- delay: 00:00:01
|
||||||
|
|||||||
Reference in New Issue
Block a user