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

Unable to Load/Write from/to Device in Insteon integration page for battery devices and modems #71510

Closed
Ben94089 opened this issue May 8, 2022 · 9 comments · Fixed by #73791
Assignees

Comments

@Ben94089
Copy link

Ben94089 commented May 8, 2022

The problem

Untitled-1

Problem discovered while attempting to set Motion Sensor II to "Night only mode" to true on the Insteon integration page, under Properties. The problem only seems to be with the Motion Sensor II devices, there are three Motion Sensors II in the system, unable to Load/Write to any. Load/Write works to other Insteon device types: dimmer switch, outlets.

What version of Home Assistant Core has the issue?

2022.5.2

What was the last working version of Home Assistant Core?

none

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Insteon

Link to integration documentation on our website

https://www.home-assistant.io/integrations/insteon/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
2022-05-07 21:03:05 WARNING (SyncWorker_6) [root] Waiting for authorization...
2022-05-07 21:03:05 WARNING (SyncWorker_8) [root] Waiting for authorization...
2022-05-07 21:03:26 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548235660208] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/insteon/api/properties.py", line 247, in websocket_load_properties
    result, _ = await device.async_read_config(read_aldb=False)
TypeError: cannot unpack non-iterable ResponseStatus object
2022-05-07 21:03:36 WARNING (SyncWorker_5) [root] Waiting for authorization...
2022-05-07 21:04:00 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548235660208] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/insteon/api/properties.py", line 247, in websocket_load_properties
    result, _ = await device.async_read_config(read_aldb=False)
TypeError: cannot unpack non-iterable ResponseStatus object
2022-05-07 21:04:29 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548235660208] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/insteon/api/properties.py", line 247, in websocket_load_properties
    result, _ = await device.async_read_config(read_aldb=False)
TypeError: cannot unpack non-iterable ResponseStatus object
2022-05-07 21:10:32 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548329140080] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/insteon/api/properties.py", line 247, in websocket_load_properties
    result, _ = await device.async_read_config(read_aldb=False)
TypeError: cannot unpack non-iterable ResponseStatus object
2022-05-07 21:15:49 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [548329140080] Error handling message: Unknown error (unknown_error)
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 27, in _handle_async_response
    await func(hass, connection, msg)
  File "/usr/src/homeassistant/homeassistant/components/insteon/api/properties.py", line 247, in websocket_load_properties
    result, _ = await device.async_read_config(read_aldb=False)
TypeError: cannot unpack non-iterable ResponseStatus object

Additional information

No response

@probot-home-assistant
Copy link

insteon documentation
insteon source
(message by IssueLinks)

@probot-home-assistant
Copy link

Hey there @teharris1, mind taking a look at this issue as it has been labeled with an integration (insteon) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)

@Ben94089
Copy link
Author

Ben94089 commented May 8, 2022

Forgot to mention the system is using a Insteon 2245-222 hub with Home Assistant running on a Raspberry Pi 4.

@teharris1
Copy link
Contributor

I looked at the code and this issue is effecting all battery-powered devices and modems. The data does load but the UI says there is an error.

@teharris1 teharris1 changed the title Unable to Load/Write from/to Device in Insteon integration page for Motion Sensor II Unable to Load/Write from/to Device in Insteon integration page for battery devices and modems May 9, 2022
@Ben94089
Copy link
Author

Ben94089 commented May 9, 2022

I tried it, again, it does appear the state changes but after leaving the Insteon page and returning, the state returns to original setting, it doesn't look like the data gets written to the device; the lights continue to turn on during daylight. Something odd did happen, now the lights do not timeout as before, they remain on until manually turned off, Motion timeout value shows 60.

@Airey001
Copy link

I didn’t see this so thought I would ask. Are you putting the device in linking mode first? All battery devices have always had to be manually put into linking mode before attempting to update them via 3rd party integrations? The HomeSeer plug in warns you of this when attempting a change on any battery device.

@Ben94089
Copy link
Author

I tried the linking mode and it didn't make any difference, thanks.

@Ben94089
Copy link
Author

I believe one problem, might be, the settings are different between the Insteon Motion Sensor (2842-292) and Insteon Motion Sensor II (2844-222), the above screenshot shows the incorrect settings for the Motion Sensor II. Please see...

https://forums.homeseer.com/forum/lighting-primary-technology-plug-ins/lighting-primary-technology-discussion/insteon-mnsandler/100398-new-insteon-motion-sensor-ii-beta-support-available-in-the-updater/page5

@AdgRichard
Copy link

I just wanted to pipe in that I am having the exact same issue. It only affects the motion sensor whose parameter I attempted to adjust via the new INSTEON tab.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants