Modbus Setup Fehler

jsail

New member
Ich bekomme schon mit der Standarddefinition Fehler.

Die Fehler sehen so aus:

Code:
Konfigurationswarnungen
Invalid config for 'modbus' at configuration.yaml, line 12: 'modbus' is an invalid option for 'modbus', check: modbus->0->modbus
Invalid config for 'modbus' at configuration.yaml, line 12: required key 'baudrate' not provided
Invalid config for 'modbus' at configuration.yaml, line 12: required key 'bytesize' not provided
Invalid config for 'modbus' at configuration.yaml, line 12: required key 'method' not provided

Konfiguration:
Code:
# 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

Code:
# modbus.yaml
modbus:
  - name: hub1
    type: tcp
    host: IP_ADDRESS
    port: 502
    covers:
      - name: Door1
        device_class: door
        input_type: coil
        address: 117
        state_open: 1
        state_opening: 2
        state_closed: 0
        state_closing: 3
        status_register: 119
        status_register_type: holding
      - name: "Door2"
        address: 118
 
die Zeile "modbus:" löschen, und eventuell alles nach links rücken.
So sieht die modbus.yaml bei mir aus

YAML:
  - name: modbus heidelberg wallbox
    type: serial
    port: /dev/ttyUSB0
    baudrate: 19200
    bytesize: 8
    method: rtu
    parity: E
    stopbits: 1

    delay: 0
    message_wait_milliseconds: 30
    timeout: 5

    sensors:
  #Scale factor (output = scale * value + offset).
  #Number of valid decimals.      
  #This register can be read to check the Modbus Register Layouts Version. 
  #This is important for correct use of registers.
      - name: "Modbus Version"  #Modbus Register-Layouts Version
        unique_id: whec_modbus_version
        slave: 1
        address: 4
        scan_interval: 30
        input_type: input
        scale: 1
        offset: 0
        precision: 0
        data_type: uint16
 

Zurzeit aktive Besucher

Letzte Anleitungen

Statistik des Forums

Themen
5.645
Beiträge
55.399
Mitglieder
5.502
Neuestes Mitglied
Sushicologne
Zurück
Oben