jfarmer08 / ha-sengledapi

Home Assistant Integration for Sengled Bulbs. This is a custom component to allow control of Sengled Bulbs in Homeassistant using the unofficial Sengled API. Please note this mimics the Sengled app and therefore Sengled may cut off access at anytime.
Apache License 2.0
104 stars 34 forks source link

Sengled bulb integration #72

Closed tascotim closed 2 years ago

tascotim commented 2 years ago

I have downloaded the Sengled bulb integration into HACS Integrations. It shows up there but not when I go back to integrations to add it.

jfarmer08 commented 2 years ago

You have to add the following to your config manually. https://github.com/jfarmer08/ha-sengledapi/issues/54 sengledapi: username: <email for sengled> password: <password for sengled> country: <country> wifi: true

YaKillaCJ commented 2 years ago

First off, thank you for the hardwork. Maybe I am missing something but Im having same issue. Can you make it Dummy proof in the Readme. I have added it via HACS, restarted. Opened HA settings, Add-ons, File editor, Open Web Ui > Browse Filesystem, custom_components, sengledapi > const.py I assume this the correct file. I then deleted everything. Used this exact layout and spacing:

sengledapi: username: c@.com password: password country: us wifi: true

I assume Im supposed to remove the brackets <> and just type email and password. I used the copy button via gethub and edited in my username password. Thus its 5 lines of text and no space before line 1 and 2 spaces before the 4 bottom lines. Saved. Restarted. I get nothing under HA integration tab, nor does it come up in the list via + Add Integration. Understand Im trying to be as detailed as possible because its not working or maybe Im just doing it wrong.

Now Im not trying to be ungrateful or out of pocket but every other HACS integration Ive added so far show up in the Add Integration, then ya key in your login info. Another approach is perhaps add the details for dummys or a picture (screenshot) showing how it should look via the manual part but like using 123@email.com / dummypass. This way ya eliminate room for error and dummy proof it.

Edit: So I recognize I was supposed to add the 5 lines of code to the /config/configuration.yaml and I changed the const.py back. Things are working now. Bulbs are showing up. Again thanx.

jfarmer08 commented 2 years ago

You should have changed the configuration.yaml and not the const.py file. This is a Homeassistant file.

tascotim commented 1 year ago

Thanks. I'm new and I'm not sure of the formatting required for the above in the configuration file.

Tim


From: jfarmer08 @.> Sent: Tuesday, May 24, 2022 10:08:33 AM To: jfarmer08/ha-sengledapi @.> Cc: tascotim @.>; Author @.> Subject: Re: [jfarmer08/ha-sengledapi] Sengled bulb integration (Issue #72)

You have to add the following to your config manually. sengledapi: username: password: country: wifi: true

— Reply to this email directly, view it on GitHubhttps://github.com/jfarmer08/ha-sengledapi/issues/72#issuecomment-1135978267, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AZI6UGHV4Q4TDY34RSD2KVDVLTPGDANCNFSM5WT2H6GQ. You are receiving this because you authored the thread.Message ID: @.***>