ArtemVladimirov / broadlinkac2mqtt

Control your broadlink-based air conditioner using Home Assistant
MIT License
86 stars 9 forks source link

Checksum is incorrect #6

Open sa1ntik opened 1 year ago

sa1ntik commented 1 year ago

Hi, Artem!

I’ve faced with some checksum error. The log says:

{"level":"error","input":{"Command":106,"Payload":"FLucRpm5EV2o+VxYVGBZjg==","Mac":"ec0bae0c170a"},"time":"2023-04-24T17:21:24Z","caller":"/go/src/broadlinkac/app/app/service/service.go:332","message":"Checksum is incorrect"}
{"level":"error","error":"ErrorInvalidResultPacket","device":"ec0bae0c170a","time":"2023-04-24T17:21:24Z","caller":"/go/src/broadlinkac/app/app/service/service.go:1130","message":"Failed to get AC States"}

Any guess? Thanks!

Arunas-g commented 1 year ago

Hello! I'm trying to connect the air conditioner Ballu BSUI-09HN8 MQTT broker does not receive data Logs below:

2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:344 > 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:344 > Checksum is incorrect | 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:344 > 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:344 > Checksum is incorrect | input=[object Object] 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:1142 > 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:1142 > Failed to get AC States | 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:1142 > 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:1142 > Failed to get AC States | error=ErrorInvalidResultPacket 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:1142 > 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:1142 > Failed to get AC States | 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:1142 > 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR 2023-06-08T10:49:17Z 2023-06-08T10:49:17Z ERR service/service.go:1142 > Failed to get AC States | error=ErrorInvalidResultPacket device=a043b008f23f

marcoahp commented 1 year ago

I get the same error, have you solved?

ArtemVladimirov commented 1 year ago

Have you encountered this problem in a similar project? If not, then it looks like I'll have to check the checksum verification function.

ArtemVladimirov commented 1 year ago

Hmm.. Could you test this version? Binaries: https://github.com/ArtemVladimirov/broadlinkac2mqtt/releases/tag/v1.3.2-beta2 Or dev plagin for hassio: https://github.com/ArtemVladimirov/hassio-add-ons

marcoahp commented 1 year ago

Ok, I Will check.

El mié, 19 jul 2023, 16:15, Artem Vladimirov @.***> escribió:

Hmm.. Could you test this version? Binaries:

https://github.com/ArtemVladimirov/broadlinkac2mqtt/releases/tag/v1.3.2-beta2 Or dev plagin for hassio: https://github.com/ArtemVladimirov/hassio-add-ons

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1642171534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4T67KDVWETNTVLUCRITXQ7TY5ANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented.Message ID: @.***>

marcoahp commented 1 year ago

I get those errors:

