Skip to content

euphi/ESP_Homie_WS2812FX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP_Homie_WS2812FX Build Status platformio

HomieNode of Homie-ESP8266 for WS2812FX Library

openHAB integration

Example configuration for a device with ID labor:

Items

Group WS2812

Dimmer lab_ws_bright  "Brightness"   	(WS2812) {mqtt=">[local:homie/labor/WS2812FX/brightness/set:state:*:default]"}
Dimmer lab_ws_speed   "Speed" 		(WS2812) {mqtt=">[local:homie/labor/WS2812FX/speed/set:state:*:default]"}
String lab_ws_mode    "Mode [%s]"     	(WS2812) {mqtt=">[local:homie/labor/WS2812FX/mode/set:COMMAND:*:default], <[local:homie/labor/WS2812FX/mode:state:default]"}

Sitemap

sitemap lab label="Test Sitemap" {

Frame label="WS2812" {
	Slider item=lab_ws_bright
	Slider item=lab_ws_speed
	Switch item=lab_ws_mode mappings=[next="+", prev="-"]
}


}

Better scaling for speed (percent instead of 8bit)

Change item lab_ws_speed to:

Dimmer lab_ws_speed   "Geschwindigkeit" (Labor) {mqtt=">[local:homie/labor/WS2812FX/speed/set:state:*:JS(scale_percent_to_byte8.js)]"}

and create file scale_percent_to_byte8.js in transform/ subdirectory.

(function(i) {   
    return i*255/100;
})(input)

About

HomieNode of Homie-ESP8266 for WS2812FX Library

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages