mikakoivisto / controlmyspa-ha-mqtt

GNU General Public License v3.0
13 stars 5 forks source link

ControlMySpa service doesn't run anymore #10

Closed MartinGoX closed 1 year ago

MartinGoX commented 1 year ago

Hi Mika. Sorry to disturb... do you know about problems to run the controlmyspa-ha-mqtt service on a HA version Home Assistant 2023.7.1 Supervisor 2023.07.1 Operating System 10.3 Since today or yesterday the service stops after few seconds and the protocoll log shows a couple of lines of json code; here are a few of the very end: response: undefined, isAxiosError: true, toJSON: [Function: toJSON] } Node.js v18.16.1 s6-rc: info: service legacy-services: stopping s6-rc: info: service legacy-services successfully stopped s6-rc: info: service legacy-cont-init: stopping s6-rc: info: service legacy-cont-init successfully stopped s6-rc: info: service fix-attrs: stopping s6-rc: info: service fix-attrs successfully stopped s6-rc: info: service s6rc-oneshot-runner: stopping s6-rc: info: service s6rc-oneshot-runner successfully stopped

I noticed that the ControlMySpa app was updated by Balboa on July 4th but didn't know if the did something critical...?

Thanks in advance and best regards Martin

MartinGoX commented 1 year ago

Hi again, I just tried with an older backup (sure that it was working at the time the backup was made) but it doesn't work either. My assumption is that Balboa did some change(s) in the interface or so... Best regards Martin

mikakoivisto commented 1 year ago

Looks like controlmyspa server certificate was renewed and not setup correctly again. I think this same exact issue happened last year too.

MartinGoX commented 1 year ago

Ah, ok.

Is that something you can change/correct or has Balboa to do it?

10.07.2023 14:15:29 Mika Koivisto @.***>:

Looks like controlmyspa server certificate was renewed and not setup correctly again. I think this same exact issue happened last year too.

