在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:bruhautomation/ESP-MQTT-JSON-Digital-LEDs开源软件地址:https://github.com/bruhautomation/ESP-MQTT-JSON-Digital-LEDs开源编程语言:Other 100.0%开源软件介绍:ESP MQTT JSON Digital LEDsThis project shows a super easy way to get started using Digital LED strips with Home Assistant, a sick, open-source Home Automation platform that can do just about anything. The code covered in this repository utilizes Home Assistant's MQTT JSON Light Component and an ESP8266 microcontroller. Supported Features Include
Some of the effects incorporate the currrently selected color (sinelon, confetti, juggle, etc) while other effects use pre-defined colors. You can also select custom transition speeds between colors. The transition variable in Home Assistant (HA) also functions to control the animation speed of the currently running animation. The input_slider and automation in the HA configuration example allow you to easily set a transition speed from HA's user interface without needing to use the Services tool. The default speed for the effects is hard coded and is set when the light is first turned on. When changing between effects, the previously used transition speed will take over. If the effects don't look great, play around with the slider to adjust the transition speed (AKA the effect's animation speed). OTA UploadingThis code also supports remote uploading to the ESP8266 using Arduino's OTA library. To utilize this, you'll need to first upload the sketch using the traditional USB method. However, if you need to update your code after that, your WIFI-connected ESP chip should show up as an option under Tools -> Port -> Porch at your.ip.address.xxx. More information on OTA uploading can be found here. Note: You cannot access the serial monitor over WIFI at this point. Demo VideoTutorial VideoParts List
Wiring DiagramHome Assistant Service ExamplesBesides using the card in Home Assistant's user interface, you can also use the Services tool to control the light using the light.turn_on and light.turn_off services. This will let you play with the parameters you can call later in automations or scripts. Fade the Light On Over 5 Seconds - light.turn_on
Flash The Light - light.turn_on
Call Rainbow Effect with Slow Animation Speed - light.turn_on
Fade the Light Off Over 5 Seconds - light.turn_off
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论