Hi,
I have tried to get HASS to look for humidity and turn ventilator on/off
I used automation snip off code below
I have got it go on or off by changing the filter operator but it won’t change automatically when humidity drops etc…
Can you spot something wrong on my config or advice how to debug what is happening…
for example is there way to log from service template ?
- platform: mqtt
name: "akwc kosteus"
friendly_name: "akwc Kosteus"
state_topic: "home/DHT/akwc/1/temp"
unit_of_measurement: '%'
value_template: '{{ value_json.Humidity }}'
switch:
- platform: mqtt
name: "akwc flekti"
state_topic: "home/sonoff/akwc/1/stat"
command_topic: "home/sonoff/akwc/1"
qos: 0
payload_on: "on"
payload_off: "off"
retain: true
automation:
- alias: 'akwc flekti automation'
trigger:
- platform: mqtt
topic: "home/DHT/akwc/1/temp"
action:
service_template: >
{% if states.sensor.akwc_kosteus | int > 60 %}
switch.turn_on
{% else %}
switch.turn_off
{% endif %}
entity_id:
- switch.akwc_flekti