Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 1.83 KB

README.md

File metadata and controls

53 lines (42 loc) · 1.83 KB

Home Assistant (for Toon)

This a Home Assistant App for Toon. It is a basic app to turn devices on and off. Right now only devicetypes are allowed that are able to turn on and off (switch and lights). Other devices will show up, but not able to control.

Design of this app is inspired by Dashtics for toon.

Screenshots

alt tag

Manual Installation

  • Download zip from this repository, unzip contents to a folder named 'homeAssistant' and upload this folder to: '/HCBv2/qml/apps/'
  • Add 'homeAssistant' to the array of 'appsToLoad' in '/HCBv2/qml/qb/base/Globals.qml'
  • Run command killall qt-gui to restart the gui and load home assistant.
  • Click on the new home assistant icon in the notification-bar
  • Click on 'Settings' to enter ip, port, password, and groups (friendly_name, comma delimited).
  • After this, the buttons should show up, based on the devices in the group(s).

Home Assistant Configuration

  • Give Home Assitant a password
  • Add CORS
  • Create custom invisible groups specifically for Toon (optional)

Example config:

http:
  api_password: PASSWORD
  cors_allowed_origins:
    - http://192.168.0.116
    - http://nas

as far I know, https connection is not possible with Toon

Debug

If things ain't going as expected, connecting to Home Assistant manually, from toon with curl.

curl http://IP:PORT/api/states?api_password=PASSWORD

If this isn't responding the states object, you should fix this first.

Or try try debugging:

Try starting the GT-GUI with logging enabled. Change this in /etc/inittab and reboot.
normal:
qtqt:245:respawn:/usr/bin/startqt >/dev/null 2>&1
change to:
qtqt:245:respawn:/usr/bin/startqt >/var/log/qt 2>&1

You could read the /var/log/qt then after rebooting (for example "tail -f /var/log/qt").