https://github.com/magdyamr542/homeassistant-prototype
https://github.com/magdyamr542/homeassistant-prototype
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/magdyamr542/homeassistant-prototype
- Owner: magdyamr542
- Created: 2024-04-12T19:41:55.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-14T11:42:08.000Z (over 1 year ago)
- Last Synced: 2025-05-29T23:37:20.803Z (4 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Home assistant prototype
1. Install [vagrant](https://developer.hashicorp.com/vagrant/install?product_intent=vagrant)
1. Install [virtual box](https://www.virtualbox.org/wiki/Downloads)
1. Prepare the vm. Go to the vms directory `cd vms`
1. Create the vm using `vagrant up` (this will take some time since go will be installed in the vm as well)
1. SSH into the vm using `vagrant ssh`
1. Bootstrap influx db and create the auth token
- `make up-influx`
- `make influx-initial-setup`
1. Stop the running stack using `docker compose down`
1. Run the full stack using `make up-all`
1. Configure the MQTT broker through the home assistant ui- Broker host: `mosquitto`
- Broker user: `admin`
- Broker password: `password`1. Restart home assistant from the ui
1. Start publishing data either by:
- `make mqtt-publish-room-temprature` OR
- `cd ./mqtt-sample-app && make publish-data` (you have to have golang installed)