Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switchbot cloud IR for airconditioners #130516

Closed
kristofvand opened this issue Nov 13, 2024 · 45 comments · Fixed by #132231
Closed

Switchbot cloud IR for airconditioners #130516

kristofvand opened this issue Nov 13, 2024 · 45 comments · Fixed by #132231

Comments

@kristofvand
Copy link

The problem

Since last update when i use switch bot to control my aircon units, when changing hvac mode, it no longer will switch to heat or cool, it always switches to cooling, no mather what mode i put it in.

What version of Home Assistant Core has the issue?

2024.11.1

What was the last working version of Home Assistant Core?

2024.10.X

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Switchbot Cloud

Link to integration documentation on our website

No response

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

Hey there @SeraphicRav, @laurence-presland, @Gigatrappeur, mind taking a look at this issue as it has been labeled with an integration (switchbot_cloud) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of switchbot_cloud can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign switchbot_cloud Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


switchbot_cloud documentation
switchbot_cloud source
(message by IssueLinks)

@SeraphicRav
Copy link
Contributor

@kristofvand Thanks for your feedback !

I just checked with the the AC I have and was not able to reproduce your issue.

What happens when you use the SwitchBot app, do you get the same behavior ?

@kristofvand
Copy link
Author

in the switchbot app, the integration in amazon or google it all works perfectly.
When i select heat it heats, when i select cooling it cools

In HA when i select any hvac modus it always results in cooling mode (or auto, that it has the same symbol on the airco so i'm not sure, but since airco is in the wrong setting this means i get no heat)

I just checked again and even setting the temperature setting does not work atm

@kristofvand
Copy link
Author

If you want i could film my actions? Or if i need to send a log or something, Tell me where to find the log file.

@roelbeerens
Copy link

Pretty much the same here as well.

Using HA to change the temperature or mode always results in a 25 degree setting and as mentioned cooling or auto mode.

When using the SwitchBot app all commands are sent to the device properly.

Seems like the commands aren't sent properly from HA to Switchbot Cloud or there is something wrong with the handling of the request at Switchbot.

@rpaillot
Copy link

I got exactly the same issue. I noticed it only today.
home assistant can't switch to heat, only cooling.
In switchbot app, the switch to heat works perfectly.

It's very annoying for me cause we're entering the cold period in west Europe and if I have to let my AC on heat all day and night it's gonna cost me a fortune.

I'm going to try rolling back HA core version for now and tell you if it works again..

@rpaillot
Copy link

rpaillot commented Nov 15, 2024

Rolled back to 2024.10.4, not working, units are still stuck to cooling mode.
Tried uninstalling switchbot integration and installing it again, still same issue.

I wrote an email to switchbot support as the issue seems to be on their side in my opinion.

@rpaillot
Copy link

ok a bit of investigations : Switchbotcloud API seems to be broken.

In HA terminal use this command

curl -X POST "https://api.switch-bot.com/v1.0/devices/YOUR DEVICE ID/commands"
-H "Content-Type: application/json"
-H "Authorization: Bearer YOUR TOKEN ID"
-d '{
"command": "setAll",
"parameter": "heat,23,auto",
"commandType": "command"
}'

Instantly, the AC goes to cooling mode instead of heat mode.

Thank you switchbot, great work !

@SeraphicRav
Copy link
Contributor

@rpaillot Thanks for investigating the issue!

@SeraphicRav
Copy link
Contributor

Strange question, as it works properly from Japan, does it work if you send the request using a VPN in Japan?

@rpaillot
Copy link

Strange question, as it works properly from Japan, does it work if you send the request using a VPN in Japan?

Interesting!
should I use the VPN on my iPhone before using home assistant app or using a VPN inside home assistant box ?

@SeraphicRav
Copy link
Contributor

Strange question, as it works properly from Japan, does it work if you send the request using a VPN in Japan?

Interesting! should I use the VPN on my iPhone before using home assistant app or using a VPN inside home assistant box ?

Should be from the Home Assistant box as it is the server which does the requests.

@rpaillot
Copy link

I have yet to try the VPN as its not so easy to setup.

are you using a Toshiba AC btw ?

