There are many posts in the community about MAX!Cube looses it’s configuration from time to time, which was also an issue I faced many times. I tried with a second cube and several power supplies, but could not get a stable solution.
I then found some interesting posts about reflashing the MAX!Cube to be a CUL or even while using the network Interface act as a CUNx device.
I hope you will find the following tutorial useful.
Reflashing the MAX!Cube
I followed these instructions for Windows (German)
but there is also a good tutorial in English for Linux users
Install homegear
Please select the correct method according to Your OS following these instructions.
https://doc.homegear.eu/data/homegear/installation.html
You don’t need to install all family module, just the MAX! family
apt install homegear-max
Edit /etc/homegear/families/max.conf like the following
#######################################
################ CUNX ################
#######################################
## The device family this interface is for
[CUNX]
## Specify an unique id here to identify this device in Homegear
id = My-CUNX
## When default is set to "true" Homegear will assign this device
## to new peers.
default = true
## Options: cul, cc1100, coc, cunx, hmcfglan, hmlgw
deviceType = cunx
## IP address of your CUNX -> Match your network settings
host = XXX.XXX.XXX.XXX
## Port number your CUNX listens on. Normally 2323.
port = 2323
## Default: responseDelay = 95
## Should be "40" for CUNX
responseDelay = 40
You should now be able to connect to homegear and check the MAX! module by entering
openhab@openNUC:~$ sudo homegear -r
Connected to Homegear (version 0.7.30-1900).
Please type >>help<< to list all available commands.
> ls
ID ¦ Name
------+-------------------------------
4 ¦ MAX!
254 ¦ Miscellaneous
--------------------------------------
>
Before starting to pair any MAX! device within homegear, please do factory reset them
Pairing MAX! Devices in homegear
In homegear console select the MAX! family
> fs 4
For a list of available family commands type >>help<<
Start pairing by typing
> pon
set your MAX! device to pairing mode and check succsessfull pairing with
> ls
which should give you something like this:
Family 4> ls
ID ¦ Name ¦ Address ¦ Serial Number ¦ Type ¦ Type String ¦ Firmware ¦ Unreach
---------+---------------------------+---------+---------------+------+---------------------------+----------+--------
¦ ¦ ¦ ¦ ¦ ¦ ¦
1 ¦ Fensterkontakt Schlafz... ¦ 084F89 ¦ KMD4011252 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.4 ¦ No
2 ¦ Fensterkontakt Schlafz... ¦ 0C2883 ¦ KEQ0756709 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.4 ¦ No
3 ¦ Fensterkontakt Arbeits... ¦ 0C28CC ¦ KEQ0756624 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.4 ¦ No
4 ¦ Fensterkontakt Gästezi... ¦ 01843D ¦ JEQ0325644 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.3 ¦ No
5 ¦ Thermostat Arbeitszimmer ¦ 0C85C8 ¦ KEQ0718527 ¦ 01A0 ¦ BC-RT-TRX-CyG-3 ¦ 1.0 ¦ No
6 ¦ Thermostat Gästezimmer ¦ 0C854A ¦ KEQ0718641 ¦ 01A0 ¦ BC-RT-TRX-CyG-3 ¦ 1.0 ¦ No
7 ¦ Türkontakt Terrasse ¦ 0C3508 ¦ KEQ0755499 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.4 ¦ No
8 ¦ Thermostat Wohnzimmer ¦ 0D6097 ¦ KEQ0920808 ¦ 01A0 ¦ BC-RT-TRX-CyG-3 ¦ 1.0 ¦ No
9 ¦ Thermostat Esszimmer ¦ 0AD734 ¦ KMD3036051 ¦ 01FF ¦ BC-RT-TRX-CyG ¦ 1.8 ¦ No
10 ¦ Türkontakt Haustür ¦ 056C01 ¦ JEQ0506224 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.3 ¦ No
11 ¦ Thermostat Hausflur ¦ 0A33F3 ¦ KMD3040396 ¦ 01FF ¦ BC-RT-TRX-CyG ¦ 1.8 ¦ No
12 ¦ Fensterkontakt Küche ¦ 0FABD9 ¦ LEQ1108974 ¦ 0400 ¦ BC-SC-Rd-WM-2 ¦ 1.0 ¦ No
13 ¦ Fensterkontakt GästeWC ¦ 0C3393 ¦ KEQ0755234 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.4 ¦ No
14 ¦ Thermostat GästeWC ¦ 0D6015 ¦ KEQ0920933 ¦ 01A0 ¦ BC-RT-TRX-CyG-3 ¦ 1.0 ¦ No
15 ¦ Thermostat Küche ¦ 0D1634 ¦ KEQ0996896 ¦ 01A0 ¦ BC-RT-TRX-CyG-3 ¦ 1.0 ¦ No
16 ¦ Thermostat Schlafzimmer ¦ 0D16D1 ¦ KEQ0996737 ¦ 01A0 ¦ BC-RT-TRX-CyG-3 ¦ 1.0 ¦ No
17 ¦ Fensterkontakt Kinderz... ¦ 056DD7 ¦ JEQ0506185 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.3 ¦ No
18 ¦ Fensterkontakt Kinderz... ¦ 056A17 ¦ JEQ0505569 ¦ 040F ¦ BC-SC-Rd-WM ¦ 1.3 ¦ No
19 ¦ Thermostat Kinderzimmer ¦ 0D1618 ¦ KEQ0996922 ¦ 01A0 ¦ BC-RT-TRX-CyG-3 ¦ 1.0 ¦ No
20 ¦ ECO-Switch Schlafzimme... ¦ 0F9460 ¦ LEQ1158670 ¦ 0500 ¦ BC-PB-2-WM ¦ 1.0 ¦ No
21 ¦ ECO-Switch Schlafzimme... ¦ 0F9241 ¦ LEQ1147639 ¦ 0500 ¦ BC-PB-2-WM ¦ 1.0 ¦ No
22 ¦ Thermostat Badezimmer ¦ 0AD72B ¦ KMD3036062 ¦ 01FF ¦ BC-RT-TRX-CyG ¦ 1.8 ¦ No
23 ¦ Wandthermostat Kinderz... ¦ 1A568E ¦ OEQ1825960 ¦ 03FF ¦ BC-TC-C-WM-4 ¦ 1.0 ¦ No
----------------------------------------------------------------------------------------------------------------------
Family 4>
Now it’s time to install homematic Binding in openHAB.
When activated, homegear should be automatically discovered as your bridge and after confirmation in your inbox, a device scan should find all your paired devices.
For the rest, proceed with the homematic Binding documentation.