Skip to content

klutchell/balena-homeassistant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

balena-homeassistant

Home Assistant - Open source home automation that puts local control and privacy first.

Getting Started

You can one-click-deploy this project to balena using the button below:

deploy with balena

Manual Deployment

Alternatively, deployment can be carried out by manually creating a balenaCloud account and application, flashing a device, downloading the project and pushing it via the balena CLI.

Application Environment Variables

Application envionment variables apply to all services within the application, and can be applied fleet-wide to apply to multiple devices.

Name Description
TZ Inform services of the timezone in your location.
SET_HOSTNAME Set a custom hostname on application start. Default is homeassistant.

Usage

Once your device joins the fleet you'll need to allow some time for it to download the various services.

When it's done you should be able to access the access the app at http://homeassistant.local.

Documentation for Home Assistant can be found at https://www.home-assistant.io/docs/.

Services

esphome

ESPhome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.

The dashboard is running on port 6052.

code-server

Code server is running on port 9000 for editing YAML files directly.

mqtt

Mosquitto is an MQTT broker for Home Assistant listening on port 1883.

zigbee2mqtt

Zigbee2MQTT supports various Zigbee adapters and the Web UI is on port 7000.

frigate

Frigate is a complete and local NVR designed for Home Assistant with AI object detection. The Web UI is on port 5000.

wyze-bridge

Docker container to expose a local RTMP, RTSP, and HLS or Low-Latency HLS stream for ALL your Wyze cameras including the outdoor and doorbell cams. No third-party or special firmware required.

https://github.com/mrlt8/docker-wyze-bridge

influxdb & grafana

You may optionally duplicate the Home Assistant sensor data to an influx database and generate graphs in the Grafana dashboard.

Start by opening a terminal to the influxdb service and creating a database and user credentials.

influx

create database homeassistant
show databases

create user homeassistant with password 'homeassistant'
show users

grant all on homeassistant to homeassistant
exit

Then the following block to your Home Assistant configuration.yml to transfer all state changes to an external InfluxDB database

# https://www.home-assistant.io/integrations/influxdb/
influxdb:
  host: influxdb
  port: 8086
  database: homeassistant
  username: !secret influxdb_user
  password: !secret influxdb_password
  max_retries: 3
  include:
    domains:
      - sensor

The Grafana dashboard should be available at http://homeassistant.local:3000 and the default credentials are admin/admin.

duplicati

Store securely encrypted backups on cloud storage services!

https://github.com/duplicati/duplicati via https://docs.linuxserver.io/images/docker-duplicati

The dashboard should be available at http://homeassistant.local:8200.

hostname

An utility block to set the hostname of devices running balenaOS.

This service is expected to remain in the stopped state after applying changes.

https://github.com/balenablocks/hostname

tailscale

Add your device to your Tailscale network with this block!

https://github.com/klutchell/balena-tailscale

netdata

Netdata is high-fidelity infrastructure monitoring and troubleshooting. Open-source, free, preconfigured, opinionated, and always real-time.

https://github.com/netdata/netdata

The dashboard should be available at http://homeassistant.local:19999.

Contributing

Please open an issue or submit a pull request with any features, fixes, or changes.

About

homeassistant stack for balenaCloud

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •