logo elektroda
logo elektroda
X
logo elektroda

[Solved] [MQTT] Need help reading status of device (on or off, 1 or 2)

bgardner46 807 7
ADVERTISEMENT
  • #1 20400242
    bgardner46
    Level 3  
    I have flashed numerous devices with the Open Beken software but I'm having trouble getting the status of the device (on or off, 1 or 2). With a Tasmota device I can send cmnd/topic/POWER without a payload and the current status is returned. I have tried both of the following without a payload but don't get anything back. Am I doing something wrong?

    cmnd/topic/POWER
    topic/1/get

    Thanks,
    Bob
  • ADVERTISEMENT
  • Helpful post
    #2 20400557
    p.kaczmarek2
    Moderator Smart Home
    Hello @bargner46 , it seems you are correct - the JSON status is enabled only for HTTP cmnd so Tasmota Control from Google Play can work.
    I will enable it for MQTT as well later today or in the following days, can you wait up to 48h?

    bgardner46 wrote:

    topic/1/get

    I enabled it for you in the latest build, can you check if it works as you expected it to?
    [MQTT] Need help reading status of device (on or off, 1 or 2)
    https://github.com/openshwprojects/OpenBK7231...mmit/915dca8c6da32584f80244a97a5df32b3ffce2fd
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20401055
    bgardner46
    Level 3  
    Thank you. I will update later today if I can get to it and let you know how it works. Amazing response.
    Bob
  • Helpful post
    #4 20401291
    p.kaczmarek2
    Moderator Smart Home
    cmnd/topic/POWER
    should also work now.
    Do you need anything else? Status also should work, I think.

    Here's the automatic self-test file for this feature:
    https://github.com/openshwprojects/OpenBK7231T_App/blob/main/src/selftest/selftest_tasmota.c
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #5 20401318
    bgardner46
    Level 3  
    Thanks again. I'm definitely looking forward to trying this out.

    Bob
  • ADVERTISEMENT
  • #6 20403552
    bgardner46
    Level 3  
    Well I flashed one of my Open Beken devices with 1.15.369 and the MQTT worked perfectly I could use either your protocol or the Tasmota protocol and they both returned the status as expected.

    Thank you so much for the quick response. Now I need to update the rest of my devices.

    Bob
  • #7 20403556
    bgardner46
    Level 3  
    Flashed devices with new version 1.15.369. Thanks again.
    Bob
  • #8 20403994
    p.kaczmarek2
    Moderator Smart Home
    Now we are also compatible with ioBroker sonoff plugin and tomorrow we're getting Wemo Alexa support.
    Helpful post? Buy me a coffee.

Topic summary

The discussion revolves around a user seeking assistance with reading the status of devices flashed with Open Beken software via MQTT. The user initially faced issues retrieving the device status using commands similar to Tasmota's. A response indicated that JSON status was only enabled for HTTP commands but would be added for MQTT shortly. After a subsequent update, the user confirmed that the MQTT commands worked correctly, allowing status retrieval as expected. The conversation also noted compatibility with ioBroker and upcoming Wemo Alexa support.
Summary generated by the language model.
ADVERTISEMENT