Hi,
I’ve got ha 2022.6.7 running in a venv. So no container or hassos. I’m trying to talk to modbus but I don’t see a device/switch in Home Assistant. I might be skipping a step or so.
I can talk to modbus with mbpoll from the command line and my heat pump reacts to it (from the command line) as expected so the base setup/wiring is correct and functional.
Below is the relevant part of my configuration. With this in place, restart home-assistant.service, I don’t find anithing modbus*, Airco* airco, … in Home Assistant in devices.
root@stats:~# grep include /home/homeassistant/.homeassistant/configuration.yaml
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
modbus: !include modbus.yaml
root@stats:~# ls -lah /home/homeassistant/.homeassistant/modbus.yaml
-rw-r--r-- 1 homeassistant homeassistant 608 Jul 9 20:45 /home/homeassistant/.homeassistant/modbus.yaml
root@stats:~# cat /home/homeassistant/.homeassistant/modbus.yaml
- name: modbusairco
type: serial
baudrate: 9600
bytesize: 8
method: rtu
parity: N
port: /dev/ttyUSB2
stopbits: 1
message_wait_milliseconds: 5000
retries: 20
retry_on_empty: true
close_comm_on_error: false
climates:
- name: "Airco-Living"
slave: 2
address: 58 # current temperature
input_type: holding
count: 1
data_type: custom
max_temp: 30
min_temp: 16
offset: 0
precision: 2
scale: 4
#structure: ">f"
structure: ">xxH"
target_temp_register: 4
temp_step: 0.5
temperature_unit: C
root@stats:~#