I have a wireless RFXTRX wall switch (remote) that I use to trigger an automation to turn of all (hue) lights. At the end of the automation, a notification is sent. Strangely the notification was sent twice, so I looked at the debug log and noticed the event gets fired twice.
If I read the docs correctly, this gives me the option to forced repeat the signal:
signal_repetitions (Optional): Because the RFXtrx device sends its actions via radio and from most receivers it’s impossible to know if the signal was received or not. Therefore you can configure the switch to try to send each signal repeatedly.
This is the opposite (I think) of what I need, since it appears that the switch itself is sending the signal twice (both for On and Off). I have not set this, so reducing it is impossible?
This is rather difficult, since the physical switch is basically only used to switch off all (Hue) lights when we go to bed. The state always is Off, so that trigger won’t fire, unless I’m missing something?
How can I see more raw data from the RFXCOM device through HA? (I’m using Hass.io).
If this is impossible I will need to plug the device into another Pi and use the rfxcmd tool to debug.
I have done some more investigation. Any switch I use triggers an event twice. Even for those that I have no specific configuration for. I am starting to think that the component / platform code is causing this.
Am am running Hassio 0.69.1 at the moment and can’t see any commits that might cause this behavior.
I have a physical KaKu switch / remote attached to the wall. An RFXCOM device is connected to HA to listen to 433MHz signals.
I use the wall switch to trigger an automation to switch off my Hue lights.
My HA fires an event when an ON command is sent. The automation triggers on this event.
BTW, the same is happening with my front door bell. I notify the family when the door bell is pressed. This way we know when someone rings, even when we are not home. This ON command is also registered twice by HA. I can see this in the HA debug logs (copy above). Thus we receive 2 notifications in 1 go.
Just to be sure I tested a KaKu motion sensor. The ON command is show 3 (!) times in the HA logs. This is also new.
This did not use to be like this until some weeks (?) ago.
My assumption is that the rfxtrx component puts each event on the event bus twice. I can’t believe my RFXcom device started sending 2 commands or that all remotes start doing so.
I will upgrade from 0.69.1 to 0.70.1 first to see what changes. If still present I will submit an issue at github.