1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-16 03:48:44 +00:00

update hass docs

This commit is contained in:
kev 2017-05-22 11:13:33 +08:00
parent 802ab9d747
commit 10494ffc63

@ -12,10 +12,12 @@ to run on a Raspberry Pi.
``` ```
~/fig/hass/ ~/fig/hass/
├── data/ ├── data/
│ ├── automations.yaml
│ ├── configuration.yaml │ ├── configuration.yaml
│ ├── device_trackers.yaml │ ├── device_trackers.yaml
│ ├── groups.yaml │ ├── groups.yaml
│ └── known_devices.yaml │ ├── known_devices.yaml
│ └── secrets.yaml
└── docker-compose.yml └── docker-compose.yml
``` ```
@ -66,23 +68,36 @@ $ sudo hciconfig hci0 up
```yaml ```yaml
# configuration.yaml # configuration.yaml
group: !include groups.yaml automation: !include automations.yaml
device_tracker: !include device_trackers.yaml device_tracker: !include device_trackers.yaml
group: !include groups.yaml
mqtt:
broker: iot.eclipse.org
port: 8883
certificate: auto
username: !secret mqtt_username
password: !secret mqtt_password
``` ```
```yaml ```yaml
# secrets.yaml
mqtt_username: YOUR_MQTT_USERNAME
http_password: YOUR_MQTT_PASSWORD
```
```yaml
# groups.yaml
default_view: default_view:
view: yes view: yes
entities: entities:
- group.living_room - group.living_room
- group.bedroom - group.bedroom
Living Room: Living Room:
view: no view: no
entities: entities:
- device_tracker.band - device_tracker.band
- device_tracker.iphone - device_tracker.iphone
Bedroom: Bedroom:
view: no view: no
entities: entities:
@ -130,6 +145,14 @@ kevin_android:
vendor: unknown vendor: unknown
``` ```
## setup mosquitto
Use `vimagick/mosquitto:latest` with letsencrypt free certificates.
- https://github.com/vimagick/dockerfiles/tree/master/mosquitto
- https://mosquitto.org/man/mosquitto-conf-5.html
- https://github.com/vimagick/dockerfiles/tree/master/certbot
## setup ibeacon ## setup ibeacon
Use `vimagick/hass:latest`, and disable bluetooth device tracker. Use `vimagick/hass:latest`, and disable bluetooth device tracker.