A MagicMirror module that displays information from homeassistant API.
This code is partially copied from https://github.com/amcolash/MMM-json-feed.
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"]
}
}
]
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) |