Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Home Assistant 2022.12.0
#1
I have updated my KC868-server to Home Assistant 2022.12.0, now all my sensors and switches from my KC868-Server are "unavailable".
below is my sample configuration. Is the a new configuration for HA 2022.12.0, as they have been warning that this updates will affect the sensor.
 
mqtt:
  broker: 192.168.0.118
  port: 1883
  username: mqtt
  password: 1232332TESETEST

# Example configuration.yaml entry
switch:
  - platform: mqtt
    name: 'output-1'
    unique_id: output-1
    state_topic: 'server/a767350037679/state'
    command_topic: 'server/a767350037679/set'
    payload_on:  '{"relay1":{"on":1}}'
    payload_off:  '{"relay1":{"on":0}}'
    value_template: '{{ value_json.relay1.on }}'
    state_on: 1
    state_off: 0

  - platform: mqtt
    name: 'output-2'
    unique_id: output-2
    state_topic: 'server/a767350037679/state'
    command_topic: 'server/a767350037679/set'
    payload_on:  '{"relay2":{"on":1}}'
    payload_off:  '{"relay2":{"on":0}}'


binary_sensor:
  - platform: mqtt
    name: 'input-1'
    unique_id: input-1
    state_topic: 'server/a767350037679/state'
    value_template: '{{ value_json.input1.on }}'
    payload_on: 1
    payload_off: 0

  - platform: mqtt
    name: 'input-2'
    unique_id: input-2
    state_topic: 'server/a767350037679/state'
    value_template: '{{ value_json.input2.on }}'
    payload_on: 1
    payload_off: 0
    value_template: '{{ value_json.relay2.on }}'
    state_on: 1
    state_off: 0

sensor:
  - platform: mqtt
    name: 'analog-1'
    unique_id: analog-1
    state_topic: 'server/a767350037679/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog1.value }} ' 
   
  - platform: mqtt
    name: 'analog-2'
    unique_id: analog-2
    state_topic: 'server/a767350037679/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog2.value }} '
Reply
#2
try to delete these lines on yaml file:
broker: 192.168.0.118
port: 1883
username: mqtt
password: 1232332TESETEST
Reply
#3
(12-13-2022, 07:51 AM)admin Wrote: try to delete these lines on yaml file:
  broker: 192.168.0.118
  port: 1883
  username: mqtt
  password: 1232332TESETEST


Not work yet.
See updated yaml config

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

#frontend:
#themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# mqtt: !include mqtt.yaml


http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
   

# Example configuration.yaml entry
switch:
  - platform: mqtt
    name: 'output-1'
    unique_id: output-1
    state_topic: 'server/a767350037679/state'
    command_topic: 'server/a767350037679/set'
    payload_on:  '{"relay1":{"on":1}}'
    payload_off:  '{"relay1":{"on":0}}'
    value_template: '{{ value_json.relay1.on }}'
    state_on: 1
    state_off: 0



binary_sensor:
  - platform: mqtt
    name: 'input-1'
    unique_id: input-1
    state_topic: 'server/a767350037679/state'
    value_template: '{{ value_json.input1.on }}'
    payload_on: 1
    payload_off: 0

sensor:
  - platform: mqtt
    name: 'analog-1'
    unique_id: analog-1
    state_topic: 'server/a767350037679/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog1.value }} '


Attached Files Image(s)
   
Reply
#4
update home assistant and ESPHome to the newest version, then update config file by error and warning message.
Reply
#5
[attachment=1672 Wrote:     Mandlap pid='5175' dateline='1670919575']
(12-13-2022, 07:51 AM)admin Wrote: try to delete these lines on yaml file:
  broker: 192.168.0.118
  port: 1883
  username: mqtt
  password: 1232332TESETEST


Not work yet.
See updated yaml config

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

#frontend:
#themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
# mqtt: !include mqtt.yaml


http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 172.30.33.0/24
   

# Example configuration.yaml entry
switch:
  - platform: mqtt
    name: 'output-1'
    unique_id: output-1
    state_topic: 'server/a767350037679/state'
    command_topic: 'server/a767350037679/set'
    payload_on:  '{"relay1":{"on":1}}'
    payload_off:  '{"relay1":{"on":0}}'
    value_template: '{{ value_json.relay1.on }}'
    state_on: 1
    state_off: 0



binary_sensor:
  - platform: mqtt
    name: 'input-1'
    unique_id: input-1
    state_topic: 'server/a767350037679/state'
    value_template: '{{ value_json.input1.on }}'
    payload_on: 1
    payload_off: 0

sensor:
  - platform: mqtt
    name: 'analog-1'
    unique_id: analog-1
    state_topic: 'server/a767350037679/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog1.value }} '


Attached Files Image(s)
   
Reply
#6
i have updated to the newest home assistant 2022.12.5 in KC868-Server. integrated 16 output and 16 digital input. 
here is config file.
   
   

.txt   KC868-Server-home-assistant-MQTT_config_202212.txt (Size: 9.26 KB / Downloads: 200)

# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml


