Home Assistant integration
Hello everyone,
Is anybody using home assistant on firewalla (purple)?
-
I don't have a guide yet. I'll post my docker-compose.yml in another comment, though.
The biggest issue I ran into was that the default docker partition on FWP is only 2 gigs big. My homeassistant image is 1.2 gigs by itself, without the database (which can grow like crazy if you don't tune your logging/history). Since I also have a few other docker images & volumes, I needed more than 2 gigs.
I wrote up how I moved the default docker directory to the SD card, though. That post is here
https://help.firewalla.com/hc/en-us/community/posts/4491452568851-Moving-docker-to-SD-card-on-Firewalla-Purple -
The general ideas behind running docker containers via docker-compose is elsewhere on this site.
For homeassistant, I created the directory /home/pi/.firewalla/run/docker/homeassistant and created a docker-compose.yml file there containing the following:
version: '3'
services:
homeassistant:
container_name: homeassistant
image: "homeassistant/home-assistant:latest"
environment:
- TZ=America/New_York
volumes:
- homeassistant_data:/config
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
network_mode: host
volumes:
homeassistant_data:
external: trueAlso, this depends on having a volume homeassistant_data already created:
sudo docker volume create homeassistant_data
-
The [DRAFT] API docs are here...
https://help.firewalla.com/hc/en-us/articles/5345330648083-MSP-API-Getting-Started-
To join, please fill out this form https://forms.gle/mF4LYu849YBZbGtL9 8
And then send help@firewalla.com an email and make sure you include the email you registered the MSP instance with and the subject Firewalla API test.Copied from here:
https://community.home-assistant.io/t/integration-with-firewalla/214202/13?
-
If anyone involved in Firewalla development is reading this, the MSP route is pretty heavyweight and roundabout way to get a few basic stats for a HA dashboard. The Firewalla app is more than capable of managing the device as a whole, but it'd be nice to have direct access to some basic stats to populate an HA dashboard, essentially just the info that the first screen on the app shows (traffic flows, WAN speed, that sort of thing) but without having to open the app, and without having to go via a cloud service. Would it be possible to make basic read-only stats available directly from the device through something like MQTT or a REST API?
Please sign in to leave a comment.
Comments
8 comments