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.
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!