strange error, i try to connect my CCU2 with Home Assistant the wireless component is detected but CCU2 isn’t recognised.
Tryed everything but no luck…
My config file for homematic:
Did you try specifying username and password both for wireless and ccu2? For interfaces credentials are needed when resolving names with json, and access to variables in the hosts-section is protected with credentials as well.
Already tried different versions of the firmware (also downgraded and upgraded the CCU2).
When i first tried Home Assistant i can connect to the CCU2 (shows up in the Home Assistant UI but it doesn’t loads any devices) but then i loaded the factory settings and upgraded the firmware to the latest version and can’t connect to it.
Can it be that it something to do with programs and variables because these are now empty.
The second part with the variables may be what @andrewdolphin says. The CCU (any version) has a bug that hasn’t been fixed yet. I don’t know under which circumstances it turns up. I had it once, but after that never again. Others are having a really hard time with it. So in case that’s the issue, you would see the ccu2-entity in the HASS UI, but when clicking on it there’s no content in the card which usually displays the variables and their values.
The only workaround for the bug is to use RaspberryMatic, which recently fixed this bug.
Could you post the Log Output now that you have set the username and password for the ccu2 in the hosts section? The output in the opening post indicates that those weren’t set. Not that they are set the Logs should look different.
One thing i discovered when i set the password and disable automatic login and i open http://10.0.0.4/api/homematic.cgi it doesn’t ask for any username or password and i can access the JSON API.
This exception tells us, that for some reason it has problems with the ccu2-host. Why that is I can’t tell. But now that you mention it I realize, that I have the same problem and don’t get the number of service messages. For me the variables are working though. Are there any other messages after what is the last line in the log you have posted? It stops right before it tries to get the variables. The problem would happen after the login.
Also to verify the configuration of your CCU, please check if your “Firewall Settings” in the CCU allow access to the Script API:
The XML-RPC API doesn’t need to be set to Vollzugriff in most cases. I do that for development reasons. And of course the network that is allowed should match your setup.
I have to correct myself. There won’t be more in the logs than what you have posted. So from what I see it’s working as intended regarding the variables. It’s only the service messages that are not working. At least in my case.
since v0.61.1 I also dont see the ccu2 entity in my ui anymore, with v62.0 the entity is back again. thanks for this… but still struggeling with the missing variables. really bad that there is no solution to this, as you said in some cases its working even with the rega bug… would be great if we could find out why
The CCU not showing up was because of a bug. It has been fixed. Home Assistant 0.62 has been releasen today. So if you update, you should get at least the card with the sum of the current service messages. As said before, the variables are a general bug in the CCU, so I can’t do anything about that. Usually people get errors when they have the bug, so I’m not sure why it is not working for you.
Anyways, please first update Home Assistant so we can verify that you get the CCU2 entity.
@danielperna84
After the Uptdate it finaly works, variables (like you mentioned) dosen’t show but the ccu2 card with the numbers of service messages apper.
Thank you very very much for the quick replies…
Anyways one last question, can i set a variable for the ccu2 from home assistant (need this for HM-Dis-WM55) so to speak that i can change a variable with home assistant for the ccu2?
For me that works without a problem. Did you have a look at the logs while calling the service? Maybe the problem that prevents you from receiving the variables also prevents you from setting them.
PS: For a boolean variable all these variants should work (they do for me):
Could you increase the log level to debug? I would need to see what exactly happens in the pyhomematic module. So just like the log messages you have posted earlier.
Edit:
If you want you can also use this to manually do what HA tries to do when getting variables. Maybe it gives us a hint of where the probem ist.