{"level":"error","error":"ErrorInvalidResultPacket","device":"a043b08dfea3","time":"2023-07-19T17:13:07Z","caller":"/github/workspace/app/service/service.go:1147","message":"Failed to get AC States"} {"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"FLucRpm5EV2o+VxYVGBZjg==","Mac":"a043b08dfea3"},"time":"2023-07-19T17:13:07Z","caller":"/github/workspace/app/service/service.go:344","message":"Checksum is incorrect"} {"level":"error","error":"ErrorInvalidResultPacket","device":"a043b08dfea3","time":"2023-07-19T17:13:07Z","caller":"/github/workspace/app/service/service.go:1147","message":"Failed to get AC States"}

El mié, 19 jul 2023, 16:52, Marco Hernandez @.***> escribió:

Ok, I Will check.

El mié, 19 jul 2023, 16:15, Artem Vladimirov @.***> escribió:

Hmm.. Could you test this version? Binaries:

https://github.com/ArtemVladimirov/broadlinkac2mqtt/releases/tag/v1.3.2-beta2 Or dev plagin for hassio: https://github.com/ArtemVladimirov/hassio-add-ons

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1642171534, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4T67KDVWETNTVLUCRITXQ7TY5ANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented.Message ID: @.***>

marcoahp commented 1 year ago

I haven’t encountered this problem in any other Project. I could send you all the debug files that you need.

De: Artem Vladimirov @.> Enviado el: miércoles, 19 de julio de 2023 15:14 Para: ArtemVladimirov/broadlinkac2mqtt @.> CC: marcoahp @.>; Comment @.> Asunto: Re: [ArtemVladimirov/broadlinkac2mqtt] Checksum is incorrect (Issue #6)

Have you encountered this problem in a similar project https://github.com/liaan/broadlink_ac_mqtt ? If not, then it looks like I'll have to check the checksum verification function.

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1642061540 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4TYJKBBB6WKFPJ5U5GDXQ7MTDANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented. https://github.com/notifications/beacon/AL3J4T2RSPLS2VM7MA255YLXQ7MTDA5CNFSM6AAAAAAXLGWNLKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTB37POI.gif Message ID: @. @.> >

marcoahp commented 1 year ago

The last message with errors are with beta2, Do you want that I test with beta1?

De: Artem Vladimirov @.> Enviado el: miércoles, 19 de julio de 2023 16:16 Para: ArtemVladimirov/broadlinkac2mqtt @.> CC: marcoahp @.>; Comment @.> Asunto: Re: [ArtemVladimirov/broadlinkac2mqtt] Checksum is incorrect (Issue #6)

Hmm.. Could you test this version? Binaries: https://github.com/ArtemVladimirov/broadlinkac2mqtt/releases/tag/v1.3.2-beta2 Or dev plagin for hassio: https://github.com/ArtemVladimirov/hassio-add-ons

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1642171534 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4T67KDVWETNTVLUCRITXQ7TY5ANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented. https://github.com/notifications/beacon/AL3J4T6DJVY4C7ELUKI5L4DXQ7TY5A5CNFSM6AAAAAAXLGWNLKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTB4GGI4.gif Message ID: @. @.> >

marcoahp commented 1 year ago

I still have checksum error with 1.4.0 version {"level":"info","time":"2023-07-25T10:45:32Z","caller":"/github/workspace/app/mqtt/mqtt.go:42","message":"Connected to MQTT"} {"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"Fs0Rbe/ji/q6hXD8QcD7vg==","Mac":"a043b08dfea3"},"time":"2023-07-25T10:45:32Z","caller":"/github/workspace/app/service/service.go:233","message":"Checksum is incorrect"} {"level":"error","device":"a043b08dfea3","time":"2023-07-25T10:45:32Z","caller":"/github/workspace/app/service/service.go:1137","message":"failed to get ambient temperature"}

ArtemVladimirov commented 1 year ago

Have you encountered this problem in a similar project?

marcoahp commented 1 year ago

Not this checksum problem. In Arbuzov addon, I had other problem:

https://github.com/Arbuzov/hass-broadlink-ac-mqtt/issues/9

I get this log when I started addon:

Starting Monitor... Authentication Failed to AC init() should return None, not 'bool' Stopping Starting Monitor... Authentication Failed to AC init() should return None, not 'bool' Stopping

But now, your addon seems to communicate with AC well , but I don’t know why checksum fail.

De: Artem Vladimirov @.> Enviado el: martes, 25 de julio de 2023 14:44 Para: ArtemVladimirov/broadlinkac2mqtt @.> CC: marcoahp @.>; Comment @.> Asunto: Re: [ArtemVladimirov/broadlinkac2mqtt] Checksum is incorrect (Issue #6)

Have you encountered this problem in a similar project https://github.com/liaan/broadlink_ac_mqtt ?

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1649767880 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4T6UX6JXIIBVW63S6BLXR65SBANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented. https://github.com/notifications/beacon/AL3J4T67VYTWVUWLOV7PU6TXR65SBA5CNFSM6AAAAAAXLGWNLKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTCKV24Q.gif Message ID: @. @.> >

marcoahp commented 1 year ago

May be this error is related to the code that the AC Freedom app ask me to introduce just after install? Did you have to introduce a code? What is your code?

I don’t remember the code but then I will send you the code that is printed in my user manual. In Arbuzov addon, some users told me that the solution was remove device from app acfreedom, and add again but only until step of connect to wifi. I didn't tested this solution because I don't want to lose AC Freedom app functionality.

De: Artem Vladimirov @.> Enviado el: martes, 25 de julio de 2023 14:44 Para: ArtemVladimirov/broadlinkac2mqtt @.> CC: marcoahp @.>; Comment @.> Asunto: Re: [ArtemVladimirov/broadlinkac2mqtt] Checksum is incorrect (Issue #6)

Have you encountered this problem in a similar project https://github.com/liaan/broadlink_ac_mqtt ?

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1649767880 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4T6UX6JXIIBVW63S6BLXR65SBANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented. https://github.com/notifications/beacon/AL3J4T67VYTWVUWLOV7PU6TXR65SBA5CNFSM6AAAAAAXLGWNLKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTCKV24Q.gif Message ID: @. @.> >

ArtemVladimirov commented 1 year ago

You can use the device here and there. The AC Freedom app only helps you connect your device to Wi-Fi. I used another application to connect it, since AC Freedom didn't want to work for me. Moreover, these air conditioners have serious security problems, since anyone who has access to your Wi-Fi network can essentially control the air conditioner. It is enough to know only the Mac and IP of the air conditioner to connect to it via Wi-Fi

marcoahp commented 1 year ago

X

You can use the device here and there. The AC Freedom app only helps you connect your device to Wi-Fi. I used another application to connect it, since AC Freedom didn't want to work for me. Moreover, these air conditioners have serious security problems, since anyone who has access to your Wi-Fi network can essentially control the air conditioner. It is enough to know only the Mac and IP of the air conditioner to connect to it via Wi-Fi

I think that this could be the problem, may be the last versions of ac freedom uses a password to communícate with ac. If you make a beta with detailed log I Will send you this log to analize the problem.

laborek commented 1 year ago

Hey Artem

Im also struggling with checksum issue on two devices :

"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"Fs0Rbe/ji/q6hXD8QcD7vg==","Mac":"ec08aebf871d"},"time":"2023-08-13T14:43:28Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:233","message":"Checksum is incorrect"} {"level":"error","device":"ec08aebf871d","time":"2023-08-13T14:43:28Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:1137","message":"failed to get ambient temperature"} {"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"Fs0Rbe/ji/q6hXD8QcD7vg==","Mac":"a043b0dffc72"},"time":"2023-08-13T14:43:28Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:233","message":"Checksum is incorrect"} {"level":"error","device":"a043b0dffc72","time":"2023-08-13T14:43:28Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:1137","message":"failed to get ambient temperature"}

shingle01 commented 1 year ago

Same boat.

{"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"XSE/YHMTk8G1tM6szySc2w==","Mac":"a043b031bc9a"},"time":"2023-08-21T06:01:12Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:233","message":"Checksum is incorrect"} {"level":"error","device":"a043b031bc9a","time":"2023-08-21T06:01:12Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:1137","message":"failed to get ambient temperature"} {"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"qGZrMt6vMJh1YDxAzwbRvA==","Mac":"a043b0b914c6"},"time":"2023-08-21T06:01:12Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:233","message":"Checksum is incorrect"} {"level":"error","device":"a043b0b914c6","time":"2023-08-21T06:01:12Z","caller":"/app/broadlinkac2mqtt/app/service/service.go:1137","message":"failed to get ambient temperature"}

marcoahp commented 1 year ago

Nobody have solved it?

shingle01 commented 1 year ago

I've never has mqtt issues for other projects.

Would it be possible to disable the checksum function in a dev branch to test?

marcoahp commented 1 year ago

Ok, I will test. Print messages from AC in debug to see the problem

De: shingle01 @.> Enviado el: jueves, 24 de agosto de 2023 01:30 Para: ArtemVladimirov/broadlinkac2mqtt @.> CC: marcoahp @.>; Comment @.> Asunto: Re: [ArtemVladimirov/broadlinkac2mqtt] Checksum is incorrect (Issue #6)

I've never has mqtt issues for other projects.

Would it be possible to disable the checksum function in a dev branch to test?

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1690772416 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4TZ37G6TJPQDYSXV37DXW2G6ZANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented. https://github.com/notifications/beacon/AL3J4TZPFWORBLDIVUT42MDXW2G6ZA5CNFSM6AAAAAAXLGWNLKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTEY4R4A.gif Message ID: @. @.> >

ArtemVladimirov commented 1 year ago

What platform do you use? I can build version without checksum for you?

laborek commented 1 year ago

What platform do you use? I can build version without checksum for you?

Im not sure that I understand well - term - platform... but in my case its on pi also really interested to test this integration without checksum

regards

shingle01 commented 1 year ago

Thanks! I'm running amd64.

On Sat, 26 Aug 2023, 12:15 pm Artem Vladimirov, @.***> wrote:

What platform do you use? I can build version without checksum for you?

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1694122318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKJIOYJUEW2YCJ5CPUGSERLXXFL55ANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented.Message ID: @.***>

marcoahp commented 1 year ago

What platform do you use? I can build version without checksum for you?

Aarch64, thanks Artem

ArtemVladimirov commented 1 year ago

I builded it without the checsum function. You can try. https://github.com/ArtemVladimirov/broadlinkac2mqtt/releases/tag/v1.4.1-beta Or hassio beta branch https://github.com/ArtemVladimirov/broadlinkac2mqtt

If this does not help, then most likely the device uses a different message format that is not supported by this application.

laborek commented 1 year ago

Hey Artem

This is my logs after beta instalation {"Command":106,"Payload":"FLucRpm5EV2o+VxYVGBZjg==","Mac":"ec08aebf871d"},"time":"2023-08-31T06:11:49Z","caller":"/github/workspace/app/service/service.go:348","message":"Checksum is incorrect"} {"level":"error","error":"ErrorInvalidResultPacket","device":"ec08aebf871d","time":"2023-08-31T06:11:49Z","caller":"/github/workspace/app/service/service.go:1194","message":"Failed to get AC States"} {"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"FLucRpm5EV2o+VxYVGBZjg==","Mac":"a043b0dffc72"},"time":"2023-08-31T06:11:49Z","caller":"/github/workspace/app/service/service.go:348","message":"Checksum is incorrect"} {"level":"error","error":"ErrorInvalidResultPacket","device":"a043b0dffc72","time":"2023-08-31T06:11:49Z","caller":"/github/workspace/app/service/service.go:1194","message":"Failed to get AC States"}

laborek commented 1 year ago

And i leave here one more "input" what I found on HA forums... maybe this make all things more clear

" bad news is that none of the current methods work with the new Aircons. It appears that only one TCP port is active; the previous UDP methods are no longer available. Maybe someone can figure out what the communication is or what this port is used for in order to obtain some statistics."

nmap -p 12416 10.10.1.100

Host is up (0.071s latency).

PORT STATE SERVICE 12416/tcp open unknown

marcoahp commented 1 year ago

Hi Artem,

Is strange, I get exactly the same:

s6-rc: info: service s6rc-oneshot-runner: starting

s6-rc: info: service s6rc-oneshot-runner successfully started

s6-rc: info: service fix-attrs: starting

s6-rc: info: service fix-attrs successfully started

s6-rc: info: service legacy-cont-init: starting

s6-rc: info: service legacy-cont-init successfully started

s6-rc: info: service legacy-services: starting

s6-rc: info: service legacy-services successfully started

{"level":"debug","time":"2023-08-31T06:26:11Z","caller":"/github/workspace/config/config.go:47","message":"Start reading a config file"}

{"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"FLucRpm5EV2o+VxYVGBZjg==","Mac":"a043b08dfea3"},"time":"2023-08-31T06:26:12Z","caller":"/github/workspace/app/service/service.go:348","message":"Checksum is incorrect"}

{"level":"error","error":"ErrorInvalidResultPacket","device":"a043b08dfea3","time":"2023-08-31T06:26:12Z","caller":"/github/workspace/app/service/service.go:1194","message":"Failed to get AC States"}

{"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"FLucRpm5EV2o+VxYVGBZjg==","Mac":"a043b08dfea3"},"time":"2023-08-31T06:26:12Z","caller":"/github/workspace/app/service/service.go:348","message":"Checksum is incorrect"}

{"level":"error","error":"ErrorInvalidResultPacket","device":"a043b08dfea3","time":"2023-08-31T06:26:12Z","caller":"/github/workspace/app/service/service.go:1194","message":"Failed to get AC States"}

{"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"FLucRpm5EV2o+VxYVGBZjg==","Mac":"a043b08dfea3"},"time":"2023-08-31T06:26:12Z","caller":"/github/workspace/app/service/service.go:348","message":"Checksum is incorrect"}

{"level":"error","error":"ErrorInvalidResultPacket","device":"a043b08dfea3","time":"2023-08-31T06:26:12Z","caller":"/github/workspace/app/service/service.go:1194","message":"Failed to get AC States"}

{"level":"error","error":"ErrorInvalidResultPacket","input":{"Command":106,"Payload":"FLucRpm5EV2o+VxYVGBZjg==","Mac":"a043b08dfea3"},"time":"2023-08-31T06:26:12Z","caller":"/github/workspace/app/service/service.go:348","message":"Checksum is incorrect"}

{"level":"error","error":"ErrorInvalidResultPacket","device":"a043b08dfea3","time":"2023-08-31T06:26:12Z","caller":"/github/workspace/app/service/service.go:1194","message":"Failed to get AC States"}

Thanks,

Marco

De: Artem Vladimirov @.> Enviado el: jueves, 31 de agosto de 2023 01:28 Para: ArtemVladimirov/broadlinkac2mqtt @.> CC: marcoahp @.>; Comment @.> Asunto: Re: [ArtemVladimirov/broadlinkac2mqtt] Checksum is incorrect (Issue #6)

I builded it without the checsum function. You can try. https://github.com/ArtemVladimirov/broadlinkac2mqtt/releases/tag/v1.4.1-beta Or hassio beta branch https://github.com/ArtemVladimirov/broadlinkac2mqtt

If this does not help, then most likely the device uses a different message format that is not supported by this application.

— Reply to this email directly, view it on GitHub https://github.com/ArtemVladimirov/broadlinkac2mqtt/issues/6#issuecomment-1699982505 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AL3J4T2RJLCHQISJWZZZCQLXX7D77ANCNFSM6AAAAAAXLGWNLI . You are receiving this because you commented. https://github.com/notifications/beacon/AL3J4T7TRHUQCPHZKUFXKETXX7D77A5CNFSM6AAAAAAXLGWNLKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTFKOWKS.gif Message ID: @.***>

marcoahp commented 1 year ago

I've observed that my mac and one laborek's mac, single01 mac and arunas-g mac starts with "a043". How your mac starts, Artem?

laborek commented 1 year ago

@marcoahp @ArtemVladimirov JFYI - I have 4 air conditioners at home, all produced by AUX (the two that can't connect are 1-1.5 years younger than my other two that can be connected via Artem integration

above i put info from HA forums about closed ports in "new broadlink based devices" and based on that I checked and this is what i got from my devices (these are the two that can't connect) :

Starting Nmap 7.80 ( https://nmap.org ) at 2023-08-31 15:57 CEST Nmap scan report for x.x.x.x Host is up (0.048s latency). Not shown: 65531 closed ports PORT STATE SERVICE 80/udp open|filtered http 16386/udp open|filtered unknown 16407/udp open|filtered unknown 16442/udp open|filtered unknown 16491/udp open|filtered unknown

and second one

sudo nmap -sU -p0-65535 192.168.1.62 Starting Nmap 7.80 ( https://nmap.org ) at 2023-08-31 16:10 CEST RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 RTTVAR has grown to over 2.3 seconds, decreasing to 2.0 Nmap scan report for 192.168.1.62 Host is up (0.071s latency). Not shown: 65533 closed ports PORT STATE SERVICE 80/udp open|filtered http 12414/udp open|filtered unknown 58953/udp open|filtered unknown

ArtemVladimirov commented 1 year ago

I've observed that my mac and one laborek's mac, single01 mac and arunas-g mac starts with "a043". How your mac starts, Artem?

34:ea:34

marcoahp commented 11 months ago

HA Good news Artem, now your integration works like a charm in my three AC devices!!! Even better than other two Midea AC devices because AUX AC send temperature values with more precission. I had to delete devices from AC Freedom app, and then add again, but only until they connect to wifi, then cancel. The problem is that I've lost AC Freedom connection, and now I can't change some configurations of AUX AC, like Anti Fungus and Health functions. Is possible add theese functions? For example led switch works fine.

ArtemVladimirov commented 11 months ago

It is possible, please, create separate issue for this function. I will think how to add this. The main difficulty is that not all devices support this functionality. I'll have to think about optionally setting this parameter.

ebabenskas commented 6 months ago

Hey, what's the situation with this issue? I updated to the latest 1.5.5, but I'm still getting: {"time":"2024-04-12T12:36:52.230029896Z","level":"ERROR","source":{"function":"github.com/ArtemVladimirov/broadlinkac2mqtt/app/service.(*service).GetDeviceAmbientTemperature","file":"/app/broadlinkac2mqtt/app/service/service.go","line":228},"msg":"Checksum is incorrect","input":{"Command":106,"Payload":"Fs0Rbe/ji/q6hXD8QcD7vg==","Mac":"24dfa7f61a98"}} Are there any plans to fix that issue? Thanks!

frozendark01 commented 2 months ago

Any news regarding the Checksum is incorrect? I have the similar issue: broadlinkac2mqtt: v1.5.5 broadlink rm4c mini A\C Samsung Home assistant version: Core 2024.7.3 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240710.0 Error:

(*service).GetDeviceAmbientTemperature","file":"/app/broadlinkac2mqtt/app/service/service.go","line":228},"msg":"Checksum is incorrect","input":{"Command":106,"Payload":"625rgDeAI4yoVY0WpHuCzQ==","Mac":"e8165654198f"}}
{"time":"2024-07-24T16:15:11.079011689Z","level":"ERROR","source":{"function":"github.com/ArtemVladimirov/broadlinkac2mqtt/app/service.(*service).StartDeviceMonitoring","file":"/app/broadlinkac2mqtt/app/service/service.go","line":1234},"msg":"failed to get ambient temperature","err":"ErrorInvalidResultPacket","device":"e8165654198f"}
{"time":"2024-07-24T16:15:11.090564216Z","level":"ERROR","source":{"function":"github.com/ArtemVladimirov/broadlinkac2mqtt/app/service.(*service).GetDeviceAmbientTemperature","file":"/app/broadlinkac2mqtt/app/service/service.go","line":228},"msg":"Checksum is incorrect","input":{"Command":106,"Payload":"625rgDeAI4yoVY0WpHuCzQ==","Mac":"e8165654198f"}}
{"time":"2024-07-24T16:15:11.090582227Z","level":"ERROR","source":{"function":"github.com/ArtemVladimirov/broadlinkac2mqtt/app/service.(*service).StartDeviceMonitoring","file":"/app/broadlinkac2mqtt/app/service/service.go","line":1234},"msg":"failed to get ambient temperature","err":"ErrorInvalidResultPacket","device":"e8165654198f"}
cHunter789 commented 1 month ago

Just want to confirm that, if there is a problem with checksum you have to remove the device from ac freedom app, reset wifi and after the wifi is connected once again (in the ac freedom app) just cancel and you will get connection. If it's still not working, just take a look at a hardware approach https://github.com/GrKoR/esphome_aux_ac_component/blob/06388ebb2c2792098e93dd844c3c812440a06288/README-EN.md#esphome-aux-air-conditioner-custom-component-aux_ac