sHedC / homeassistant-mastertherm

Home Assistant Mastertherm Component, to communicate and control heat pumps from Mastertherm
MIT License
6 stars 2 forks source link

MasterTherm server offline or just me? #58

Closed SeBsZ closed 1 year ago

SeBsZ commented 1 year ago

For me (2022 api) the official app has been down all day and the integration also isn't working anymore. I also can't visit mastertherm.online. I'm trying to figure out if I'm the only one with issues?

sHedC commented 1 year ago

Just tried the site seems to be down for me too, API also doesn't work. I did have a similar problem with the old API last week.

sHedC commented 1 year ago

Adding some logic to make unavailable if temporary errors happen more than 5 times. Will also change later to put larger delays in if unavailable and maybe shorter timeout. Will check

sHedC commented 1 year ago

Added issue #60, to look at improving error and temporary error handling.

johny-mnemonic commented 1 year ago

I know I am probably dreaming with eyes wide open, but it would be great to get rid of the reliance on the MT servers and use something like local proxy sniffing all the data from the HP directly. Some guys created similar thing for Solax PV products here, but I have no clue whether it is easier to create MQTT proxy than Modbus one. As far as I know MT stuff is communicating with their servers using Modbus TCP. At least mine does have Modbus port open and when I asked MT support how that Modbus connection works they were first scared I hacked it but when I assured them I just tried to connect (without much success) they confirmed it is actually Modbus but it is locked for the communication with their server hence I can't use it locally :-)

EDIT: Seems like someone already wrote Modbus proxy exactly for this use-case and it's even in Python. So in case you like challenges @sHedC here it comes 😁

sHedC commented 1 year ago

@johny-mnemonic Um I tried and I guess whilst it might be possible I have no idea. The MT pump (or pumps as some installations have multiple) expose a https address but the protocol is old at least for pre 2020 pumps and requires a username/ password.

I think it creates an SSH link to the servers, to proxy all this would be tough and take a serious amount of effort. I am not yet retired or bored enough to even try :)

If you want to raise an issue on the python-masterthermconnect git repository we can mark it help wanted and see if someone far more clever than me can help.