Hello,
I am a very beginner in HomeAssistant and I just would like to turn on/off some lights from my smartphone…
I have installed:
- HA in a raspberry pi 4
- on modbus serial port module
- 16 relays card
From HA terminal, if send [echo -ne “AT+T5” > /dev/ttyUSB0] my relay toggles [OK]
How to control this from a card in the overview?
I have to create a entity and services in configuration.yaml or use some python script or other?
I read many web pages and I found only this:
in file /conf/configuration.yaml
modbus:
type: serial
method: rtu
port: /dev/ttyUSB0
baudrate: 9600
stopbits: 1
bytesize: 8
parity: N