MQTT question ( MQTT Explorer )

Hello everybody,

how can I implement this in home assistant?
Zigbee2mqtt is already working well. The only thing I haven’t done is to integrate Domoticz via mqtt.
thanks in advance


What you need to is build sensor , binarysensor , switches , lights

base on the mqtt

eg

#=======================================================================
#
#=======================================================================
  - platform: mqtt
    name: "Office Motion"
    state_topic: "nodered/motion"
    qos: 2
    payload_on: "ON"
    payload_off: "OFF"
    device_class: motion

this binarysensor looking at “nodered/motion” turning on/off “Office Motion”

and the office light

inside my light yaml i have

  - platform: mqtt
    name: "Office"
    state_topic: "stat/office/POWER"
    command_topic: "cmnd/office/POWER"
    payload_on: "ON"
    payload_off: "OFF"
    qos: 0
#=======================================================================

will create a lights switch

image

image

Hi there,

this is a switch for the roller shutters. from fibaro

do I need the mqtt cover?

Yeah, that would be the easiest if you want the right icons on the front end and to be able to make generic cover.open calls to it without having to remember “oh yeah, I made that a switch and have to call switch.turn_on to open it”.