-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
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
Comments
Hey there @SeraphicRav, @laurence-presland, @Gigatrappeur, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) switchbot_cloud documentation |
@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 ? |
in the switchbot app, the integration in amazon or google it all works perfectly. 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 |
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. |
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. |
I got exactly the same issue. I noticed it only today. 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.. |
Rolled back to 2024.10.4, not working, units are still stuck to cooling mode. I wrote an email to switchbot support as the issue seems to be on their side in my opinion. |
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" Instantly, the AC goes to cooling mode instead of heat mode. Thank you switchbot, great work ! |
@rpaillot Thanks for investigating the issue! |
Strange question, as it works properly from Japan, does it work if you send the request using a VPN in Japan? |
Interesting! |
Should be from the Home Assistant box as it is the server which does the requests. |
I have yet to try the VPN as its not so easy to setup. are you using a Toshiba AC btw ? |
I know I can't contribute much in terms of testing or coding but my air conditioners are from Bulex. |
Ok mine is Toshiba. definitely SwitchBot API has an issue. |
Will do. I'll send a mail when I get home |
Using Daikin |
I also have the same problem, using Daikin AC's. |
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. |
Hello everyone, |
I just hope it’s not a rule they decided to avoid too many API requests from Home assistant users… |
Wondering something : isn’t it possible to link Alexa to home assistant to get the skill ? |
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. |
What about using matter for the time being if you have a Matter compatible SwitchBot hub ? |
I don't |
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... |
Some news : Heat seems to work again... but set temperature doesn't work (unknown error set temperature in HA) |
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). |
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. Home Assistant is not officially supported, you will need to find what he needs on Github or other forums for API-related issues Also, this link If there is an update, our developers will take the initiative to publish it. If you have other questions or need more help, please don't hesitate to contact us! Best Regards, |
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. |
Wow, such a sad answer... |
I hope the more people post they do listen |
I don’t want to speak for them but this looks deliberate to save some API resources |
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... |
Well it’s a good reminder to find a new IR command unit that can works without a cloud API… |
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! |
Hi there! 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. |
@js4jiang5 The fix for SwitchBot Cloud is still waiting for review so it is not deployed yet... |
It’s not completed… the issue isn’t with decimals but with a unknown error with set temperature command |
@rpaillot Hello ! Did you try Home Assistant 2021.12.2 released yesterday ? It solved my issues but what about yours ? |
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. |
I usually have everything updated.
I dont use decimals as you can see, I just set 19 degrees.
Here are the screenshots and the error log
Registrador: homeassistant.components.websocket_api.http.connection
Fuente: components/switchbot_cloud/entity.py:45
integración: Home Assistant WebSocket API (documentación, problemas)
Ocurrió por primera vez: 10:52:40 (2 ocurrencias)
Última vez registrado: 17:11:05
[546840611712] Error handling message: Unknown error (unknown_error) Marcos
from 192.168.1.122 (Mozilla/5.0 (Linux; Android 15; Pixel 7 Pro
Build/AP4A.241205.013; wv) AppleWebKit/537.36 (KHTML, like Gecko)
Version/4.0 Chrome/131.0.6778.135 Mobile Safari/537.36 Home
Assistant/2024.12.1-14604 (Android 15; Pixel 7 Pro))
[546729911504] Error handling message: Unknown error (unknown_error) Marcos
from 192.168.1.122 (Mozilla/5.0 (Linux; Android 15; Pixel 7 Pro
Build/AP4A.241205.013; wv) AppleWebKit/537.36 (KHTML, like Gecko)
Version/4.0 Chrome/131.0.6778.135 Mobile Safari/537.36 Home
Assistant/2024.12.1-14604 (Android 15; Pixel 7 Pro))
Traceback (most recent call last):
File
"/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py",
line 28, in _handle_async_response
await func(hass, connection, msg)
File
"/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py",
line 816, in handle_execute_script
script_result = await script_obj.async_run(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
msg.get("variables"), context=context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 1801,
in async_run
return await asyncio.shield(create_eager_task(run.async_run()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 464,
in async_run
await self._async_step(log_exceptions=False)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 528,
in _async_step
self._handle_exception(
~~~~~~~~~~~~~~~~~~~~~~^
ex, continue_on_error, self._log_exceptions or log_exceptions
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 558,
in _handle_exception
raise exception
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 526,
in _async_step
await getattr(self, handler)()
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 764,
in _async_call_service_step
response_data = await self._async_run_long_action(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<9 lines>...
)
^
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 727,
in _async_run_long_action
return await long_task
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2802, in
async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2845, in
_execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line
1007, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, entity, func, data, call.context
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line
1079, in _handle_entity_call
result = await task
^^^^^^^^^^
File
"/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line
1084, in async_service_temperature_set
await entity.async_set_temperature(**kwargs)
File
"/usr/src/homeassistant/homeassistant/components/switchbot_cloud/climate.py",
line 121, in async_set_temperature
await self._do_send_command(temperature=temperature)
File
"/usr/src/homeassistant/homeassistant/components/switchbot_cloud/climate.py",
line 100, in _do_send_command
await self.send_api_command(
...<2 lines>...
)
File
"/usr/src/homeassistant/homeassistant/components/switchbot_cloud/entity.py",
line 45, in send_api_command
await self._api.send_command(
...<4 lines>...
)
File "/usr/local/lib/python3.13/site-packages/switchbot_api/__init__.py",
line 291, in send_command
await self._request(f"devices/{device_id}/commands", callback="post",
json=json)
File "/usr/local/lib/python3.13/site-packages/switchbot_api/__init__.py",
line 230, in _request
raise CannotConnect()
switchbot_api.CannotConnect
I already restarted several times but to no aval.
El mié, 18 dic 2024, 5:26, Ravaka Razafimanantsoa ***@***.***>
escribió:
… 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.
—
Reply to this email directly, view it on GitHub
<#130516 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACZM4PTYO7GDEDGHGOAPTXL2GD2OFAVCNFSM6AAAAABRWEQKFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJQGMYDIOJRGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
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
The text was updated successfully, but these errors were encountered: