This is by no means something I discovered, it's more of a: hey, did you know this can _also_ be done on any odroid?
Recently I dropped Homeassistant in favor of a Docker install of Hass.io on my Odroid-HC1, it's rather easy, just follow this guide:
https://www.smarthomebeginner.com/insta ... ker-linux/
This will give you access to the Hass.io addon store which includes, among others, the Zigbee2mqtt server. Hass.io will launch everything in dockers so it might help to also run a portainer if you want a nice web interface to monitor your containers:
https://portainer.readthedocs.io/en/sta ... yment.html. The portainer image is multiarch so it works out of the box on any Odroid.
Now for the zigbee part, once you have zigbee2mqtt installed you can connect this dongle to start talking to zigbee devices:
https://hackaday.io/project/163487-zigb ... sb-adapter
I struggled a bit with flashing it, I recommend getting maybe the CCDebugger tool from Aliexpress(I was cheap and I used an ESP8266 for flashing instead). If you go the ESP32/ESP8266 route see this:
http://automatedhome.party/2019/01/20/z ... s-than-10/
You will at least need to get a download cable because the pin header on the CC2531 dongle is non-standard(I think it's 1mm pitch). Or you could try to jam some dupont wires... did not try it.
There are 2 ways to flash:
- via CCLib and python, safe but veeery slow, takes hours(I am not kidding!)
- via CCLoader - fast but it did not work on the first try, not sure what's up there. I did get it to work in the end
See this for both methods:
https://www.zigbee2mqtt.io/information/ ... thods.html
It's easier if you use a 3.3V MCU(like the ESPs) so you do not have to add resistors to convert from 5V to 3.3V logic on data lines.
Or, of course, if you buy the CCDebugger tool(there are chinese clones on Aliexpress for I think 15$, official one is 50$), you can use this procedure:
https://www.zigbee2mqtt.io/getting_star ... c2531.html
Once you have all this set up you can pair zigbee devices for your home automation needs. I personally attached an Ikea Tradfri remote to control my AC and lights. I did not need to get the Tradfri bridge as well since I am connecting to it directly via Zigbee.
Here is an example automation script for using the Tradfri remote in Hass:
Code: Select all
- alias: 'Remote: AC' trigger: platform: state entity_id: sensor.0x000d6ffffe0b266b_action to: 'toggle' action: entity_id: switch.ac service: switch.toggle - alias: 'Remote: Light' trigger: platform: state entity_id: sensor.0x000d6ffffe0b266b_action to: 'brightness_up_click' action: entity_id: light.living service: light.toggle