Could someone maybe recommend a store to get the hardware from? When buying at aliexpress, I and up with a cheap price of 39$, however the delivery time to germany will be 20-40 days, as well as the delivery time beeing different for the different parts. So maybe I will end up with all the parts somewhen in november
Iād like to get to business a bit sooner, if possible.
Using hass.io and adding devices to shepherd-converters is not a trivial task, and there is no short / clean way ATM. Using a -separate- local install on a laptop seems to be the best route for nowā¦
Thanks for the info. Have you seen anyone document the steps required to modify the hassio_zigbee2mqtt docker container?
This is as far as I gotā¦
1. Enabled developer access to the hassos host
https://developers.home-assistant.io/docs/en/hassio_debugging.html
2.Opened an interactive session
docker exec -it <CONTAINER ID/NAME> bash
3.Edited devices.js
4.Tried to do NPM restart (Not sure if it was the right thing to do)
I then got errors about access to /dev/ttyACM0 (It looked like it was in use)
5. I then used docker commit to create an "updated image"
I stopped the zigbee2mqtt container and tried to start my modfied container but got the same access error to /dev/ttyACM0
It published with the topic therefore also in the mqtt sensors created by discovery. In your case is reporting 100% from what you mentioned earlier which is correct.
@subzero79 Iām not sure what you mean by your reply to that other poster. Like him, all of my Xiaomi sensors (3 door, 1 occupancy, 1 temperature) are all reporting 100% battery level which doesnāt seem accurate? All other sensors (zwave) that donāt use Zibee2mqtt are less than 100%.
The battery āvoltageā is compared to 3v from memory.
Itās only when the reported voltage is lower than 3v does it beginning to go below 100%.
I have 1 or 2 Xiaomi sensors at 95%.
If you look at the sensor data, they are reporting 3.0 -> 3.2v, hence why they appear stuck at 100%.
My guess is if the comparison voltage was 3.3v it would be closer to being accurate.
Someone needs to get a sensor and hook it upto a powersupply and graph input voltage to reported voltage to get an accurate āreportā and determine how off the Xiaomi circuitry is.
Oh ok, thank you for that. I modified the template to divide the voltage by 3300. Am now getting realistic numbers from 91% to 93% for my Xiaomi battery sensors.
Many devices use CR3032 batteries and they have an official start voltage of 3.00 Volt under tiny load. But batteries are chemical devices so sometimes it is somewhat above 3.00 Volt, so IMO above 3.00 V is also 100%. Also they degrade fast below 2.7 Volt so that should be regarded als almost empty. 2.75V or 2.80V is probably wiser as the low limit for battery health.
See the graph (voltage vs. duration) on page 4 of this CR3032 specsheet pdf
Probably many devices (e.g. Xiaomi sensors) are designed to stop working below 2.6 or 2.5 volt. But I have never tested this because of lack of a precise calibrated power supply.
The difference in battery health indication of devices in e.g. Xiaomi Aqara Gateway versus Zigbee2mqtt is a result of a different calculation. In the Xiaomi gateway software the battery health is calculated between 3.30 Volt - 2.80 Volt so therefore new sensors almost always end up with a health of > 50% which is IMO not correct. (in xiaomi_aqara.py -> percent = ((voltage - min_volt) / (max_volt - min_volt)) * 100)
In Zigbee2mqtt it is better represented as 100% when it is 3.00 volt or above.
I want to know whether or not, openHAB works with zigbe2mqttsniffers. (Is it possible to connect these devices to openHAB? So that the traffic can be captured in openHAB)
I think since all of my sensors are showing well above 3000 voltage, I will set the maximum to the sensor with the highest voltage which is 3075. Therefore for my battery sensor template I will use:
{{ ((value_json.voltage - 2700)/(3075-2700) * 100) | int }}
If anyone thinks this is a bad idea, please let me know.