Hi,
Need a little help… I use the Email Notifier for sending periodic messages from Automations. But I want to make the content of the mail conditional.
Below I report weekly the battery status of 5 sensors.
I’d like to add ‘OK’ or ‘NOK’ before the text “Battery level”, but I don’t succeed in getting the code right. Anyone with a little help?
Hi, I want to add the OK / NOK based on the sensor.hue_motion_sensor_#batterij being below 15. So, when sensor-value is above or equal to 15 add ‘OK’ to the text, and when sensor-value is below 15 add ‘NOK’.
In pseudo-code:
IF sensor.hue_motion_sensor#_batterij >=
THEN
“OK”
ELSE
“NOK”
END_IF