Closed ebaauw closed 6 years ago
I didn't add the 118 and 119 characteristics to the Contact Sensor service. Would I need to do so? Do need to set their values or will the Eve app to that?
Bloody hell, I added the 118 and 119 characteristics and Eve now displays both the Contact history as well as the Reset Count.
Good to know it worked for you.
Just released homebridge-hue@0.5.68 with fakegato for OpenClose sensors.
@ebaauw 👍 This makes your hue plugin so much more useful. Thank you!
@ebaauw @simont77 we like to add fakegato history to the homebridge-homematic plugin (contact service) and it seems that we got the same problem as you. As both characteristics "times opened" and "reset total" are working, the upper "duration" diagram in Eve shows "No Data available" and a busy wheel.
Characteristics 118 and 119 are added but there must be a problem. What exactly did you assign to those characteristics?
Source is here: https://github.com/thkl/homebridge-homematic/tree/contact-service
I'm trying to implement fakegato-history in my homebridge-hue platform plugin, but I'm stuck. Would appreciate any hints.
I started with what I hoped would be the easiest: a door sensor. Also, I have an Eve Door for comparison. I added the LastOpen (11A) and TimesOpened (129) characteristics to the ContactSensor service. I update their values when the contact state changes - this seems to work. I added a fakegato logging service to the "accessory" (still using the old static accessory model). I issue an addEntry() on startup and when the contact state changes. The Fakegato-timer seems to do its work, I see an entry being added every 10 minutes (see log below). In Eve, I see history under the Times Opened characteristic, but not under the Contact characteristic. When I press the details, Eve shows a busy wheel and doesn't display any log entries. I didn't add the 118 and 119 characteristics to the Contact Sensor service. Would I need to do so? Do need to set their values or will the Eve app to that?
I added the ResetTotals characteristic (112) to the logging service, but I don't see a reset in Eve under the Times Opened details (as for the Eve Door). I double-checked in HMCatalog that it's there. Should I assign a value other than 0 to this characteristic? I do notice some more characteristics in the logging service for the Eve Door. It has 11E (rw), 112 (rw), 11C (w), 121 (w), 116 (r), 117 (r), 11D (w), and 131 (r). The fakegato logging service only has 116, 117, 11C, 121, and 112 (added by me).
Here's some excerpts from the homebridge log: