Thanks for that, I have three of these sensors and just got smartthings yesterday. So I am very glad to see this posted.
One question however: The tile where I was expecting illuminance measures gives me an output of “10%” ?
Illuminance is reported as % by device not lux. I don’t do any transformation of the reported value. I couldn’t find the formula how the percentage is calculated.
Going through my logs I do have two types of message:
“Door Sensor is open” / "Door Sensor is closed"
and
“Door Sensor open/close state changed at …”
Whats the difference? Especially the 2nd one seems to show up at times where I am quite sure nobody actually did open or close the door that the sensor is attached to.
Just copy the new code to device handler, save and publish for self.
However the change didn’t fix the issue, I still get those entries. I think is related to illuminance report about every 6 hours, but I don’t get how that results in this event. I keep looking.
What did you change? I dont seem to notice any differences, but then im not sure if I did things correctly.
Behavior of this sensor is still odd in my system.
I have a door sensor on a door that literally never gets opened…
I have the “open/close state changed” message appearing every 5 hours 50 minutes exactly:
15:14:41
09:24:15
03:34:11 etc
Also there are periods where I get a temperatur update from that sensor once every minute for like 10-15 minutes straight…whereas on other occasions i would get no temperature update for literally hours.
Illuminance updates then also arrive every 5:50hrs, but not at the same times as the “open/close state changed” messages.
I woud post a log, but not sure how and if thats possible
Unfortunately is not happening that regular for me so debugging is not easy.
The issue was that timestamp event was created even if there was no open/close event, I thought becuase testing for events was always true so I added size:
This didn’t work for me so now I moved the event creation to where open and close events are created.
Give it a try.
I have the same log entries, but not on a schedule so I couldn’t yet identify what triggers it. It shouldn’t happen so I asked a question but nobody answered yet:
If nothing changes for another week then I’ll remove the last state change date.