see also https://github.com/danielperna84/hahomematic/issues/589
custom_component version (if applicable):
1.14.2
known last working custom_component version (if applicable):
1.14.2
Home Assistant version (if applicable):
2022.8.4
(supervised mode on debian in qemu-vm, raspberrymatic as addon (docker)
CCU version:
- Model HA-Addon:
- OS RaspberryMatic
- Version: 3.63.9.20220521
Problem-relevant configuration:
Do you use tls? no
Do you use callback? no
Do you use username and password? yes
Which interfaces do you use (hmip/bidcos/wired)? bidcos
Identifying Homematic RF-Hardware: ......HmRF: RPI-RF-MOD/[email protected], HmIP: RPI-RF-MOD/[email protected], OK
Updating Homematic RF-Hardware: RPI-RF-MOD: 4.4.22, not necessary, OK
Describe the bug
A clear and concise description of what the bug is.
After a crash, I had to re-.install the custom component via HACS. After that, all my HM devices are gone.
The old entities are still there, though.
To Reproduce
Steps to reproduce the behavior:
- delete custom component
- install custom component via HACS
- configure as before
- look for devices - all gone
**Relevant HA log entries (full log)**
Logger: hahomematic.central_unit
Source: runner.py:119
First occurred: 21:39:32 (220 occurrences)
Last logged: 22:07:03
check_connection: No clients exist. Trying to create clients for server RaspberryMatic
_create_clients: Interface: BidCos-RF is not available for backend.
_create_clients: Interface: VirtualDevices is not available for backend.
_create_clients: Interface: HmIP-RF is not available for backend.
Logger: hahomematic.json_rpc_client
Source: runner.py:119
First occurred: 21:39:32 (660 occurrences)
Last logged: 22:07:03
_do_login: Unable to open session: {'name': 'JSONRPCError', 'code': 501, 'message': 'invalid credentials or too many sessions'}
_post_script: Error while logging in via JSON-RPC.
_post: Error while logging in via JSON-RPC.
Logger: pyhomematic._hm
Source: components/homematic/entity.py:269
First occurred: 21:39:31 (56 occurrences)
Last logged: 22:07:01
ServerThread.jsonRpcLogin: Unable to open session.
Logger: homeassistant.components.climate
Source: components/homematic/climate.py:71
Integration: Klima (documentation, issues)
First occurred: 21:39:32 (2 occurrences)
Last logged: 21:39:32
Error adding entities for domain climate with platform homematic
Error while setting up homematic platform for climate
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 673, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 776, in add_to_platform_finish
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
if (state := self.state) is None:
File "/usr/src/homeassistant/homeassistant/components/climate/**init**.py", line 217, in state
if self.hvac_mode is None:
File "/usr/src/homeassistant/homeassistant/components/homematic/climate.py", line 71, in hvac_mode
if self.target_temperature <= self._hmdevice.OFF_VALUE + 0.5:
TypeError: '<=' not supported between instances of 'str' and 'float'
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: hahomematic.central_unit
Source: custom_components/homematicip_local/control_unit.py:109
Integration: Homematic(IP) Local (documentation, issues)
First occurred: 21:39:29 (3 occurrences)
Last logged: 21:39:32
_create_clients: Interface: BidCos-RF is not available for backend.
_create_clients: Interface: VirtualDevices is not available for backend.
_create_clients: Interface: HmIP-RF is not available for backend.
Logger: pyhomematic._hm
Source: /usr/local/lib/python3.10/site-packages/pyhomematic/_hm.py:429
First occurred: 21:39:21 (3 occurrences)
Last logged: 21:39:22
RPCFunctions.addDeviceNames: Unable to open session.
Diagnostic Information (available on every device)
{
"home_assistant": {
"installation_type": "Home Assistant Supervised",
"version": "2022.8.4",
"dev": false,
"hassio": true,
"virtualenv": false,
"python_version": "3.10.5",
"docker": true,
"arch": "x86_64",
"timezone": "Europe/Berlin",
"os_name": "Linux",
"os_version": "5.10.0-16-amd64",
"supervisor": "2022.08.3",
"host_os": "Debian GNU/Linux 11 (bullseye)",
"docker_version": "20.10.17",
"chassis": "vm",
"run_as_root": true
},
"custom_components": {
"hacs": {
"version": "1.26.2",
"requirements": [
"aiogithubapi>=22.2.4"
]
},
"climate_group": {
"version": "0.4.2",
"requirements": []
},
"holidays": {
"version": "1.8.0",
"requirements": [
"python-dateutil>=2.8.2",
"holidays>=0.14.2"
]
},
"openwrt": {
"version": "0.0.1",
"requirements": []
},
"homematicip_local": {
"version": "1.14.2",
"requirements": [
"hahomematic==2022.8.7"
]
},
"truenas": {
"version": "1.0.1",
"requirements": []
},
"nodered": {
"version": "1.0.9",
"requirements": []
},
"ai_thermostat": {
"version": "0.9.3",
"requirements": []
},
"browser_mod": {
"version": "1.5.3",
"requirements": []
},
"better_thermostat": {
"version": "1.0.0-beta14",
"requirements": []
},
"ferienapidotde": {
"version": "0.2.3",
"requirements": [
"ferien-api==0.3.6"
]
},
"climate_scheduler": {
"version": "0.1.0",
"requirements": []
},
"webrtc": {
"version": "v2.3.1",
"requirements": []
},
"gismeteo": {
"version": "2.5.0",
"requirements": []
},
"frigate": {
"version": "2.3",
"requirements": []
},
"zha_toolkit": {
"version": "v0.8.11",
"requirements": []
},
"reversotts": {
"version": "1.0.2",
"requirements": [
"pyttsreverso==0.4"
]
},
"picotts_remote": {
"version": "1.0.1",
"requirements": []
},
"scheduler": {
"version": "v0.0.0",
"requirements": []
},
"dwd_weather": {
"version": "1.2.22",
"requirements": [
"simple_dwd_weatherforecast==1.1.5",
"markdownify==0.6.5"
]
},
"shelly": {
"version": "1.0.1",
"requirements": [
"pyShelly==1.0.2",
"paho-mqtt==1.6.1",
"websocket-client"
]
},
"opnsense": {
"version": "0.1.0",
"requirements": [
"mac-vendor-lookup>=0.1.11"
]
},
"dwains_dashboard": {
"version": "3.2.0",
"requirements": []
}
},
"integration_manifest": {
"domain": "homematicip_local",
"name": "Homematic(IP) Local",
"config_flow": true,
"documentation": "https://github.com/danielperna84/custom_homematic",
"issue_tracker": "https://github.com/danielperna84/hahomematic/issues",
"requirements": [
"hahomematic==2022.8.7"
],
"ssdp": [
{
"manufacturer": "EQ3",
"manufacturerURL": "http://www.homematic.com"
}
],
"zeroconf": [],
"homekit": {},
"dependencies": [],
"codeowners": [
"@danielperna84",
"@SukramJ"
],
"iot_class": "local_push",
"loggers": [
"hahomematic"
],
"version": "1.14.2",
"is_built_in": false
},
"data": {
"config": {
"entry_id": "b5165bd08fa134951e7e41c00d77edbf",
"version": 1,
"domain": "homematicip_local",
"title": "RaspberryMatic",
"data": {
"instance_name": "RaspberryMatic",
"host": "de838cd8-raspberrymatic",
"username": "**REDACTED**",
"password": "**REDACTED**",
"tls": false,
"verify_tls": false,
"callback_host": null,
"callback_port": null,
"json_port": null,
"interface": {
"HmIP-RF": {
"port": 2010
},
"BidCos-RF": {
"port": 2001
},
"VirtualDevices": {
"port": 9292,
"path": "/groups"
}
}
},
"options": {},
"pref_disable_new_entities": false,
"pref_disable_polling": false,
"source": "user",
"unique_id": "unknown",
"disabled_by": null
},
"platform_stats": {},
"devices": []
}
}
Expected behavior
Re-populate all devices and entities from RaspberryMatic after re-install of the custom component.
Additional context
Add any other context about the problem here.
why is there a “too many sessions” error in the log?
can I do anything about that???