Skip to content
This repository has been archived by the owner on Apr 4, 2020. It is now read-only.

Latest commit

 

History

History
35 lines (29 loc) · 1.48 KB

README.md

File metadata and controls

35 lines (29 loc) · 1.48 KB

MMM-homeassistant-feed

A MagicMirror module that displays information from homeassistant API.

This code is partially copied from https://github.com/amcolash/MMM-json-feed.

Configuration

It is very simple to set up this module, a sample configuration looks like this:

modules: [
  {
    module: 'MMM-homeassistant-sensors',
    position: 'bottom_left',
    config: {
      url: 'http://youehomeassistant:8123/api/states',
      prettyName : 'true',
      stripName: 'true',
      values: ["cover.office", "sensor.owm_pressure"]
    }
  }
]

Configuration Options

Option Description
prettyName Pretty print the name of each JSON key (remove camelCase and underscores).

Default value: true
stripName Removes all keys before the printed key.

Example: a.b.c will print c.
Default value: true
title Title to display at the top of the module.

Default value: JSON Feed
url The url of the homeassitant api .

Default value: REQUIRED
updateInterval The time between updates (In milliseconds). /

Default value: 300000 (5 minutes)
values Specify specific values from the json feed to only show what you need (entity_id).

Example: ["key1", "key2", "keyA.keyB.keyC"]
Default value: [] (Shows all keys in the object)

MMM-homeassistant-sensors