-
Notifications
You must be signed in to change notification settings - Fork 638
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
Uptime, config - mqtt and domoticz #85
Comments
I agree publishing some health information about the device could be great. Right now it's only reporting if the device is alive every 5 minutes and IP and version upon boot. Adding a status update of some interesting data every 5 minutes could be a first approach and not hard to do at all. I don't see the need to report the hostname, baudrate or embedded_web settings (maybe it was just an example), but things I do think are interesting are:
|
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): Cool, glad the idea has some merit. Not too stuck on what needs to be published .. but time up time in minutes will work well. Later Ferdie |
One question, what kind of device are you using in Domoticz to report this data to? Or is it a log message? |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): For the two examples above Text and Custom Sensor. Later Ferdie |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown):
Oh wow ... thanks thanks thanks ... now I have to up my game and get my influxdb going. If you are considering doing a log line style reporting to domoticz, Please add {identifier} in to the mix, that way we do not have to worry about dhcp'ed ip changing and can have multiple device logging to a single test device. I think an uptime idx for domotics that goes to a custom sensor every x minutes and a concatenation of system logging information to the text device on a different idx on major events like boot, reset, reconnect (maybe add ssid name or logging) and mqtt connect. Later Ferdie |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): ah wait you are way ahead of the curve ... see mqtt is doing the 5 minute thing already, very cool.
|
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): Ok I can get both mqtt /test/switch/# value string and domoticz/# json into influxdb via telegraf, next to do some graphing. Later Ferdie BTW ESPURNA's mqtt starting with a "/" tripped me up for a while. |
You can define whatever topic root you wish from the web interface. |
Original comment by f-fish (Bitbucket: f-fish, GitHub: Unknown): Flashed 1.6.8 ... some interesting mqtt messages send . fluxdb is an overkill for what I want to do with just plain logging. - So why not pretend the esp is a mysensor device? https://www.mysensors.org/download/serial_api_20 Setup a mysensor mqtt dummy device on domoticz .. and capture the Message bit of the events. No context on the values - but an out the box hack gets me some stuff that I wanted. Later Ferdie |
Removing milestone: 1.8.0 (automated comment) |
Removing milestone: 1.8.1 (automated comment) |
Pushed with 1.8.3. |
Removing milestone: 1.8.3 (automated comment) |
Originally reported by: f-fish (Bitbucket: f-fish, GitHub: Unknown)
Not sure what the performance impact would be.
With my growing number of espurna devices it is hard to say if they have had any funnies, resets etc Pushing the device uptime to domoticz as an example will allow one to track and alert on a device misbehaving so doing the calculation and allowing it to be published will help - maybe even add some point 2 magic.
For domoticz publish a configuration string.
Ideal information would be a custom string that would allow one to use any variable so build something like.
Not only will it help with tracking what version we are flashing when or what devices are doing, but with 3b you would be able to build in a status check-in to domoticz to report say $relayStatus or $UPTIME
Having a 3'd IDX on every hour would be an absolute bonus.
I will probably then push all my ESPURNA's data on the same IDX as device log.
Currently do this for my Pi's so that I can track and see if they are rebooting, what IP address they are coming up with etc - Domoticz data.
or in the case of a sonoff basic with espeasy uptime - I can see that R120 with a certain config was predictably "stable", but the last changes is causing some issues that need to be investigated.
Later Ferdie
The text was updated successfully, but these errors were encountered: