Hi,
I have openhab 2 - online [build 629] freshly installed on a rpi3 [rasbian].
Seperately on a rpi2 I have openhab1 and rsmb mqtt broker running. All my sensors [ESP8266] communicate through mqtt to this rsmb broker.
I am trying to get homekit going on the openhab2 by configuring only its mqtt client and its homekit setup.
the mqtt.cfg is:
rsmb.url=tcp://192.168.50.50:1884
rsmb.clientId=openhab2
the homekit.cfg is
org.openhab.homekit:port=9124
org.openhab.homekit:pin=031-45-154
org.openhab.homekit:useFahrenheitTemperature=true
org.openhab.homekit:thermostatCoolMode=CoolOn
org.openhab.homekit:thermostatHeatMode=HeatOn
org.openhab.homekit:thermostatAutoMode=Auto
org.openhab.homekit:thermostatOffMode=Off
org.openhab.homekit:networkInterface=192.168.100.100
the test items are:
Number ew_online âespmote onlineâ (gEsp) [âCurrentTemperatureâ] {mqtt="<[rsmb:esp/203/online:state:default]"}
Number ew_temp âTemperatureâ (gEsp) [âCurrentTemperatureâ] {mqtt="<[rsmb:esp/203/@A/temp:state:default]"}
Number ew_light âLumensâ (gEsp) [âCurrentTemperatureâ] {mqtt="<[rsmb:esp/203/@A/ldr:state:default]"}
Switch ew_rly1 âEntrance Inside Lightâ (gEsp) [âLightingâ] {mqtt=">[rsmb:esp/203/$L/rly1:command:ON:1],>[rsmb:esp/203/$L/rly1:command:OFF:0],<[rsmb:esp/203/@L/rly1:state:default]"}
Switch ew_rly2 âEntrance Outside Lightâ (gEsp) [âLightingâ] {mqtt=">[rsmb:esp/203/$L/rly2:command:ON:1],>[rsmb:esp/203/$L/rly2:command:OFF:0],<[rsmb:esp/203/@L/rly2:state:default]"}
I have enabled TRACE logging via log:set TRACE com.beowulfe.hap
the issue I am having is that initially the homekit sets up fine ie. the openhab accessory pairs and the âsubâ accesories show up and are available and usable. The TRACE above logs exchanges.
Then sometime later [a few hours] the home app on my phone is disconnected from the openhab2 homekit bridge [seen via TRACE logs] and then is never able to reestablish a link with the accessories again. I tried restarting openhab but with no luck.
there is no activity at all in the TRACE logs even when I have the home app open and probing around in the unavailable accessories.
How would I further troubleshoot this to pinpoint the problem area? any suggestions to fixing this?
Thanks in advance.