Migrating from Homegear¶
For installations with Homegear and the legacy integration homematic in Home
Assistant. No device has to be paired again, the entity IDs stay.
Overview and requirements: Migration.
What is taken over¶
| Before | In eq3_max |
|---|---|
| Radio address of the central unit | the same sender address, no re-pairing |
| Serial number, radio address, type, firmware | device in HA; name from the Homegear metadata, otherwise from the old entity |
climate.<name> |
climate.<name>, history continues |
binary_sensor.<name>_state (window contact) |
binary_sensor.<name>_state |
binary_sensor.<name>_lowbat |
binary_sensor.<name>_lowbat |
Template sensor sensor.<name>_ventil |
left untouched; delete it yourself first, then eq3_max gets the ID (step 3) |
| Area, display name, icon, aliases, labels, "disabled", "hidden" | are kept |
| Configuration (comfort, eco, maximum, minimum, offset, window-open temperature, boost, decalcification) | number.*/select.* with attribute quelle: homegear (source) |
| Links | links per device, sensor.<name>_verknuepfungen |
homematic.keypress of the eco buttons |
event.<name> — switch automations over (step 7) |
Not taken over, because Homegear does not output them: window-open duration, maximum
valve opening, valve offset. Afterwards they are at the factory default (quelle: werksvorgabe).
If you had changed them on the device, set them again in eq3_max.
New are sensor.<name>_rssi, for thermostats binary_sensor.<name>_funkfehler (radio error),
…_gesperrt (locked) and sensor.<name>_zuletzt_gemeldet (last seen), plus the radio module
entities *.eq3_max_*.
1. Prepare (operation continues)¶
- Determine the central address. It is the sender in every telegram Homegear
sends. Search the Homegear log for
Sending (My-MAX-CUL(interface name fromfamilies/max.conf):
0B 4E 05 40 C0FFEE A1B004 01 66
Length Counter Flags Type Source Dest Group Payload
So here the address is C0FFEE.
- Export the devices while Homegear is running:
python3 tools/homegear_export.py --host <homegear-host> --port 2001 --out eq3_max_export.json
Check: is the number of devices right? Do the wall thermostat and linked thermostats
have a links entry?
Alternatively, the setup dialog queries Homegear directly (source "Homegear"). This only works while Homegear is running. The file is the safe way and stays around for a second attempt.
-
Registry dry run. Every serial number must appear in the entity registry as a homematic entry (
<SERIAL>for climate,<SERIAL>_LOWBAT,<SERIAL>_STATE). Missing entries will get new IDs later. -
Check names. If Homegear provides no names, eq3_max takes over the display names of the old entities. Other names are set as
namein the export file. -
Leave groups at
0in the export file. eq3_max addresses devices without a group; this also works for devices that Homegear addressed with a group.
2. Back up¶
- Full HA backup (Settings → System → Backups).
- Copy
/config/.storage/core.entity_registry. - Back up the Homegear directory on the host.
3. Clean up the HA configuration¶
Create a .bak copy of each file first.
- Remove the
homematic:block fromconfiguration.yaml. - Remove helper constructs around Homegear (REST sensor "Homematic up", reconnect automations).
- Remove template sensors that rebuild values from homematic attributes (
sensor.<name>_ventil), including their entry under Settings → Entities. eq3_max provides the values itself but never touches template entities: if one still sits on the ID, the eq3_max entity gets a_2. check_configmust pass without errors.
4. Install the integration¶
- Copy
custom_components/eq3_maxto/config/custom_components/. - Copy the export file to
/config/eq3_max_export.json.
5. Switch over¶
- Stop Homegear. Only stop it, do not delete it (way back), autostart off.
- Connect the radio module (see Hardware):
- nanoCUL: Move the stick from Homegear to the HA box and determine the path:
ls -l /dev/serial/by-path/. Always useby-path, neverby-id. - MAX! Cube with a-culfw: Cube on the LAN, check with
nc <cube-ip> 2323andV. Homegear cannot use the Cube, so it replaces the stick. - Restart HA.
homematicmust no longer be loaded afterwards. - Add the integration: Settings → Devices & services → "eQ-3 MAX!"
- Connection: "USB stick" with the
by-pathentry, or network with the Cube IP and port 2323 - Central address: the previous one (e.g.
C0FFEE), also with the Cube - Source: JSON,
/config/eq3_max_export.json - Confirm the device list
- Confirm the takeover of the entities (from 0.9.0). eq3_max does not touch the old
homematic entries on its own: Settings → System → Repairs shows "Entities of a
predecessor can be taken over" with the list of affected entities. Check the list, press
Submit – only then the old entries are removed and entity ID, area, name, icon, aliases
and labels move to the eq3_max entities. Until then these sit next to them with
_2.
6. Acceptance test¶
Check in order and take notes:
- All devices present, all thermostats with values, after the confirmed takeover no
_2IDs. - Change the target temperature on a thermostat →
ausstehend(pending) is empty after a few seconds. - Set a device that Homegear addressed with a group specifically → only this one changes.
- Open/close a window contact → the entity follows.
- Press an eco button →
event.<name>showsautooreco. - Adjust the wall thermostat → it and the linked thermostats follow.
- Open the "eQ-3 MAX!" panel → links as under Homegear, configuration with
source
homegear.
7. Switch button automations over¶
homematic.keypress becomes event entities:
triggers:
- trigger: state
entity_id: event.taster
not_from: unavailable
not_to: unavailable
not_to: unavailable prevents triggering when the integration is reloaded. The button
is distinguished by trigger.to_state.attributes.event_type (auto or eco).
8. Observe and clean up¶
- Observe for 48 hours:
binary_sensor.*_funkfehler,sensor.eq3_max_sendezeit_1h, log warnings "no ack". - Then remove the Homegear container or service.
The airtime brake (36 s per hour) is switched on for new entries; this keeps it at 1 % even with a culfw without its own budget check.
Way back¶
Back in under 15 minutes
As long as Homegear is only stopped and not deleted, this is the way back:
- Delete the integration "eQ-3 MAX!".
- Stick back to the Homegear host, start Homegear (if you switched to the Cube, you need the old stick for this). With Docker, restart it once afterwards so the container grabs the device again.
- Restore the
.bakfiles, restart HA. - If areas or names are missing: stop HA, copy the backed-up
core.entity_registryback.