GithubHelp home page GithubHelp logo

mmm-homeassistant-sensors's Introduction

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

mmm-homeassistant-sensors's People

Contributors

tkoeberl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mmm-homeassistant-sensors's Issues

Limit decimal places

Hello;

I just installed your module, its all working well - just one small detail; How can I limit the displayed data to 1 decimal place rather than 2?

Support for passwords

Hi Tkoeberl,

nice module!

Is there support for the site login?

Thank you very much.
Greentings Walter

Device Class

Is there any way to change the states that are outputted based on the device class?

authentication broken after Hassio update

After Hassio introduced local accounts, i seem to not be able to get the values from Hassio.

Hassio recognizes this as a IP adress that tries to log in but is denied.

Values align

Hello,

First, thanks for great plugin, I have added it to the table of magic mirror 3rd party modules at: https://github.com/MichMich/MagicMirror/wiki/3rd-party-modules

What I need is to implement values align, because when I combine some raw values with on/off states, it doesn't look very good. Is it possible to implement align function of values? I need to use left align for names and right align for values. If it will be changeable, it will be great.

Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.