TheMicDiet / chihiros-led-control

Control your Chihiros LEDs with Home Assistant or CLI
MIT License
29 stars 9 forks source link

Command line issue? #51

Open toofewacres opened 1 day ago

toofewacres commented 1 day ago

Discussed in https://github.com/TheMicDiet/chihiros-led-control/discussions/50

Originally posted by **toofewacres** November 20, 2024 So far I have installed the Chihiros integration. I was able to add my 2 lights and they show up as lights. I really want to be able to control them thru HA as far as ramp up times, on off times ,etc. I see in the readme file the info about using the CLI. I tried following the info but had issues right of the bat when I tried to do the "pip install -e ." command. Here's the screen info: venv) ➜ chihiros source venv/bin/activate (venv) ➜ chihiros pip install -e . Looking in indexes: https://pypi.org/simple, https://wheels.home-assistant.io/musllinux-index/ Obtaining file:///homeassistant/custom_components/chihiros ERROR: file:///homeassistant/custom_components/chihiros does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found. What directory should I be trying to run this in? I've tried at several directories, but get the same error. I've tried searching for the "setup.py" file, but don't find it anywhere. I'm green at the CLI side (actually linux as well) and can follow directions, but when things don't work, I'm kind of lost. Any help would be great. I'm running OS Version: Home Assistant OS 13.2 Home Assistant Core: 2024.11.2 with ➜ ~ python Python 3.12.3 (main, Aug 23 2024, 06:10:48) [GCC 13.2.1 20240309] on linux
TheMicDiet commented 1 day ago

You should be able to run "pip install" in the root dir of this repository. To turn the lights on and off automatically you can use Home Assistant Automations.

toofewacres commented 20 hours ago

1st of all, thank you for pulling this all together. Chihiro's' WIFI hub is the pits. I had 2 of them over about a year and they just quit working. Plus their app is not the easiest to deal with either.

I have just about every other aspect of of my tank monitoried or controlled thru HA and my lights were the missing part..

Adding a bluetooth proxy with an ESP32 and ESPhome is very simple and works great. Only about $10 costs too.

The functions for the lights work fine. On, Off, brightness adjustment. etc.

One thing is that my lights show up as using the "fallback" .

I have a WRGB Pro 120 it's id is DYWPR120 which is different than what is in your files. The fall back configuration works.

I laso have a z mini which shows up as DYZSD (which I thing is what you are referring to as the terrarium light) It only has 2 channels to control.

I also tried again with the command line. There seems to be something not working when pip is trying to install. Must be that HA doesn't have all of the proper python files in their distribution. I'll do some digging and see if I can sort it out..

The only reason I was thinking I want to be able to use the CLI is for setting scheules and ramp up times. I know I can go the route thru writing some automations scripts and accomplish the same thing so if I can't figure it out thru CLI, I'll go that route.

Thank you again.

On 2024-11-21 01:04, Michael Dietrich wrote:

You should be able to run "pip install" in the root dir of this repository. To turn the lights on and off automatically you can use Home Assistant Automations.

-- Reply to this email directly, view it on GitHub [1], or unsubscribe [2]. You are receiving this because you authored the thread.Message ID: @.***>

Links:

[1] https://github.com/TheMicDiet/chihiros-led-control/issues/51#issuecomment-2490150097 [2] https://github.com/notifications/unsubscribe-auth/ABTQPB3IM7MQYNQGMMAKFML2BVZXNAVCNFSM6AAAAABSFYHBMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJQGE2TAMBZG4