room-assistant says its connected to my mqtt broker, however home-assistant says im not home with the sensor, even though my iphone is an inch away from the rasbperry pi zero
Check the room assistant log. Do you try to listen to this mqtt topic ?
In your room assistant conf, there is not “topic”, try that.
My conf is (I use an old room assistant version, 0.4.2, because the new one does not work for me) :
{
“app”: {
“unsafe”: false,
“logging”: true
},
“mqtt”: {
“enabled”: true,
“url”: “mqtt://192.168.0.4:1883”,
“reject_unauthorized”: true,
“topic”: “Home”
},
“console”: {
“enabled”: true
},
“ble”: {
“enabled”: true,
“channel”: “room_presence”,
“max_distance”: 0,
“whitelist”: [“d7ee1cd94df3”,“e9d94c32dcec”,“18b79e0a1754”],
“use_mac”: false,
“system_noise”: 0.01,
“measurement_noise”: 3,
“update_frequency”: 0
},
“shell”: {
“enabled”: false,
“commands”: [],
“qos”: 1,
“retain”: false
}
}
You should try the port number yes. It will not work with your iPhone, it works with bluetooth advertising (BLEA). I use some cheap but very reliable Nut mini sensor (http://nutspace.com/products/nutmini) (and with a Raspberry Pi)