NUT trigger update event

One thing that would be nice for the NUT integration would be a service to force a refresh of the UPS state. Something like nut.update. Maybe by default it would fetch the state of all UPSes and with a name field or something like that it would fetch just one.

This way, automations can be written so that whenever the NUT Addon sends the nut.ups_event event (https://github.com/hassio-addons/addon-nut#event-notifications), the UPS state will be updated (effectively pushed). Additionally, non-addon instances of NUT can use the system notifier script to make an API call to also update the state in realtime. This is especially useful if your UPS has interrupts implemented in NUT or you are using a UPS to track power outages.

cc @bdraco

There is already a service that does this

1 Like

Ah, I did not know that existed! Perfect!