Closed patricknitsch closed 1 week ago
Hi,
it seems to me like these errors are coming from errors on Grohe Side whiche are not handled correctly within the integration. I've added some more error handling and a warning log if there is a status returned from GroheAPI but it shouldn't lead to any other errors/tracebacks in the log. Can you please give the new version a try. I also installed it on my end and will monitor also.
Hi,
thanks for your fast feedback. I installed it. I will check it the next days and give feedback. Thank you!
I just found two more issues with invalid data:
Those two should be fixed now in develop - branch and I'm going to merge them soon to the main branch.
I just pushed the changes already to main, so you should be able to test with the main branch.
Found these errors in logfile...
Logger: homeassistant.helpers.entity
Quelle: helpers/entity.py:942
Erstmals aufgetreten: 16:53:57 (1 Vorkommnisse)
Zuletzt protokolliert: 16:53:57
Update for valve.grohe_sense_guard_valve fails
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 942, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1300, in async_device_update
await self.async_update()
File "/config/custom_components/grohe_sense/entities/grohe_sense_guard_valve.py", line 57, in async_update
if command_response.command.valve_open is not None:
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'command'
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.grohe_sense.api.ondus_api
Quelle: custom_components/grohe_sense/api/ondus_api.py:204
Integration: Grohe Sense (Dokumentation, Probleme)
Erstmals aufgetreten: 16:53:57 (3 Vorkommnisse)
Zuletzt protokolliert: 17:53:58
URL https://idp2-apigw.cloud.grohe.com/v3/iot/locations/7180867/rooms/6361131/appliances/da9f8903-18a9-4e8c-bc95-d3da3266b7ad/command returned status code 401
URL https://idp2-apigw.cloud.grohe.com/v3/iot/locations/7180867/rooms/6398557/appliances/8f273505-6abd-41e7-b9fb-d35f206fd41f/data/aggregated?from=2024-08-30 returned status code 401
URL https://idp2-apigw.cloud.grohe.com/v3/iot/locations/7180867/rooms/6398557/appliances/8f273505-6abd-41e7-b9fb-d35f206fd41f/notifications returned status code 401
Hey, I also saw them within the logs. Im gonna commit a fix next week, as soon as I'm on my PC again.
Hi, no problem. That were the last issues in the log I saw the last days :)
@patricknitsch now all the warnings and errors should be fixed. Can you verify this.
Looks good until now. Now warnings or errors.
I'm gonna close the ticket then. If you find some other issues just create a new issue 😊
I will do. Thank you for your support.
Hey,
at first, thank you. Your integration works good!
In my logfile I get the following errors:
Logger: homeassistant.helpers.entity Quelle: helpers/entity.py:942 Erstmals aufgetreten: 27. August 2024 um 22:12:31 (7 Vorkommnisse) Zuletzt protokolliert: 08:18:35
As you see, the errors comes multiple times.
Maybe you now, what the problem is, and can help?