Widget notification when hardware goes from offline to online

Hello everybody.
Now we have an option in notification widget to tell us when our hardware goes offline, is it possible to add an option in the app to notify me when my hardware goes from offline to online?
I know that it could be done in code but it will be easy with button in the app?
What you think about it?

P.s. maybe add an option that if hardware not goes from offline to online after XX sec nofication will appear.