GithubHelp home page GithubHelp logo

dangreco / ha-card-workbench Goto Github PK

View Code? Open in Web Editor NEW
20.0 1.0 1.0 755 KB

Web IDE for testing during the development of Home Assistant custom cards.

Home Page: https://workbench.dangre.co

License: MIT License

TypeScript 79.69% CSS 17.01% JavaScript 0.65% HTML 2.65%
home-assistant hass hassio ide lovelace lovelace-custom-card hass-card home-assistant-card home-assistant-custom

ha-card-workbench's Introduction

Home Assistant Card Workbench

Faster and more intuitive development & testing for Home Assistant custom cards.

Live Site

Report Bug · Request Feature

About The Project

Screenshot

I couldn't find a nice way of playing around with state values while being able to live refresh the card while working on custom Home Assistant cards. This workbench is a solution to both of those problems.

If you like this project, consider buying me a coffee!

"Buy Me A Coffee"

Built With

Getting Started

Online Workbench

Go to the live workbench.

Disable protection for the site (otherwise it won't be able to load the card script):

disable protection

Local Workbench

Clone the repository:

$ git clone https://github.com/dangreco/ha-card-workbench && cd ha-card-workbench

Install dependencies:

$ yarn install

Start server:

$ yarn dev

Features/Usage

Entities Editor/Viewer

Entities Editor

Entities

This editor is for modifying/viewing entity states. Disconnected from HASS, you can write and read mock values. If you are connected to HASS, the view will change to a JSON tree in read-only mode. (If you want to modify your HASS values, simply disconnect from HASS, and the workbench will remember all the entity states.)

Connection

In the top right corner there is a button to enable a connection to your HASS server for real-time entity access.

Card Config Editor

Config Editor

This editing window lets you edit your card's configuration in the same way that you would normally.

Workbench Config

Workbench Config

This panel allows you to set the location of your card's JS file. If you are on the online workbench and this is not working, please see above on disabling site protection.

There are two "Name" inputs: one for the card's element name (e.g. threedy-card) and the other for the configuration carc's element name (e.g. threedy-config-card).

Roadmap

See the open issues for a list of proposed features (and known issues).

  • Allow emulation/usage of Home Assistant events & services
  • Implement native Lovelace Cards
  • Visual/Code config editor switch

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

ha-card-workbench's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

akarlsten

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.