Tasmota plug turns on at HA reboot

I have a problem with my Tasmota (Refoss P11) sockets. After each restart of Home Assistant, a switched off socket is automatically switched on.
Does anyone have an idea what the problem could be?

Are these not WiFi devices instead of zigbee?

Oh yes, you are right. I changed the category.

How have you integrated them into HA?
Just an idea, check the settings from the integration and the device to see whether there is a setting to control this behavior.

Open your Home Assistant instance and show your integrations.

Do they just get switched on ‘by themselves’ or is an automation triggering them to get switched on due to a state change of an entity that e.g. goes from ‘unavailable’ or ‘unknown’ to ‘on’ or ‘off’?
You should be able to see if an automation triggers the switch in the Logbook.

Did you configure them in .yaml, or did they get discovered by the Tasmota integration ?

@Nick4
I use the official Tasmota integration.
I have checked the integration settings, unfortunately there is nothing to configure here that explains this behavior.

@chairstacker
Yes, it switches back on by itself. The linked automation does not trigger and the logbook simply says “Eingeschaltet”, german for switched on.

@francisp
It was created automatically via the Tasmota integration.

Did you set any of the retain settings ?

not that i know of. where can i find these settings?

Looks like there’s no setting for when the power comes back on :frowning:

But it seems they can be flashed to ESPHome which has a restore_mode: option

Refoss P11 Power Monitoring Plug | devices.esphome.io

The behavior after the mains voltage returns can be influenced in the console in the WebUI with “PowerState”.
But that is not my problem. My problem is that the socket switches back on by itself after a Home Assistant restart.

I will try to flash a socket with ESPHome.

Sorry, that’s the response you got 'cause I didn’t re-read the original question before I posted the 2nd comment :frowning:

:crossed_fingers: that flasing with ESPHome does the job, though.