logo elektroda
logo elektroda
X
logo elektroda

BK7231N Switches with OpenBK in HA Turning On at 3 AM - Firmware Issue?

4139ggn 2739 35
ADVERTISEMENT
  • #31 21097362
    p.kaczmarek2
    Moderator Smart Home
    so you configured it manually via Yaml and not with Home Assistant discovery?
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #32 21097380
    jtauscher87
    Level 6  

    No, I was wrong about that. It was in .yaml but commented out in config.yaml - so no yaml configuration. But anyway I tried changing MAC and deleting device in HA, as soon as MQTT (Mosquitto) reconnects it turns on the device. It always sends the .../0/set 1 command.

    2024-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 45

  • ADVERTISEMENT
  • #33 21100362
    Nakano
    Level 10  

    I have 3 devices with bl602 and only the one from the gateway responds to loss of connection to mqtt. All three have the same batch uploaded. I think I have tried everything. The device doesn't need to be added to the HA I just need to connect it to the broker and that already triggers the self-activation.
  • ADVERTISEMENT
  • #34 21112094
    4139ggn
    Level 5  

    Hello good! Well, I solved my problem by activating auto-detection for Home Assistant and eliminating configuration.yaml.
    Since then, everything is ok! I apologize for not posting the solution that worked for me.
  • ADVERTISEMENT
  • #35 21112634
    ehcabarete
    Level 3  

    I would use MQTT Explorer and clean up the troubled MQTT topics, just delete them. Then start the properly configured switches. Set retain to true.
  • #36 21203425
    4139ggn
    Level 5  
    my issues were fixed when I enabled HomeAssistant detection and removed them from configuration.yaml.

Topic summary

The discussion revolves around the issue of BK7231N switches running OpenBK in Home Assistant (HA) that unexpectedly turn on at approximately 3 AM. Users report that the switches are configured to remember their last state upon reboot, yet they activate without user intervention. Various troubleshooting steps are suggested, including checking MQTT connections, device uptime, and Home Assistant logs. Some users find that disabling MQTT resolves the issue, while others discover that the problem persists despite configurations to retain the last state. A common theme is the need to ensure proper integration with Home Assistant, with some users resolving their issues by enabling automatic detection and removing manual configurations from configuration.yaml. The discussion highlights the complexity of MQTT interactions and the importance of device settings in preventing unintended activations.
Summary generated by the language model.
ADVERTISEMENT