08-18-2023, 08:55 PM
Good Morning Wei Xu,
I got 2 units of KC868-H32B modules and it's working fine with Home Assistant. I want to create an entity on Home Assistant to send a command to turn all 32 relays at once. Since you are an expert on this, Can you please tell me whether the following command is right, and if it's wrong Can you fix it for me please?
Thank you.
switch:
- name: 'output-1-32'
unique_id: output-1-32
send: {"all_outputs":{"value":true}}
send: {"all_outputs":{"value":false}}
state_topic: 'relay32/99f9caa4068e7805b09f9a6a/state'
command_topic: 'relay32/99f9caa4068e7805b09f9a6a/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
I got 2 units of KC868-H32B modules and it's working fine with Home Assistant. I want to create an entity on Home Assistant to send a command to turn all 32 relays at once. Since you are an expert on this, Can you please tell me whether the following command is right, and if it's wrong Can you fix it for me please?
Thank you.
switch:
- name: 'output-1-32'
unique_id: output-1-32
send: {"all_outputs":{"value":true}}
send: {"all_outputs":{"value":false}}
state_topic: 'relay32/99f9caa4068e7805b09f9a6a/state'
command_topic: 'relay32/99f9caa4068e7805b09f9a6a/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0