simont77 / fakegato-history

Module to emulate Elgato Eve history
MIT License
166 stars 17 forks source link

Q: correct settings for 'room' accessory type #60

Closed mrose17 closed 5 years ago

mrose17 commented 5 years ago

cf., https://github.com/homespun/homebridge-accessory-bandwidth-quality/blob/master/index.js#L175

i am trying to determine why my plugin isn't generating entries that are acceptable to the elgato eve app.

a typical entry is something like:

    { time: 1539616961,  ppm: 500,  temp: 272.56832,  humidity: 9.14389333333332 }

the timer is disabled and an entry is added each hour. in looking at the README i am wondering whether i am doing something wrong with respect to the timing. can you advise me? thanks!

ctschach commented 5 years ago

Make sure that your accessory has a unique serial number set. That was my problem. If you have multiple accessories with the same serial number this will fail.

simont77 commented 5 years ago

Also, check that you have no ”/“ in the serial number, name or manufacturer characteristics of your accessory

mrose17 commented 5 years ago

@simont77 & @ctschach - many thanks for the pointers: here's what i have now: img_d04ca40b8b0d-1 which i believe meets all the rules, but still no data available! here is the debug output: https://gist.github.com/mrose17/13b385c8f9f076d38787ac79e8f0254d and a question" where is fakegato-history getting the fakegato.accessoryName? that seems to be undefined ... thanks!

simont77 commented 5 years ago

communication seems ok, check that time stamps are correct (not in the future), check time and time zone of accessory and iOS, try to remove Eve and re-add accessory.

For the accessory name, fakegato aspect that your accessory has a “displayName” property

mrose17 commented 5 years ago

it took me a while, but i figured it out (-;

in order to have history work, you must also report the underlying characteristic. in this case, it's not enough to report the Characteristic.AirQuality but you must also report CommunityTypes.EveAirQuality, cf., https://github.com/homespun/hap-nodejs-community-types/commit/15c112fcbe7da1ee155f2e81a18bf1da21ac2615