Hi all,
Due to some disadvantages of my Fibaro HC2, I decided to start using HA. I’m no coding expert so quite a challenge;-). One of the many advantages of HA over HC2 is Room Assistant which offers accurate presence detection via BLE.
My setup:
I have two Rpi Zero’s with the idea to have them both running room assistant for good Bluetooth coverage/detection in our house.
I started with only one PiZero that communicates via MQTT with my Rpi3 running Home Assistant. For the setup of room assistant I followed this manual; Raspberry Pi Zero W | room-assistant
I could see Bluetooth presence switching for both the 2 devices/MAC address I put in the local.yaml file of room assistant.
It seems that I need a cluster to have 2x PiZero running room assistant, both communicating to my Rpi3 with HA. I used this manual to setup this cluster;
According to the MQTT log on my HA it seems that I have communication between room assistant and home assistant, however, no state changes for BT presence (screenshot).
This is my local.yaml file on my first room-assistant PiZero.
global:
cluster:
autoDiscovery: false
port: 6425
peerAddresses:
- ‘192.168.188.81:6425’
instanceName: kitchen
integrations:
- homeAssistant
- bluetoothClassic
homeAssistant:
mqttUrl: ‘mqtt://192.168.188.41:1883’
mqttOptions:
username: MyUserName
password: MyPWD
bluetoothClassic:
minRssi: -20
hciDeviceId: 0
addresses:
- ‘F0:A3:5A:1E:82:16’
- ‘94:65:2d:c4:20:91’
- IP at MQTT URL is my RPI running HA.
- MQTT user name and pwd are my regular HA credentials. In my standalone setup of room assistant I tried to use my MQTT user & pwd but that failed and for some reason my own user/pwd did work.
- Do I need the MAC addresses to be in quotes ’ '? Only in one manual, I see quotes used.
- The peer address is the IP of my 2nd PiZero (I did not set up the 2nd PiZero yet)
- What is wrong with this config? Indentation maybe, I played with it but no success.
- what should I put in the room assistant config file of the 2nd PiZero?
I guess all the same except for;the peer address, this should be the first PiZero
the instance name should be a different room
I guess I don’t need separate MQTT users for PiZero 1 and PiZero2 - I did not change my HA configuration after I setup a cluster in Room Assistant.
- btw I now see presence like this(screenshot), I see people only use BT for presence detection, no idea how to set this up.
Thanks for your advice!
Regards
Jules