I am trying to connect a MODBUS meter via RS485.
I added the following integration in my configuration.yaml
:
modbus:
name: hub1
type: serial
method: rtu
port: /dev/ttyUSB0
baudrate: 9600
stopbits: 1
bytesize: 8
parity: N
and tried to replace the port
line with:
port: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
To define the sensors I added the following lines to configuration.yaml
:
sensor:
platform: modbus
registers:
- name: car_energy
hub: hub1
unit_of_measurement: kWh
slave: 1
register: 0100
register_type: holding
count: 2
data_type: float
- name: car_power
hub: hub1
unit_of_measurement: A
slave: 1
register: 001C
register_type: holding
count: 2
data_type: float
However nothing seems to happen even after I restarted the Home Assistant and the Host. I do not see any error messages in my log files nor are the sensors being created. At least I could nog find an entry using the developer tools. Any suggestion what I could be doing wrong or what I could do to get it working?
I tried to disable my SEMS portal integration and my Smart Meter integration as well to see if there is any interference with that.
Earlier I had a similar kind of experience with integration of buienradar. Could it be that my Home Assistant setup is somehow broken and if so how can I find out what is blocking my configuration?