Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-H32B
#7
I have edited the configuration yaml of home assistant. After saving the updated file and re booting the server, the configured outputs of KC868-H32B did not appear on the Home Assistant. The output of the smart panel server appeared but refused to activate.

I restored the original Configuration yaml of the HA. re booted but the output of the smart panel are still not activating the relays.

All the individual servers work locally as shown in the screenshots.
the configuration files are as follows:

Updated
# 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:
  - name: hub1
    type: serial
    baudrate: 9600
    bytesize: 8
    method: rtu
    parity: N
    port: /dev/ttyS0
    stopbits: 1

    sensors:
    - name: meter-voltage
      slave: 1
      address: 100
      input_type: holding
      data_type: float32
      precision: 2
      unit_of_measurement: V
      device_class: voltage

    - name: meter-current
      slave: 1
      address: 106
      input_type: holding
      data_type: float32
      precision: 2
      unit_of_measurement: A
      device_class: current

    - name: meter-power
      slave: 1
      address: 118
      input_type: holding
      data_type: float32
      precision: 2
      unit_of_measurement: kW
      device_class: power
     
    - name: meter-factor
      slave: 1
      address: 142
      input_type: holding
      data_type: float32
      precision: 2
    #  unit_of_measurement:
      device_class: power_factor

    - name: meter-frequency
      slave: 1
      address: 144
      input_type: holding
      data_type: float32
      precision: 2
      unit_of_measurement: Hz
      device_class: frequency

    - name: meter-consumption
      slave: 1
      address: 0
      input_type: holding
      data_type: float32
      precision: 2
      unit_of_measurement: kWh
      device_class: energy_storage
     
mqtt:
  switch:
  - name: 'output-1'
    unique_id: output-1
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay1":{"on":1}}'
    payload_off:  '{"relay1":{"on":0}}'
    value_template: '{{ value_json.relay1.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-2'
    unique_id: output-2
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay2":{"on":1}}'
    payload_off:  '{"relay2":{"on":0}}'
    value_template: '{{ value_json.relay2.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-3'
    unique_id: output-3
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay3":{"on":1}}'
    payload_off:  '{"relay3":{"on":0}}'
    value_template: '{{ value_json.relay3.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-4'
    unique_id: output-4
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay4":{"on":1}}'
    payload_off:  '{"relay4":{"on":0}}'
    value_template: '{{ value_json.relay4.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-5'
    unique_id: output-5
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay5":{"on":1}}'
    payload_off:  '{"relay5":{"on":0}}'
    value_template: '{{ value_json.relay5.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-6'
    unique_id: output-6
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay6":{"on":1}}'
    payload_off:  '{"relay6":{"on":0}}'
    value_template: '{{ value_json.relay6.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-7'
    unique_id: output-7
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay7":{"on":1}}'
    payload_off:  '{"relay7":{"on":0}}'
    value_template: '{{ value_json.relay7.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-8'
    unique_id: output-8
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay8":{"on":1}}'
    payload_off:  '{"relay8":{"on":0}}'
    value_template: '{{ value_json.relay8.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-9'
    unique_id: output-9
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay9":{"on":1}}'
    payload_off:  '{"relay9":{"on":0}}'
    value_template: '{{ value_json.relay9.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-10'
    unique_id: output-10
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay10":{"on":1}}'
    payload_off:  '{"relay10":{"on":0}}'
    value_template: '{{ value_json.relay10.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-11'
    unique_id: output-11
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay11":{"on":1}}'
    payload_off:  '{"relay11":{"on":0}}'
    value_template: '{{ value_json.relay11.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-12'
    unique_id: output-12
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay12":{"on":1}}'
    payload_off:  '{"relay12":{"on":0}}'
    value_template: '{{ value_json.relay12.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-13'
    unique_id: output-13
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay13":{"on":1}}'
    payload_off:  '{"relay13":{"on":0}}'
    value_template: '{{ value_json.relay13.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-14'
    unique_id: output-14
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay14":{"on":1}}'
    payload_off:  '{"relay14":{"on":0}}'
    value_template: '{{ value_json.relay14.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-15'
    unique_id: output-15
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay15":{"on":1}}'
    payload_off:  '{"relay15":{"on":0}}'
    value_template: '{{ value_json.relay15.on }}'
    state_on: 1
    state_off: 0

  - name: 'output-16'
    unique_id: output-16
    state_topic: 'server/7ffd88f939adfbe3816e4404/state'
    command_topic: 'server/7ffd88f939adfbe3816e4404/set'
    payload_on:  '{"relay16":{"on":1}}'
    payload_off:  '{"relay16":{"on":0}}'
    value_template: '{{ value_json.relay16.on }}'
    state_on: 1
    state_off: 0
  #removed the binary sensor
  mqtt:
    broker: 192.168.1.200
    port: 1883
    username: mqtt
    password: 123
   
    switch:
   
    - name: 'output-17'
      unique_id: output-17
      state_topic: 'relay32/8ae082ec66f37db231cf2b8f/state'
      command_topic: 'relay32/8ae082ec66f37db231cf2b8f/set'
      payload_on: '{“relay1”:{“on”:1}}'
      payload_off: '{“relay1”:{“on”:0}}'
      value_template: '{{ value_json.relay1.on }}'
      state_on: 1
      state_off: 0
 
    - name: 'output-18'
      unique_id: output-18
      state_topic: 'relay32/8ae082ec66f37db231cf2b8f/state'
      command_topic: 'relay32/8ae082ec66f37db231cf2b8f/set'
      payload_on: '{“relay2”:{“on”:1}}'
      payload_off: '{“relay2”:{“on”:0}}'
      value_template: '{{ value_json.relay2.on }}'
      state_on: 1
      state_off: 0
Reply


Messages In This Thread
KC868-H32B - by fdcemb5 - 04-09-2024, 03:04 PM
RE: KC868-H32B - by admin - 04-09-2024, 11:54 PM
RE: KC868-H32B - by fdcemb5 - 04-10-2024, 05:26 AM
RE: KC868-H32B - by admin - 04-10-2024, 06:44 AM
RE: KCB868-H32B Home Assistant - by fdcemb5 - 04-10-2024, 07:29 PM
RE: KC868-H32B - by admin - 04-10-2024, 11:55 PM
RE: KC868-H32B - by fdcemb5 - 04-11-2024, 06:53 PM
RE: KC868-H32B - by admin - 04-12-2024, 12:27 AM
RE: KC868-H32B - by fdcemb5 - 04-12-2024, 05:26 AM
RE: KC868-H32B - by admin - 04-12-2024, 06:05 AM
RE: KC868-H32B - by fdcemb5 - 04-12-2024, 10:38 AM
RE: KC868-H32B - by admin - 04-12-2024, 10:59 AM
RE: KC868-H32B - by fdcemb5 - 04-12-2024, 11:08 AM
RE: KC868-H32B - by admin - 04-12-2024, 11:14 AM
RE: KC868-H32B - by fdcemb5 - 04-12-2024, 11:46 AM
RE: KC868-H32B - by admin - 04-13-2024, 12:20 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)