Posts: 37
Threads: 12
Joined: Apr 2024
Reputation:
0
Trying to configure this server, after I scanned and got the IP at 192.168.1.180, I login with admin, admin and configure the IP address of the home assistant after setting tpo MQTT mode, unfortunately on rebooting i can't access the KC868 server using 192.268.1.180. I have been on this for hours. How I can I get back to the server.
Ozara
Posts: 6,242
Threads: 804
Joined: Oct 2020
Reputation:
151
KC868-Server have two ethernet cable, one is for relay system, one is for raspberry pi. what these IP address?
tell me your two IP address, and post your ethernet config webpage screen photo at here.
Posts: 37
Threads: 12
Joined: Apr 2024
Reputation:
0
04-10-2024, 05:26 AM
(This post was last modified: 04-10-2024, 05:30 AM by fdcemb5.)
KC868-H32B server has only only one Ethernet cable, which we used to access the local server at 192.168.1.5, we can see the 32 relays functioning. We configured mqtt using home assistant IP address, but the 32 output relay is not visible at Home Assistant UI.
We are configuring our newly acquired 16 channel board, we would like to connect sensors to the board but the input resources has no label to identify the pins to connect the sensors.
Posts: 37
Threads: 12
Joined: Apr 2024
Reputation:
0
The File Editor in Home Assistant menu is not display normally. We have restarted it many times without success. Without the File Editor, we cannot edit Configuration yaml
Posts: 37
Threads: 12
Joined: Apr 2024
Reputation:
0
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
Posts: 6,242
Threads: 804
Joined: Oct 2020
Reputation:
151
check your KC868-Server's raspberry pi IP address.
you are set wrong mqtt "Server IP" for board. 192.168.1.200 is your KC868-Server's ARM system IP address, not raspberry pi's IP address.
because KC868-Server have connect with two ethernet port, so it will have two different IP address. find out the raspberry pi's IP address in your router. then set to mqtt "Server IP" address option (i seen you have set 192.168.1.200 now, it's wrong)
Posts: 37
Threads: 12
Joined: Apr 2024
Reputation:
0
I have changed the IP address to 192.168.1.106, which is the raspberry pi IP address but the Home Assistant is still not responding as can be seen in the screenshots
Posts: 6,242
Threads: 804
Joined: Oct 2020
Reputation:
151
where you seen raspberry pi IP address is 192.168.1.106?