Comments (5)
Fixed
from ha-artnet-led.
So I figured out that you can get this behaviour by setting the following:
type: rgb
channel_setup: drgb
However, this results in the RGB values being scaled by the brightness value, in addition to the dimmer value being sent to the first channel.
If I read the documentation correctly, the following should set the RGB values unscaled:
type: rgb
channel_setup: dRGB
However, this results in the following error:
Error while setting up artnet_led platform for light
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/homeassistant/helpers/entity_platform.py", line 320, in _async_setup_platform
await asyncio.shield(task)
File "/var/lib/hass/custom_components/artnet_led/light.py", line 146, in async_setup_platform
await entity_registry.async_load()
File "/usr/lib/python3.11/site-packages/homeassistant/helpers/entity_registry.py", line 952, in async_load
data = await self._store.async_load()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/homeassistant/helpers/storage.py", line 122, in async_load
return await self._load_task
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/homeassistant/helpers/storage.py", line 131, in _async_load
return await self._async_load_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/homeassistant/helpers/storage.py", line 147, in _async_load_data
data = deepcopy(data)
^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 146, in deepcopy
y = copier(x, memo)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 146, in deepcopy
y = copier(x, memo)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 146, in deepcopy
y = copier(x, memo)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 206, in _deepcopy_list
append(deepcopy(a, memo))
^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 146, in deepcopy
y = copier(x, memo)
^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 231, in _deepcopy_dict
y[deepcopy(key, memo)] = deepcopy(value, memo)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 297, in _reconstruct
value = deepcopy(value, memo)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 172, in deepcopy
y = _reconstruct(x, memo, *rv)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/copy.py", line 298, in _reconstruct
y[key] = value
~^^^^^
File "/usr/lib/python3.11/site-packages/homeassistant/util/read_only_dict.py", line 7, in _readonly
raise RuntimeError("Cannot modify ReadOnlyDict")
RuntimeError: Cannot modify ReadOnlyDict
from ha-artnet-led.
On what version of HA are you seeing this? People have been reporting this same error on my fork when upgrading to 2023.6.0.
from ha-artnet-led.
Hi, I am actually using your fork (unfortunately messed up and reported to the wrong repo).
I am using Home Assistant 2023.6.1, Frontend 20230608.0.
from ha-artnet-led.
Thank you! :) I'm closing this issue since it is in the wrong repo. Will open again in the right repo if there are any problems.
from ha-artnet-led.
Related Issues (11)
- Platform error light.artnet-led - Integration 'artnet-led' not found. HOT 1
- 100% brightness turns off lights completely in some cases HOT 1
- device_state_attributes HOT 1
- Lights goes off when restarting HA. HOT 4
- default_level causes error. HOT 3
- Error with python3.11 HOT 2
- python3.11: No module named 'netifaces' HOT 1
- Broadcasting address / flag
- auto Switch to HA HOT 3
- Log Error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ha-artnet-led.