-
Notifications
You must be signed in to change notification settings - Fork 120
Home Assistant
Home Assistant (HASS) is an open-source home automation platform running on Python 3.
Configure HASS by editing the file configuration.yaml
to be found in folder .homeassistant
at first installation or /config
if using Hass.io.
After every change to the configuration file you'll need to restart HASS to make it aware of the changes. On my Hass.io system I perform the command hassio ha restart
.
If you want to receive all sensors update after Home Assistant (re)start be sure to include birth_message in mqtt component configuration
mqtt:
broker: 1.1.1.1
birth_message:
topic: 'homeassistant/status'
payload: 'online'
To use your EQ3 Bluetooth smart thermostat in your HASS installation, add the following to your HASS configuration.yaml
file:
# Example configuration.yaml entry
climate:
- platform: mqtt
qos: 1
name: Bedroom Thermostat
current_temperature_topic: thermostat/bedroom/current_temperature
temperature_state_topic: thermostat/bedroom/target_temperature
temperature_command_topic: thermostat/bedroom/target_temperature/set
mode_state_topic: thermostat/bedroom/mode
mode_command_topic: thermostat/bedroom/mode/set
away_mode_state_topic: thermostat/bedroom/away
away_mode_command_topic: thermostat/bedroom/away/set
payload_on: 'on'
payload_off: 'off'
modes:
- heat
- manual
- boost
- eco
sensors:
- platform: mqtt
name: "Bedroom eq3 valve state"
state_topic: "thermostat/bedroom/valve_state"
unit_of_measurement: "%"
For an explanation of this config see the MQTT HVAC page on the HASS Wiki.
To use your Xiaomi Mi Scale in your HASS installation, add the following to your HASS configuration.yaml
file:
# Example configuration.yaml entry
sensor:
- platform: mqtt
name: "MiScale Weight"
state_topic: "miscale/weight/kg"
unit_of_measurement: "kg"
- platform: mqtt
name: "MiScale Impedance"
state_topic: "miscale/impedance"
unit_of_measurement: "Ω"
- platform: mqtt
name: "MiScale Datetime"
state_topic: "miscale/midatetime"
unit_of_measurement: "Datetime"
sensor:
- platform: template
sensors:
weight_user1:
friendly_name: "weight user1"
value_template: >-
{% if states('sensor.miscale') | float >= 68 and states('sensor.miscale') | float <= 72 %}
{{ states("sensor.miscale") }}
{% endif %}
unit_of_measurement: 'kg'
icon_template: mdi:scale-bathroom
weight_user2:
friendly_name: "weight user2"
value_template: >-
{% if states('sensor.miscale') | float >= 77 and states('sensor.miscale') | float <= 82 %}
{{ states("sensor.miscale") }}
{% endif %}
unit_of_measurement: 'kg'
icon_template: mdi:scale-bathroom
For an explanation of this config see the MQTT Sensor page on the HASS Wiki.
To use your Linak Desk via DPG bluetooth remote in your HASS installation, add the following to your HASS configuration.yaml
file:
# Example configuration.yaml entry
sensor:
- platform: mqtt
name: "Desk height"
state_topic: "linak_desk/height/cm"
unit_of_measurement: "cm"
For an explanation of this config see the MQTT Sensor page on the HASS Wiki.
To use your Xiaomi Mi Flora plant sensor in your HASS installation, add the following to your HASS configuration.yaml
file:
# Example configuration.yaml entry
plant:
herbs:
sensors:
moisture: sensor.miflora_herbs_moisture
battery: sensor.miflora_herbs_battery
temperature: sensor.miflora_herbs_temperature
conductivity: sensor.miflora_herbs_conductivity
brightness: sensor.miflora_herbs_light
min_moisture: 20
max_moisture: 60
min_battery: 17
min_conductivity: 500
min_temperature: 15
sensor:
- platform: mqtt
state_topic: miflora/herbs/temperature
name: "MiFlora Temperature"
unit_of_measurement: "°C"
- platform: mqtt
state_topic: miflora/herbs/moisture
name: "MiFlora Moisture"
unit_of_measurement: "%"
- platform: mqtt
state_topic: miflora/herbs/light
name: "MiFlora Light"
unit_of_measurement: "lux"
- platform: mqtt
state_topic: miflora/herbs/conductivity
name: "MiFlora Conductivity"
unit_of_measurement: "us/cm"
- platform: mqtt
state_topic: miflora/herbs/battery
name: "MiFlora Battery"
unit_of_measurement: "%"
For an explanation of this config see the Plant Monitor page on the HASS Wiki.
To use your SwitchBot in your HASS installation, add the following to your HASS configuration.yaml
file:
- platform: mqtt
name: "Heater Switch"
state_topic: "switchbot/bathroom/heater"
command_topic: "switchbot/bathroom/heater/set"
availability_topic: "switchbot/bathroom/heater/available"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 1
retain: false
Getting Started
Home Automation Integration
Help