Posts: 7
Threads: 1
Joined: May 2023
Reputation:
0
05-09-2023, 02:43 PM
(This post was last modified: 05-09-2023, 02:44 PM by alexlans.)
Hello.
I have already add my KC868-A6 by MQTT as binary sensors.
binary_sensor:
- name: 'a6-kcs-input-1'
unique_id: a6-kcs-input-1
state_topic: 'KC868_A6/B8D61A5C5304/STATE'
value_template: '{{ value_json.input1.value }}'
payload_on: true
payload_off: false
How i can make work in modes "single click", "double click", "hold on"?
Posts: 7
Threads: 1
Joined: May 2023
Reputation:
0
Hello. I understand this and i use this.
Can i in this "KSC" firmware also in home assistant check "single click" , "double click" and "hold on"?
For example - on the page "KCS" INPUT webpage use "single click" and in home assistant use "double click" and "hold on?
Posts: 6,328
Threads: 809
Joined: Oct 2020
Reputation:
155
if you integrate to home assistant by MQTT. sure, also can set in home assistant check "single click" , "double click" and "hold on". but we suggest set this by "KCS", because it's work in locally, if home assistant broken, also can work well.
Posts: 7
Threads: 1
Joined: May 2023
Reputation:
0
Hello - i set debug in node-red and see that i dont get this values "single", "double click" and "hold on". only true or false.
19.05.2023, 09:20:11node: debug 1
KC868_A6/B8D61A5C5304/STATE : msg.payload : Object
{"input1":{"value":false},"input2":{"value":false},"input3":{"value":false},"input4":{"value":false},"input5":{"value":true},"input6":{"value":false},"output1":{"value":false},"output2":{"value":false},"output3":{"value":false},"output4":{"value":false},"output5":{"value":false},"output6":{"value":false},"adc1":{"value":0},"adc2":{"value":0},"adc3":{"value":0},"adc4":{"value":0},"dac1":{"value":0},"dac2":{"value":0}}
Posts: 6,328
Threads: 809
Joined: Oct 2020
Reputation:
155
"single", "double click" and "hold on" work in locally, not need node-red, that will be stable.
Posts: 7
Threads: 1
Joined: May 2023
Reputation:
0
I understand this. but i want to make single clicks to control switching lighting.
and have additional logic to node red - for example long click switch off all lighting and send commands to another modules.
Can be this work?
Posts: 6,328
Threads: 809
Joined: Oct 2020
Reputation:
155
when you use INPUT short with GND , will feedback INPUT state for "true" or "false". just this way.