-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathshow_dr_logo.yaml
50 lines (45 loc) · 1.3 KB
/
show_dr_logo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
blueprint:
name: Show Eco logo on thermostat display.
description: Send code to thermostat to have the ECO logo blinking.
domain: automation
source_url: https://github.com/claudegel/sinope-zha/tree/master/automation/blueprints/show_dr_logo.yaml
input:
condition_target:
name: The hydro_QC bynary sensor for upcomming peak period.
description: Entity ID of the bynary_sensor from hydro_QC integration.
selector:
entity:
domain: binary_sensor
climate_target:
name: Thermostat_ieee
description: Target thermostat entity. Can put more then one.
selector:
target:
entity:
domain: climate
# if peak period is active we show ECO logo on the thermostat screen.
mode: single
triggers:
- trigger: time
at: "05:00:00"
- trigger: time
at: "15:00:00"
variables:
thermostats:
- !input climate_target
condition:
condition: state
entity_id: !input condition_target
state: 'on'
actions:
- repeat:
count: "{{thermostats|length}}"
sequence:
- action: zha.set_zigbee_cluster_attribute
data:
cluster_type: in
ieee: "{{ thermostats[repeat.index-1] }}"
endpoint_id: 1
cluster_id: 0xff01
attribute: 0x0071
value: 0