agasy18
(Aghasi)
January 22, 2022, 9:03pm
36
I found an issue with the second trigger. It never worked for me. I found that the variables are not visible in the trigger scope. So have added a workgorund.
trigger_variables:
valve: !input valve
temp_sensor: !input temp_sensor
I tried the new trigger_variables feature introduced in 2021.3.0. I converted my original example to this:
- alias: test
trigger_variables:
inputs: >
{{ expand('group.input_booleans')
| selectattr('state', 'eq', 'on')
| map(attribute='name') | list }}
trigger:
platform: template
value_template: "{{ inputs | count > 0 }}"
action:
service: persistent_notification.create
data:
title: 'Test'
message: "{{ inputs | join(', ') }}"
Unfortu…
sync_trv_with_external_sensor.yaml
# # based on: https://community.home-assistant.io/t/tuya-radiator-valve-ts0601-calibration-from-external-sensor-via-zigbee2mqtt/337991
# # alternative: https://community.home-assistant.io/t/sync-trv-with-external-tempature-sensor/298024
blueprint:
name: Temperature Calibration
description: Temperature calibration for Zigbee valve TS0601, according to external temperature sensor
domain: automation
input:
valve:
name: Smart Valve
This file has been truncated. show original