As mentioned in the thread Configuration/Multi-sensor device I tested the OWON PIR313-E detector.
Motion, humidity, temperature and brightness are reported correctly in Gladys. The battery charge level and the tamper value are missing.
Is it possible to integrate these two parameters?
Thank you in advance.
@_Will_71 : thanks.
Would it be possible nevertheless to change the colors for low battery: red for « yes » and green for « no ».
For tamper protection, I’m not too sure either. Maybe « locked » « unlocked »?
Or, instead of « Autoprotection » put « Locked on mount » or « Locked », or « In place on mount », or « In place » and the values « yes » (in green) and « no » (in red).
Why not. Besides, the function name remains customizable in Gladys.
Otherwise, I’m thinking of a name similar to the motion sensor. Détection de vandalisme (oui/non)
Looking at all the cases where this term is used, it feels more like « sensitive equipment » in the sense that we monitor it to ensure it’s functional (power, vandalism, external disruption). It’s true that « tamper » is more of a generic term in this case, maybe « Alteration detection »
Thanks! Has this been tested in real-world conditions?
There will be a small conflict with @Lokkye’s PR on battery alerts.
Depending on which PR I merge first, the other will need to make changes in their PR.
Since @Lokkye’s PR is earlier and almost ready, I’ll give them priority but as a result @_Will_71 your PR will need to be modified to account for these changes in the battery alerts (
I haven’t tested with a real sensor, only via MQTT by sending MQTT messages myself.
I can always build a Docker image so someone can test it in real life.
No problem, merge the PR @Lokkye and I’ll modify my PR afterwards.
For the battery it’s OK, the item appears, and for used batteries we do have battery low: yes in red, and for new batteries: no in green.
However, the tamper item does not appear in the device’s list of properties.
And for info: the translation of tamper that is used in the z2m dashboard is « manipulation » with values « non » and « manipulé ». But that’s just info; « tamper detection » works for me.
Since there had been a concern regarding battery management between two development versions, I added a Sonoff motion detector. On the prod side, only the battery level property is offered. In the test I ran, there are both: level and battery low (yes/no). It shows me a level at 100% and battery low « no » in green. So the two seem to coexist correctly. I say « seem » because I don’t know how the « battery low » property behaves when the battery is depleted (because I don’t have one on hand).
In the case of your sensor it’s normal that you now have both in the test because the two exposes (battery and battery_low) are available for this sensor
One question though about the installation you made.
Did you keep the same database as your production with the sensor already paired, or is this a test installation with a new database with a new zigbee2mqtt container and did you re-pair your owon sensor?