Trying to go convert to strategy 2 but getting this error in my HA log:
Error while executing automation automation.rfbridge_demultiplexer. Service not found for call_service at pos 1: Unable to find service python_script/rfbridge_demux
My first time configuring python scripts on the system so started from step one.
Thought Iâd show my independent implementation of the âde-multiplexerâ completely using HAâs templates. I am able to take advantage of the fact that my door sensors all have their open/close code differ by only the last character (âAâ for open, âEâ for close):
I like this.
One question though; what made you decide to raise an rf_signal_received event and then trigger a second automation based on it, rather than just have it all as one automation?
I have RF devices other than door sensors, and I like having the RF signals abstracted from the MQTT messages, when I write other RF-based automations. You could totally do it the way youâre suggesting. Itâs just preference.
Iâm just suggesting that âAdd python_script: to your configuration fileâ might be a cause of some confusion and that explicitly mentioning the configuration.yaml might be better.
It was just an observation based my original experience when learning about HA combined with the fact that the entire HA config can be contained in one file, and usually is for new people. I sometimes think it can be generally confusing and not always clear what is being meant when the word âconfigurationâ s being used.
What yo had originally was clear to me but as you asked, I thought Iâd give another view on it.
I also added a link to the python_script integrationâs documentation. It now reads as follows:
To make this work, you have to configure Home Assistant to use the python_script component. Full instructions can be found in the documentation for the python_script integration. Here are the basic steps:
Add python_script: to your configuration.yaml file.
Create the following sub-directory: config/python_scripts
I donât think thereâs one⌠And yes, thereâs no guarantee that new ones wonât interfere, BUT you can try to sell them locally
Alternatively, if they have a tamper switch or contacts, you can try to convert them into wireless buttons.
I donât have a device with that code (or any of the other random âUnknown RF Commandsâ) and I live so remotely that itâs highly unlikely to become from another property.
Firstly, could there be another reason for the codes being âreceivedâ?
And secondly, is there maybe a way in rfbridge_demux.py to eliminate the errors for received, unlisted codes?
And thirdly, are the generated errors anything more than an annoyance that can be safely ignored?
Iâve purposely crafted the python_script to report unknown RF codes. I suggest you add the code to the python_scriptâs dictionary so it will be received (quietly) and published to home/34FE3A. You can then leave this topic unused. Alternately, if youâre curious to learn more about this mysterious RF code, associate the topic to an MQTT Sensor and then, after a week or so, look at its history. Maybe its pattern of turning on and off will provide a clue about its source.