Open n0rt0nthec4t opened 4 years ago
Nice work! Actually, it is beyond fakegato-history to implement also the schedule, but it would be nice if you can update the wiki describing the decoded protocol.
So how is triggering the schedule? Is this the device itself?
So how is triggering the schedule? Is this the device itself?
Yep, that is my assumption. The schedules are setup in the Eve app and transferred to the device. There must be another command which syncs the sunset/sunrise times to the device. Iβm assuming this as not sure how the device would know that otherwise. Plus, a couple of commands I havenβt decoded yet which I think contains time information.
Nice work! Actually, it is beyond fakegato-history to implement also the schedule, but it would be nice if you can update the wiki describing the decoded protocol.
Yep, see what I can document in the wiki once finished full decoding and testing to send own developed schedules back to the Eve app
So how is triggering the schedule? Is this the device itself?
Yep! Accurate timekeeping in embedded systems is a very common thing. The Eve app sends the current time sometimes so the device can maintain the internal "clock" very well π I'm also using a similar method for timestamps: on boot i get the NTP time and the ESP8266 than maintains the time automatically. Sometimes the clock gets off by 1-2 seconds, so when E863F121
characteristic get a new time value from the Eve app, i can adjust the clock π Also the NTP task runs itself every hour for safety π
@n0rt0nthec4t Have you got a full documentation for the Schedule functions? Currently i'm struggling with it π But my main goal is to skip the homebridge part, so I want to make it in C language and running it natively π Currently I've just finished the Water consumption, Flow rate and Last Watering / Watering for part, so these are running correctly but cant get the Schedule working, even with the HomeKit Accessory Simulator π©
Can you send me some examples what a proper data looks like (for Eve config get/set characteristics)? homekid92@gmail.com
@HomeKidd sorry, haven't been coding much recently. Trying to workout a few more of the aqua commands, specifically for setting a schedule, but haven't gotten that working correctly.
One funny thing when using fakehistory, if I put this against an irrigation system with multiple valves (zones), teh eve app shows the configuredname characteristic as blanks, however, without connect to fake history, it shows things correctly. So thinking its either a eve app bug OR eve stores the aqua name outside of the normal HomeKit configuredname characteristic
And you don't publish your sourcecode on your GitHub, so yeah. Be great if you can share all your code
So, after some playing around, I've managed to decode the schedules from Eve Aqua. My WIP code is below. hoping someone finds this useful to create a PR for fakegato. As I don't use homebridge, thats not on my radar. Also, decoded more of the "supercharacteristic" for getting info
Still have more of the commands to decode, but the hard part about the schedules is done
This is set with firmware ID of 1208 (the wiki example, is for firmware 1051)