Closed smmoroz closed 8 months ago
Please updated to the latest beta release of the component and try again, I made the mentioned field optional.
@signalkraft thank you for your quick response! I have just installed 0.8.0b4
and it works (at least partially). I now have 10 devices and 30 entities.
But I still have a lot of these warninings:
2024-03-21 11:01:02.280 DEBUG (MainThread) [myPyllant.models] Creating related models from state: <SKIPPED>
2024-03-21 10:57:50.238 WARNING (MainThread) [myPyllant.models] Error when merging properties
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/myPyllant/models.py", line 882, in merge_object
properties = next(
^^^^^
StopIteration
ambiSense still doesn't work. I can see ambiSense devices, but they have no entities. You can find the output of 'GET', url=URL('https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/api/v1/ambisense/facilities/XXX/rooms')
below. So, all info to create climate entities are available. I assume they are not created because of this:
2024-03-21 10:57:53.462 ERROR (MainThread) [homeassistant.components.climate] Error adding entities for domain climate with platform mypyllant
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 664, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 276, in capability_attributes
supported_features = self.supported_features
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mypyllant/climate.py", line 487, in supported_features
| ClimateEntityFeature.TURN_OFF
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/enum.py", line 784, in __getattr__
raise AttributeError(name) from None
AttributeError: TURN_OFF
2024-03-21 10:57:53.489 ERROR (MainThread) [homeassistant.components.climate] Error adding entities for domain climate with platform mypyllant
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 664, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 276, in capability_attributes
supported_features = self.supported_features
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mypyllant/climate.py", line 798, in supported_features
| ClimateEntityFeature.TURN_OFF
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/enum.py", line 784, in __getattr__
raise AttributeError(name) from None
AttributeError: TURN_OFF
2024-03-21 10:57:53.508 ERROR (MainThread) [homeassistant.components.climate] Error while setting up mypyllant platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 369, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 664, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 276, in capability_attributes
supported_features = self.supported_features
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mypyllant/climate.py", line 487, in supported_features
| ClimateEntityFeature.TURN_OFF
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/enum.py", line 784, in __getattr__
raise AttributeError(name) from None
AttributeError: TURN_OFF
ambiSense info
[
{
"roomIndex": 0,
"roomConfiguration": {
"name": "Прихожая",
"temperatureSetpoint": 22,
"operationMode": "auto",
"currentTemperature": 24.5,
"currentHumidity": null,
"buttonLock": null,
"windowState": false,
"devices": [
{
"name": "Прихожая",
"sgtin": "XXX1",
"deviceType": "TRV",
"lowBat": false,
"unreach": false,
"rssi": -68,
"rssiPeer": -69
}
],
"iconId": "HOBBY_ROOM",
"quickVetoEndTime": null
},
"timeprogram": {
"monday": [],
"tuesday": [],
"wednesday": [],
"thursday": [],
"friday": [],
"saturday": [],
"sunday": []
}
},
{
"roomIndex": 3,
"roomConfiguration": {
"name": "Спальня",
"temperatureSetpoint": 19,
"operationMode": "auto",
"currentTemperature": 21.1,
"currentHumidity": null,
"buttonLock": null,
"windowState": false,
"devices": [
{
"name": "Спальня",
"sgtin": "XXX2",
"deviceType": "TRV",
"lowBat": false,
"unreach": false,
"rssi": -56,
"rssiPeer": -57
}
],
"iconId": "BEDROOM",
"quickVetoEndTime": null
},
"timeprogram": {
"monday": [],
"tuesday": [],
"wednesday": [],
"thursday": [],
"friday": [],
"saturday": [],
"sunday": []
}
},
{
"roomIndex": 1,
"roomConfiguration": {
"name": "Офис",
"temperatureSetpoint": 22,
"operationMode": "auto",
"currentTemperature": 24.4,
"currentHumidity": null,
"buttonLock": null,
"windowState": false,
"devices": [
{
"name": "Офис",
"sgtin": "XXX3",
"deviceType": "TRV",
"lowBat": false,
"unreach": false,
"rssi": -85,
"rssiPeer": -78
}
],
"iconId": "OFFICE",
"quickVetoEndTime": null
},
"timeprogram": {
"monday": [],
"tuesday": [],
"wednesday": [],
"thursday": [],
"friday": [],
"saturday": [],
"sunday": []
}
},
{
"roomIndex": 4,
"roomConfiguration": {
"name": "Детская",
"temperatureSetpoint": 19,
"operationMode": "auto",
"currentTemperature": 23,
"currentHumidity": null,
"buttonLock": null,
"windowState": false,
"devices": [
{
"name": "Детская",
"sgtin": "XXX4",
"deviceType": "TRV",
"lowBat": false,
"unreach": false,
"rssi": -73,
"rssiPeer": -83
}
],
"iconId": "CHILDREN_ROOM",
"quickVetoEndTime": null
},
"timeprogram": {
"monday": [],
"tuesday": [],
"wednesday": [],
"thursday": [],
"friday": [],
"saturday": [],
"sunday": []
}
},
{
"roomIndex": 2,
"roomConfiguration": {
"name": "Гостиная",
"temperatureSetpoint": 22,
"operationMode": "auto",
"currentTemperature": 24.1,
"currentHumidity": null,
"buttonLock": null,
"windowState": false,
"devices": [
{
"name": "Гостиная",
"sgtin": "XXX5",
"deviceType": "TRV",
"lowBat": false,
"unreach": false,
"rssi": -64,
"rssiPeer": -63
}
],
"iconId": "LIVING_ROOM",
"quickVetoEndTime": null
},
"timeprogram": {
"monday": [],
"tuesday": [],
"wednesday": [],
"thursday": [],
"friday": [],
"saturday": [],
"sunday": []
}
}
]
Please update to the latest pre-release, this issue sbould already be fixed.
Just tried v0.8.1
. I still have these two errors. BTW, I'm still running HA 2023.12.4
, maybe this is important.
Logger: homeassistant.components.climate
Source: helpers/entity_platform.py:509
Integration: Climate (documentation, issues)
First occurred: 12:25:25 (2 occurrences)
Last logged: 12:25:25
Error adding entities for domain climate with platform mypyllant
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 509, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 664, in _async_add_entity
capabilities=entity.capability_attributes,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 276, in capability_attributes
supported_features = self.supported_features
^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/mypyllant/climate.py", line 487, in supported_features
| ClimateEntityFeature.TURN_OFF
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/enum.py", line 784, in __getattr__
raise AttributeError(name) from None
AttributeError: TURN_OFF
and
Logger: myPyllant.models
Source: /usr/local/lib/python3.11/site-packages/myPyllant/models.py:886
First occurred: 12:25:24 (8 occurrences)
Last logged: 12:31:52
Error when merging properties
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/myPyllant/models.py", line 882, in merge_object
properties = next(
^^^^^
StopIteration
You need at least 2024.2
Thank you so much! I can finally see Climate entities for ambisense devices, although there is are no Calendars for them. But I will report this in a separate issue.
What about these errors? Should i ignore them?
Logger: myPyllant.models
Source: /usr/local/lib/python3.12/site-packages/myPyllant/models.py:886
First occurred: 18:42:59 (21 occurrences)
Last logged: 19:00:47
Error when merging properties
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/myPyllant/models.py", line 882, in merge_object
properties = next(
^^^^^
StopIteration
Other than that, you can close the issue.
That's just a warning, most likely because your setup doesn't return additional properties. You can ignore it and I'll make it a debug log in the next release.
Before submitting a new issue
Problem description
I have recently migrated to
myPyllant
frommultimatic
integration. BTW,multimatic
worked fine. Here is my setup (see details in logs below)I'm running HA version is
2023.12.4
and myPyllantv0.8.0b2
During setup of the integration of got the following error. As a result, I have no devices and entities in HA.
Logs
Here is the output of GET
'https://api.vaillant-group.com/service-connected-control/vrc700/v1/systems/XXX'
Here is the output of GET
https://api.vaillant-group.com/service-connected-control/end-user-app-api/v1/emf/v2/XXX/currentSystem'
Somewhere in between I got
Could not get RTS data
and
Could not get MPC data
Please let me know if you need any further information.