02-03-2024, 08:46 PM
(01-09-2024, 12:39 AM)admin Wrote: sorry, MQTT not work with IFTTT command. i think you can use another way. you can config by ESPHome, it will support MQTT and IFTTT by your own setting.
Hi!
1) i have same task. Can you send some information how to do it?
2)I configure some IFTTT rules - it work fine, but i cant recieve\send any information via MQTT at all - i think instruction for MQTT connection is old - i have few errors in HA
i try this instruction: https://www.kincony.com/kc868-h32b-integ...-mqtt.html
but HA says some think like "this instruction was removed" for:
broker: 192.168.1.96
port: 1883
username: mqtt
password: 123
so my config is:
#=========KinCony A8 Ventilation=============
mqtt:
switch:
- name: 'A8_output-1'
unique_id: A8-output-1
state_topic: 'KC868_A8/B0A732862D60/state'
command_topic: 'KC868_A8/B0A732862D60/set'
payload_on: '{"relay1":{"on":1}}'
payload_off: '{"relay1":{"on":0}}'
value_template: '{{ value_json.relay1.on }}'
state_on: 1
state_off: 0
- name: 'output-2'
unique_id: output-2
state_topic: 'KC868_A8/B0A732862D60/state'
command_topic: 'KC868_A8/B0A732862D60/set'
payload_on: '{"relay2":{"on":1}}'
payload_off: '{"relay2":{"on":0}}'
value_template: '{{ value_json.relay2.on }}'
state_on: 1
state_off: 0
#======== same for channel 3-8==============
binary_sensor:
- name: 'input-1'
unique_id: input-1
state_topic: 'KC868_A8/B0A732862D60/state'
value_template: '{{ value_json.input1.on }}'
payload_on: 1
payload_off: 0
- name: 'input-2'
unique_id: input-2
state_topic: 'KC868_A8/B0A732862D60/state'
value_template: '{{ value_json.input2.on }}'
payload_on: 1
payload_off: 0
#============same for channel 3-8==========
sensor:
- name: 'A8_temp_ext'
unique_id: A8-temp-ext
state_topic: 'KC868_A8/B0A732862D60/state'
value_template: '{{ value_json.sensor1.temperature }}'
- name: 'A8_temp_int'
unique_id: A8-temp-int
state_topic: 'KC868_A8/B0A732862D60/state'
value_template: '{{ value_json.sensor2.temperature }}'
ATTENTION: "Part sensor:" i made myself, using MQTT Explorer, it may be incorrect
HA start correctly, but i have no any data