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 temperature history missing for new Hue outdoor motion sensor #1078

Closed
AndersKlinting opened this issue Jan 12, 2022 · 17 comments
Closed

Comments

@AndersKlinting
Copy link

Having aquired a second Hue Outdoor Motion Sensor and succesfully configured it in the Hue Bridge, I was surprised to see that displaying temperature in the Eve App (iPad) did not show history as was the case of my first motion sensor.

The only difference I find seems to be the model number.
The old sensor is model SML002, while the new is SML004.
The ID details from Eve:
SML002
SML004

is there a problem with the new hardware and history?

@ebaauw
Copy link
Owner

ebaauw commented Jan 12, 2022

I don't think I've seen an SML004 before. Could you please attach the debug dump file, so I can see what it looks like from an API perspective?

I think the sensors are working alright, although you'd probably get some "unknown ... sensor" warnings, but because the model isn't recognised, Homebridge Hue doesn't expose the temperature as a separate accessory (which is needed for the temperature history next to the motion history).

@AndersKlinting
Copy link
Author

Correct. I get warnings on the log

Hblog

attached is the debug dump file
homebridge-hue.json.gz

@ebaauw
Copy link
Owner

ebaauw commented Jan 13, 2022

attached is the debug dump file

Thanks!

Other than the modelid and swversion I see no differences from the SLM002. Also, I haven't seen any announcement of a new model; my guess is they just changed suppliers of the Zigbee chip. I wonder if they've released a new (technical) model of the indoor motion sensor as well, maybe SLM003?

ebaauw added a commit that referenced this issue Jan 13, 2022
@Patr-ick
Copy link

Patr-ick commented Jan 17, 2022

There a indeed new indoor motion sensors around with model SML003
[16/01/2022, 23:22:08] [Hue] Homebridge-GW: /sensors/16: warning: unknown ZHAPresence sensor {"config":{"alert":"none","battery":100,"delay":0,"ledindication":false,"on":true,"pending":[],"reachable":true,"sensitivity":2,"sensitivitymax":4,"usertest":false},"ep":2,"etag":"f843c478dd4347db29d2031d9b4b4713","lastannounced":null,"lastseen":"2022-01-16T22:20Z","manufacturername":"Philips","modelid":"SML003","name":"Bewegungsmelder","state":{"lastupdated":"2022-01-16T22:17:24.490","presence":true},"swversion":"2.53.6","type":"ZHAPresence","uniqueid":"00:17:88:01:0b:cd:19:b1-02-0406"}

[16/01/2022, 23:22:08] [Hue] Homebridge-GW: /sensors/18: warning: unknown ZHALightLevel sensor {"config":{"alert":"none","battery":100,"ledindication":false,"on":true,"pending":[],"reachable":true,"tholddark":12000,"tholdoffset":7000,"usertest":false},"ep":2,"etag":"cd984ebe9a61171a502dec2224d58576","lastannounced":null,"lastseen":"2022-01-16T22:20Z","manufacturername":"Philips","modelid":"SML003","name":"LightLevel 18","state":{"dark":true,"daylight":false,"lastupdated":"2022-01-16T22:20:24.850","lightlevel":3578,"lux":2},"swversion":"2.53.6","type":"ZHALightLevel","uniqueid":"00:17:88:01:0b:cd:19:b1-02-0400"}

[16/01/2022, 23:22:08] [Hue] Homebridge-GW: /sensors/17: warning: unknown ZHATemperature sensor {"config":{"alert":"none","battery":100,"ledindication":false,"offset":0,"on":true,"pending":[],"reachable":true,"usertest":false},"ep":2,"etag":"2eef4fc88ef782d49295c3c4cb86db88","lastannounced":null,"lastseen":"2022-01-16T22:20Z","manufacturername":"Philips","modelid":"SML003","name":"Temperature 17","state":{"lastupdated":"2022-01-16T22:20:33.416","temperature":2131},"swversion":"2.53.6","type":"ZHATemperature","uniqueid":"00:17:88:01:0b:cd:19:b1-02-0402"

@ebaauw
Copy link
Owner

ebaauw commented Jan 17, 2022

With a sensitivitymax of 4, upgraded from 2 for the SML001.

@Patr-ick
Copy link

Patr-ick commented Jan 17, 2022

As far as I can tell, they improved the sensor lens for higher sensitivity (which is causing the new sensitivitymax of 4) and now can detect motion up to an distance of seven meters, before it was "only" five meters: https://hueblog.com/2021/12/01/philips-hue-improves-its-motion-sensor-with-new-technology/
and they swapped out the setup pinhole for a setup button on the back of the case.

@ebaauw
Copy link
Owner

ebaauw commented Jan 17, 2022

Thanks for the link.

Does it still have the T (Touchlink) button inside the battery compartment? Never got that to work, though.

ebaauw added a commit that referenced this issue Jan 17, 2022
Also for the indoor version.  See #1078.
@Patr-ick
Copy link

Not sure, I am not using the new sensor. I've just forwarded the warning messages from someone else in here, since we have a discussing going on in our community. But if you need to know it, I could gather this information.
Fun fact: Another member mentioned, that he is using the SML003 Model for quit a while and doesn't get any warning messages in the Homebridge log.

@ebaauw
Copy link
Owner

ebaauw commented Jan 18, 2022

Homebridge Hue won’t issue any warnings, unless it’s exposing the sensor.

@ebaauw
Copy link
Owner

ebaauw commented Jan 23, 2022

In v0.13.35.

@AndersKlinting
Copy link
Author

In v0.13.35.

I have updated (including update of node.js and homebridge) and now both my models of outdoor motion sensors appear with separate temperature sensors.
Tempsensors
And Eve offers display of temperature history of both… but now all history has gone for both, and it looks like no new history is stored either (where is that stored by the way?)

@Patr-ick
Copy link

Would delete the corresponding history file history_MacAddress.json of the sensor as described here: #957

@AndersKlinting
Copy link
Author

Would delete the corresponding history file history_MacAddress.json of the sensor as described here: #957

Thank you.
I have tried, but did not get the result I hoped for.
After having deleted the files and restarted the service (and the server), new files are created for both sensors. However, no temperature history is created.
After a couple of hours the files look like this
History

and the new sensor shows history like this, i.e. Motion events are present but temperature is not. The same for the old sensor.
Motionhistory

before I deleted the files, I noticed the old sensor had a second history file with suffix “_T” in the name (I suspect it was the temperature). After reboot no such files are created.

@redjoto
Copy link

redjoto commented Jan 23, 2022

I have the same problem with my indoor sensors. Suddenly no temperature history is to be found in the Eve app.

ebaauw added a commit that referenced this issue Jan 24, 2022
@ebaauw
Copy link
Owner

ebaauw commented Jan 24, 2022

My bad. Bloody cut & paste error. I must have looked over it a dozen times, at least.

Anyway, fixed in v0.13.36. I had to remove the history_macaddress-T.json files to get the temperature history back up, not sure why. Better wait 20 minutes (or two new history entries) before concluding that it doesn't work and deleting the files.

Note that with hueMotionTemperatureHistory set, Homebridge Hue exposes two separate accessories, each with their own history (and history file). Eve doesn't even know that these accessories are the same device.
Without the setting, Homebridge Hue exposes a single accessory with history only for the motion. This is a limitation of the fakegato repo, and will be solved in Homebridge deCONZ and Homebridge Hue2. Because there is no temperature data in the history, Eve shows empty history for the temperature characteristic. It actually does that for any characteristic that could have history, but doesn't have any history data.

@AndersKlinting
Copy link
Author

My bad. Bloody cut & paste error. I must have looked over it a dozen times, at least.

we have all been there :-)

It seems to work now. I had to remove my history files and restart.
And funny enough - Eve is still able to show old history (for my first motion sensor) that cannot be in the history file, so I guess it has some cache…

Evehist

@ebaauw
Copy link
Owner

ebaauw commented Jan 26, 2022

Eve is still able to show old history (for my first motion sensor) that cannot be in the history file, so I guess it has some cache…

The Eve app stores the history on your Apple device. I think this is for eternity, or until you uninstall the app. This is stored under the accessory UUID, independently from HomeKit. If you unpair an accessory from HomeKit, Eve will hang on to the history. If you re-join the accessory to HomeKit, Eve will show the old history, even though HomeKit treats it as a new accessory. This history is not synced between Apple devices.

An Eve accessory (real or faked by Homebridge) only maintains like four weeks of history. You need to view the accessory in the Eve app on each of your Apple devices during that period, or you’ll have gaps in the history. If you uninstall and re-install the Eve app, it will load the history from the accessory.

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

No branches or pull requests

4 participants