-
Notifications
You must be signed in to change notification settings - Fork 233
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
Add Elgato Eve's History capability #121
Comments
@dezdeepblue It is not quite obvious from repository you mentioned what a "history" feature is. Could you elaborate that? |
I'm not sure if you saw the functionality of Elgato Eve's app in regard to some of its sensors. For example check https://www.evehome.com/en/eve-degree. There are screenshots of the app on the page. Having their HomeKit accessories in the Eve app, not only it shows the current state of the sensor (Temperature, Humidity, etc.) it shows the historical data from each parameter in a graph. |
I am also very interested in having historical data of my sensors. Don't know if Homekit provides this kind of functionality. It would be great if it does. Right now, I have set up a function that sends data to ThingSpeak server every 10 minutes and I use a different app or a browser to view the data. Here is the code I'm using to send temp & humidity values: Initializing values:
The main ThingSpeak function:
The following code should go on your on_wifi_ready function
If you try the code, I would really appreciate some feedback. It normally runs fine. However, If the accessory is not paired first, then it may fail to pair! That's why initializing the things_timer may need to take place on a later stage after accessory has paired. |
From fakegato-history repository I see that they use custom characteristics and base64 serialized data: That could work but surely it will work only with Elgato application. |
I'm not sure how the Fakegato-history on Homebridge works, either the sensor only works on the Eve app or someway it is also working with the Home app. I need to re-setup my RPi and Homebridge to check that. |
I have several homebridge plugins that use fakegato-history, and for example a temperature sensor works like this. In the home app, it appears as just a regular temperature sensor, but in the Eve app it also shows historical graphs of the temperature, which is very cool. In the implementation you create a couple of additional characteristics that are used to communicate that historical data on request. Also you will need to store/cache on the esp8266 the historical records until they are asked for by the app. In homebridge, we are using either the local file system or google drive to cache the records until requested. On the esp8266 this would be a major consideration, as you are likely to be updating the history cache every 10 minutes. In memory memory may not be a good user experience as you would loose the records during a device restart, and writing to the local flash storage may not be desired. |
@maximkulkin This is why homekit data needs to be implemented 😄 At the moment using TLV8 data type, the History is showing up, but it definitely needs HomeKit data to store all the History. |
Has anyone made any progress with historical data? |
Adding Elgato Eve's history capability would be great. https://github.com/simont77/fakegato-history did the same for the Homebridge https://github.com/nfarina/homebridge.
The text was updated successfully, but these errors were encountered: