Power Utility Supply state

Hi there -

I have this automation that use to work on another inverter.
For this particular inverter I am letting it watch the electricity supply using the ac frequency.
We had a power outage and it went on, yet my notification was not sent.
Not sure why? Missing something small. Our normal frequency runs at 50hz.
With power out I checked and saw that this sensor reading was at 0 hz.

alias: Power Restored Message
description: “”

  • platform: state
    • sensor.solis_ac_frequency
      from: “0”
  • service: notify.whatsapp
    message: :boom::bulb:PowerON
    mode: single

Also please format your posts correctly: https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16