Open An00bIS47 opened 4 years ago
Very nice work! The schedule is a bit outside of fakegato-history scope, and in any case now I don't have to time to include it into the code. Could you add a wiki page on it?
Hi @simont77, there are still some parts required to get this working. When there are all required parts decoded, I can add it to the wiki, but for now, I will update this issue from time to time.
Maybe someone can help out with decoding the missing parts :)
@An00bIS47 Thanks for the credit. Glad my initial work on the Aqua schedule decoding helped
Great! @An00bIS47: Can you also post an example "read config" dump from the "Eve Energy Strip" here? Especially an example with a combined schedule for all 3 outlets would be interesting...
Additional infos:
Type 0x44 can also include timezone and location (if configured in Eve App settings):
example set config: 44 11 05 1500 0000 3c000000 91365242 a6b15441
3c000000
: 0x0000003c = 60min = UTC+1h91365242
: 0x42523691 (IEEE-float) = 52.5532875° Latitude a6b15441
: 0x4154b1a6 = 13.2933712° Longitude15
. It might mask which data are valid. Without timezone data, bit 0x04 is not set. If bit 0x02 is set, bit 0x01 represents the schedule state (on/off)Type 0x47 seems to be DST (daylight saving time) information, which are derived from location. App sends this to the accessory once:
example: 47 11 05 731b 451c df1c b81d 78000000 3c000000
Elgato Eve Energy Schedules
The schedule seem to be almost similar to the Eve Aqua Schedules.
Required Characteristics:
Data format
The schedule is handled as
TLV8
data although exposed asdata
in the characteristics!Example write config characteristic (=> from App):
Example read config characteristic (=> to App):
Available TLV8
types
:Memory Used
type
=0x06
length
=2
Number of history entries
Rolled Over Index
type
=0x07
length
=4
Index of oldest entry if rolled over, otherwise 0
End Mark
type
=0xD2
This seems to be a the end mark for a TLV. The length is 0.
Last Switch Activity
type
=0xD0
length
=4
Time in seconds from last switch activity
EVE Time
type
=0x98
length
=4
Actual time, in seconds from last time update
Toggle Schedules On/Off
type
=0x44
length
=17
Command to toggle schedules on/off.
Example TLV8:
Example Values:
Script:
Output:
Set Status LED
type
=0x20
length
=1
Command to set the status LED. The actual value will be given back in
type
=0x60
Example TLV8:
Available Values
Script
Programs
type
=0x45
length
=variable
There can be 7 programs (for each day 1) and up to 15 timers per program.
There are 4 different types of timers:
The offset for timed events is in seconds since 0:00, for sunset/sunrise +/- seconds.
Example TLV8:
Example values:
Script:
Output:
Days
type
=0x46
length
=84
Active Days of each program
Example TLV8:
Example values:
Script:
Output: