Door sensor with Sonoff Basic

There’s also now the SensorRetain command on tasmota

Whenever HA or Sonoff restarts the retained state of the sensor is published again so HA knows if it’s opened or closed

1 Like