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.
It may be good to comment that this integration only partially moved to the UI. Through UI it will be possible to add devices or change options without requiring a restart of Home Assistant. This is work in progress, but perhaps this makes it easier to merge (start in yaml with no devices and add them one by one through the UI instead of having a long list and finding out which device is what).
Personally I expirience problems with only 1 doorbell switch which I could not get to work with this new update, hence I reverted back to 0.112.4. I did read the new rfx doc but still I could not get it to work.
Anyway I know moving forward could break things, especially moving from yaml to ui. But heyā¦if it aint broke dont fix it!
You are using the fire_event but the logic around this has changed (it does not fire with entity id anymore). I think in your case you can just make your automation against the state of the entity. You should use the binary sensor for this because it gets a state event fired even when state doesnāt change.
Could you try the following? (I flipped a bit from 0x00 to 0x02). This is a bit ugly, multiple issues have been reported (see issues in the github repo) and it is being picked up.
I already tried that automation state with on off state, both the switch ID as well as the binary sensorā¦it just wont work or something else iām doing wrong
There is a subtle change in 0.113 that was I think not mentioned explicitly in the docs/release notes. If you open all changes youāll see an item but you really have to look for it.
The fire_event has been moved to device level, but I think in most cases the fire_event is not required anymore. The sensor and binary sensor have a new property set internally such that always state events are fired when data is received, even when the state doesnāt change. This is particularly useful for devices which only report āonā or a āchimeā, but always the same.
The entities got new names like cover.rfy_000000_1. If you change through the UI these names to the āoldā names you had, you donāt have to change the group in your configuration.yaml
Same here. Would have been nice to at the very least leave the name: option to allow for manual naming at device level, instead of now having to hunt for some id and rename all related entities.
Iām normally up for changes, including breaking ones if it makes sense, but this one is a real killer and doesnāt seem to have been thought through that much