It did reach the beta for 2021.10!
So, every time I for some reason have to re-install the integration I have to look up this post. It would be great if the āfixā (replace a bad host in the confirmation you get back with the server and api route to your actual installation) could be added to the dialog : )
I had to install it again and it didnāt work unless you change the response link like Markus Marbach mentioned. You can also replace it with the Nabucasa link when you are remote.
The api is also available for those who bought it in the Kickstarter program without $$$.
Harald
Version Home Assistant 2021.12.1
There are a couple of things that I have observed.
- The integration depends on that the external_url is configured. This would be nice to document and perhaps warn if not set.
- Removing the integration will not delete the webhook from api.minut.com which prevents reinstallation of the plugin using the same ha server url (the API only allows one hook per URL so the second attempt to create a webhook will fail).
- I have so many entities hanging around from previous incarnations of the integration so I guess that the cleanup is not perfect.
Also, the connection with the server seems to be shaky. The log will get errors like
Logger: homeassistant.util.logging
Source: util/logging.py:114
First occurred: 2:33:59 PM (100 occurrences)
Last logged: 2:42:59 PM
Exception in _update_callback when dispatching 'point_update': () Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback self._value = await self.device.sensor(self.device_class) File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor return await self._session.read_sensor(self.device_id, sensor_type) File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor self._device_state[device_id]["latest_sensor_values"][sensor_uri] KeyError: 'latest_sensor_values'
and the sensors will start the be increasingly unavailable until they go permanently dark. A restart of the HA server will reinitiate the behaviour.
The last issue should have been fixed in the last versionā¦
Hi there,
first thanks @fredrike for the integration
I installed HA recently and found out this integration, it was time to put back on the minut point I bought from the kickstarter many years ago ! Minut email support configured successfully the callback URL, and my point is integrated correctly, sensors and binary sensors are shown. Still I have 2 problems :
-
When I press the point, nothing happens, Button_press stays off
-
Errors are spamming my log every minute :
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
and also a one time
Logger: homeassistant.components.sensor
Source: components/point/sensor.py:104
Integration: Sensor (documentation, issues)
First occurred: 10:47:50 AM (1 occurrences)
Last logged: 10:47:50 AM
Error adding entities for domain sensor with platform point
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 800, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 279, in async_added_to_hass
await self._update_callback()
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
Iām running latest HA version supervised on Debian 11 (supported installation)
Any help would be appreciated
I will take a look but as you might see my time is extremely limited.
I got it, thanks if you can spend a little time on this Iām at your disposal for more tests or logs if necessary
It would be great if you could enable logging for pypoint (set level to NOTSET
). Iām unsure what happens here as my Points always returns "latest_sensor_values"
.
I added this to configuration.yaml :
logger:
default: warn
logs:
custom_components.ble_monitor: warn
pypoint: NOTSET
is it the right way to enable logging for pypoint ?
I updated my HA and enabled the integration again, here are the errors in the logs :
2022-04-13 14:18:54 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform point
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 798, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 279, in async_added_to_hass
await self._update_callback()
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:19:01 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 798, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 279, in async_added_to_hass
await self._update_callback()
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:19:54 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:19:54 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:20:54 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:20:54 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
this error comes twice every minute
Try this:
logs:
pypoint: notset
homeassistant.components.point: debug
httpx: debug
And check home-assistant.log
.
Here is my log, minus the non relevant info
2022-04-13 14:47:17 DEBUG (MainThread) [httpx._client] HTTP Request: POST https://api.minut.com/v5/oauth/token "HTTP/1.1 200 OK"
2022-04-13 14:47:17 DEBUG (MainThread) [homeassistant.components.point] Saving updated token {'access_token': 'replacedToken', 'refresh_token': 'replacedTOken', 'expires_in': 3600, 'user_id': 'replacedUserID', 'token_type': 'Bearer', 'expires_at': 1649857637}
2022-04-13 14:47:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/webhooks "HTTP/1.1 200 OK"
2022-04-13 14:47:18 DEBUG (MainThread) [httpx._client] HTTP Request: POST https://api.minut.com/v5/webhooks "HTTP/1.1 201 Created"
2022-04-13 14:47:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/devices "HTTP/1.1 200 OK"
2022-04-13 14:47:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/homes "HTTP/1.1 200 OK"
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Alarm
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Battery
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Button_press
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Cold
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Connectivity
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Dry
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Glass
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Heat
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Moisture
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Motion
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Noise
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Sound
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Tamper_old
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Tamper
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Temperature
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Temperature
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Humidity
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Humidity
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint MinutPoint Sound_level
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Sound_level
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Alarm
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Battery
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Button_press
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Cold
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Connectivity
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Dry
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Glass
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Heat
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Moisture
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Motion
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Noise
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Sound
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Tamper_old
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Tamper
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Temperature
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Temperature
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Humidity
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Humidity
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point] Created device MinutPoint pointSalon Sound_level
2022-04-13 14:47:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Sound_level
2022-04-13 14:47:18 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform point
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 798, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 279, in async_added_to_hass
await self._update_callback()
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:47:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/devices/5717de5b3003e8ed51ca972d/sound_level "HTTP/1.1 200 OK"
2022-04-13 14:47:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/devices/62261f5e1254aa3da0c10424/sound_level "HTTP/1.1 200 OK"
2022-04-13 14:47:26 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 382, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 614, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 798, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/point/__init__.py", line 279, in async_added_to_hass
await self._update_callback()
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:48:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/devices "HTTP/1.1 200 OK"
2022-04-13 14:48:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/homes "HTTP/1.1 200 OK"
2022-04-13 14:48:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Temperature
2022-04-13 14:48:18 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:48:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Humidity
2022-04-13 14:48:18 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:48:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Sound_level
2022-04-13 14:48:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Temperature
2022-04-13 14:48:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Humidity
2022-04-13 14:48:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Sound_level
2022-04-13 14:49:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Temperature
2022-04-13 14:49:18 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:49:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Humidity
2022-04-13 14:49:18 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:49:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Sound_level
2022-04-13 14:49:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Temperature
2022-04-13 14:49:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Humidity
2022-04-13 14:49:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Sound_level
2022-04-13 14:50:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/devices "HTTP/1.1 200 OK"
2022-04-13 14:50:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/homes "HTTP/1.1 200 OK"
2022-04-13 14:50:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Temperature
2022-04-13 14:50:18 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:50:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Humidity
2022-04-13 14:50:18 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
2022-04-13 14:50:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Sound_level
2022-04-13 14:50:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Temperature
2022-04-13 14:50:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Humidity
2022-04-13 14:50:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint pointSalon Sound_level
2022-04-13 14:51:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/devices "HTTP/1.1 200 OK"
2022-04-13 14:51:18 DEBUG (MainThread) [httpx._client] HTTP Request: GET https://api.minut.com/v5/homes "HTTP/1.1 200 OK"
2022-04-13 14:51:18 DEBUG (MainThread) [homeassistant.components.point.sensor] Update sensor value for MinutPoint MinutPoint Temperature
2022-04-13 14:51:18 ERROR (MainThread) [homeassistant.util.logging] Exception in _update_callback when dispatching 'point_update': ()
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/point/sensor.py", line 104, in _update_callback
self._value = await self.device.sensor(self.device_class)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 313, in sensor
return await self._session.read_sensor(self.device_id, sensor_type)
File "/usr/local/lib/python3.9/site-packages/pypoint/__init__.py", line 173, in read_sensor
self._device_state[device_id]["latest_sensor_values"][sensor_uri]
KeyError: 'latest_sensor_values'
Because you have one Home (where your point is located) and one Point .
Could you locate this file and remove the highlighted rows:
There is some problem with the if statement, but I would like to see what happens if you remove lines 171-177 firstā¦
Iād love to, but this is no easy task to find this file between all the containers. Could you give me info on where it is supposed to be ? Iāve got a debian supervised install.
Iām unsure exactly where pypoint/__init__.py
is locatedā¦
I might have some more time tomorrow but after that it is easter .
edit:
This is what I find in my dev environment:
(venv) (base) ~/Documents/github/home-assistant (point ā”) find . -iname pypoint
./venv/lib/python3.9/site-packages/pypoint
So you are should have a lib/python9.x/site-packages
folder somewhere.
Ok found it, it is located on the homeassistant container at this location
/usr/local/lib/python3.9/site-packages/pypoint
Commented out the lines and restarted HA, errors disappeared from the logs ! \o/
Tried to press the button on the point, but still no changes for the Button_press state and no traces in the logā¦
Thanks for spending your time on this issue !
Do you get sensor readings?
Hi @fredrike, hope you had a good Easter
Yes sensor readings are working correctly. For now the only problem I have is button_press not noticing when I press the button. The minut app notices it without problems.