thomasloven / hass-plejd

🔹 Plejd BLE integration for Home Assistant
81 stars 10 forks source link

error setup intergration #63

Closed arnoslag closed 1 month ago

arnoslag commented 1 month ago

it discoverd the plejd ble, i can login, shows my home and 15 devices. Then no devices are entities. running HA core 2024.5.1

Error log

2024-05-05 08:51:42.275 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry #### for plejd Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 575, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/plejd/init.py", line 31, in async_setup_entry await site.start() File "/config/custom_components/plejd/plejd_site.py", line 83, in start await self.manager.init(cached_site_data) File "/usr/local/lib/python3.12/site-packages/pyplejd/init.py", line 56, in init self.devices = self.cloud.devices ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyplejd/cloud/init.py", line 214, in devices PlejdDevice( File "/usr/local/lib/python3.12/site-packages/pyplejd/interface.py", line 48, in init super().init(**data) File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 341, in init raise validation_error pydantic.error_wrappers.ValidationError: 1 validation error for PlejdDevice outputType unexpected value; permitted: 'LIGHT', 'SENSOR', 'RELAY', 'MOTION', 'UNKNOWN' (type=value_error.const; given=COVERABLE; permitted=('LIGHT', 'SENSOR', 'RELAY', 'MOTION', 'UNKNOWN'))

oyvindwe commented 1 month ago

@arnoslag Which devices do you have?

I have submitted a possible fix to pyplejd. Are you able to test it?

arnoslag commented 1 month ago

Sure i can test it

I got these plejd devices REL-01-2P WRT-01 DIMM-02 WPH-01 DWN-01 REL-02 LED-75 JAL-01 ( a puck to control and manage window blinds ) ID: 16 WIN-01 ( switch ) ID: 102 DIM-01 GWY-01

Op wo 8 mei 2024 om 00:22 schreef Øyvind Matheson Wergeland < @.***>:

@arnoslag https://github.com/arnoslag Which devices do you have?

I have submitted a possible fix to pyplejd. Are you able to test it?

— Reply to this email directly, view it on GitHub https://github.com/thomasloven/hass-plejd/issues/63#issuecomment-2099411779, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEK2RB6XHRZAPJMVNEPBWXTZBFH33AVCNFSM6AAAAABHHPKKBSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJZGQYTCNZXHE . You are receiving this because you were mentioned.Message ID: @.***>

thomasloven commented 1 month ago

It's likely the JAL-01 which is the problem. I assume you are a beta tester?

arnoslag commented 1 month ago

It is in beta right now the JAL-01

chris150890 commented 1 month ago

i've got the same promblem. i'm a new beta user for the plejd devices so this is the first one i installed.

dit installed two JAL-01.

this is my log:

Logger: homeassistant.config_entries Source: config_entries.py:444 First occurred: 14:32:04 (3 occurrences) Last logged: 14:55:12

Error setting up entry Thuis for plejd Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 444, in async_setup result = await component.async_setup_entry(hass, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/config/custom_components/plejd/init.py", line 31, in async_setup_entry await site.start() File "/config/custom_components/plejd/plejd_site.py", line 83, in start await self.manager.init(cached_site_data) File "/usr/local/lib/python3.12/site-packages/pyplejd/init.py", line 56, in init self.devices = self.cloud.devices ^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pyplejd/cloud/init.py", line 214, in devices PlejdDevice( File "/usr/local/lib/python3.12/site-packages/pyplejd/interface.py", line 48, in init super().init(**data) File "/usr/local/lib/python3.12/site-packages/pydantic/main.py", line 341, in init raise validation_error pydantic.error_wrappers.ValidationError: 1 validation error for PlejdDevice outputType unexpected value; permitted: 'LIGHT', 'SENSOR', 'RELAY', 'MOTION', 'UNKNOWN' (type=value_error.const; given=COVERABLE; permitted=('LIGHT', 'SENSOR', 'RELAY', 'MOTION', 'UNKNOWN'))

can you create a fix this ?

arnoslag commented 1 month ago

It's likely the JAL-01 which is the problem. I assume you are a beta tester?

Yes i'm beta tester. I did remove the Jal switch fro plejd app. and now i works