By now it is clear that Event History is pruned at 1000 events per event type once per day. But what do you use the event history for? I have found myself use the last few events for debugging and very little else. 1000 events I would not have a need for.
The above is true since I, like many others, send events to be stored and graphed outside of HE. With no graphing built-in, there is not much else to be done if graphs are wanted.
Sure, it would, in theory, be possible to write some JS code that used the history and presented a graph in the Dashboard, but this would be an expensive thing to do, especially if automatically refreshed and not updated using current device events, which could be leveraged, of course.
So, what do you use the event history for? Are there use cases for having 1000 events in there? Or have you never even looked at the device event history and only the current status is of interest to you?
EDIT: For me a device event history persisting more than the latest event between reboots is unneeded, any thoughts?
All of this is just an exercise for thought and I don't expect anything to change, just wondering how other people see this.
but saying that on ST the new app had little temp graphs, and i did look at them quite (think they were only 24h) a lot in winter. was thinking about a rule to turn on heating when temperature drops.
This would be helpful for a lot of things, not just temp, but as part of seeing patterns in values to be used as trigger points in rules as well. For this there's the "outside of HE" options, but that feels incomplete and unnecessarily complex...
EDIT: Out of likes, but will come back with them later
I rarely look at my events but for people that like to babysit power usage having a lot of events available is very good.
I rewrote a few drivers for some devices recently that report power usage. It is scary how chatty they are. They are sending an event almost ever second as power is being used. Multiply this by multiple devices and this could be a problem as I could see it flooding the mesh. I went and started disabling all the power reports because I don't need them.
With that many reports, the event logs will fill up fast.
Sure, but without visualization, they are very hard to use... At the moment that is only possible off-system, except with some custom app or custom JS in a Dashboard.
Most definitely, it is easy to get to more than 1000 per day per event type if one is not careful. And with many different event types... PM really is a prime example of this. In some drivers I've written the default is to update PM readings once every 5 minutes, but it can be set down to once every 10 seconds or up to once an hour... Or it can be based on a minimum change in %... Even with this, there's a lot of data which is probably never going to be used. For many, the current value and the previous value are all that is needed. More than that and an external system is basically required, at the moment at least.
I wonder how many people actually look at these settings and tweak them to minimize the reports.
My first shock was with the zooz powerstrip. I have it setup so that when my tool batteries are done charging it will notify me and cut the power. But while they are charging the report events were crazy.
I know, but if I'd set the default to more than 5 minutes, people would start thinking something is wrong since values are not updating. I'd love to be able to update the current value without creating a new event in the event log.
I think it may be possible, but at the driver level. If you modify the sendevent command for power reporting and use the property "displayed:false" I have a feeling it doesn't log it to the event log but will still update the attributes. I had to reference the ST documentation but it looks like that is the use. I could be wrong though.
This setting actually hid the event from some display methods, it did not prevent the method from committing to the database.
This has no effect in Hubitat.
ive just used the history! it was no help....
notice my thermostat was set to 21deg when it should have been off as everyone was away.
only rules i have is off when away and 17 when the boiler turns on. but 30 after everyone leaving there is an event setpoint change to 21, but no why....
It is up to the driver to include a descriptionText explaining the event. My drivers don't have anything useful in that part either, I think most drivers don't. Maybe they should...
And the normal logs will be long gone. Unless you send them out of HE somehow?
This createEvent call doesn't add a descriptionText to the event. There are some more as well, but some of the calls do add a descriptionText. At least you can trace it down to which calls it can be and which it can't.
The device event log is the event log in the device, the "normal" log is the one where log messages go. I might be using the wrong terminology here, but we talk about the same things.