Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error setup intergration #63

Closed
arnoslag opened this issue May 5, 2024 · 6 comments · Fixed by thomasloven/pyplejd#5
Closed

error setup intergration #63

arnoslag opened this issue May 5, 2024 · 6 comments · Fixed by thomasloven/pyplejd#5

Comments

@arnoslag
Copy link

arnoslag commented May 5, 2024

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
Copy link
Contributor

oyvindwe commented May 7, 2024

@arnoslag Which devices do you have?

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

@arnoslag
Copy link
Author

arnoslag commented May 8, 2024 via email

@thomasloven
Copy link
Owner

thomasloven commented May 8, 2024

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

@arnoslag
Copy link
Author

arnoslag commented May 8, 2024

It is in beta right now the JAL-01

@chris150890
Copy link

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
Copy link
Author

arnoslag commented May 9, 2024

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

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants