pyvesync icon indicating copy to clipboard operation
pyvesync copied to clipboard

Correct steps sequence for Home assistant installing

Open fedecampeis opened this issue 3 years ago • 5 comments

Good evening, i'd like to learn the correct steps to install in custom components this library, because some parameters are unvailable to manage in home assistant (i.e. fan speed change).

Could you help me for this issue?

Thanks a lot

fedecampeis avatar Dec 24 '22 18:12 fedecampeis

Having the same issue with my Core 200s air purifier series. Can turn the fan on and off(which always turns on at medium speed irrespective of the previous speed). No parameters to adjust the speed

Mithul avatar Dec 27 '22 16:12 Mithul

Does the pyvesync library work properly when testing outside of HA?

webdjoe avatar Jan 28 '23 01:01 webdjoe

Good mornig Joe, thanks for your answer. I don't have tried to use the library out of HA. My issue is to access to fan speed levels for levoit core 300 s integration, because I'd like to use it in Node Red flows. Could you help me to do this with your instructions?

Thank in advice.

Best regards

Federico

fedecampeis avatar Jan 29 '23 11:01 fedecampeis

I just want to add a comment here to help claryfing that the python library and the homeassistant component are two distinct things. The homeassistant component needs to be written, using the library as a tool to execute the commands.

So, that means, the stage of development of each are not in sync. The python lybary may have support to a device already implemented. While the homeassistant component may not. or may be implemented it wrong.

If the library here already has correct support for it (that is why Joe's question) the next step would be to develop the HA component with a PR on homeassistant/core

The official component in HA has a dependency requirement that loads this library out of pypi. A custom_component would only change the HA component code, and still load the same python library package. If you want to override that, you need to change the integration manifest file in the custom component folder, as well the all_requirements file in the root folder of ha (actual root foolder, not the config folder) that means ssh into it, or getting into the docker container if it's the case.

sdrapha avatar Jan 29 '23 16:01 sdrapha

Hello Rapha, Thanks for your answer. I have inserted, in the custom component folder, a folder named vesync. I used the last version of the library 2.1.1 This component create in HA 8 entities, but are available to use only the measure of PM 2.5 , air quality, filter life and on-off purifier. The other entities (like fan speed) are unselectable. I tried to follow the instructions that i've found in this page: [image: immagine.png] It's the correct procedure? Thanks in advance. Best regards Federico

Il giorno dom 29 gen 2023 alle ore 17:08 Rapha @.***> ha scritto:

I just want to add a comment here to help claryfing that the python library and the homeassistant component are two distinct things. The homeassistant component needs to be written, using the library as a tool to execute the commands.

So, that means, the stage of development of each are not in sync. The python lybary may have support to a device already implemented. While the homeassistant component may not. or may be implemented it wrong.

If the library here already has correct support for it (that is why Joe's question) the next step would be to develop the HA component with a PR on homeassistant/core

The official component in HA has a dependency requirement that loads this library out of pypi. A custom_component would only change the HA component code, and still load the same python library package. If you want to override that, you need to change the integration manifest file in the custom component folder, as well the all_requirements file in the root folder of ha (actual root foolder, not the config folder) that means ssh into it, or getting into the docker container if it's the case.

— Reply to this email directly, view it on GitHub https://github.com/webdjoe/pyvesync/issues/171#issuecomment-1407703877, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANGAFK2XDLY3RPWCDUXZ45DWU2IZFANCNFSM6AAAAAATISERSA . You are receiving this because you authored the thread.Message ID: @.***>

fedecampeis avatar Jan 29 '23 16:01 fedecampeis