Email notification power off and on olt x7 5800 with SMU01C

Hello
I would like to get notification via email from librenms when power ac will be down and when will comeback.
I connected olt x7 5800 with SMU01C wia ethernet. I can read data from SMU01C.
olt(config-if-smu-1)#display power run info

EMU ID: 1 System run information


Limit State : No limit Charge control : Automatic control

Charge state : Floating

Module number : 2

Module 0 address : 1 Module 0 type : AC/DC

Module 1 address : 2 Module 1 type : AC/DC

Module 0 voltage : 53.66V Module 0 current : 1.87A

Module 1 voltage : 53.68V Module 1 current : 1.94A

DC voltage : 53.61V AC voltage : 240.90V

Load current : 3.79 A Battery current : 0.00 A

Battery capacity remained: 100 %

Librenms also sends info.

2023-03-03 09:45:44 State sensor AC Power State has changed from offline (2) to normal (1)
2023-03-03 09:40:44 State sensor AC Power State has changed from normal (1) to offline (2)
2023-03-03 09:40:44 Voltage under threshold: 0 V (< 205.53 V)
2023-03-02 21:57:00 Location: xxxx