Remove all of the light, switch, binary_sensor lines with ‘platform: rfxtrx’ and put them under the above heading instead, minus any ‘name:’ specifications you have. The entity ID’s in Home Assistant will then change to something like switch.lightwave_rf_34324hjkh
And everything worked fine till now. I tried some option as changed the ID name in the automation script but that did not worked. Secondly running on 0.113 my doorbell not only shows itself as a switch but also as a binary sensor within the entitities front-end.
So Im lost here, looking on the rfx docs page really does not help me at all or like I said Im missing something…
P.s. And yes I already changed my configuration file according to the new update.
–Update-- Reverted back to 0.112.4 everything is working again, I’ll wait when I got more time for testing this out cuz it’s annoying.
However, the problem is they all show as "switch.<entity_id>" and I can’t seem to change them to be a light instead. If I add the device_class: light I get an error in the config checker so obviously that isn’t right.
Anyone got any ideas? Without being lights, you can’t dim them
2020-07-25 07:46:01 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry RFXTRX for rfxtrx
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/config_entries.py”, line 219, in async_setup
result = await component.async_setup_entry( # type: ignore
File “/usr/src/homeassistant/homeassistant/components/rfxtrx/init.py”, line 160, in async_setup_entry
await hass.async_add_executor_job(setup_internal, hass, entry.data)
File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/rfxtrx/init.py”, line 179, in setup_internal
event.device, data_bits=event_config.get(CONF_DATA_BITS)
AttributeError: ‘NoneType’ object has no attribute ‘device’
Using the newer devices (24 digits code), it is starting…
Thats funny, my case running 0.113 I did not have to change the ID at all. All my devices are seen by HA but every switch is also seen as a binary sensor as well, so I got both.
To me it seems something went very wrong during beta test as I see more people running into problems. If you would ask me I think they better revert back to the old rfxcom way of things. The new update broke more then it actually fixes…
Sorry, I totally don’t understand this new type of configuration. Can someone post an example of how you define a device as being a cover? I got this far, which doesn’t work:
From what I read above, the name is no longer supported and there is no “cover” device_class?
EDIT:
Figured it out, just add the devices and you can change the rest in the GUI. Took me 10 minutes to fix rename everything and fix automations and HomeKit.
For examples, see the RFX doc
All must be in the configuration.yaml section now.
As you mentioned, the name flag is not available anymore, this can be done in the UI (however, mine seem not to be accepted).
same for the device_class: my Intertechno cover switched are discovered as binary_sensors. Tried to change the ID but didiN#t help. Don’t see any switched in the Lovelace UI (but there are some in the Integrations section).
Very weird now and a step back to what we had before changed in 0.113.0.
Think i will go back until this is solved.
Am having the same challenges; getting the devices over to 0.113 is just the first hurdle, but getting them renamed is a much bigger problem. And after adding and renaming I also need to check my automations and scripts again. With 100+ devices (out of which around 30 are rfxtrx) this process will take a few hours
Cant remember for sure…has been some years now. But I believe I used rfx manager on windows to find some string number and used a linux script to convert it into an ID number I think.
Will get back to you if I know some more about it or perhaps someone knows an easier way to do this now.
But running on 0.113 my coco (klikaanklikuit) doorbell is not working anymore. For now im sticking with 0.112.4 till someone manage to make rfxcom working as it should be…
I did this by the following procedure (please excuse me if i do not take the correct english wordings, using german).
Open Settings -> Integrations
Choose RFXTRX integration -> xxx
Click on a device, then click on the gear upper right
in the appearing dialogue, change the name of the device, optionally select an area
After clicking refresh, confirm to also replace the new name to all associated entities IDs.
Sure, following my enzry in the configuartion, yaml file:
rfxtrx:
automatic_add: false
device: '/dev/serial/by-id/usb-RFXCOM_RFXtrx433_A1WJDDPI-if00-port0'
devices:
0b110053009f566604020f70:
device_class: light
0b110049009f566602010f70:
device_class: opening
0b11004c009f566603010f70:
device_class: opening
0b110055009f566605010f70:
device_class: battery_charging
0b110059009f566606020f70:
device_class: power
0b110080009f566607010f70:
device_class: battery_charging
0710011148010160:
device_class: power
0a520701350e00fe300169:
0710010943030150:
device_class: door
0710010c41040160:
device_class: door
0710010f42030150:
device_class: door
It’s a bit messy that all have IDs for rfxtrx communication, thgen show up e.g. (last one) binary_sensor.arc_b3
After renaming, it gets a bit better to work with in the UI. Note for renaming: do not use special letters like german ‘ü’, these will result in next mess (but this is less problem for me).
I tried to modify the last 6 digits of the ID as i read in the rfxtrx docs (renaming to end with 010f70) but unfortunately it does nothing. Also setting a devcie_class did not help.
All still detected as binary_Sensors, resulting i have no switch on/off possibility in the UI.
Will try to do a ‘dirty’ workaround with helpers and automation.
Hopefully it will be fixed in the next updates.
Anyone already did a feature or bug request?
EDIT: just noticed that my switches now seem to have an on/off switch in the UI.
Don’t know why it is happening now. Maybe Update to 0.113.1 fixed this? Unsure…
Maybe a combination of what i did (editing the last 6 digit numbers, device_class) result… Unsure
However, the enties are still shown as e.g. switch.ac_09f5666_8 in the developer tools list, so not what i would say it is renamed. But i also did a friendly_name on this so i am able to handle this.
My personal opinion:
I really appreciate all work of all developers but this spoecial case did lots of work for me but didn’t see what is better than before now, it even got worse. Devcies of these types are often used, for me it was my first devices i put into HA. Hard times for startes currently.
Sorry to say that but should be constructive not destructive!
@ RobBie1221 Thanks for making that more clear, no i can understand this better.
Fully agree that moving forward may break something.
Maybe you have more detailed information how all affected may proceed?
To summarize, i have:
editied the last 4 digits id and added a device_class.
renamed the entity and added a friendly name by Ui (also possible via customize.yaml)
Editied my UI and automations to work again.
Details see posts above.
Hope it helps others running into this problems, too.