I am trying to create a piston that will warn me whenever a sensor changes it’s status to “unavailable” in order to fix these kind of issue quickly.
I am not sure how to use this attribute and what exactly its code should be.
Yeah, there is a pseudo attribute in webCoRE called $status - just be aware that there is no way right now to get events when the values change, like you would with regular attributes. So you’d need a timer
define
device devs;
end define;
every 5 minutes do
if
any of (add many devices here)’s $status is not ‘ONLINE’ (save matching list to variable devs)
then
Send notification “{devs} are offline”
end if;
end every;
This is a very basic solution - you probably want a notification when the list changes, not every five minutes, but that’s good enough to get you started.