Github Devices Community Docs Blog

Hassio mqt configuration

So i manage to send MQTT messages using the developoer IFC. But when I make a switch it does not work:
Message:
home/OpenMQTTGateway_ESP32_Pilight/commands/MQTTtoPilight
{“message”:"{“id”:0,“unit”:0,“off”:1}",“protocol”:“arctech_switch_old”,“length”:"",“repeats”:2,“status”:2}

Config:

  • platform: mqtt
    name: “booklights”
    state_topic: “home/OpenMQTTGateway_ESP32_RF/PilighttoMQTT” # defined by subjectGTWRFtoMQTT in User_config.h
    command_topic: “home/OpenMQTTGateway_ESP32_Pilight/commands/MQTTtoPilight1”
    payload_on: ‘{“message”:"{“id”:0,“unit”:0,“on”:1}",“protocol”:“arctech_switch_old”,“length”:"",“repeats”:2,“status”:2}’
    payload_off: ‘{“message”:"{“id”:0,“unit”:0,“off”:1}",“protocol”:“arctech_switch_old”,“length”:"",“repeats”:2,“status”:2}’
    optimistic: false
    retain: true

Edit: There is a backslash before " around id, unit, on, off

Problem solved, It was i typoe. There is a 1 After MQTTtoPilight.