Skip to content
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

Eve history bug #513

Closed
netRunner0 opened this issue Aug 13, 2019 · 27 comments
Closed

Eve history bug #513

netRunner0 opened this issue Aug 13, 2019 · 27 comments
Labels

Comments

@netRunner0
Copy link

netRunner0 commented Aug 13, 2019

I added a new sensor (temperature), it appeared in the homekit, but in the history of eve it is always empty. I checked if there is a history file, but it (the file) is not there)
Other sensors are present.
Homebridge reloaded.
How else to influence it?)

@ebaauw
Copy link
Owner

ebaauw commented Aug 13, 2019

What type of sensor did you add? Can you list the output of ph get /sensors/xx for that sensor? See the Resource characteristic in Eve for the sensor ID. Is it a standalone temperature sensor, or does it also measure humidity? Can you post a screenshot of the sensor in Eve?

@netRunner0
Copy link
Author

netRunner0 commented Aug 13, 2019

Xiaomi temperature sensor
835D8DE6-82BE-4727-9056-844ED322BB52

@ebaauw
Copy link
Owner

ebaauw commented Aug 13, 2019

The round temperature/humidity sensor? You need to set forceEveWeather in config.json, so homebridge-hue exposes a dummy pressure sensor for the accessory. Eve doesn't show history for a temperature/humidity sensor, only for a standalone temperature sensor, or for a combined temperature/humidity/pressure sensor (like the Eve Weather).

The history file should be there, though.

@netRunner0
Copy link
Author

netRunner0 commented Aug 13, 2019

ebaauw Square sensor)

It’s not my first, but the only one for whom there is no history ...

@ebaauw
Copy link
Owner

ebaauw commented Aug 13, 2019

The square one does temperature/humidity/pressure and should work. There's something else going on, maybe Xiaomi silently released a new model? Could you please attach the debug dump file (see https://github.com/ebaauw/homebridge-hue#debug-dump-file)?

