mario-peters / Domoticz-Home-Connect-Plugin

Domoticz Home-Connect Plugin
11 stars 7 forks source link

Devices do not refresh (quick enough) #8

Closed cyrano1966 closed 3 years ago

cyrano1966 commented 3 years ago

When a change is done (e.g. selecting a new programme) after a few hours of running the weblistener, the new status is not refreshed via the api. I also noticed in the logs that reconnection takes 1 more minute in each cycle. May that be the reason?

d-EScape commented 3 years ago

Great to see these feature being added. Thanks!

I don’t see any update either. The values are immediately updated when I restart the plugin (update button on the configuration screen). Have not yet run a dishwasher cycle, but checked things like door open status.

mario-peters commented 3 years ago

When a change is done (e.g. selecting a new programme) after a few hours of running the weblistener, the new status is not refreshed via the api. I also noticed in the logs that reconnection takes 1 more minute in each cycle. May that be the reason?

Could you please send me the homeconnectSSE_.log and the domoticz.log from the timestamp on which you experienced this problemen.

mario-peters commented 3 years ago

Great to see these feature being added. Thanks!

I don’t see any update either. The values are immediately updated when I restart the plugin (update button on the configuration screen). Have not yet run a dishwasher cycle, but checked things like door open status.

Could you please send me the homeconnectSSE_.log and the domoticz.log from the timestamp on which you experienced this problemen.

d-EScape commented 3 years ago

Problem solved. The #!/usr/bin/python3 is missing from homeconnectSSE.py.

Since the init.d file also is not explicitly calling python the os will have no idea what to do with the file, and the daemon simply does not run at all. I am surprised this worked in your setup(?)

mario-peters commented 3 years ago

Did you update the homeconnectSSE.sh file? I removed the #!/usr/bin/python3 from the homeconnectSSE.py file and changed the startup command in the homeconnectSSE.sh file so the OS knows what to do with the file.

d-EScape commented 3 years ago

Nope... I just did a git pull and was not aware of any manual steps needed. Maybe you can include info like that in the change log(?) Anyway, it's working now and updates immediately :)

cyrano1966 commented 3 years ago

An update from my side.

Note: My broadband was down for some minutes within the 5 hours (or about the 5 hours time). Can this be related to the issue?

mario-peters commented 3 years ago
mario-peters commented 3 years ago

Nope... I just did a git pull and was not aware of any manual steps needed. Maybe you can include info like that in the change log(?) Anyway, it's working now and updates immediately :)

Sorry, will think about it next time I change homeconnectSSE.sh. :-)

cyrano1966 commented 3 years ago

@mario-peters : Regarding the lost connectivity. I understand the HC API will not be available while broadband is down, but should not the daemons reconnect when broadband is back without a manual restart?

d-EScape commented 3 years ago

I agree with @cyrano1966 that the plugin and daemon should be able to handle (temporary) connection issues.

In my setup the succes was also short lived. The plugin would immediately update the door opened/closed while testing, but it looks like it stopped updating values the same day. I'm running the dishwasher now and had to restart the daemon and the plugin to get the status updated. After that the door status, operation state, and active program where immediately updated. The remaining program time and estimated time took a bit longer to updated and the current program state does not seem to get any value (after about 5 minutes).

There is nu indication of connection errors in any of the logs.

I don't see any errors in the domoticz log (have logging my level set to error, so no status messages either)

This is in the homeconnectSSE_Dishwasher.log: atobm: bad character '2' on line 1 atobm: bad character '0' on line 1 atobm: bad character '2' on line 1 atobm: bad character '0' on line 1 atobm: bad character '1' on line 1 atobm: bad character '1' on line 1 atobm: bad character '0' on line 1 atobm: bad character '5' on line 1 atobm: bad character ' ' on line 1 atobm: bad character '0' on line 1 atobm: bad character '7' on line 1 atobm: bad character ':' on line 1 atobm: bad character '5' on line 1 atobm: bad character '0' on line 1 atobm: bad character ':' on line 1 atobm: bad character '2' on line 1 atobm: bad character '9' on line 1 atobm: bad character ',' on line 1 atobm: bad character '2' on line 1 atobm: bad character '9' on line 1 atobm: bad character '8' on line 1 atobm: bad character ' ' on line 1 atobm: bad character 'S' on line 1 atobm: bad character 't' on line 1 atobm: bad character 'a' on line 1 atobm: bad character 'r' on line 1 atobm: bad character 't' on line 1 atobm: bad character '.' on line 1 atobm: bad character '.' on line 1 atobm: bad character '.' on line 1 atobm: line 2 is 55 characters wide instead of 32

mario-peters commented 3 years ago

@mario-peters : Regarding the lost connectivity. I understand the HC API will not be available while broadband is down, but should not the daemons reconnect when broadband is back without a manual restart?

I agree on both off you and I will put this on my "ToDo"-list. Will close this issue now.