maxbec / hassio-diyHue

Fully configurable diyHue add-on for home-assistant.
30 stars 17 forks source link

All lights are recognized as "Smart Plug" #28

Open Jibbonator opened 2 years ago

Jibbonator commented 2 years ago

Hello I need Help,

every Lightsource i add is an "Hue smart plug" in my app. Are there any parameters i dont find on the github? I would like to dimm my lights and change the color.

Here´s my customize.yaml: I use the stable Branch

light.kueche_led_ufo_2: diyhue: include light.wled: diyhue: include

thanks in regard.

foxy82 commented 2 years ago

What type of light are they? Whether it is on/off, dimmable or colour is based on what Home Assistant thinks they are capable of.

Jibbonator commented 2 years ago

light.kueche_led_ufo_2 :It´s a Tasmota Light. i can make it on/off and dimm the light light.wled : is an WLED Led strip. On/off Color Dimming Presets etc

Jibbonator commented 2 years ago

Nobody has a clue?

foxy82 commented 2 years ago

This is the code that decided what type it is: https://github.com/diyhue/diyHue/blob/d386e072bec57decaf14c76ba53b2e4caf8fa4f1/BridgeEmulator/protocols/homeassistant_ws.py#L293

Either something in Home Assistant changed or these aren't reporting correctly

foxy82 commented 2 years ago

Looks like supported modes is deprecated in home assistant so needs a diyhue change. For now you can edit your config.json. Find the lights and set them as per details here,: https://github.com/diyhue/diyHue/blob/d386e072bec57decaf14c76ba53b2e4caf8fa4f1/BridgeEmulator/functions/__init__.py#L61

Jibbonator commented 2 years ago

thanks for the detailed answer.

I have one other idea. In homeassistant i can change Entitys and give them attributes. Are that the attributes DiYhue is looking for?

If not i will take your idea instead and change the lights manually in config.json

riskersen commented 2 years ago

I got the same exact issue. Some blubs, which I added months ago are recognized fine, but newer ones not. I checked developer tools and compared both entities and they look the same..

Any idea?