mqtt:

  switch:
  - name: 'output-1'
    unique_id: output-1
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/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-2'
    unique_id: output-2
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/set'
    payload_on:  '{"relay16":{"on":1}}'
    payload_off:  '{"relay16":{"on":0}}'
    value_template: '{{ value_json.relay16.on }}'
    state_on: 1
    state_off: 0

  binary_sensor:
  - name: 'input-1'
    unique_id: input-1
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input1.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'input-2'
    unique_id: input-2
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input2.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'input-3'
    unique_id: input-3
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input3.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'input-4'
    unique_id: input-4
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input4.on }}'
    payload_on: 1
    payload_off: 0
   
  - name: 'input-5'
    unique_id: input-5
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input5.on }}'
    payload_on: 1
    payload_off: 0   
   
  - name: 'input-6'
    unique_id: input-6
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input6.on }}'
    payload_on: 1
    payload_off: 0   

  - name: 'input-7'
    unique_id: input-7
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input7.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'input-8'
    unique_id: input-8
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input8.on }}'
    payload_on: 1
    payload_off: 0 

  - name: 'h32p-input-1'
    unique_id: h32p-input-1
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input1.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'h32p-input-2'
    unique_id: h32p-input-2
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input2.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'h32p-input-3'
    unique_id: h32p-input-3
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input3.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'h32p-input-4'
    unique_id: h32p-input-4
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input4.on }}'
    payload_on: 1
    payload_off: 0
   
  - name: 'h32p-input-5'
    unique_id: h32p-input-5
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input5.on }}'
    payload_on: 1
    payload_off: 0   
   
  - name: 'h32p-input-6'
    unique_id: h32p-input-6
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input6.on }}'
    payload_on: 1
    payload_off: 0

  sensor:
  - name: 'analog-1'
    unique_id: analog-1
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog1.value }} ' 
   
  - name: 'analog-2'
    unique_id: analog-2
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog2.value }} ' 
   
  - name: 'analog-3'
    unique_id: analog-3
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog3.value }} ' 
   
  - name: 'analog-4'
    unique_id: analog-4
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog4.value }} '
Reply
#7
make sure your mosquitto MQTT broker have set correct setting IP address of KC868-Server.
Reply
#8
(12-13-2022, 11:40 PM)admin Wrote: i have updated to the newest home assistant 2022.12.5 in KC868-Server. integrated 16 output and 16 digital input. 
here is config file.




# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

# Text to speech
tts:
  - platform: google_translate

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml


mqtt:

  switch:
  - name: 'output-1'
    unique_id: output-1
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/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-2'
    unique_id: output-2
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/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/8ae082ec66f37db231cf2b8f/state'
    command_topic: 'server/8ae082ec66f37db231cf2b8f/set'
    payload_on:  '{"relay16":{"on":1}}'
    payload_off:  '{"relay16":{"on":0}}'
    value_template: '{{ value_json.relay16.on }}'
    state_on: 1
    state_off: 0

  binary_sensor:
  - name: 'input-1'
    unique_id: input-1
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input1.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'input-2'
    unique_id: input-2
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input2.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'input-3'
    unique_id: input-3
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input3.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'input-4'
    unique_id: input-4
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input4.on }}'
    payload_on: 1
    payload_off: 0
   
  - name: 'input-5'
    unique_id: input-5
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input5.on }}'
    payload_on: 1
    payload_off: 0   
   
  - name: 'input-6'
    unique_id: input-6
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input6.on }}'
    payload_on: 1
    payload_off: 0   

  - name: 'input-7'
    unique_id: input-7
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input7.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'input-8'
    unique_id: input-8
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.input8.on }}'
    payload_on: 1
    payload_off: 0 

  - name: 'h32p-input-1'
    unique_id: h32p-input-1
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input1.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'h32p-input-2'
    unique_id: h32p-input-2
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input2.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'h32p-input-3'
    unique_id: h32p-input-3
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input3.on }}'
    payload_on: 1
    payload_off: 0

  - name: 'h32p-input-4'
    unique_id: h32p-input-4
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input4.on }}'
    payload_on: 1
    payload_off: 0
   
  - name: 'h32p-input-5'
    unique_id: h32p-input-5
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input5.on }}'
    payload_on: 1
    payload_off: 0   
   
  - name: 'h32p-input-6'
    unique_id: h32p-input-6
    state_topic: 'relay32/dbc92afcaf7a9902eacb08f5/state'
    value_template: '{{ value_json.input6.on }}'
    payload_on: 1
    payload_off: 0

  sensor:
  - name: 'analog-1'
    unique_id: analog-1
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog1.value }} ' 
   
  - name: 'analog-2'
    unique_id: analog-2
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog2.value }} ' 
   
  - name: 'analog-3'
    unique_id: analog-3
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog3.value }} ' 
   
  - name: 'analog-4'
    unique_id: analog-4
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    unit_of_measurement: 'v'
    value_template: '{{ value_json.analog4.value }} '
Reply
#9
Thank You. Recommendations worked. Also need to implement this recommendation "make sure your mosquitto MQTT broker have set correct setting IP address of KC868-Server. ". as part of the process I lost access to the KC868-Server, and used Device Scan to rediscover the IP address.
Reply
#10
ok, great.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)