# Home Assistant example for FailureWatt bridge
# Uses Home Assistant's built-in Modbus integration.
# Replace host with the IP address of your Raspberry Pi / bridge machine.

modbus:
  - name: failurewatt
    type: tcp
    host: 192.168.1.20
    port: 5020
    timeout: 5
    delay: 1
    message_wait_milliseconds: 200
    sensors:
      # These are minimal connectivity examples only.
      # Use your own Growatt register map for real production sensors.
      - name: "FailureWatt raw holding 0"
        slave: 1
        address: 0
        input_type: holding
        data_type: uint16
        scan_interval: 30

      - name: "FailureWatt raw input 0"
        slave: 1
        address: 0
        input_type: input
        data_type: uint16
        scan_interval: 30
