Hello;
I use relay Sonoff ZBR3 with PTVO firmare for control electric heater in water tank.
Mqtt show temperature_l1 and state_l2 which can be ON or OFF
log from mqtt
Zigbee2MQTT:info 2020-12-18 10:40:27: MQTT publish: topic ‘zigbee2mqtt/0x00124b001b78b5df’, payload ‘{“device_l1”:“28-1C-3F-50-22-20-01-4F”,“l1”:31.063,“linkquality”:72,“state_l1”:“OFF”,“state_l2”:“OFF”,“temperature_l1”:31.1}’
But i have issue with Automations.
I would like to have automations.
a)if temperature_l1 is lower than 20C than switch ON
b)if temperature_l1 is greater than 30C than switch OFF.
I prepared automation ZBR3 CWU_ON but it doesn not trigger.
alias: ZBR3 CWU_ON
description: ZBR3
trigger:
- platform: state
entity_id: sensor.0x00124b001b78b5df_l1
attribute: temperature_l1
from: ‘10’
to: ‘30’
for: ‘30’
condition:
action: - type: turn_on
device_id: 3dd5013e0d7e11eba6e4bb21a2a2c508
entity_id: switch.0x00124b001b78b5df_l2
domain: switch
mode: single
Trigger type i can only use State and than i have Entity sensor.0x00124b001b78b5df_l1 which is temperature.
When i change Trigger type to device i don’t have as Trigger 0x00124b001b78b5df_I1 temperature temperature changes ?
See movie
I use HA version 2020.12.0
Home Assistant Core 2020.12.0
Zigbee2mqtt 1.16.2.2
Kindly ask you provide some hint what can be reason for that.
thx
Wojtek