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

Error in HA #32

Closed
Jym4632 opened this issue Sep 19, 2022 · 4 comments
Closed

Error in HA #32

Jym4632 opened this issue Sep 19, 2022 · 4 comments

Comments

@Jym4632
Copy link

Jym4632 commented Sep 19, 2022

Dear,

i have this error every 30 second.

Where is the problem?

Thanks

2022-09-19 19:32:07.127 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 151, in _handle_refresh_interval
    await self._async_refresh(log_failures=True, scheduled=True)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 283, in _async_refresh
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 348, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 533, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 571, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 539, in _stringify_state
    if (state := self.state) is None:
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 970, in state
    if (is_on := self.is_on) is None:
  File "/config/custom_components/ipx800v4/switch.py", line 68, in is_on
    return self.coordinator.data[f"R{self._id}"] == 1
KeyError: 'R1'
@Aohzan
Copy link
Owner

Aohzan commented Sep 19, 2022

The IPX800 doesn't send the states information to HA
did you do an update of the IPX800 ?

@Jym4632
Copy link
Author

Jym4632 commented Sep 19, 2022

Firmware Version 4.04.06

@Aohzan
Copy link
Owner

Aohzan commented Sep 19, 2022

It's an old version but this is not the problem.
If you reboot the IPX do you still have the error ? Same for HA ?

@Jym4632
Copy link
Author

Jym4632 commented Sep 19, 2022

updated to 4.04.12, rebooted, and fixed.

Thank you very much

@Jym4632 Jym4632 closed this as completed Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants