Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT messages and IFTTT rules
#1
Hello,
I like much your local implementation of IFTTT system, the interface is quite intuitive and fast to define a rule. Now I would like to involve into the IFTTT rules, some data coming or going out via MQTT protocol, so I am wondering if there is a way to involve MQTT messages into IFTTT conditions or/and actions.
In my opinion, it would be quite interesting to provide a way to send MQTT messages according to some conditions in the device or even take some internal actions according to a value from a specific received MQTT topic.

kind regards,
Yamaray
Reply
#2
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.
Reply
#3
(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


Attached Files Image(s)
   
Reply
#4
(02-03-2024, 08:46 PM)a.demenev@limeup.ru Wrote:
(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

Hi!
i fix this problem, this config is work fine:
Code:
# KinCony A8 - Ventilation sysytem
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:  '{"output1":{"value":true}}'
     payload_off:  '{"output1":{"value":false}}'
     value_template: '{{ value_json.output1.value }}'
     state_on: true
     state_off: false

   - name: 'A8-output-2'
     unique_id: a8_output_2
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     command_topic: 'KC868_A8/B0A732862D60/SET'
     payload_on:  '{"output2":{"value":true}}'
     payload_off:  '{"output2":{"value":false}}'
     value_template: '{{ value_json.output2.value }}'
     state_on: true
     state_off: false

   - name: 'A8-output-3'
     unique_id: a8_output_3
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     command_topic: 'KC868_A8/B0A732862D60/SET'
     payload_on:  '{"output3":{"value":true}}'
     payload_off:  '{"output3":{"value":false}}'
     value_template: '{{ value_json.output3.value }}'
     state_on: true
     state_off: false

   - name: 'A8-output-4'
     unique_id: a8_output_4
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     command_topic: 'KC868_A8/B0A732862D60/SET'
     payload_on:  '{"output4":{"value":true}}'
     payload_off:  '{"output4":{"value":false}}'
     value_template: '{{ value_json.output4.value }}'
     state_on: true
     state_off: false

   - name: 'A8-output-5'
     unique_id: a8_output_5
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     command_topic: 'KC868_A8/B0A732862D60/SET'
     payload_on:  '{"output5":{"value":true}}'
     payload_off:  '{"output5":{"value":false}}'
     value_template: '{{ value_json.output5.value }}'
     state_on: true
     state_off: false

   - name: 'A8-output-6'
     unique_id: a8_output_6
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     command_topic: 'KC868_A8/B0A732862D60/SET'
     payload_on:  '{"output6":{"value":true}}'
     payload_off:  '{"output6":{"value":false}}'
     value_template: '{{ value_json.output6.value }}'
     state_on: true
     state_off: false

   - name: 'A8-output-7'
     unique_id: a8_output_7
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     command_topic: 'KC868_A8/B0A732862D60/SET'
     payload_on:  '{"output7":{"value":true}}'
     payload_off:  '{"output7":{"value":false}}'
     value_template: '{{ value_json.output7.value }}'
     state_on: true
     state_off: false
     
   - name: 'A8-output-8'
     unique_id: a8_output_8
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     command_topic: 'KC868_A8/B0A732862D60/SET'
     payload_on:  '{"output7":{"value":true}}'
     payload_off:  '{"output7":{"value":false}}'
     value_template: '{{ value_json.output8.value }}'
     state_on: true
     state_off: false

 
  binary_sensor:
   - name: 'A8-input-1'
     unique_id: a8_input_1
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.input1.value }}'
     payload_on: on
     payload_off: off

   - name: 'A8-input-2'
     unique_id: a8_input_2
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.input2.value }}'
     payload_on: on
     payload_off: off

   - name: 'A8-input-3'
     unique_id: a8_input_3
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.input3.value }}'
     payload_on: true
     payload_off: false

   - name: 'A8-input-4'
     unique_id: a8_input_4
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.input4.value }}'
     payload_on: true
     payload_off: false
     
   - name: 'A8-input-5'
     unique_id: a8_input_5
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.input5.value }}'
     payload_on: true
     payload_off: false     
     
   - name: 'A8-input-6'
     unique_id: a8_input_6
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.input6.value }}'
     payload_on: true
     payload_off: false

   - name: 'A8-input-7'
     unique_id: a8_input_7
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.input7.value }}'
     payload_on: true
     payload_off: false

   - name: 'A8-input-8'
     unique_id: a8_input_8
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.input8.value }}'
     payload_on: true
     payload_off: false
     
  sensor: 
   - name: 'A8-temp-ext'
     unique_id: a8_temp_ext
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.sensor1.temperature }} '
     unit_of_measurement: '°C'
     
     
   - name: 'A8-temp-int'
     unique_id: a8_temp_int
     state_topic: 'KC868_A8/B0A732862D60/STATE'
     value_template: '{{ value_json.sensor2.temperature }}'
     unit_of_measurement: '°C'
     
#==============END Kincony A8==========


Attached Files Image(s)
   
Reply
#5
Yes, The new version of home assistant has changed its syntax.
Reply
#6
(02-04-2024, 01:10 PM)admin Wrote: Yes, The new version of home assistant has changed its syntax.

Yes, that's what I thought. 
I spent more than 10 hours to found solution - i am just a beginner user of Home Assistant and  KinCony

Please, update your documentation - i think it will be usefull for other people
Reply
#7
you can see this topic: https://www.kincony.com/forum/showthread.php?tid=1998
Reply
#8
(02-04-2024, 01:39 PM)admin Wrote: you can see this topic: https://www.kincony.com/forum/showthread.php?tid=1998

Yes, i saw it, but syntax is different
that's was a problem
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)