Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16 home assistant demo configuration.yaml by MQTT
#11
the file is attached.

PS:  While trying to configure the HomeAssistant connection to the A16 in configuration.yaml, I also saw this message:
The esphome integration does not support configuration using a YAML file. You may not notice any obvious integration issues, but any settings defined in the YAML won't actually be applied. To solve this:
1. If you haven't already done so, set up the integration.
2. Remove "esphome:" from the YAML settings file.
3. Restart Home Assistant.


Attached Files
.txt   configuration-yam.txt (Size: 13.34 KB / Downloads: 133)
Reply
#12
this is configuration.yaml.
you need to intsall ESPHome addon on home assistant firstly.
then use this A16's yaml to create device in ESPHome, here is demo yaml file for A16: https://www.kincony.com/forum/showthread.php?tid=1628
Reply
#13
The ESPHome addon has long been installed in HomeAssistant.
Thanks for the link to the contents of the YAML file for A16.
But I still don't know where this file should be saved? How to integrate?
...so far I haven't found a procedure that I can replicate on my H.A..


Attached Files Image(s)
   
Reply
#14
add whatsapp number: +86-15381188302
we use "ANYDESK" software remote control your computer to help you.
Reply
#15
A note for people using the HA YAML, you can get better information on temperature/humidity data in HA if you provide it with a better description of what the sensors are:
Code:
mqtt:
  sensor:
    - name: kc868_temperature_1
      unique_id: uniqueid__kc868_temperature_1
      icon: mdi:thermometer
      state_topic: "KC868_A16/1234ABCD/STATE"
      value_template: "{{ value_json.sensor1.temperature }}"
      unit_of_measurement: "°C"
      device_class: temperature

    # Note that the docs misspell this as "humity", it's actually returned
    # as "humidity".
    - name: kc868_humidity_1
      unique_id: uniqueid__kc868_humidity_1
      icon: mdi:water-percent
      state_topic: "KC868_A16/1234ABCD/STATE"
      value_template: "{{ value_json.sensor1.humidity }}"
      unit_of_measurement: "%"
      device_class: humidity

homeassistant:
  customize:
    sensor.kc868_temperature_1:
      friendly_name: "Temperature"
    sensor.kc868_humidity_1:
      friendly_name: "Humidity"
Reply
#16
(02-02-2025, 12:44 PM)twostar Wrote: A note for people using the HA YAML, you can get better information on temperature/humidity data in HA if you provide it with a better description of what the sensors are:
Code:
mqtt:
  sensor:
    - name: kc868_temperature_1
      unique_id: uniqueid__kc868_temperature_1
      icon: mdi:thermometer
      state_topic: "KC868_A16/1234ABCD/STATE"
      value_template: "{{ value_json.sensor1.temperature }}"
      unit_of_measurement: "°C"
      device_class: temperature

    # Note that the docs misspell this as "humity", it's actually returned
    # as "humidity".
    - name: kc868_humidity_1
      unique_id: uniqueid__kc868_humidity_1
      icon: mdi:water-percent
      state_topic: "KC868_A16/1234ABCD/STATE"
      value_template: "{{ value_json.sensor1.humidity }}"
      unit_of_measurement: "%"
      device_class: humidity

homeassistant:
  customize:
    sensor.kc868_temperature_1:
      friendly_name: "Temperature"
    sensor.kc868_humidity_1:
      friendly_name: "Humidity"

yes, it's right.
Reply
#17
Code:
  sensor:
    - name: kc868_adc_1
      unique_id: uniqueid__kc868_adc_1
      state_topic: "KC868_A8S/1234ABCD/STATE"
      value_template: "{{ value_json.adc1.value }}"
this use for adc1, you can also config for adc2, adc3, adc4.
mqtt state message feedback as this format:
Code:
{"input1":{"value":false},"input2":{"value":false},"input3":{"value":false},"input4":{"value":false},"input5":{"value":false},"input6":{"value":false},"input7":{"value":false},"input8":{"value":false},"input9":{"value":false},"input10":{"value":false},"input11":{"value":false},"input12":{"value":false},"input13":{"value":false},"input14":{"value":false},"input15":{"value":false},"input16":{"value":false},"output1":{"value":false},"output2":{"value":false},"output3":{"value":false},"output4":{"value":false},"output5":{"value":false},"output6":{"value":false},"output7":{"value":false},"output8":{"value":false},"output9":{"value":false},"output10":{"value":false},"output11":{"value":false},"output12":{"value":false},"output13":{"value":false},"output14":{"value":false},"output15":{"value":false},"output16":{"value":false},"adc1":{"value":0},"adc2":{"value":0},"adc3":{"value":0},"adc4":{"value":0},"sensor1":{"temperature":13.5,"humidity":-100},"sensor2":{"temperature":13.375,"humidity":-100},"sensor3":{"temperature":13.5,"humidity":-100}}
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)