Smart Home Automation Forum
KCS firmware - MQTT LWT? - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-A series and Uair Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=6)
+--- Thread: KCS firmware - MQTT LWT? (/showthread.php?tid=3434)

Pages: 1 2


RE: KCS firmware - MQTT LWT? - DieterN - 03-11-2024

Hello
I have set the Temperature Threshold to 0.1.
The numbers are changing when th relais are change or the adc numbers only!!! (another user have the same problem!)

To switch the relais from my MQTT server I test it with :
set MQTT2_FCB4671111D0 output1_valve true
set MQTT2_FCB4671111D0 output1_value on
set MQTT2_FCB4671111D0 output1_valve on
set MQTT2_FCB4671111D0 output1_value on
set MQTT2_FCB4671111D0 output1 on/off/true/false
nothing work


RE: KCS firmware - MQTT LWT? - admin - 03-11-2024

1. i don't know which board you are using?  what sensor you are using? how you wire? take photo!
2. take a screen photo what command you have send to control relay.


RE: KCS firmware - MQTT LWT? - DieterN - 03-11-2024

(03-11-2024, 10:05 AM)admin Wrote: 1. i don't know which board you are using?  what sensor you are using? how you wire? take photo!
2. take a screen photo what command you have send to control relay.

1.KC868-A8
   

   

from my MQTT Server:
   


To switch the relais from my MQTT server I test it with :
set MQTT2_FCB4671111D0 output1_valve true
set MQTT2_FCB4671111D0 output1_value on
set MQTT2_FCB4671111D0 output1_valve on
set MQTT2_FCB4671111D0 output1_value on
set MQTT2_FCB4671111D0 output1 on/off/true/false
nothing work 


PS: the values different because different times


RE: KCS firmware - MQTT LWT? - admin - 03-12-2024

   
   
This is turn ON relay1, relay2, relay3 for A8 board demo .
this payload should be: 
{"output1":{"value":true}},{"output2":{"value":true}},{"output3":{"value":true}}
   


RE: KCS firmware - MQTT LWT? - admin - 03-12-2024

about sensor auto feedback mqtt problem, we will check and feedback later.


RE: KCS firmware - MQTT LWT? - DieterN - 03-12-2024

(03-12-2024, 02:48 AM)admin Wrote: about sensor auto feedback mqtt problem, we will check and feedback later.

Thank you.
I found a next problem.
In the KC868 Monitor I see adc2: 3,3 V
In the MQTT broker I see adc2_value:2535


regarding your MQTT box.
I have tested it with MQTT explorer, but no error or relais function.
see below
   
I hope you can solve also.
thanks in advance


RE: KCS firmware - MQTT LWT? - admin - 03-12-2024

1. Can you control relay ON/OFF by mqtt command now?
2. after you download KCS firmware, "Monitor" webpage showed config value, you can preset the range and unit. the MQTT feedback "2535", that is RAW code.
for example: 0---4095 RAW code can set to 0--5V or 0--10 meter or ......


RE: KCS firmware - MQTT LWT? - DieterN - 03-13-2024

(03-12-2024, 11:45 AM)admin Wrote: 1. Can you control relay ON/OFF by mqtt command now?
2. after you download KCS firmware, "Monitor" webpage showed config value, you can preset the range and unit. the MQTT feedback "2535", that is RAW code.
for example:  0---4095 RAW code can set to 0--5V or 0--10 meter or ......

1. no
2. I know thats is the raw code. In the picture obove you can see 3.3V. But my broker see the raw code only. Why not 3.3 !!
The temperature values are correct.

The next problem is the missing LWT status!!


RE: KCS firmware - MQTT LWT? - mustafa@arrabi.net - 07-17-2024

(01-08-2024, 08:42 PM)Fip Wrote: Same problem. Temperature from 2 attached DS18B20 sensors is changed ( this change can be seen in web interface Monitor\Sensor\Channel 1 and 2). But no MQTT update is send to MQTT server. Checked with MQTT explorer.
Setting Sensor / Temperature threshold to "0.1" does not have effect.

Setting relay state will update also temperature values.
Workaround from Tarmas to setting
Code:
{"get_datas":{"value":true}}'
works, but this is something what should be fixed in firmware.


Running KC868_A6, Software Version v2.2.2

Where I should add this code? Should I create a new automation in HA and add it there or this has to be added to the sensor configuration?