I am trying to figure out how to update status of open door contact from /tele messages of MQTT.
Current configuration - the channel listens to MQTT State Topic (/stat) and all works ok, when contact changes state.
But after reboot (imagine power outage for few minutes) perhaps the door opened and contact state changed. No /state MQTT message arrives, so the system shows null, until state changes.
I am getting however periodic /tele updates, which I cannot use, as channel is already subscribed to /state topic.
I thought of some workaround (creating another channel subscribing to tele and updating status of another item based on this channel’s status) but perhaps there is smarter way around?
Thanks in advance!
*I am using OpenHabian raspberry