MQTT Specs

  • Hi all,

    I have a D&W working with my mosquitto broker and now I'd like to trigger a wake-up and status report by injecting an mqtt message (or any other method), Can anyone point me how/if this is possible ?

    I found some info about mqtt on various Shelly devices but nothing specific about Door/Window sensor, Any advice ?

    Thanks in advance.

    Alberto

  • Hi Alberto

    You are posing an interesting task.

    I suspect the D/W device is coded to not wake up unless the door is opened. Here's some interesting stuff on programming an esp8266 to communicate via mqtt from a sleep.

    https://arduinodiy.wordpress.com/2020/01/26/ver…-mqtt-messages/

    You would probably have to get into recoding the device to achieve what you want. Checkout Mqtt Explorer it will allow you to monitor any activity the sensor is sending out. You might find a window of opportunity to capture a status report from it??

    Hope this helps

  • Hi Retiredeh,

    thanks for your response and for the interesting article.

    Actually the sensor is already configured to wake up for a number of reasons (temperature change, lux channges, open/close changes).
    The problem is that I need to detect from mqtt messages the tilt direction (open/close) of my garage door. Now I have messages arriving with 10-15 sec delay so it is not possibile to detect anything usefull.

    The idea was to "ask" for status messages hoping that would shorten the delay.

    Thanks again for your response.

    Alberto

    PS: I'm running in a private network, (static IPs, no cloud) thus no network delay is affecting messages).