home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.11k stars 29.79k forks source link

Meater integration is aggresive in the HA log when the device is in its normal condition - in a closet #105234

Open KennethLavrsen opened 9 months ago

KennethLavrsen commented 9 months ago

The problem

A Meater probe is something you only use rarely and have in a drawer or closet the rest of the time.

This means that the normal situation is that HA cannot connect to it.

The way the integration works now it spits out some aggresive error messages. It would be nice if the integration can find a better way to report that the device is not available than putting a long series of error messages in the log

What version of Home Assistant Core has the issue?

core-2023.12.0

What was the last working version of Home Assistant Core?

never

What type of installation are you running?

Home Assistant OS

Integration causing the issue

No response

Link to integration documentation on our website

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

Diagnostics information

This is the noise the integration makes because I do not cook a steak with the Meater problem.

2023-12-07 02:05:27.355 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:05:58.350 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:08:02.317 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:08:33.334 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:18:22.335 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:26:07.331 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:38:00.461 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:38:31.345 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:44:12.331 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:45:09.565 WARNING (Thread-7) [pychromecast.socket_client] [Hallway Speaker(192.168.1.74):8009] Heartbeat timeout, resetting connection
2023-12-07 02:45:27.142 ERROR (Thread-7) [pychromecast.socket_client] [Hallway Speaker(192.168.1.74):8009] Failed to connect to service ServiceInfo(type='host', data=('192.168.1.74', 8009)), retrying in 5.0s
2023-12-07 02:48:51.829 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 02:57:38.334 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater
2023-12-07 03:02:48.470 ERROR (MainThread) [homeassistant.components.meater] Unexpected error fetching meater_api data: Error connecting to Meater
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 300, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 256, in _async_update_data
return await self.update_method()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/meater/__init__.py", line 53, in async_update_data
devices: list[MeaterProbe] = await meater_api.get_all_devices()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 12, in get_all_devices
device_states = await self.__get_raw_state_all()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/meater/MeaterApi.py", line 43, in __get_raw_state_all
raise Exception('Error connecting to Meater')
Exception: Error connecting to Meater

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 9 months ago

Hey there @sotolotl, @emontnemery, mind taking a look at this issue as it has been labeled with an integration (meater) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `meater` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign meater` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


meater documentation meater source (message by IssueLinks)

kwkid commented 9 months ago

Could not agree more with this. As a workaround I implemented this in configuration.yaml which only log fatal errors

logger: default: error logs: homeassistant.components.meater: fatal

issue-triage-workflows[bot] commented 6 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

KennethLavrsen commented 6 months ago

Ping the bot

issue-triage-workflows[bot] commented 3 months ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

KennethLavrsen commented 3 months ago

The worst thing is. I really get the feeling that noone cares

issue-triage-workflows[bot] commented 5 days ago

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment πŸ‘ This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.