@kristofvand
Copy link
Author

I know I can't contribute much in terms of testing or coding but my air conditioners are from Bulex.

@rpaillot
Copy link

Ok mine is Toshiba.

definitely SwitchBot API has an issue.
I wrote to support@switch-bot.com
Maybe you can do the same and they might go faster in fixing the issue

@kristofvand
Copy link
Author

Will do. I'll send a mail when I get home

@SeraphicRav
Copy link
Contributor

are you using a Toshiba AC btw ?

Using Daikin

@tmjramalho
Copy link

tmjramalho commented Nov 18, 2024

I also have the same problem, using Daikin AC's.
On my Alexa integration stoped working also, but removing the switchbot skill from Alexa, and adding the skill again seems to resolve the issue.
On home assistant is still not working.
I sent a ticket with this issue to swicthbot, waiting for a reply from them...

@rpaillot
Copy link

I also have the same problem, using Daikin AC's. On my Alexa integration stoped working also, but removing the switchbot skill from Alexa, and adding the skill again seems to resolve the issue. On home assistant is still not working. I sent a ticket with this issue to swicthbot, waiting for a reply from them...

Please send an email to support@switch-bot.com

They answered me and said they asked a technician but it's better if several people ask the support, they might take it more seriously.

@patBrid
Copy link

patBrid commented Nov 18, 2024

Hello everyone,
I have the same problem from france as you, Fujistsu air conditionner stay on cooling with home assistant.
From switchbot application all is right
I wrote to support@switch-bot.com yesterday, not response for now

@rpaillot
Copy link

I just hope it’s not a rule they decided to avoid too many API requests from Home assistant users…

@rpaillot
Copy link

I also have the same problem, using Daikin AC's. On my Alexa integration stoped working also, but removing the switchbot skill from Alexa, and adding the skill again seems to resolve the issue. On home assistant is still not working. I sent a ticket with this issue to swicthbot, waiting for a reply from them...

Wondering something : isn’t it possible to link Alexa to home assistant to get the skill ?

@kristofvand
Copy link
Author

you can link alexa to HA and control it that way but sadly this does not work 100% of the time, i get time outs in alexa, same with google. Trough the interface it works but via a routine half the time, they do not get set and i neet to first manually click the airco in alexa or google again to set it manually before it works again using routines. Before in HA it always worked correctly it would be nice if the API was fixed and worked again as before. Or there was a better solution. I mailed switchbot, can only hope if everyone mails they fix it.

@SeraphicRav
Copy link
Contributor

What about using matter for the time being if you have a Matter compatible SwitchBot hub ?

@kristofvand
Copy link
Author

I don't

@rpaillot
Copy link

Good idea but yeah I only have a switchbot hub mini which's not matter compatible.

Still not working this morning, I'm starting to think about alternative to switchbot for controlling things with infrared...

@rpaillot
Copy link

Some news : Heat seems to work again... but set temperature doesn't work (unknown error set temperature in HA)

@kristofvand
Copy link
Author

for me it does nothing at all now, it does not even send any IR signal for the moment, only on/off works, changing modes or temperature does nothing (normally for each setting change the airco unit also beeps, now it does not, only when using the switch to turn it on and off, something must have changed though because last week even when it did not accept the correct setting it at least beeped).

@kristofvand
Copy link
Author

The answer from switchbot, can someone who knows what is what (i just kow there is a problem but no idea about api's or developing) post an issue for switchbot on their github page.


Dear Kristof,

Good day!

Thanks for reaching out to us.
We are sorry to hear about the issue you're experiencing. We would love to help!

Home Assistant is not officially supported, you will need to find what he needs on Github or other forums for API-related issues
According to our developers, any issue related to the open API should be followed up on GitHub. Please kindly submit an issue on GitHub. Here is the link you can visit
Issues · OpenWonderLabs/SwitchBotAPI
If you have already sent that, please be aware that developers will answer your question accordingly.

Also, this link
https://github.com/OpenWonderLabs/SwitchBotAPI
should help you as well.
Please kindly understand that we don't commit to API maintenance and new feature development. So, any update or fixes of the open API would not be expected in the schedule.

If there is an update, our developers will take the initiative to publish it.
Thank you for your understanding in advance.🧡️

If you have other questions or need more help, please don't hesitate to contact us!
Have a nice day! 😊️

Best Regards,
Joyce
SwitchBot Customer Happiness
www.switch-bot.com

@rpaillot
Copy link

Ok so basically they dont give a sh** after they created an issue one week before entering cold and minus 2 temp period in Europe.

bye bye SwitchBot, throwing that thing in trash.

@SeraphicRav
Copy link
Contributor

Wow, such a sad answer...
All issues in their Github are getting automatically closed because nobody answer to them...

@SeraphicRav
Copy link
Contributor

Can already see bug tickets stacking
Screenshot_20241121-185936

@kristofvand
Copy link
Author

I hope the more people post they do listen

@rpaillot
Copy link

I don’t want to speak for them but this looks deliberate to save some API resources

@ml0renz0
Copy link

For me it became obvious they screwed up the moment I noticed Alexa was not working and always powered A/C on cool mode. And what's funnier: you cannot switch it off again. I had to go find the damn remote.

At least HA still can power A/C on/off, but get API errors when trying to change HVAC or set temperature. And it keeps powering on cool mode too, so for us living in the north hemisphere this thing is broken right now.

And my automations to get the bedroom nice & warm to sleep turned it into a fridge.

Thanks SwitchBort...

@rpaillot
Copy link

Well it’s a good reminder to find a new IR command unit that can works without a cloud API…
What do you think of the Broadlink RM Mini 3?

@Mik-86
Copy link

Mik-86 commented Dec 1, 2024

Hi everyone! I wrote mine to him..

Good morning, I don't want to ask for support or explanations. I understood by reading on various forums that you have no intention of supporting Home Assistant with the APIs making your Hubs unusable. So I'm writing to you only to tell you that like me thousands and thousands of people will throw your products in the garbage and change with one of the many alternatives now on the market... too bad! I have already placed the order.. Greetings Switchbot!

@tmjramalho
Copy link

Hi there!
Just updated do the latest version of ha-switchbot-remote on my home assistant, and my AC's are now working great through the switchbot remotes.
Everything is working fine, setting temperature, fanspeed and HVAC mode.
It was a long wait, but now all works good!
Thanks!

note: the OpenWonderLabs is still not working..... but.... who cares now, right?

@js4jiang5
Copy link

js4jiang5 commented Dec 7, 2024

Hi there! Just updated do the latest version of ha-switchbot-remote on my home assistant, and my AC's are now working great through the switchbot remotes. Everything is working fine, setting temperature, fanspeed and HVAC mode. It was a long wait, but now all works good! Thanks!

note: the OpenWonderLabs is still not working..... but.... who cares now, right?

Still not working for me. No matter it's Switchbot Cloud or Switchbot Remote IR. When I tried to change the temperature, some error message just pop up.
Eventually I decided to use the API1.1 restful command that I set up last year, and it's working perfectly. I think it's the best because its design is one command for all. Thank god I didn't delete it. FYI, the link of API1.1 is here. I'll stick to it. Won't trust Switchbot Cloud or Switchbot Remote IR anymore.

@SeraphicRav
Copy link
Contributor

@js4jiang5 The fix for SwitchBot Cloud is still waiting for review so it is not deployed yet...

@rpaillot
Copy link

rpaillot commented Dec 8, 2024

It’s not completed… the issue isn’t with decimals but with a unknown error with set temperature command

@SeraphicRav
Copy link
Contributor

@rpaillot Hello ! Did you try Home Assistant 2021.12.2 released yesterday ? It solved my issues but what about yours ?

@ml0renz0
Copy link

It still fails when setting temp....

@SeraphicRav
Copy link
Contributor

It still fails when setting temp....

Can you please share a screenshot of your Hope Assistant version and another one of your thermostat?

There was an issue with the SwitchBot API, they fixed it, you need to reload the integration. There is the possibility that changes are not yet replicated in your region of the world too, need to wait more time.

@ml0renz0
Copy link

ml0renz0 commented Dec 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment