Hello, I’ve finally got a modbus project of mine working but having a little difficulty with the config.yaml. If I include the modbus sensors in the config.yaml it works . If I do an include file with exactly the same text in it, it doesn’t work. It does the blue circle thing forever.
so
Loads default set of integrations. Do not remove.
default_config:
Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
modbus: !include modbus.yaml
Doesn’t work. modbus.yaml below
modbus:
- name: waveshare
type: tcp
host: 192.168.1.250
port: 502
delay: 0
timeout: 5
sensors:- name: gym2_pv1_power
address: 186
input_type: holding
scan_interval: 5
slave: 1
- name: gym2_pv1_power
but
default_config:
Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
#modbus: !include modbus.yaml
modbus:
- name: waveshare
type: tcp
host: 192.168.1.250
port: 502
delay: 0
timeout: 5
sensors:- name: gym2_pv1_power
address: 186
input_type: holding
scan_interval: 5
slave: 1
- name: gym2_pv1_power
Works fine ? what am I missing here ?
Thanks for reading