Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KCS firmware - MQTT LWT?
#3
Sooo...

Another thing that you should consider looking at in your KCS firmware is that the temp and humidity sensor values do not update unless you trigger an input or output of the relay. An MQTT message should be sent on value change of the sensor data according to the threshold set.

I solved it with an automation in Home Assistant that periodically publishes a command to the SET topic with the following payload to update all values available through MQTT:

Code:
'{"get_datas":{"value":true}}'

If anyone is wondering how to get the sensor values in HA, here's the code to add in your configuration.yaml file. Note that it's "humity", not "humidity" as one would expect.

Code:
  sensor:
    - name: "sensor1-temperature"
      unique_id: sensor1-temperature
      state_topic: "KC868_A8/24XXC3AFXXXX/STATE"
      device_class: temperature
      unit_of_measurement: " °C"
      value_template: '{{ value_json.sensor1.temperature }}'

    - name: "sensor1-humidity"
      unique_id: sensor1-humidity
      state_topic: "KC868_A8/24XXC3AFXXXX/STATE"
      device_class: humidity
      unit_of_measurement: " %"
      value_template: '{{ value_json.sensor1.humity }}'
Reply


Messages In This Thread
KCS firmware - MQTT LWT? - by Tarmas - 10-27-2023, 06:05 PM
RE: KCS firmware - MQTT LWT? - by admin - 10-28-2023, 12:27 AM
RE: KCS firmware - MQTT LWT? - by Tarmas - 11-07-2023, 07:06 PM
RE: KCS firmware - MQTT LWT? - by admin - 11-07-2023, 10:37 PM
RE: KCS firmware - MQTT LWT? - by Tarmas - 11-08-2023, 04:39 AM
RE: KCS firmware - MQTT LWT? - by admin - 11-08-2023, 06:30 AM
RE: KCS firmware - MQTT LWT? - by Fip - 01-08-2024, 08:42 PM
RE: KCS firmware - MQTT LWT? - by admin - 01-09-2024, 12:34 AM
RE: KCS firmware - MQTT LWT? - by DieterN - 03-11-2024, 07:30 AM
RE: KCS firmware - MQTT LWT? - by admin - 03-11-2024, 08:17 AM
RE: KCS firmware - MQTT LWT? - by DieterN - 03-11-2024, 09:10 AM
RE: KCS firmware - MQTT LWT? - by admin - 03-11-2024, 10:05 AM
RE: KCS firmware - MQTT LWT? - by DieterN - 03-11-2024, 11:16 AM
RE: KCS firmware - MQTT LWT? - by admin - 03-12-2024, 02:31 AM
RE: KCS firmware - MQTT LWT? - by admin - 03-12-2024, 02:48 AM
RE: KCS firmware - MQTT LWT? - by DieterN - 03-12-2024, 07:37 AM
RE: KCS firmware - MQTT LWT? - by admin - 03-12-2024, 11:45 AM
RE: KCS firmware - MQTT LWT? - by DieterN - 03-13-2024, 08:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)