-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT Message Boot state Problem #872
Comments
The heartbeat messages do have the relay status by default (that's the HEARTBEAT_REPORT_RELAY setting in general.h). They are sent every 5 minutes by default. |
Hi, Thanks for the reply |
The heartbeat is active by default and should report the status every 5 minutes (along other values). That, assuming you have MQTT enabled in the web UI (using the same broker as Domoticz). Also, check you don't have "Use JSON payload" enabled since this is not compatible with Domoticz. |
the broker and mosquito mounted on raspberry pi 3 where there is also domoticz mounted. the broker is only 1, and I also see all the messages of other devices in the debug of espurna. Also "use pay load". I have no idea why it does not update the status. |
hi, after a factory reset heartbeat began to work. But Domoticz has not interpreted the command I guess because there is no IDX switch. How can I make it talk to domoticz. |
Right, Domoticz do not use the heartbeat messages. I have added the code to send the relays statuses to domoticz on every connection. It's in the dev branch if you want to test. |
Hi Xose Thank you for your support |
Hello everyone
a few days ago I had a problem of disconnection of energy in an area of the house
where I had sonoff devices with espurna connected with Domoticz.
These sonoffs had an off time schedule, so domoticz continued to work because on another home power line and the espurna sonoff were off. Before the energy returned, the Domoticz schedule turned off the devices but the MQTT message could not be reached. On the return of energy, Sonoff Espurna resumed working in the state as it was before the energy was not there (ON) but did not send any message MQTT boot state to Domoticz, so I had espurna ON but on domoticz I saw it in OFF . (I realized only the day after because they were water extraction pumps and not lights (visible).
Question:
1 ° how is it possible that espurna send a boot state when it is switched boot?
2 ° to avoid any communication errors, perhaps due to the range of the Wi-fi, is it possible that Espurna sends a MQTT Message of the status of the switches every 3-5 minutes, as it does for the sensors?
This allows you to always have control of the current state of the switches.
Version Espurna 1.12.6
Thank
The text was updated successfully, but these errors were encountered: