This gonna be new firmware to flash the HRC0303 to join any zigbee network.
- Debounce buttons on product
- Add LED support
- Add missing Buttons (Wheel / Reset)
- Check for deprecated stuff and remove
- ...
Most of the stuff only works reliable on dev-board atm (https://github.com/Phelagor/freepad/commit/2e1df556b2612ef830faeb1edb7d0fb659d03a57)
- Button matrix get registered (Fav 1&1, Sat+/-, Ilu+/-, On, Off)
- definitely needs debouncing on product
maybe some of those features still work?
- Single/double/tripple/quadriple/many_x/hold&release
- Touchlink reset
- ONOFF bind
- Level control bind
- Bindings configuration
- Remote reset
- Integrates into zigbee2mqtt (as freepad atm)
Since the Project is based on the ZStack sample project, and this one comes with IAR project files, you need IAR to compile the project.
- Install ZStack (used 3.0.2)
- Navigate to
<ZSTACK_DIR>\Projects\zstack\HomeAutomation
- Clone the project into that directory
- Open
<CLONE_DIR>\CC2530DB\GenericApp.eww
with IAR (Project file) - Switch Poject Configuration via
Project -> Edit Configurations...
toDIYRuZ_FreePad_TL_PM3
(with Touchlink and PowerManagement 3 (PM3???)) - Execute
Project -> Rebuild All
Firmware file is located at <CLONE_DIR>\firmwares
Old stuff
- Press and hold any button for 3-10 seconds(depends whter or not device is on a network), until device start flashing led
- Wait, in case of successfull join, device will flash led 5 times
- If join failed, device will flash led 3 times
By default remote works as custom switch, with multiple clicks, this behaiviout has own drawback. In order to detect multiple clicks, remote sends commands with 300ms delay. You can change this behaviour by cost of double/tripple/etc clicks. To do that you need to change
ZCL_CLUSTER_ID_GEN_ON_OFF_SWITCH_CONFIG
cluster ATTRID_ON_OFF_SWITCH_TYPE
attribute
Values are:
ON_OFF_SWITCH_TYPE_MOMENTARY
(0) -> no delay, but no multiple clicks, only single
mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_type" -m '0'
ON_OFF_SWITCH_TYPE_MULTIFUNCTION
(2) -> 300ms delay, full set of clicks
mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_type" -m '2'
By default command is TOGGLE, but you can change this behaviour
Change ZCL_CLUSTER_ID_GEN_ON_OFF_SWITCH_CONFIG
clusters attribute ATTRID_ON_OFF_SWITCH_ACTIONS
ON_OFF_SWITCH_ACTIONS_ON
mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_actions" -m '0'
ON_OFF_SWITCH_ACTIONS_OFF
mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_actions" -m '1'
ON_OFF_SWITCH_ACTIONS_TOGGLE
(default value)
mosquitto_pub -t "zigbee2mqtt/FN/BUTTON_NUM/set/switch_actions" -m '2'