-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsend_outdoor_temperature.yaml
43 lines (39 loc) · 1.37 KB
/
send_outdoor_temperature.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
blueprint:
name: Update second display to show outdoor temperature.
description: Send outdoor temperature to thermostat second display. You need a sensor from Openweathermap, environment canada or any good local temperature source. Temperature is updated each time the sensor is updated.
domain: automation
source_url: https://github.com/claudegel/sinope-zha/tree/master/automation/blueprints/send_oudoor_temperature.yaml
input:
weather_entity:
name: Your City Weather source.
description: Entity ID of the outdoor temperature sensor.
selector:
entity:
domain: sensor
climate_target:
name: Thermostat_ieee
description: Target thermostat entity. Can put more then one.
selector:
target:
entity:
domain: climate
# If outdoor temperature change we update the thermostat display.
mode: single
triggers:
- trigger: state
entity_id: !input weather_entity
variables:
thermostats:
- !input climate_target
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: 0x0010
value: "{{ ( trigger.to_state.state|float * 100 ) |int }}"