Hello, I’m new to homeassitant and YAML. I have read so many articles and gone through so much documentation but I cannot find a way to add a template to my modbus.yaml file correctly. Im not adding this to my configuration.yaml, but to my actual modbus.yaml file. All the examples Ive seen have shown it in the config.yaml file, thats not what Im looking for.
My goal is to simply add a template to make data from a modbus door sensor say open if its 0, and closed if its 1. Thats It. Here is that config file with just one sensor to make it easier to read. Also, I am reading all my sensor data without issues just FYI.
no help, just saying that I struggle with the same issue. I ended up making additional entries, the one from Modbus and, building on it, a templated one
yes, I did, as per above (give or take the swap parameter)
I installed a cheap Modbus to TCP device from Aliexpress to read Kermi:
Search in Aliexpress.com for Serial Port RS485 to Ethernet Converter IOT Device Server Protoss-PE11 (it is about USD 15)
I configured as below and defined the modbus.yml as per above post (w/o swap parameter, this causes and error from 2024.1)