GithubHelp home page GithubHelp logo

fsy89 / homeassistant-wled-card Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shaegi/homeassistant-wled-card

0.0 0.0 0.0 20 KB

Home Assistant Lovelace Card to control https://github.com/Aircoookie/WLED solution to "controlling WS2812B RGB LEDs with an ESP8266 over WiFi"

CSS 10.94% JavaScript 89.06%

homeassistant-wled-card's Introduction

WLED Hassio Lovelace Card

First of all big thanks to Aircoookie and his incredible work at the WLED repo, without it this wouldn't be possible!

Test

Installation Guide

  1. Set up MQTT Broker for WLED (restart after setting it)

Guide: https://www.home-assistant.io/addons/mosquitto/

  1. Download libs and put them into config/www/lib on your hassio/config
  1. Clone repo and put it under www/wled_control/

  2. Add this to ressources in config/lovelace.ui.yaml

  - url: /local/lib/tingle.min.css
    type: css
  - url: /local/wled_control/static/wled.css
    type: css
  - url: /local/wled_control/static/effects.js
    type: js
  - url: /local/wled_control/static/fastLEDPallete.js
    type: js
  - url: /local/lib/tingle.min.js
    type: js
  - url: /local/lib/iro.min.js
    type: js
  - url: /local/wled_control/wled_control.js
    type: module

  1. Add the custom card like this

Note: IP is needed to load the initial state of WLED since we don't save the state in hassio all communication with the led will happen by MQTT-Messages

- type: custom:wled-control-card
        topic: "wled/[MQTTCHANNEL]"
        ip: "[WLEDIP]"
        title: WLED Strip
        

Troubleshooting

Example lovelace.config.yaml

title: Home
resources:
  - url: /local/lib/tingle.min.css
    type: css
  - url: /local/wled_control/static/wled.css
    type: css
  - url: /local/wled_control/static/effects.js
    type: js
  - url: /local/wled_control/static/fastLEDPallete.js
    type: js
  - url: /local/lib/tingle.min.js
    type: js
  - url: /local/lib/iro.min.js
    type: js
  - url: /local/wled_control/wled_control.js
    type: module

views:
    # View tab title.
  - title: MyLoveLaceUi
    cards:
      - type: custom:wled-control-card
        topic: "wled/lamp1"
        ip: "192.168.0.94/"
        title: lamp1
      - type: custom:wled-control-card
        topic: "wled/lamp2"
        ip: "192.168.0.95/"
        title: lamp2

Resulting folder/file structure

  /wwww
    /wled_control
      /static
        effects.js
        fastLEDPallete.js
        wled.css
      wled_control.js
    /lib
      iro.min.js
      tingle.min.css
      tingle.min.js
  ui-lovelace.yaml

Still got problems?

Report the issue via github and I will try to help you!

homeassistant-wled-card's People

Contributors

marvinwalther avatar shaegi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.