Closed brianegge closed 3 years ago
Looks like a 0x21
is the same as a 0x41
It might just work if we add it to the database
https://github.com/Danielhiversen/flux_led/blob/master/flux_led/models_db.py#L174
Assuming you are using the dev branch here https://github.com/bdraco/flux_led_custom, I pushed the changes there
I ordered https://www.amazon.com/gp/product/B07J5B3R5L/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1 to validate this, but they look exactly the same as 0x41
so I'm 99% it will just work.
Usually we can use the same mapping for model as long as the second byte is the same: 0x*1
I picked up this update and it's working well in home-assistant. I've created a PR in HA (https://github.com/home-assistant/core/pull/57979) which will probably go nowhere.
@brianegge Are these devices bulbs ?
If so we should change the description to Smart Bulb Dimmable
https://github.com/Danielhiversen/flux_led/blob/0516c2e9931b00e693488f166a4d91303f5abec1/flux_led/models_db.py#L256
So we match up with the others
https://github.com/Danielhiversen/flux_led/blob/0516c2e9931b00e693488f166a4d91303f5abec1/flux_led/models_db.py#L286 https://github.com/Danielhiversen/flux_led/blob/0516c2e9931b00e693488f166a4d91303f5abec1/flux_led/models_db.py#L306 https://github.com/Danielhiversen/flux_led/blob/0516c2e9931b00e693488f166a4d91303f5abec1/flux_led/models_db.py#L326
Looks like they are according to the android app
FWIW, my model numbers are
AK001-ZJ2101
and AK001-ZJ2104
Thanks. Would you mind opening a PR to add those to the database as well?
Hi, I have a number of brightness only devices, such as these: https://smile.amazon.com/gp/product/B07J5B3R5L/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1
These present themselves in the webui as
and in the debug log
The problem is when I turn them on, the brightness doesn't get set and it stays off. Setting the brightness seems to adjust only the 'w' color, which seems to be ignored by this type of device.
The devices are quite useful, because any number of single color LED devices include a barrel connector and they are plug in play.
The only value you can set for a brightness only device is the 'r' channel I think. My work-around is as follows:
With the above, I can turn it on and off, and slide the brightness in the gui, but the brightness is not reflected back, so it's half working. Sorry - I know the above patch is for the HA component, but it seems like the fix needs to be in the driver or likely both.