Skip to content

cryptooth/MMM-homeassistant-sensors

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

shows homeassistant sensors on Magic Mirror

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.2%
  • CSS 1.8%