ESPEasy MQTT configuration + HA

does this works?

if this also does not works, try to change the hostname from ESPEasy-Klop-LED to ESPEasy_Klop_LED or ESPEasyKlopLED.

Jp… I also try this… nothing was changed… The light did not turn ON or OFF…

take a look at http://www.steves-internet-guide.com/mosquitto_pub-sub-clients/

I did and I test it… did not found any problem, just when action is done nothing happens…

I got it working fine:

# Kaffeemaschine
binary_sensor km:
  - platform: mqtt
    name: "TC91100"
    unique_id: tc91100
    state_topic: "BSTC91100/VACC/status"
#   state_topic: "BSTC91100/gpio/4"
    payload_on: "1"
    payload_off: "0"
    availability:
    - topic: "BSTC91100/status/LWT"
      payload_available: "Online"
      payload_not_available: "Offline"


switch km:
  - platform: mqtt
    name: "cups 5-8"
#   unique_id: tc91100b58
    state_topic: "BSTC91100/B58/status"
    command_topic: "BSTC91100/B58/status"
    payload_on: "1"
    payload_off: "0"
  - platform: mqtt
    name: "cups 2-4"
#   unique_id: tc91100b24
    state_topic: "BSTC91100/B24/status"
    command_topic: "BSTC91100/B24/status"
    payload_on: "1"
    payload_off: "0"
  - platform: mqtt
    name: "off"
#   unique_id: tc91100boff
    state_topic: "BSTC91100/BOFF/status"
    command_topic: "BSTC91100/BOFF/status"
    payload_on: "1"
    payload_off: "0"
    

set plugin Generic - MQTT Import

set rules:

On System#Boot do
  let,1,0
endon

on MQTT#Connected do
  event,publishstatus
endon

// loop

On B58 do               // B58 - gpio 14 - D5
  pulse,14,1,500
  pulse,2,0,500
  let,1,1
endon

On B24 do               // B24 - gpio 12 - D6
  pulse,12,1,500
  pulse,2,0,500
  let,1,1
endon 

On BOFF do              // BOFF - gpio 13 - D7
  pulse,13,1,500
  pulse,2,0,500
endon

on MQTTIN#BOFF do
  if [MQTTIN#BOFF]=1
      pulse,13,1,500
      pulse,2,0,500
  endif
endon

on MQTTIN#B58 do
  if [MQTTIN#B58]=1
     pulse,14,1,500
     pulse,2,0,500
     let,1,1
  endif
endon

on MQTTIN#B24 do
  if [MQTTIN#B24]=1
     pulse,12,1,500
     pulse,2,0,500
     let,1,1
  endif
endon

on VACC#status do
  if %eventvalue%=1  // status = 1
    if %v1%=1        // status = 1 var1 = 1
       logentry,"Working"
    endif
  else               // status = 0
    if %v1%=1        // status = 0 var1 =1
       let,1,0
       logentry,"Finished"
    endif 
  endif
endon