Home assistant: Difference between revisions
Jump to navigation
Jump to search
(Created page with "First install the https://home-assistant.io/docs/hassbian/installation/ Home Assisstant from the original page. <source lang=yaml> homeassistant: # Name of the locatio...") |
No edit summary |
||
Line 1: | Line 1: | ||
First install the | First install the [[https://home-assistant.io/docs/hassbian/installation/ Home Assisstant]] from the original page. | ||
When installed the daemon you will be can start it with command: '''hass --daemon''' , first time need minutes to recompile all need package. | |||
You will can upgrade the home assisstant with the command: '''pip3 install --upgrade homeassistant''' | |||
<source lang=yaml> | <source lang=yaml> | ||
homeassistant: | homeassistant: | ||
# Configuration template by www.iot4.eu | |||
# Name of the location where Home Assistant is running | # Name of the location where Home Assistant is running | ||
name: Eger | name: Eger | ||
# Location required to calculate the time the sun rises and sets | # Location required to calculate the time the sun rises and sets | ||
latitude: 47 | latitude: 47 | ||
longitude: 20 | longitude: 20 | ||
# Impacts weather/sunrise data (altitude above sea level in meters) | # Impacts weather/sunrise data (altitude above sea level in meters) | ||
elevation: | elevation: 200 | ||
# metric for Metric, imperial for Imperial | # metric for Metric, imperial for Imperial | ||
unit_system: metric | unit_system: metric | ||
Line 18: | Line 24: | ||
zone: | zone: | ||
name: Hadnagy | name: Hadnagy | ||
latitude: 47 | latitude: 47 | ||
longitude: 20 | longitude: 20 | ||
radius: 50 | radius: 50 | ||
icon: mdi:home | icon: mdi:home | ||
Line 56: | Line 62: | ||
sensor: | sensor: | ||
- platform: yr | - platform: yr | ||
#IOT4SH01DS temperature MQTT topic | |||
- platform: mqtt | - platform: mqtt | ||
state_topic: "/iot4/switch/IOT4SH01DS_122F85/temperature" | state_topic: "/iot4/switch/IOT4SH01DS_122F85/temperature" | ||
name: "Nappali" | name: "Nappali" | ||
unit_of_measurement: "C" | unit_of_measurement: "C" | ||
#IOT4SH02RELAY multi temperature MQTT topic | |||
- platform: mqtt | - platform: mqtt | ||
state_topic: "/iot4/switch/IOT4SH02RELAY2_DS_dolgozo/temperature/0" | state_topic: "/iot4/switch/IOT4SH02RELAY2_DS_dolgozo/temperature/0" | ||
Line 72: | Line 80: | ||
name: "Dolgozó" | name: "Dolgozó" | ||
unit_of_measurement: "C" | unit_of_measurement: "C" | ||
#IOT4SH02RELAY BME280 readings | |||
- platform: mqtt | - platform: mqtt | ||
state_topic: "/iot4/switch/IOT4SH01RELAY1_DS_CFEDB3/humidity" | state_topic: "/iot4/switch/IOT4SH01RELAY1_DS_CFEDB3/humidity" | ||
name: "Fürdő páratartalom" | name: "Fürdő páratartalom" | ||
unit_of_measurement: "%" | unit_of_measurement: "%" | ||
#IOT4SH01BME humidity,temperature and pressure topic | |||
- platform: mqtt | - platform: mqtt | ||
state_topic: "/iot4/IOT4SH01BME_E4B879/humidity" | state_topic: "/iot4/IOT4SH01BME_E4B879/humidity" | ||
Line 88: | Line 100: | ||
name: "Nappali BME légnyomás" | name: "Nappali BME légnyomás" | ||
unit_of_measurement: "hPa" | unit_of_measurement: "hPa" | ||
switch: | switch: | ||
#IOT4SH01RELAY mqtt control topic | |||
- platform: mqtt | - platform: mqtt | ||
name: "LED" | name: "LED" | ||
Line 103: | Line 109: | ||
payload_on: "1" | payload_on: "1" | ||
payload_off: "0" | payload_off: "0" | ||
#IOT4SH02BLINDER mqtt control topic | |||
- platform: mqtt | - platform: mqtt | ||
name: "Fel" | name: "Fel" | ||
Line 115: | Line 122: | ||
payload_on: "1" | payload_on: "1" | ||
payload_off: "0" | payload_off: "0" | ||
# Text to speech | # Text to speech | ||
Line 123: | Line 127: | ||
platform: google | platform: google | ||
#connect to local mqtt broker | |||
mqtt: | mqtt: | ||
broker: localhost | broker: localhost |
Revision as of 08:49, 6 June 2017
First install the [Home Assisstant] from the original page.
When installed the daemon you will be can start it with command: hass --daemon , first time need minutes to recompile all need package. You will can upgrade the home assisstant with the command: pip3 install --upgrade homeassistant
homeassistant:
# Configuration template by www.iot4.eu
# Name of the location where Home Assistant is running
name: Eger
# Location required to calculate the time the sun rises and sets
latitude: 47
longitude: 20
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 200
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Budapest
zone:
name: Hadnagy
latitude: 47
longitude: 20
radius: 50
icon: mdi:home
# Show links to resources in log and frontend
introduction:
# Enables the frontend
frontend:
http:
# Uncomment this to add a password (recommended!)
# api_password: PASSWORD
# Uncomment this if you are using SSL or running in Docker etc
# base_url: example.duckdns.org:8123
# Checks for available updates
updater:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time.
history:
# View all events in a logbook
logbook:
# Track the sun
sun:
# Weather Prediction
sensor:
- platform: yr
#IOT4SH01DS temperature MQTT topic
- platform: mqtt
state_topic: "/iot4/switch/IOT4SH01DS_122F85/temperature"
name: "Nappali"
unit_of_measurement: "C"
#IOT4SH02RELAY multi temperature MQTT topic
- platform: mqtt
state_topic: "/iot4/switch/IOT4SH02RELAY2_DS_dolgozo/temperature/0"
name: "Dolgozo radiátor"
unit_of_measurement: "C"
- platform: mqtt
state_topic: "/iot4/switch/IOT4SH02RELAY2_DS_dolgozo/temperature/1"
name: "Kint"
unit_of_measurement: "C"
- platform: mqtt
state_topic: "/iot4/switch/IOT4SH02RELAY2_DS_dolgozo/temperature/2"
name: "Dolgozó"
unit_of_measurement: "C"
#IOT4SH02RELAY BME280 readings
- platform: mqtt
state_topic: "/iot4/switch/IOT4SH01RELAY1_DS_CFEDB3/humidity"
name: "Fürdő páratartalom"
unit_of_measurement: "%"
#IOT4SH01BME humidity,temperature and pressure topic
- platform: mqtt
state_topic: "/iot4/IOT4SH01BME_E4B879/humidity"
name: "Nappali páratartalom"
unit_of_measurement: "%"
- platform: mqtt
state_topic: "/iot4/IOT4SH01BME_E4B879/temperature"
name: "Nappali BME hőmérséklet"
unit_of_measurement: "C"
- platform: mqtt
state_topic: "/iot4/IOT4SH01BME_E4B879/pressure"
name: "Nappali BME légnyomás"
unit_of_measurement: "hPa"
switch:
#IOT4SH01RELAY mqtt control topic
- platform: mqtt
name: "LED"
state_topic: "/iot4/switch/LED/relay/0"
command_topic: "/iot4/switch/LED/relay/0"
payload_on: "1"
payload_off: "0"
#IOT4SH02BLINDER mqtt control topic
- platform: mqtt
name: "Fel"
state_topic: "/iot4/IOT4SH02_BLINDER_828D81/relay/0"
command_topic: "/iot4/IOT4SH02_BLINDER_828D81/relay/0"
payload_on: "1"
payload_off: "0"
- platform: mqtt
name: "Le"
state_topic: "/iot4/IOT4SH02_BLINDER_828D81/relay/1"
command_topic: "/iot4/IOT4SH02_BLINDER_828D81/relay/1"
payload_on: "1"
payload_off: "0"
# Text to speech
tts:
platform: google
#connect to local mqtt broker
mqtt:
broker: localhost
port: 1883
client_id: home-assistant-1
keepalive: 60
username: None
password: None
# certificate: /home/paulus/dev/addtrustexternalcaroot.crt
protocol: 3.1.1