-
Notifications
You must be signed in to change notification settings - Fork 160
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
LG Thinq Range Hood Support #394
Comments
I'd like to request the same. Thanks! |
Please attach integration diagnostic |
Any update here? Could someone attach diagnostics? |
Here you go, thanks for looking at it @ollo69 |
in attached diagnostic I just see oven and dishwasher, no Range Hood. |
Strange, I have it visible in my LG app, I wonder why it wouldn't show up? I currently have my LG Dishwasher, Front Load Washer, Dryer, Oven and Refrigerator showing up in Homeassistant. The only thing that doesn't appear is my hood, if I re-add the integration it still does not show up at all. |
Hi @ollo69 , |
Additionally, I also have the hood showing in unsupported devices: |
I'm also interested in this feature request, thanks! Range Hood |
"HOOD": [ |
This request still in "requesting feedback" - is there anything else we could provide? |
Time for me 😉 |
You got it! :) |
@ALL, sorry for this but I wait to match time to work on this and the link in the attached files are expired, so I cannot download model info to implement this. |
config_entry-smartthinq_sensors.json.txt Here ya go, just downloaded this a few minutes ago |
Hood support is now available in last release. Honestly I have no idea if controls works, I don't have a Hood to test. Please report here your results. |
Any update here? |
Sorry for the long wait, I appreciate all your hard work on this. Since the update the integration shows the Range Hood as a device and lists a fan and light control which can be toggled on and off but unfortunately, it fails to turn on/off the Range Hood fan or light. A sensor for the hood is also shown but it remains "OFF" regardless of the range hood status. Let me what info you would need to look into this further. |
Does the light and fan controls follow the states of the Hood? It is only a problem related to the controls and reported states are correct? |
Home Assistant shows the correct options for the entity, but they do not
control the range hood. The state also does not show the current status of
the hood.
…On Thu, Nov 16, 2023, 7:52 AM ollo69 ***@***.***> wrote:
Does the light and fan controls follow the states of the Hood? It is only
a problem related to the controls and reported states are correct?
—
Reply to this email directly, view it on GitHub
<#394 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANWNB7HWMGWHKQTZY2FPYA3YEYEAHAVCNFSM6AAAAAARXXHKRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGM4DAOJXGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
In my case the states are reported properly but with a slight delay (20-30
seconds).
Controlling the hood doesn't work.
If I turn on the light in home assistant, it shows ON for 20-30 seconds
before the real state of the hood updates the home assistant switch back to
the off position.
Le jeu. 16 nov. 2023, à 07 h 55, matthai5 ***@***.***> a
écrit :
… Home Assistant shows the correct options for the entity, but they do not
control the range hood. The state also does not show the current status of
the hood.
On Thu, Nov 16, 2023, 7:52 AM ollo69 ***@***.***> wrote:
> Does the light and fan controls follow the states of the Hood? It is
only
> a problem related to the controls and reported states are correct?
>
> —
> Reply to this email directly, view it on GitHub
> <
#394 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ANWNB7HWMGWHKQTZY2FPYA3YEYEAHAVCNFSM6AAAAAARXXHKRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGM4DAOJXGI>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub
<#394 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMKZODGFUXXOTLSNO3D2LXLYEYEK3AVCNFSM6AAAAAARXXHKRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJUGM4DKMRRGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Delay is normal, this integration poll cloud every 30 seconds. |
Please check if with last release vent and lamp controls works. Thanks 👍 |
I just installed the latest version. With the new version, trying to
control the hood causes errors in the log.
The below log entry was added when I attempted to control the light:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:230
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 19:49:57 (2 occurrences)
Last logged: 19:49:58
[547146780608] 9006 - {'data': ''}
Traceback (most recent call last):
File
"/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py",
line 230, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in
async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in
_execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py",
line 235, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 876,
in entity_service_call
response_data = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948,
in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/__init__.py",
line 580, in async_handle_light_on_service
await light.async_turn_on(**filter_turn_on_params(light, params))
File "/config/custom_components/smartthinq_sensors/light.py", line 186,
in async_turn_on
await self.entity_description.set_effect_fn(self._api, effect)
File
"/config/custom_components/smartthinq_sensors/wideq/devices/hood.py", line
107, in set_light_mode
await self.set(CMD_SET_VENTLAMP, cmd, key=STATE_LAMPLEVEL, value=level)
File
"/config/custom_components/smartthinq_sensors/wideq/devices/hood.py", line
138, in set
await super().set(
File "/config/custom_components/smartthinq_sensors/wideq/device.py", line
550, in set
await self._set_control(full_key, ctrl_path=ctrl_path)
File "/config/custom_components/smartthinq_sensors/wideq/device.py", line
522, in _set_control
await self._client.session.device_v2_controls(
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py",
line 1193, in device_v2_controls
res = await self.post2(cmd_path, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py",
line 1030, in post2
return await self._auth.gateway.core.lgedm2_post(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py",
line 347, in lgedm2_post
return self._manage_lge_result(out, is_api_v2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py",
line 360, in _manage_lge_result
raise exc.APIError(message, code)
custom_components.smartthinq_sensors.wideq.core_exceptions.APIError: 9006 -
{'data': ''}
Trying to turn on the fan at 100% produces a similar log entry:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/commands.py:230
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 19:56:05 (1 occurrences)
Last logged: 19:56:05
[547146780608] 9006 - {'data': ''}
Traceback (most recent call last):
File
"/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py",
line 230, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 2035, in
async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2072, in
_execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py",
line 235, in handle_service
return await service.entity_service_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 876,
in entity_service_call
response_data = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 948,
in _handle_entity_call
result = await task
^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/fan.py", line 357, in
async_set_percentage
await self._wrapper.async_turn_on(speed=named_speed)
File "/config/custom_components/smartthinq_sensors/fan.py", line 253, in
async_turn_on
await self.async_set_speed(on_speed)
File "/config/custom_components/smartthinq_sensors/fan.py", line 234, in
async_set_speed
await self._description.set_fanspeed_fn(self._api, speed)
File
"/config/custom_components/smartthinq_sensors/wideq/devices/hood.py", line
132, in set_vent_speed
await self.set(CMD_SET_VENTLAMP, cmd, key=STATE_VENTLEVEL, value=level)
File
"/config/custom_components/smartthinq_sensors/wideq/devices/hood.py", line
138, in set
await super().set(
File "/config/custom_components/smartthinq_sensors/wideq/device.py", line
550, in set
await self._set_control(full_key, ctrl_path=ctrl_path)
File "/config/custom_components/smartthinq_sensors/wideq/device.py", line
522, in _set_control
await self._client.session.device_v2_controls(
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py",
line 1193, in device_v2_controls
res = await self.post2(cmd_path, payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py",
line 1030, in post2
return await self._auth.gateway.core.lgedm2_post(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py",
line 347, in lgedm2_post
return self._manage_lge_result(out, is_api_v2)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/smartthinq_sensors/wideq/core_async.py",
line 360, in _manage_lge_result
raise exc.APIError(message, code)
custom_components.smartthinq_sensors.wideq.core_exceptions.APIError: 9006 -
{'data': ''}
I hope this gives you something to work with.
I personally prefer failure with error messages over no error and no
results :-)
Le sam. 18 nov. 2023, à 22 h 59, ollo69 ***@***.***> a écrit :
… Please check if with last release vent and lamp controls works. Thanks 👍
—
Reply to this email directly, view it on GitHub
<#394 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMKZODCYWBFHAEJSV5OOO6LYFF735AVCNFSM6AAAAAARXXHKRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJXG4ZTONBUGI>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Honestly, no. |
I hope someone will be able to capture the information as well.
I really would like to help with that but I don't have the necessary
hardware to follow the August '23 recipe.
Le lun. 20 nov. 2023, à 07 h 41, ollo69 ***@***.***> a écrit :
… I hope this gives you something to work with.
Honestly, no.
Because the previous command do not return any errors, probably was more
correct that this one (but I suppose that something was missing)
But there are no change for me to guess the right command, the only
possible solution is to capture the command. I hope that someone here will
be able to follow the instruction in readme mentioned above and provide me
the info.
—
Reply to this email directly, view it on GitHub
<#394 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMKZODCYUE63Q2SOZKUBJ3TYFNFZLAVCNFSM6AAAAAARXXHKRGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJYHE4TIMJRHE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Any news here? If someone is available to share his LG account (via private e-mail) I could make some test in my env. |
@ollo69 I am happy to share my LG account if that would help. I too see all of the Range Hood controls but get a 'service call failed' error whenever I click on them. Let me know best way to get that over to you and thanks again for all the help !! |
thanks for your support. |
I successfully captured traffic using your account and LG app. I will work on this on next days when I will have some available time. If is not a problem for you, do not change your password account until I do not finish implementation so that I will be able to make some tests using integration. Thanks again for your support👍 |
Control for APIv1 is available in last release. I also rewrite control for APIv2 device, but I have no idea if this implementation works. Please test and report here results. |
@ollo69 sorry I'm not sure what I should do to test it --- i uninstalled from HACS and then tried reinstalling but I still get the same errors. Is there something else I should do to get the APIv2 working ? Thanks ! |
as I see your device is APIv1 so it should work with last release. Can you eventually share error logs? |
it works !!! I just updates your integration to the most recent version and now it controls the Hood Fan and Light. Simply awesome @ollo69 - we really appreciate your help here ! Case closed and coffee coming your way :) |
Good to know and thanks for coffee🎉. |
My LG HCED3015S uses APIv2--I can confirm this update does not work with v2. I have the detailed diagnostic log, python error log, and mitmproxy flows--I can send those direct to you. This is the payload to set hood state with POST method:
This is the partial response payload with relevant hood state for GET method
Observation on the ventTimer and remainTimeMinutes/Seconds Attributes
Lastly, I have 3 other LG devices using APIv2 if you need/want other traces:
|
@ollo69 -- changing content type from 22 to 34 made this integration work with APIv2 hood. ha-smartthinq-sensors/custom_components/smartthinq_sensors/wideq/devices/hood.py Lines 37 to 47 in a022531
|
I have an LG hood which was not working and making the change recommend by ollo69 fixed it for me. Thank you! |
Is your feature request related to a problem? Please describe.
Is it possible to support LG Range hoods? Link below.
https://www.lg.com/us/cooking-appliances/lg-hced3015s-range-hood#
Describe the solution you'd like
It would be great if I could import my range hood to automate fan/light control
Describe alternatives you've considered
N/A
Additional context
The text was updated successfully, but these errors were encountered: