Comments (43)
You can use haska for Alexa integration. There are a lot of guides.
Anyway, idk about the last state check. HA has a db I'll try to understand how it work
from ha-switchbot-remote.
haska
yes look here:
OpenWonderLabs/SwitchBotAPI#224
who is interested please support the request
from ha-switchbot-remote.
Hi, yes it is an issue. I have already ready the fix but not delivered yet. Tomorrow will be available. Need to understand the release management on HACS but after the tomorrow push you can pull the changes and have the fix
from ha-switchbot-remote.
You can use haska for Alexa integration. There are a lot of guides.
Anyway, idk about the last state check. HA has a db I'll try to understand how it workHi, I have managed to configure haaska but I have a problem. When I ask it to turn on the AC it turns it on in heat mode. Is there any way to solve this? I have tried to make a routine but it doesn't give me the option to choose the mode.
This error should be fixed in the 0.0.1-alfa.2
A star is welcome if you like the work :)
from ha-switchbot-remote.
Perfetto!!
In closing the issue now.
Share the integration 😁
from ha-switchbot-remote.
Hi, I have two HUB 2 and a Hub mini, and I confirm that they are not detected by the bluetooth integration. Currently they can only be used via matter or api.
from ha-switchbot-remote.
You can do it via official switchbot integration.
from ha-switchbot-remote.
You can do it via official switchbot integration.
With the official integration I can’t detect IR configured devices.
from ha-switchbot-remote.
Temperature sensor is not IR device
from ha-switchbot-remote.
I'm sorry I didn't make myself clear. When the device is displayed in Homekit, the temperature of the climate control sensor is displayed and the temperature assigned to the climate control is displayed as the target temperature. This current temperature is shown with a value of 21 degrees, would it be possible to have this value linked to a sensor in this room?
from ha-switchbot-remote.
from ha-switchbot-remote.
Oh, yes, sure. It's scheduled to implement in future release. I'm quite busy in this period but I know how to implement so it will come soon
from ha-switchbot-remote.
Ok, thanks you!!
Is it also planned to refresh the current status of the device? I mean, for example, when I control the air conditioning from alexa (via Skill Switchbot), with this integration the wrong state remains.
from ha-switchbot-remote.
Unfortunately switchbot does not expose apis for this. I know the app can get the status but I don't know how it does.
It need reverse engineering on the app
from ha-switchbot-remote.
All right, I'll keep an eye on the next versions, thanks for your effort.
from ha-switchbot-remote.
I find your integration great and worked perfectly for me.
We pressure Switchbot to make available the query via API 1.1 to get the status of the air conditioner.
Now the big problem is that if the AC is turned on by GH or Alexa or the Switchbot App Homeassistant can't have the status.
Really Thanks
from ha-switchbot-remote.
Yes I know. Do you already opened an issue on switchbot api GitHub?
Anyway, I linked HA to Alex and GH so if I use them to turn on the devices I can see the updates
from ha-switchbot-remote.
I am considering paying the nabu casa subscription to avoid this problem.
Anyway, I have seen another problem when restarting home assistant it doesn't remember the previous state of the device, would it be possible to save it in some variable that is loaded when starting the addon?
from ha-switchbot-remote.
You can use haska for Alexa integration. There are a lot of guides.
Anyway, idk about the last state check. HA has a db I'll try to understand how it work
Hi, I have managed to configure haaska but I have a problem. When I ask it to turn on the AC it turns it on in heat mode. Is there any way to solve this? I have tried to make a routine but it doesn't give me the option to choose the mode.
from ha-switchbot-remote.
@ASX9 With the release 0.1.0 after you've configured the integration, you can configure your devices (for now just the air conditioner) and adding two sensors, one for humidity and one for temperature.
Let me know
from ha-switchbot-remote.
I have updated and on the one hand, the previous status is maintained without any problem but the current temperature and humidity sensors are still not displayed in Homekit. I don't know how I can see if the entities have been linked correctly.
from ha-switchbot-remote.
@ASX9 can you see them on HA?
from ha-switchbot-remote.
Is it possible that the entity has been entered incorrectly? I have entered this:
sensor.habitacion_medidor_temperatura
from ha-switchbot-remote.
Mmm. It should be fine in this way. If you check the logs do you see any error from switchbotremote?
from ha-switchbot-remote.
This is the log:
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:701
First occurred: 17:32:17 (3 occurrences)
Last logged: 17:32:17
Entity climate.aire_dormitorio (<class 'custom_components.switchbotremote.climate.SwitchBotRemoteClimate'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please report it to the custom integration author.
Entity climate.aire_habitacion (<class 'custom_components.switchbotremote.climate.SwitchBotRemoteClimate'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please report it to the custom integration author.
Entity climate.aire_salon (<class 'custom_components.switchbotremote.climate.SwitchBotRemoteClimate'>) is using self.async_update_ha_state(), without enabling force_update. Instead it should use self.async_write_ha_state(), please report it to the custom integration author.
from ha-switchbot-remote.
Another option, the name of discovered is not the same:
from ha-switchbot-remote.
state(),
This is just a warning there isn't error, so you should have been set the correct sensor.
I'll check locally asap.
I didn't get the second problem about name different
from ha-switchbot-remote.
Ok, I'm not at home right now, when I get home I'll delete the extension and try to discover the devices again.
from ha-switchbot-remote.
from ha-switchbot-remote.
@ASX9 still not understanding.
Anyway is not an issue. The device and the entity could have different name.
from ha-switchbot-remote.
@ASX9 are you sure you have installed the 0.1.0 because this afteroon I released 2 versions, one (0.0.1-beta.1) has the defect you are facing the 0.1.0 fix this issue
from ha-switchbot-remote.
I have this: 0.1.0-beta.1
from ha-switchbot-remote.
@ASX9 it's the wrong one. Download with hacs the 0.1.0
from ha-switchbot-remote.
Ok, I got this problem with that version:
from ha-switchbot-remote.
Ok, please share the logs
from ha-switchbot-remote.
Este error se originó a partir de una integración personalizada.
Logger: aiohttp.server
Source: custom_components/switchbotremote/config_flow.py:132
Integration: SwitchBot Remote IR
First occurred: 19:43:42 (1 occurrences)
Last logged: 19:43:42
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_protocol.py", line 433, in _handle_request
resp = await request_handler(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 85, in security_filter_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 100, in forwarded_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 80, in ban_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 236, in auth_middleware
return await handler(request)
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 148, in handle
result = await handler(request, **request.match_info)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 242, in post
return await super().post(request, flow_id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 72, in wrapper
result = await method(view, request, data, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 297, in async_configure
result = await self._async_handle_step(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 393, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/switchbotremote/config_flow.py", line 101, in async_step_init
return await self.async_step_edit_device()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/switchbotremote/config_flow.py", line 132, in async_step_edit_device
self.config_entry.data[remote.id]
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: '02-202307120239-80612249'
from ha-switchbot-remote.
@ASX9 OK, my bad. Please install the 0.1.1 just released
from ha-switchbot-remote.
Thanks you!!
from ha-switchbot-remote.
With API 1.1 I think you can easily add the temperature and humidity sensors of the new HUB 2 (matter version).
I leave below the configuration lines that allow the creation of sensors, they work for me in configuration.Yaml after correct authentication.
If these instructions were added in your integration it would be TOP!
In case if you don't have an Hub2 available, I can do the test
- resource: https://api.switch-bot.com/v1.1/devices/HUBDEVICEID/status
scan_interval: 300
headers:
Authorization: "{{ states('input_text.switchbot_token') }}"
sign: "{{ states('sensor.switchbot_sign') }}"
t: "{{ state_attr('sensor.switchbot_sign','t') }}"
Content-Type: "application/json"
nonce: ""
sensor:
- name: "SwitchBot Hub 2 Temperature"
unique_id: switchbot_hub_2_temperature
value_template: "{{ value_json.body.temperature }}"
unit_of_measurement: "°C"
device_class: temperature
- name: "SwitchBot Hub 2 Humidity"
unique_id: switchbot_hub_2_humidity
value_template: "{{ value_json.body.humidity }}"
unit_of_measurement: "%"
device_class: humidity
from ha-switchbot-remote.
@goodsale the official integration does not recognize it via bluethoot?
from ha-switchbot-remote.
I think not.
HUB 2 is a bluetooth hub but cannot be controlled via bluetooth.
To request the temperature or humidity from the HUB 2 you need a dongle matter or API 1.1
I created the sensor with these simple lines in configuration.yaml after successful authentication, if it was already managed by your integration it would be even better.
You can see below that I only get data from a switchbot temperature sensor connected to a HUB (via bluetooth) but not from HUB2 which is not picked up by the official integration in any way
from ha-switchbot-remote.
@goodsale I supposed was this the problem.
I can try to implement this. Please could you open a new issue here so I can plan the implementation?
I have not the Hub2 so i'll ask you for tests.
Italiano eh? Anche io ;)
from ha-switchbot-remote.
opend... #7
Certo! Italiano! 👍
from ha-switchbot-remote.
Related Issues (19)
- Please add Speaker and Lights as IR Devices HOT 29
- AC not turning off. HOT 9
- Seeing the Air con but not adding it. HOT 30
- Brand Icon HOT 4
- Cannot conifgure projector HOT 1
- Add topics to repository and prepare to plublic to defaults HACS repos HOT 6
- Use channel number for settop box HOT 3
- Error when executing Custom Button - "takes from 2 to 3 positional arguments but 4 were given" HOT 6
- Power status out of sync HOT 4
- Commands not working HOT 2
- No this command HOT 9
- Please add support for fan devices HOT 3
- Integration Issue When Adding Secret HOT 1
- Out of sync state with power sensor HOT 1
- Add option to customize Air Conditioner setting HOT 4
- Add information from HUB 2 - API 1.1 HOT 9
- Add binary sensor to entities to indicate device status HOT 3
- Please Add Support for Learned Devices HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-switchbot-remote.