Controlling LEDs via MQTT?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
TommySharp
Normal user
Posts: 19
Joined: 20 Oct 2017, 14:30

Controlling LEDs via MQTT?

#1 Post by TommySharp » 28 Oct 2017, 10:19

Firstly I have to say it is VERY frustrating that the forum does not let me search for "LED MQTT"..... I'd be able to help myself then I'm sure.

I've connected up a NeoPixel to my Wemos D1 Mini and using the HTTP command below I can happily control the LED.
http://192.168.1.35/control?cmd=NeoPixelAll,255,255,255

Now I'm trying to control it via MQTT, the logs show that it is properly connecting to the broker.

5884 : MQTT : Connected to broker
5886 : Subscribed to: /ESP_Easy_01/#

Can someone help me out with with the syntax to publish to the device and set the LED colours? I only have one devices setup as task 1.

Also I was expecting that when I updated the LED using the HTPP method that it would publish to the MQTT broker so that my OpenHAB setup could be updated with the current status of the LEDs... Is this not the case?

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Controlling LEDs via MQTT?

#2 Post by grovkillen » 28 Oct 2017, 12:40

Topic

Code: Select all

/ESP_Easy_01/cmd

Payload

Code: Select all

NeoPixelAll,255,255,255
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

Post Reply

Who is online

Users browsing this forum: No registered users and 50 guests