Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed: Can a WS2812 be controlled via MQTT? #643

Closed
mihalski opened this issue Jul 26, 2017 · 6 comments
Closed

Fixed: Can a WS2812 be controlled via MQTT? #643

mihalski opened this issue Jul 26, 2017 · 6 comments

Comments

@mihalski
Copy link

I have the WS2812 shield for Wemos D1 and have been trying to figure out if it's possible to control the state of the light (on/off, colour, blinking) via MQTT but have not being able to find any way to do so.

Is this something that Tasmota is capable of?

Regards,
Michal

@arendst
Copy link
Owner

arendst commented Jul 26, 2017

Mine is working fine. So keep digging.

image

image

@mihalski
Copy link
Author

Where is that 2nd image from? I've never seen it.
This is my config:
screen shot 2017-07-26 05 58 26 pm
I only have 1 pixel in this config.

@arendst
Copy link
Owner

arendst commented Jul 26, 2017

The second image is my own unsupported in-house front-end running on an apache server.

That config works fine with me. See Wiki commands specific for WS2812.

@mihalski
Copy link
Author

Seems I had to break a bit of a barrier of understanding to get it working.

But I'm still unclear about how I would make it blink at a certain rate. Sending POWER ON/OFF commands repeatedly seems like a hack.

Would I need to modify the code to add my own "scheme"?

@joecotton
Copy link

joecotton commented Jul 26, 2017 via email

@mihalski
Copy link
Author

Oh!! I had NO idea this applied to other lights connected! I thought it only applied to the relay linked light.

Thank you! It probably would have taken me weeks to stumble upon that.

@arendst arendst changed the title Can a WS2812 be controlled via MQTT? Fixed: Can a WS2812 be controlled via MQTT? Jul 26, 2017
arendst added a commit that referenced this issue Sep 16, 2017
5.7.1i
* Add blink to WS2812 and Sonoff Led (#643)
arendst added a commit that referenced this issue Sep 18, 2017
5.8.0 20170918
 * Remove the need for NeoPixelBus library for Hue
support
 * Consolidate WS2812 into Sonoff Led for flexible future led
strip library changes
 * Invert WS2812 fade speed to align with Sonoff
led (Speed 1 = fast, Speed 8 = slow)
 * Remove upper case MQTT receive
buffer
 * Reduce code and string length for output of commands Modules
and GPIOs
 * Add Sonoff SC debug information
 * Change syslog service
 *
Removed webserver syslog disable as now no longer needed
 * Increased
default MQTT message size from 368 to 405 bytes while keeping
MQTT_MAX_PACKET_SIZE = 512 (because we can)
 * Fix MQTT Offline or
Remove MQTT retained topic code
 * Fix Domoticz loop when Emulation is
selected
 * Add blink to WS2812 and Sonoff Led (#643)
 * Add option
WIFI_WAIT (5) to command WifiConfig to allow connection retry to same AP
without restart or update flash (#772, #869)
 * Add support for Witty
Cloud (#794)
 * Add GPIO14 to Sonoff Dual (#797, #839)
 * Add support
for Yunshan Wifi Relay (#802)
 * Add GPIO16 input pulldown (#827)
 * Add
timeout to DHT and DS18B20 sensors (#852)
 * Fix watchdog timeout caused
by lack of stack space by moving to heap (#853)
 * Allow LogPort and
MqttPort up to 65535 and add LogPort tot Status 3 (#859)
 * Allow
command SwitchTopic in group mode (#861)
 * Allow command SwitchMode if
no switches are defined (#861)
 * Add optional dimmer parameter to
command Wakeup for WS2812, AiLight, Sonoff B1, Led and BN-SZ01 (#867)
 *
Fix basic On, Off, Toggle, Blink and BlinkOff commands when other
language is selected (#874)
curzon01 pushed a commit to curzon01/Tasmota that referenced this issue Sep 6, 2018
5.7.1i
* Add blink to WS2812 and Sonoff Led (arendst#643)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants