Has anyone who has got these sensors with custom firmware had any luck using the resulting sensor entity state vales (humidity, temperature), in an action.
It seems whatever I do like test if the value of sensor.sensor01Humidity has gone over 65 the action never gets triggered.
Yet if I use another numeric value like my phone battery level I can perform any action I want.
Has anyone successfully used these sensors to fire an action like turn of plug if humidity goes over 65%.
I can play around with the values in Dev tools template and use code to do different things and this works I just can’t seem to get an automation to work using these values in a numeric_value.
I’m not sure I’m with you on removing the trigger attributes?
I’ve also tried crossing the value threshold (by setting the above value to 70% then breathing on the thermometer to raise the humidity, still nothing.
I’m beginning to think that you cannot use the values from these sensors to create any triggers.
Oh I get you I just added the numeric_state attribute in an attempt to get it to do something at least, I have removed it again now and it still doesn’t do anything.
As mentioned I can take the state of any other entity that has a numeric_state attribute and this automation will work it just doesn’t wanna work using the sensor entity state.
I cannot work out what’s going on am quite new to this although I’ve already got the code syntax this device however eludes me.
That’s why I was asking if anyone else has used one of these to trigger an action.
Most tutorials I see on these are for getting the values without having to log into the device.
Set the threshold above: 65.
Next, go to Developer Tools —> States (tab) —> Type your entity sensor name —> Change the state to 60 —> Set States —> Change the state again to 70 —> Set States
If it doesn’t trigger, check your automation trace-
Yep that worked I got a notification, so my automation does work it’s just the values seem to have to change so drastically before the automation is triggered is there anyway to detect subtle changes. Or at least make the listener more sensitive to change.
Edit: by the way thanks for the debugging tips dude.
That’s the thing the values had and have crossed the threshold previously and the automation never fired.
It has only just started working since I did what you said and set the state to above and below my target for one of the sensors to trigger the automation and wake up the listener.
Before it did nothing, so my next question is do you have to wake up the listener every time you create a new automation?