Open creuter27 opened 9 months ago
OK I am 1 step further now. I have imported the "edge" addon instead of the regular one. Now the Homematik Manager can connect to the homegear instance. However, I am still unable to access the web interface.
Trying to access the URL http://192.168.178.150:2001 returns ERR_CONNECTION_CLOSED in the browser and creates the following log entries:
02/13/24 14:45:23.897 RPC Server (Port 2001): Info: Connection from ::ffff:192.168.178.117:65152 accepted. Client number: 10 02/13/24 14:45:23.897 RPC Server (Port 2001): Info: RPC server client id for client number 10 is: 0 02/13/24 14:45:23.904 RPC Server (Port 2001): Info: Connection from ::ffff:192.168.178.117:65153 accepted. Client number: 11 02/13/24 14:45:23.904 RPC Server (Port 2001): Info: RPC server client id for client number 11 is: 1
Trying to access the URL http://192.168.178.150:20080 returns ERR_CONNECTION_CLOSED in the browser and creates the following log entries:
02/13/24 15:00:55.043 RPC Server (Port 80): Info: Connection from ::ffff:192.168.178.117:65304 accepted. Client number: 12 02/13/24 15:00:55.043 RPC Server (Port 80): Info: RPC server client id for client number 12 is: 2 02/13/24 15:00:55.044 RPC Server (Port 80): Info: Connection from ::ffff:192.168.178.117:65303 accepted. Client number: 13 02/13/24 15:00:55.044 RPC Server (Port 80): Info: RPC server client id for client number 13 is: 3 02/13/24 15:00:55.045 Web server (Port 80): Client is requesting: / (translated to /var/lib/homegear/www/rpc/index.php, method: GET) 02/13/24 15:00:55.045 Script Engine Server: Info: Spawning new script engine process.
Maybe the new script engine process cannot be spawned? There are no further messages pointing in that direction though.
Problem/Motivation
First off all thank you for this great addon!
I have a MAX! heating system that is very unreliable in HomeAssistant using the regular homeassistant integration. Therefore I want to flash the Max! cube with custom firmware that makes the cube compatible with homegear and then connect it through mqtt. I have installed this addon here to have a working homegear instance and followed the instructions in the Wiki.
Expected behavior
Ability to use homegear as normal
Actual behavior
Everything seems to work fine except that I am unable to connect to homegear. Neither can I open the web-interface directly in a browser, nor can I connect to it using the "Homematic Manager" app. I have tried everything I could think of from using the default settings of rpcservers.conf to tweaking the settings of the servers in every possible way. I have also forked the project, and added the ports 2004, 80 (mapped to 8020) and 443 (mapped to 2443) to the exposed docker ports but that didn't work either. I was able to tweak the rpcserver settings so that I could reach the homegear instance but I only got responses like the server can't handle this request.
Steps to reproduce
install the addon, don't change any of the settings in rpcservers.conf, and try to open the web interface using: http(s)://(ip-address of the machine running home assistant):(port) where port is any of 200, 2001, 2002, 2003, 80, 443.
Also: install Homematik Manager and set the CCU Ip-address to the ip of the machine running home assistant.
Of course, I have disabled the firewall so that is not the issue.
Proposed changes
Please document the correct settings to use in rpcservers.conf to connect to the homegear instance or explain what else I am doing wrong. Also, I suggest changing the docker settings to expose the ports 80 and 443 of the web interface. One thing I can think of that could cause this as well is that I don't have any hardware configured in homegear yet because I don't want to flash my Max! cube before I have a working homegear instance. I have enabled the Sonos and the Miscellaneous config hoping that homegear would do something and at least show an error such as hardware not found or so. I have also tried wint both enabled and disabled MAX! integration (although the cube isn't flashed yet and therefore doesn't respond of course).
Any help is much appreciated.