I have an arduino nano plugged to my RPI3B+. It is searching for RF433 code and IR and I put a lot of lpayoads like IR sender, RF433 sender, servo mouvement, PIR sensor, etc…
I can call the function with a json like that sent in the serial command
I receive in development tools:
sensor.serial_sensor:
function_name: recv_433
parameters:
value: 2992537
friendly_name: Serial Sensor
This is the code of a RF433 remote control. Now I need this to be a template (i think?) telling that this code means “button of the remote control is pressed”
If somebody has clue about that I’d would be happy. I didn’t find clear tutorial of my setup.
Actually I’m using a button as a test, or manual trigger, but it will be replaced by a RF433 PIR sensor eventually.
In fact: I have lots of entities: PIR sensor, door sensor, remote ctl.
I have 2992537 = button1.ON
XXXXXXX= button1.OFF
YYYYYYY= front_door.open
ZZZZZZZZ= PIR_room1.movement
etc …
So it could be just on my dashboard: “button pressed” or “mvt detected” in order to trigger some automation after that.
Besides, I’ll need to understand the mechanism to create RF433 send code to trigger an alarm and IR send.
So I just don’t understand how to convert a serial incoming into a device state and how to transform a device into a serial sent.
By the way i understand I’m working with HassOs and my yaml configuration has’nt all the customization text working. I think I should switch with Hassio with a standard distribution but I don’t find any of this. A bad yaml file crashed all my set up.