Closed Fonta closed 4 years ago
Okey, the event code you use to add them need to be a dimming command. Ie when you figured out those event codes you should have a triggered a dimming event. Anyway i can convert them for you: 0b11000569bc0cfe01010f70 -> 0b11000569bc0cfe01020f70 0b11000283bc0cfe06010f70 -> 0b11000283bc0cfe06020f70 0b11000423bc0cfe00010f70 -> 0b11000423bc0cfe00020f70 0b11000261bc0cfe02010f70 -> 0b11000261bc0cfe02020f70
The codes were generated using what's described on https://www.home-assistant.io/integrations/switch.rfxtrx/
using: 0b11000{{ range(100,700) | random | int }}bc0cfe0{{ range(0,10) | random | int }}010f70
Changing the device ids to dimming sounds logical. If I however copy the converted codes, the devices show up in the GUI, but missing an entity.
Entities for the device after changing the code:
Switch device:
Weird. This is how it looks for me for code: 0b11000261bc0cfe02020f70
That's indeed weird. I just created a new code 0b11000190bc0cfe02020f70
, added that to the config and restarted.
It only shows the sensor and binary_sensor.
Here's how the device and entities look like in the registry:
Hey there @danielhiversen, mind taking a look at this issue as its been labeled with an integration (rfxtrx
) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)
rfxtrx documentation rfxtrx source (message by IssueLinks)
Found the issue. Really annoying. I must try to get a fix in for next beta. You can work around it by placing all your lights first in the config.
Got it to work. It however breaks as soon as I add back the switches in the configuration. The switches are after the lights in the config.
Ah, yea true. Will have to wait for release then. (I've tagged it for inclusion)
Cool. Will wait for that then. :)
I'm running Home Assistant 0.113.0b3 which has the new rfxtrx integration and now run into an issue where I want to show switches as lights in the GUI. This can be done by using the light.switch platform and works very well for switches that control lights which are not dimmable and only support on/off.
However, I'm also trying to add a couple of lights which do support dimming. These are in-wall dimmers which control lights.
In the previous version I could use the light.rfxtrx platform which gave me the possibility to add device codes which would then show as dimmable lights in the gui:
And for on/off lights I would add them to the switch.rfxtrx platform.
All you can do now is add the devices in the rfxtrx integration, but you can't define them as dimmable. Also
device_class: light
doesn't do anything.