Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95462

Reed switch, garage door, mqtt an binary sensor

$
0
0

@honikos wrote:

Hi there !
Some changes in mqtt sensor auto-detection made my homeassistant losing the state of a binary sensor (reed switch on sonoff-basic, GPIO 14) after hass restarts. When restarting hass, the sensors status is always OFF ( garage door open), even if the real sonoff-sensor is ON (garage door closed). Test on sonoff- Tasmota CLI;

19:07:00 MQT: stat/sonoff-garage-1/STATUS10 = {“StatusSNS”:{“Time”:“2020-04-15T19:07:00”,“Switch1”:“ON”}}

Perfect. I tried 2 solutions. Mqtt - platform and template-platform. Both work well, but both don’t recognize the real sensor state after reboot.

Do I have any chance to fetch the state for homeassistant. Is there a command to achieve this? (mqtt ?)
Unfortunately the mqtt teleperiod delivers the right sensor state every 5 minutes.

19:11:48 MQT: tele/sonoff-garage-1/SENSOR = {“Time”:“2020-04-15T19:11:48”,“Switch1”:“ON”}

But as I mentioned at the beginning, hass doesn’t take notice anymore.

Maybe I can save the last state somewhere. Tried a lot (rules, mqtt commands …)

Thanks
Horst

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95462

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>