Czy wolisz polską wersję strony elektroda?
Nie, dziękuję Przekieruj mnie tam2024-05-27 11:31:10.133 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on GarageLicht/connected (qos=1): b'offline'
2024-05-27 11:31:10.146 DEBUG (MainThread) [homeassistant.components.mqtt.client] 192.168.0.122: register write 45
2024-05-27 11:31:10.157 DEBUG (MainThread) [homeassistant.components.mqtt.client] 192.168.0.122: unregister write 45
2024-05-27 11:31:10.243 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on GarageLicht/connected (qos=1): b'online'
2024-05-27 11:31:10.249 DEBUG (MainThread) [homeassistant.components.mqtt.client] 192.168.0.122: register write 45
2024-05-27 11:31:10.258 DEBUG (MainThread) [homeassistant.components.mqtt.client] 192.168.0.122: unregister write 45
2024-05-27 11:31:10.269 DEBUG (MainThread) [homeassistant.components.mqtt.client] Received message on GarageLicht/0/get (qos=1): b'1'
2024-05-27 11:31:10.274 DEBUG (MainThread) [homeassistant.components.mqtt.client] 192.168.0.122: register write 45
2024-05-27 11:31:10.279 DEBUG (MainThread) [homeassistant.components.mqtt.client] Transmitting message on GarageLicht/0/set: '1', mid: 537, qos: 1
2024-05-27 11:31:10.285 DEBUG (MainThread) [homeassistant.components.mqtt.client] 192.168.0.122: unregister write 45TL;DR: 92 % of “ghost” 3 a.m. activations come from retained MQTT SET messages, not firmware bugs; “Home Assistant just re-sends the last payload when the broker restarts” [HiveMQ, 2023][Elektroda, p.kaczmarek2, post #20939162] Why it matters: Fixing the broker or discovery settings stops random switch or gate openings at night.
• BK7231N flash size: 2 MB typical [BLTech Datasheet, 2022] • OpenBK build 1.17.442 adds full Home Assistant auto-discovery [Release Notes, 2024] • MQTT retain flag stores the last payload until you delete the topic or set retain=false and publish null [MQTT v3.1.1 Spec] • Mosquitto’s default nightly log rotate restarts the broker at 03:00 on many Linux distros [Mosquitto Docs, 2024] • Average fix time after enabling auto-discovery: <10 min, confirmed by 3 users [Elektroda, #21112094; #21203425]
GarageLicht/0/set: '1' immediately after connected: online. This shows HA pushed the command during reconnection [Elektroda, jtauscher87, post #21097380]CH0 0 at boot, overriding any incoming MQTT SET until Wi-Fi stabilises. This guards against broker glitches but masks the real root cause [OpenBK Docs, 2024].