Automation Notification

I am trying to get notified when the entity outdoor_smart_plug_with_power_meter_electric_consumption_amps goes above zero but I can’t seem to find the way to do that. Any suggestions?

https://www.home-assistant.io/docs/automation/trigger/#numeric-state-trigger

automation:
  triggers:
    - trigger: numeric_state
      entity_id: sensor.outdoor_smart_plug_with_power_meter_electric_consumption_amps
      above: 0

Does this look right to you?

Please don’t paste screenshots: paste properly-formatted code.

Looks OK to me though: does it work? It will only fire if the entity state goes from zero or below to above zero — so you might be better off with a small positive number rather than zero if the state doesn’t reliably sit at zero when off.

1 Like

I try to copy the code using the little copy icon and it doesn’t work.