I want to make a automation from a temperature sensor who send is temperature with MQQT.
I want to get a notification on my phone
the problem i’m not getting the automation to work.
I have no problem with the mqqt and getting the value in home automation.
Here is my automation , what is my problem
alias: temperature
description: ''
trigger:
- platform: mqtt
topic: SHT30/room
payload: '{{trigger.payload_value_json.h > 2}}'
condition: []
action:
- service: notify.family
data:
title: test
target: {}
message: test
mode: single
I think what francis is saying is that if the value is already above 2 (it’s currently at 49 in your screenshot) then it won’t trigger. it would need to go below 2 then back above 2 for it to trigger.
automations only trigger when the trigger goes from false to true.
I suggest you don’t translate anything in the automation for our benefit because it can be misleading when we compare screenshots to what is posted here.
I solved it with a work around.
first i made 3 sensors in the configuration and with that sensor i made the automation.
But i stil searching for a solution.