Could you also please create a debug log file (see https://github.com/ebaauw/homebridge-hue#debug-log-file) and attach that? It should give some insight why the history file isn't created.

@ebaauw ebaauw closed this as completed Aug 18, 2019
@netRunner0
Copy link
Author

Just now I noticed that the sensor transmits a malfunction (inaccuracies in the measurement).

Could this be the reason?

@netRunner0
Copy link
Author

The square one does temperature/humidity/pressure and should work. There's something else going on, maybe Xiaomi silently released a new model? Could you please attach the debug dump file (see https://github.com/ebaauw/homebridge-hue#debug-dump-file)?

Could you also please create a debug log file (see https://github.com/ebaauw/homebridge-hue#debug-log-file) and attach that? It should give some insight why the history file isn't created.

Ok

@netRunner0
Copy link
Author

homebridge.log
homebridge-hue.json.gz

Problem sensor - "Multi Sensor noname"

@ebaauw
Copy link
Owner

ebaauw commented Aug 20, 2019

I count 25 sensors and no lights. They raised the number of end devices supported by the RaspBee/ConBee to 32, but then they lowered it again - not sure what the limit is for firmware 0x26330500. You might run into the limit here.

Having said that, deCONZ is receiving updates from, Multi Sensor noname and homebridge-hue is receiving these. Also, homebridge-hue is creating history for the sensor:

[8/20/2019, 11:55:38 AM] [Hue] Multi Sensor noname: add history entry {"temp":28.7,"humidity":65,"pressure":989,"time":1566291338}

To confirm, there should be a history_00158d0002374fb8.json file in ~/.homebridge/accessories.

Most likely Eve is out of sync with the accessory and doesn't display the history entries, because it thinks they are from the future. If you have multiple iOS devices, can you check whether the history is also missing on those?

I think the best cause of action is to delete (uninstall) Eve (so it's local data is deleted) and re-install it. Your HomeKit configuration will be unaffected, but you will lose (layout) customisations made in Eve.

@netRunner0
Copy link
Author

IMG_0351

@netRunner0
Copy link
Author

I deleted the empty file and restarted, now it works.

I think it would be nice to add a check that if there is evidence and the file is empty, overwrite the file) Since this error is not the first time

@ebaauw
Copy link
Owner

ebaauw commented Aug 20, 2019

I’m glad it’s now working for you. I don’t think I’ve come across an empty history file before. I would expect homebridge-hue to re-initialise the history, just as when there’s no file, but apparently it doesn’t. I’ll have to look into that.

@ebaauw ebaauw reopened this Aug 20, 2019
@ebaauw ebaauw added bug and removed question labels Aug 20, 2019
@tomky
Copy link

tomky commented Aug 23, 2019

I encountered the same bug, which is surprising as the accessories with this issues are already online for months with no issues. One day these (but not all) accessories suddenly stopped reporting histories and I see those empty files in the folder. Removed and then it backs online, but the histories for months are lost. No clue what actually happened though.

@ebaauw
Copy link
Owner

ebaauw commented Aug 23, 2019

What system are you running homebridge on? Did you check the file system?

@Phoenix-DH
Copy link

I will attach also my issue to this thread.
I have the Hue Motion sensor in place since more than a year without any problems.
When I have s look to the files in the accessories folder, everything seems to be fine.
Bit in the latest updated eve app there is no history available for those 2... means there is no arrow anymore to open zhe history.

@ebaauw
Copy link
Owner

ebaauw commented Aug 29, 2019

Eve v3.8.1 is way more restrictive than previous version on when it will show history, see simont77/fakegato-history#76 (comment). The history for the following accessories no longer shows:

  • Temperature sensor (without Humidity/Air Pressure, as for the Hue motion sensor with hueMotionTemperatureHistory set in config.json);
  • Thermostat.

History for motion sensors, door sensors, and smart plugs should still show.

I think I know how to fix the thermostat; for the temperature sensor I need to do some more research.

@Phoenix-DH
Copy link

Yeah, that is exactly what I have 🤷🏼‍♂️
hueMotionTemperatureHistory Set to true.

So I will wait.
Thank you for your work.

ebaauw added a commit that referenced this issue Aug 29, 2019
Add `ProgramCommand` and `ProgramData` characteristics to `Thermostat` service, so Eve v3.8.1 will display history (and schedule).  See #513.
ebaauw added a commit that referenced this issue Aug 31, 2019
When `forceEveWeather` is set, add dummy Humidity and Pressure sensors to Temperature sensor, so Eve v3.8.1 will display history. See #513.
@ebaauw
Copy link
Owner

ebaauw commented Aug 31, 2019

v0.11.37 restores the history for the Temperature Sensor service (when you set forceEveWeather) and for the Thermostat service. See the release notes.

@Phoenix-DH
Copy link

Great! Tried and it is working fine. History is back. The dummy is not the problem. Maybe one remark or idea for the next releases:
Possibility to move the dummy to another room ... without moving the temp.

Thank you and have a nice weekend!

@ebaauw
Copy link
Owner

ebaauw commented Aug 31, 2019

Possibility to move the dummy to another room ... without moving the temp.

That is technically impossible: they're both services of the same accessory. And they need to be, or Eve doesn't show the history.

@Phoenix-DH
Copy link

Okay, understood.

@tomky
Copy link

tomky commented Aug 31, 2019

Thanks for the quick update. Will try it.
Just curious if you will continue test the Eve signature trick mentioned here?

simont77/fakegato-history#75 (comment)

This looks like a better solution if it works.

@ebaauw
Copy link
Owner

ebaauw commented Aug 31, 2019

Yes, it does look better, although I still need to confirm that it works. Even then, It might take me some time to use this in homebridge-hue, hence this quick fix. I see no easy way to update fakegato-history to deal with different entries for motion detected vs periodic temperature updates. I might need to refactor homebridge-hue to use dynamic platform accessories (see #4), based on homebridge-lib. Before that, I want to be sure homebridge-lib does what I want it to do, so I'm rewriting my other plugins (with fewer users) first.

@tomky
Copy link

tomky commented Aug 31, 2019

Understood. Then I got another issue about the CLIPSensors in this approach. I actually have some CLIPTemperature and CLIPHumidity sensors in pairs, treated as independent accessories. Is there a way to merge them as single multi sensors in deconz or Homebridge-hue? In this way I can get the humidity history and avoid the extra dummy humidity sensor.

@ebaauw
Copy link
Owner

ebaauw commented Aug 31, 2019

Yes, MultiCLIP, see #164 (comment).

ebaauw added a commit that referenced this issue Sep 6, 2019
Change `forceEveWeather` implementation, see #513.

Instead of dummy sensors, homebridge-hue now creates an additional `Weather` service for Temperature and Temperature/Humididy sensors.  This service doesn't show in Apple's Home app, nor in the _At a Glance_ and _Room_ views in Eve.  However, in the service details view, Eve will now show two `Temperature` characteristics (with the same value and history).
@ebaauw
Copy link
Owner

ebaauw commented Sep 6, 2019

Just curious if you will continue test the Eve signature trick mentioned here?

v0.11.38 no longer uses dummy sensors, but a (mostly) hidden Eve Weather service.

@ebaauw ebaauw closed this as completed Sep 6, 2019
ebaauw added a commit that referenced this issue Sep 20, 2019
Under change to `forceEveWeather` implementation, see #513.
ebaauw added a commit that referenced this issue Sep 20, 2019
Under change to `forceEveWeather` implementation, see #513.
@mtressl
Copy link

mtressl commented Jan 4, 2021

Just adding that I experienced the same issue as mentioned above:

  • in Eve some of my sensors did not report the history (anymore)
  • I checked ~/.homebridge/accessories and found matching 0 bytes (empty) files
  • deleted all of them, restarted Homebridge, files were re-created, history values showing in Eve app

Maybe it really makes sense to implement something for the plugin to fix such issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants