Git Product home page Git Product logo

toon-hass's Introduction

Toon-HASS

This application is built to integrate some Home Assistant functionalities in Toon thermostat (available in The Netherlands). A rooted Toon is required to be able to use this application.

If you use SSL and Home Assistant version 0.73.0 or higher make sure to set 'ssl_profile: intermediate' in your Home Assistants configuration.yaml (in the http section; https://www.home-assistant.io/components/http/). This is not needed when using the Long-Lived Access token authentication.

My main goal was to enable some key features on the Toon thermostat so i didn't need a second screen on the wall. For extended details about my home automation I will grab my laptop. With this idea in mind I built integration for;

  • 8 sensors
  • 4 scenes
  • 5 switches/input_booleans/lights
  • 1 input_number (max 6 options)
  • 1 custom alarm

The tile will show the first 3 configured sensors. If you don't enter an alarm object, this space will be left empty.

I'm not a developer so I'm sure the code isn't what it should be, if you have any remarks or hints/tips about some pieces of code please let me know.

How to install:

  1. Copy the homeassistant folder to Toon directory "/HCBv2/qml/apps/"
  2. On firmware before 4.16 edit file "/HCBv2/qml/qb/base/Globals.qml"; Add ""homeassistant"," to the list of apps to load (make sure to save your changes)

alt text

  1. Run command "killall qt-gui" to restart Toons user interface
  2. Add the app called "homeassistant" to a new tile

alt text

alt text

  1. When starting the app for the first time the screen will be pretty much empty, click on "Instellingen" to configure the app
  2. On the configuration page enter the Home Assistant connection info and entity_id's you want to be shown (press the left/right arrows to scroll through sensors/scenes/switches)

You need to manually generate a long-lived access token from your Home Assistant system and add this token to the "token.txt" file on your Toon. This file is located at /HCBv2/qml/apps/homeassistant/. To generate a token navigate to your user profile in the Home Assistant gui and scroll down to the bottom where you see "Long-Lived Access Tokens" (and press generate). The password textbox can be left empty.

If you still use a password to authenticate with Home Assistant choose 'Legacy pass' on the configuration page of the Toon app and enter your password in the textbox.

alt text

  1. Press "Opslaan" to save your configuration. If all is well the information will be retrieved from your Home Assistant system

alt text

Friendly names configured in your Home Assistant config are used to show the objects on the Toon. So make sure all items you want Toon to show have a friendly name.

All objects are refreshed every minute (because of the sensor info located on the tile), upon opening the app, pressing the "Opslaan" button on the configuration screen and by pressing the Home Assistant image on the app home screen (top right).

toon-hass's People

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.