Hi Guys,
I bought and flashed CC2531 zigbee dongle with Koenkk instruction, putted it to my Raspberry Pi, and kinda stuck here.
I can’t figure out what is the next step to get it working with hass.io.
What I did:
- flashed cc2531 dongle with Koenk instruction
- Installed zigbee2mqtt repository in Hass.io
- started it up
What I need:
- how to start MQTT server and connect it with cc2531 ( by plugin? )
- how to pair it with aqara window/door sensor
If you use the built in MQTT broker it will be started with HA as soon as you configure it - quite a few folks here seem to use the Mosquitto add-in for hass.io. So, if you want to do that you’ll have to follow those instructions.
General info is here:
You need to make sure that you have discovery enabled for your MQTT broker, i.e. discovery: true
You also need to make sure that your zigbee2mqtt config allows the following - not sure how to achieve that with hass.io, though as I’m running HA in a Venv:
homeassistant: true
permit_join: true
Pairing for my temperature sensors is simple, I just press the little button on the top of the sensor until the LED blinks blue. I expect it to be similar for other sensors as well.
After after minutes you should start to see the sensors show up in the /dev-state tab, not sure what the exact names will be (I give mine friendly names directly in the config file, but you probably don’t have this option on hass.io), therefore my temperature sensors show up as:
- _humidity
- _pressure
- _temperature
Thanks for your response!
What I did:
- added in main hass.io Configuration.yaml file:
mqtt:
discovery: true
discovery_prefix: homeassistant
password: xxxx
But how to check if it works properly?
- here is my zigbee2mqtt addon configuration:
{
“data_path”: “/share/zigbee2mqtt”,
“homeassistant”: true,
“permit_join”: true,
“mqtt_base_topic”: “zigbee2mqtt”,
“mqtt_server”: “mqtt://localhost”,
“password”: “xxxx”,
“serial_port”: “/dev/ttyACM0”
}
My HA is accessed by duckdns on example adress like: xxx.duckdns.com:444
I dedicated for my HA port 444.
How to check what is my mqtt server adress and port to put it in zigbee2mqtt addon configuration? I still get an log in zigbee2mqtt:
zigbee2mqtt:error 2018-12-28 22:05:23 Not connected to MQTT server!