Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A16 - MQTT Issues
#1
Hey, 

first of all: Thanks for this great product! I am now trying to connect it via MQTT to Home Assistant. (I had several issues by using ESPHome, so I wanna stick with MQTT for now). 

What I did: 
  • MQTT Setup within KCS
  • Setup Mosquito and MQTT within Home-Assistant (Already existing)
  • Confirmed that the Packages are received by listening to #

I have used the following YAML within Home Assistants configuration.yaml, customized based on the received packages while listening to #:

Code:
mqtt:
  switch:
   - name: 'kcs868-a16-output-1'
     unique_id: kcs868-a16-output-1
     state_topic: 'KC868_A16/2CBCBB646ACC/STATE'
     command_topic: 'KC868_A16/2CBCBB646ACC/SET'
     payload_on:  '{"output1":{"value":true}}'
     payload_off:  '{"output1":{"value":false}}'
     value_template: '{{ value_json.output1.value }}'
     state_on: true
     state_off: false

As a result, I can - after restarting Home Assistant control the Output 1. 
BUT: It does not show the current status of Output one! (See Screenshot). Status is unknown. 

Any Idea what went wrong? What could I check? 

[Image: EClPwLZ.png]
Reply
#2
take a photo of your KCS mqtt setting webpage.
Reply
#3
(12-28-2024, 01:19 AM)admin Wrote: take a photo of your KCS mqtt setting webpage.

Here we go. Not showing the mqtt broker login - which is set and working. As said: Sending requests are working just reading the state seems not to work. 

Version 2.2.5 btw - will update to 2.2.10 today. 
[Image: iug4yvn.png]
Reply
#4
maybe it's your mqtt broker have issue.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)