thorin8k / techlife_bulb

Techlife Bulb custom_component for Home Assistant
Apache License 2.0
7 stars 6 forks source link

Can't create integration #2

Open mabusdogma opened 2 years ago

mabusdogma commented 2 years ago

Hello, I'm trying to install the integration after install/copy the files in the custom_components folder, but no luck so far :(

First I have tried with HACS, adding https://github.com/thorin8k and then installing and rebooting, it creates a folder called techlife_bulb_control inside custom_components... but when i go to Configuration -- Integrations -- Add Integration nothing related to techlife appears, but i can see this in Logs: 2021-10-12 01:32:09 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration techlife_bulb_control which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

After this, I tried the old way: copying the files manually to custom_components folder. I made combinations in the name of the folder (techlife_bulb techlife_bulb_control and even just techlife.... but no integration can be found after rebooting.

Then I tried to copy directly on custom components, with some files outside techlife folder, directly on custom_components... nothing happens.

I'm pretty sure the anwser could be easy and dumb, but... can you please help me? What method did you use to install in order to get the integration? What am I doing wrong? Can I see the structure of folders? Maybe something else is wrong? I let you some images of the custom components right now, with some (failed) attemps.

Best regards, Salvador techlife all techlife 3 techlife 2 techlife 1 techlife

thorin8k commented 2 years ago

After putting the techlife_bulb folder in custom_components:

image

You have to edit your configuration.yaml file in the home assistant config folder adding the following:

light:
  - platform: techlife_bulb_control
    mac_address: "xx:xx:xx:xx" 
    name: "bedroom"
    broker_url: 0.0.0.0
    broker_username: username
    broker_password: password

Replacing the following values with your bulb's:

zion1987 commented 5 months ago

Без имени-1

Снимок экрана 2024-03-22 в 22 11 43 Снимок экрана 2024-03-22 в 22 14 07 Снимок экрана 2024-03-22 в 22 14 56 Снимок экрана 2024-03-22 в 22 15 20 Снимок экрана 2024-03-22 в 22 17 00

not work((( Please HELP!!!

thorin8k commented 5 months ago

Hey, i'm sorry but this integration is outdated.

I haven't work on this for a long time and it was just compatible with 2021 versions of Home Assistant, i think recent versions have broken its compatibility due to changes in the API.

Said that, the integration was a custom_component, it should not appear in the integration list from the screen, the only way to make it work was via the configuration files.

Maybe you have is other integration deployed?

Sorry i cannot help but i dont have this bulbs anymore in my home 😅