Message Malformed on checking inverter sensor state

Trying to write an automation that will notify me if the inverter sensor voltage changes from 0 , ie if the grid power comes back on.
I get a message malformed message.

alias: Power on text
description: “”
trigger:

  • platform: state
    entity_id:
    • sensor.solis_meter_item_a_volt
      from: 0
      for:
      hours: 0
      minutes: 1
      seconds: 0
      condition:
      action:
  • service: notify.whatsapp
    data:
    message: :boom::bulb: Power is on
    mode: single

Going to try this as well:

alias: Power on v7 (April)
description: “”
trigger:

  • platform: state
    entity_id:
    • sensor.solis_meter_item_a_current
      from: “0”
      to: null
      for:
      hours: 0
      minutes: 1
      seconds: 0
      condition:
      action:
  • service: notify.whatsapp
    metadata: {}
    data:
    message: Power on
    mode: single