— Reply to this email directly, view it on GitHub[https://github.com/mikakoivisto/controlmyspa-ha-mqtt/issues/10#issuecomment-1628842085], or unsubscribe[https://github.com/notifications/unsubscribe-auth/A7TH3NZMBW7UBXIFAIJFT53XPPW57ANCNFSM6AAAAAA2BU2ORQ]. You are receiving this because you authored the thread.[Verfolgungsbild][https://github.com/notifications/beacon/A7TH3N7PGL4HVZEJUJFLISLXPPW57A5CNFSM6AAAAAA2BU2ORSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTBCYUGK.gif]

mikakoivisto commented 1 year ago

You can set environment variable NODE_TLS_REJECT_UNAUTHORIZED = 0 to bypass the TLS validation that NodeJS http client does. Another possible fix is to manually add the intermedia certificate that is currently missing from their TLS handshake to your systems trusted CA roots but the first option is much easier.

MartinGoX commented 1 year ago

Ok, thanks, I will give it a try...

10.07.2023 14:26:46 Mika Koivisto @.***>:

You can set environment variable NODE_TLS_REJECT_UNAUTHORIZED = 0 to bypass the TLS validation that NodeJS http client does. Another possible fix is to manually add the intermedia certificate that is currently missing from their TLS handshake to your systems trusted CA roots but the first option is much easier.

— Reply to this email directly, view it on GitHub[https://github.com/mikakoivisto/controlmyspa-ha-mqtt/issues/10#issuecomment-1628857804], or unsubscribe[https://github.com/notifications/unsubscribe-auth/A7TH3N4FYTRMXXDBPBRBFX3XPPYILANCNFSM6AAAAAA2BU2ORQ]. You are receiving this because you authored the thread.[Verfolgungsbild][https://github.com/notifications/beacon/A7TH3NYASLFRXNW5RYDWVYLXPPYILA5CNFSM6AAAAAA2BU2ORSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTBCZS4Y.gif]

MartinGoX commented 1 year ago

Hi

Honestly speaking, I do not find a place where to set the environment variable to zero. I know about developing software but not on Linux systems... I also didn't know where the controlmyspa-ha-mqtt files are located on the HA system.

It would be a great help if you could give me some more details.

Thanks a lot and best regards Martin

------ Originalnachricht ------ Von "Mika Koivisto" @.> An "mikakoivisto/controlmyspa-ha-mqtt" @.> Cc "MartinGoX" @.>; "Author" @.> Datum 10.07.2023 14:26:45 Betreff Re: [mikakoivisto/controlmyspa-ha-mqtt] ControlMySpa service doesn't run anymore (Issue #10)

You can set environment variable NODE_TLS_REJECT_UNAUTHORIZED = 0 to bypass the TLS validation that NodeJS http client does. Another possible fix is to manually add the intermedia certificate that is currently missing from their TLS handshake to your systems trusted CA roots but the first option is much easier.

— Reply to this email directly, view it on GitHub https://github.com/mikakoivisto/controlmyspa-ha-mqtt/issues/10#issuecomment-1628857804, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7TH3N4FYTRMXXDBPBRBFX3XPPYILANCNFSM6AAAAAA2BU2ORQ. You are receiving this because you authored the thread.Message ID: @.***>

MartinGoX commented 1 year ago

Good morning.

Having further asked Google regarding NODE_TLS_REJECT_UNAUTHORIZED=0 I'm a bit anxious if that solution works for me as I'm accessing HA via duckdns.org by HTTPS only...?

Best regards Martin

------ Originalnachricht ------ Von "Martin Gottschlich" @.> An "mikakoivisto/controlmyspa-ha-mqtt" @.> Datum 10.07.2023 20:10:51 Betreff Re[2]: [mikakoivisto/controlmyspa-ha-mqtt] ControlMySpa service doesn't run anymore (Issue #10)

Hi

Honestly speaking, I do not find a place where to set the environment variable to zero. I know about developing software but not on Linux systems... I also didn't know where the controlmyspa-ha-mqtt files are located on the HA system.

It would be a great help if you could give me some more details.

Thanks a lot and best regards Martin

------ Originalnachricht ------ Von "Mika Koivisto" @.> An "mikakoivisto/controlmyspa-ha-mqtt" @.> Cc "MartinGoX" @.>; "Author" @.> Datum 10.07.2023 14:26:45 Betreff Re: [mikakoivisto/controlmyspa-ha-mqtt] ControlMySpa service doesn't run anymore (Issue #10)

You can set environment variable NODE_TLS_REJECT_UNAUTHORIZED = 0 to bypass the TLS validation that NodeJS http client does. Another possible fix is to manually add the intermedia certificate that is currently missing from their TLS handshake to your systems trusted CA roots but the first option is much easier.

— Reply to this email directly, view it on GitHub https://github.com/mikakoivisto/controlmyspa-ha-mqtt/issues/10#issuecomment-1628857804, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7TH3N4FYTRMXXDBPBRBFX3XPPYILANCNFSM6AAAAAA2BU2ORQ. You are receiving this because you authored the thread.Message ID: @.***>

mikakoivisto commented 1 year ago

It's set in the same place where you set your controlmyspa username and password and mqtt settings so either in the docker-compose.yml or docker.env depending on how your setup is. It only affects the controlmyspa docker image and nothing else.

MartinGoX commented 1 year ago

Thanks for your fast reply. I did the configuration in the UI, so didn't saw a place to add that. I will switch to yaml and edit there.

Have a nice day Martin

11.07.2023 07:49:50 Mika Koivisto @.***>:

It's set in the same place where you set your controlmyspa username and password and mqtt settings so either in the docker-compose.yml or docker.env depending on how your setup is. It only affects the controlmyspa docker image and nothing else.

— Reply to this email directly, view it on GitHub[https://github.com/mikakoivisto/controlmyspa-ha-mqtt/issues/10#issuecomment-1630181011], or unsubscribe[https://github.com/notifications/unsubscribe-auth/A7TH3N6XLAEHUARDVWEGHDLXPTSPZANCNFSM6AAAAAA2BU2ORQ]. You are receiving this because you authored the thread.[Verfolgungsbild][https://github.com/notifications/beacon/A7TH3N3XJHJ72PBPP7KNVITXPTSPZA5CNFSM6AAAAAA2BU2ORSWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTBFKLJG.gif]

mikakoivisto commented 1 year ago

I added it also as option for the homeassistant addon so it might be available in the UI also now.

dlysnes commented 1 year ago

FYI I contacted Balboa again (same as last year). Certificate chain is complete serverside now.

MartinGoX commented 1 year ago

Ok, thank you for the info...but what does that mean for me/you/the addon?

mikakoivisto commented 1 year ago

Not showing complete certificate chain for me but in my latest commit I added full CA chain to NodeJS trusted certificates so it should no longer complain about it and should work without the NODE_TLS_REJECT_UNAUTHORIZED hack.

garysargentpersonal commented 1 year ago

I'm getting a 504 gateway timeout for https://iot.controlmyspa.com/idm/tokenEndpoint

Is this working for anyone? Their Android app isn't working either.

garysargentpersonal commented 1 year ago

And almost as soon as I posted that it started working again! Their servers really are useless!