Creating an automation to alert when smart plug power goes off

always understood how a state works and if you read carefully on my screenshots, I have done it exactly the way you said I should, even before you posted.

anyway the solution to my problem was to restart my Z2MQTT.

thanks again @tom_l for your help!

Because a restart caused the entity’s state to change to unavailable. It’s the state-change that serves to trigger a State Trigger.

no. you are wrong. my trigger works everytime i switch off my smart plug now. a restart works for me.

you are completely missing the point. i have no problems understanding how a state change works.

maybe learn reading my initial problem statement first. i have been powering on and off my smart plug to simulate a server room power off event for a state change trigger.

Can you explain why you reported, several times, that the automation failed to be triggered?

maybe learn reading

I’ll assume you can’t explain why. Because “the solution to my problem was to restart my Z2MQTT” doesn’t explain why it wasn’t triggering prior to the restart.