Skip to content

Instantly share code, notes, and snippets.

@LarsBergqvist
Created February 7, 2017 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LarsBergqvist/710b929e96c9c890c01a79378af23e69 to your computer and use it in GitHub Desktop.
Save LarsBergqvist/710b929e96c9c890c01a79378af23e69 to your computer and use it in GitHub Desktop.
MQTT sensor configuration for Home Assistant
sensor groundfloor:
- platform: mqtt
state_topic: "Home/GroundFloor/Temperature"
name: 'Ground floor temp'
unit_of_measurement: "C"
sensor outdoor:
- platform: mqtt
state_topic: "Home/Outdoor/Temperature"
name: 'Outdoor temp'
unit_of_measurement: "C"
- platform: mqtt
state_topic: "Home/Outdoor/Humidity"
name: 'Outdoor humidity'
unit_of_measurement: "%"
sensor topfloor:
- platform: mqtt
state_topic: "Home/TopFloor/Temperature"
name: 'Top floor temp'
unit_of_measurement: "C"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment