Forked from pavax/z2m_aqara_trv_external_temperature.yaml
Last active
January 2, 2025 07:52
-
-
Save vyunolbek/ef859ae4064bc36454db0175a0fce241 to your computer and use it in GitHub Desktop.
z2m_aqara_trv_external_temperature.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blueprint: | |
name: Внешний датчик температуры | |
description: > | |
Configures the TRV to receive it's temperature from an external sensor. | |
Every time the temperature sensor value changes it's is send to the TRV. | |
domain: automation | |
source_url: "https://gist.github.com/den-gts/64651d44211b34adbf18cb056bb01422" | |
input: | |
external_temp_sensor: | |
name: External temperature sensor | |
description: This temperature sensor values will be synced to the TRV | |
selector: | |
entity: | |
filter: | |
domain: sensor | |
device_class: | |
- temperature | |
aqara_trv_device: | |
name: The Aqara TRV | |
description: The TRV that the temperature will be set to | |
selector: | |
device: | |
multiple: false | |
mode: single | |
max_exceeded: silent | |
variables: | |
aqara_trv_device: !input aqara_trv_device | |
external_temp_sensor: !input external_temp_sensor | |
trigger: | |
- platform: state | |
entity_id: !input external_temp_sensor | |
action: | |
- variables: | |
aqara_trv_device_name: "{{ device_attr(aqara_trv_device, 'name') }}" | |
- service: mqtt.publish | |
data: | |
topic: "zigbee2mqtt/{{ aqara_trv_device_name }}/set/external_temperature_input" | |
payload_template: >- | |
{{ (states(external_temp_sensor)|float(0)|round(1)) }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment