I have an OpenHab installation, and I’ve been using OpenHab 1 on two spare Raspberry Pis to connect to my Max devices - OpenHab 2 is less happy connecting to Max.
I’m worried about longevity of Openhab 1, so wanted to move to Homegear on the subsidiary Pis instead (still Openhab on the boiler controller).
My install went very easily, and initially it paired and recognised all my devices. But it then mysteriously stopped working. I reverted all my devices to being paired with Openhab 1 as I needed to go to work first part of the week. I’m back home, and working on Homegear again. I’m now at a stage where I’m working on a single Pi, and trying to pair the valves and thermostats to it again.
What I get is a pairing message coming in from the thermostat, and my Homegear appears to try to respond. But the Max devices simply don’t see the response.
Trouble shooting I’ve done is:
-
Swapped the CUL devices between my Pis. Still no change
-
Switched back to Openhab 1 on same Pi with same device. Pairing within 2 seconds (therefore, not a hardware problem)
-
Looked at permissions on the /dev/ttyACM0 - it is set to rw for homegear
crw-rw---- 1 homegear homegear 166, 0 Sep 30 22:17 /dev/ttyACM0
(not sure why the user is homegear, for a while it was root dialout, but homegear is in that group anyway)
-
Reinstalled homegear
It’s still behaving the same. And I really don’t understand why it worked for a while then stopped working.
My next step is to reinstall the full raspberrypi, then homegear, but before I do that I was wondering if anyone has any ideas? I struggle that it’s reading from the port fine, but not writing to it, and yet openhab can write to it fine. I’m assuming it’s failing to write to the port because it says it’s writing, but the devices just ignore it and keep sending a pairing request. It seems like it should be a permissions issue - that it can read and not write - but surely it’d give a permissions error if that was the case? I’ve tried setting permissions to 777 just in case:
root@raspberrypi:/home/pi# chmod 777 /dev/ttyACM0
root@raspberrypi:/home/pi# ls -l /dev/ttyACM0
crwxrwxrwx 1 homegear homegear 166, 0 Sep 30 22:34 /dev/ttyACM0
But no difference.
Logs of what’s going on:
09/30/20 22:30:15.303 MAX packet received (KITCHEN-MAX-CUL, RSSI: 0x3E): 17000400136742000000001003FF4D455130383535303635
09/30/20 22:30:15.412 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BC50001FD0AA021367420000
09/30/20 22:30:18.496 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BC50001FD0AA021367420000
09/30/20 22:30:20.275 MAX packet received (KITCHEN-MAX-CUL, RSSI: 0x3E): 17000400136742000000001003FF4D455130383535303635
09/30/20 22:30:20.598 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BC70001FD0AA021367420000
09/30/20 22:30:23.691 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BC70001FD0AA021367420000
09/30/20 22:30:25.275 MAX packet received (KITCHEN-MAX-CUL, RSSI: 0x3E): 17000400136742000000001003FF4D455130383535303635
09/30/20 22:30:25.492 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BC90001FD0AA021367420000
09/30/20 22:30:28.586 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BC90001FD0AA021367420000
09/30/20 22:30:30.011 RPC Server (Port 2001): Info: Client number 11 is calling RPC method: ping (2) Parameters:
(String) F80C2E2A-2795-DA83-F307-9A029251254E
09/30/20 22:30:30.019 RPC Server (Port 2001): Info: Client number 11 is calling RPC method: listBidcosInterfaces (2) Parameters:
09/30/20 22:30:30.275 MAX packet received (KITCHEN-MAX-CUL, RSSI: 0x3E): 17000400136742000000001003FF4D455130383535303635
09/30/20 22:30:30.387 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BCB0001FD0AA021367420000
09/30/20 22:30:33.480 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BCB0001FD0AA021367420000
09/30/20 22:30:35.275 MAX packet received (KITCHEN-MAX-CUL, RSSI: 0x3E): 17000400136742000000001003FF4D455130383535303635
09/30/20 22:30:35.581 Module MAX: CUL "KITCHEN-MAX-CUL": Info: Sending (KITCHEN-MAX-CUL, WOR: yes): 0BCD0001FD0AA021367420000
09/30/20 22:30:35.584 Module MAX: CUL "KITCHEN-MAX-CUL": Warning: CUL with id KITCHEN-MAX-CUL reached 1% limit. You need to wait, before sending is allowed again.