Commit graph

68 commits

Author SHA1 Message Date
rbaron
37237a4301 More accurate power profile 2022-12-10 15:48:02 +01:00
rbaron
17b487f362 Add docs 2022-12-10 15:45:22 +01:00
rbaron
3a6561bbf4 Make the LED flash while pairing 2022-12-10 15:14:01 +01:00
rbaron
7b4e64cec7 Implemented a pairing-reset detection strategy
This is a "tricky" workaround due to the lack of physical buttons:

We can distinguish between the two "power up" modes:

- Power on: when the device receives power for the first time. Example:
swapping batteries, prroviding external power. This _DOES NOT_ reset the
pairing info.

- Reset pin: when the device is manually reset (by shorting the RESET
pin to GND), or when a new firmware is flashed. This _RESETS_ the
pairing info.
2022-12-10 12:37:29 +01:00
rbaron
8eb54106d5 Add illuminance cluster & reporting 2022-12-10 10:47:16 +01:00
rbaron
3c2094db2d Add GitHub action 2022-12-09 20:01:46 +01:00
rbaron
fbf1a35099 Moves configs to Kconfig 2022-12-09 19:38:56 +01:00
rbaron
cb6ed73691 Add battery percentage computation 2022-12-09 19:02:55 +01:00
rbaron
676b525bd9 Reading and sending real soil moisture works! 2022-12-07 22:22:41 +01:00
rbaron
01bb9da2a4 Cleanups 2022-12-07 21:43:30 +01:00
rbaron
f7373cc6da Custom Soil Moisture cluster works! :)
This commits adds a Soil Moisture cluster according to the one that
exists in https://github.com/Koenkk/zigbee-herdsman/blob/master/src/zcl/definition/cluster.ts#L2570.
The cluster Id is 1032 (I didn't find it in the official specs).
2022-12-07 20:10:52 +01:00
rbaron
15b1d9d2a8 Batt, temp and humi show up (with reporting!) on HA with zigbee2mqtt :)) 2022-12-07 20:10:52 +01:00
rbaron
9b1efb7f82 Quick and dirty commenting out all LEDs 2022-12-07 20:10:52 +01:00
rbaron
d857448df8 Added a humidity cluster 2022-12-07 20:10:52 +01:00
rbaron
55808ed7e1 Links prstlib and restructures project to match other samples 2022-12-07 20:10:52 +01:00
rbaron
d8322c9162 Modified the zigbee template with added temperature cluster
According to
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.1.2/nrf/ug_zigbee_adding_clusters.html.
2022-12-07 20:10:52 +01:00
rbaron
f090b25a2c Got manufacturer data to show as "b-parasite" in zigbee2mqtt 2022-12-07 20:10:52 +01:00
rbaron
f05d1f8e3b Zigbee sample works with nRF52840dk + zigbee2mqtt 2022-12-07 20:10:51 +01:00