• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Home Assistant Module

Scheduled Pinned Locked Moved Requests
22 Posts 12 Posters 23.1k Views 18 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    robmarkcole
    last edited by Dec 29, 2016, 11:29 AM

    OK using the iFrame module (https://github.com/desertblade/iFrame) I got mirror to show the home-assistant demo page, so a little more work required to get something usable but a start.
    Cheers

    0_1483010955909_upload-65ef9cee-6e82-4886-b9ae-6fdf368131b0
    0_1483010883541_upload-ced3de75-80dd-48d9-9353-c590e3347bca

    C 1 Reply Last reply Jan 1, 2017, 4:36 AM Reply Quote 1
    • C Offline
      cowboysdude Module Developer @robmarkcole
      last edited by Jan 1, 2017, 4:36 AM

      @robmarkcole said in Home Assistant Module:

      OK using the iFrame module (https://github.com/desertblade/iFrame) I got mirror to show the home-assistant demo page, so a little more work required to get something usable but a start.
      Cheers

      0_1483010955909_upload-65ef9cee-6e82-4886-b9ae-6fdf368131b0
      0_1483010883541_upload-ced3de75-80dd-48d9-9353-c590e3347bca

      I am not a programmer either but am very interested in this…

      1 Reply Last reply Reply Quote 0
      • R Offline
        robmarkcole
        last edited by Jan 1, 2017, 5:48 AM

        Hi Cowboy, this post suggests a way forward https://home-assistant.io/blog/2016/04/07/static-website/ I think rather than display the whole HA panel on the mirror, I would display just some key info, such as who is home, house temperature etc. The novel part of the project is then to use Alexa to display information in the centre panel of the mirror, and have that panel dynamically update. It would show the alexa feed (in my case at http://alexa.amazon.co.uk/spa/index.html#cards) but I would add extra functionality to Alexa by integrating with Home-assistant. E.g. if the door-bell rang, I could ask Alexa ‘whos at the door’, and a feed to the front door camera would show in the panel. Any thoughts on this approach?

        1 Reply Last reply Reply Quote 3
        • C Offline
          cowboysdude Module Developer
          last edited by Jan 1, 2017, 7:04 PM

          Well this is where most of these are heading… I like the idea!! NOT to mention that I’m waiting on parts to build a 32" mirror as a control center for my house…

          Temps
          Thermostat
          door locks

          etc…

          1 Reply Last reply Reply Quote 0
          • T Offline
            tkoeberl
            last edited by Nov 23, 2017, 12:24 PM

            Hi,

            take a look @:
            https://github.com/tkoeberl/MMM-homeassistant-sensors

            1 Reply Last reply Reply Quote 0
            • D Offline
              danielgr
              last edited by Nov 23, 2017, 6:57 PM

              @tkoeberl Hi, looks awesome. Cant get mine to work though.
              Did git clone https://github.com/tkoeberl/MMM-homeassistant-sensors.git in the modules folder. I can see a folder called MMM-homeassistant-sensors in the modules folder.

              The config looks like this

              {
                module: 'MMM-homeassistant-feed',
                position: 'top_left',
                config: {
                  url: 'http://URL:8123/api/states?api_password=mypassword',
                  title: 'HA',
                  prettyName: 'true',
                  stripName: 'true',
                  values: ["sensor.olkyl_temperature"]
                }
              },
              

              And it’s nothing there. Like the module is not there at all.

              If i change

                  module: 'MMM-homeassistant-feed',
              

              to

                  module: 'MMM-homeassistant-sensors',
              

              I loads and i just get “Error fetching stats”.

              Any idea what i might have done wrong?

              T 1 Reply Last reply Nov 26, 2017, 2:42 PM Reply Quote 0
              • T Offline
                tkoeberl @danielgr
                last edited by Nov 26, 2017, 2:42 PM

                @danielgr sorry, the first one was a mistake by me. Updated the readme accordingly.

                About the “Error fetching stats”:
                Just set a password for my API an it works like a charm. You have some special chars in your password?
                If you point your browser to the url you can find the string?

                 "entity_id": "sensor.olkyl_temperature"
                
                D 1 Reply Last reply Nov 26, 2017, 2:46 PM Reply Quote 0
                • D Offline
                  danielgr @tkoeberl
                  last edited by danielgr Nov 26, 2017, 3:02 PM Nov 26, 2017, 2:46 PM

                  @tkoeberl
                  Wierd. Nope, just small letters and numbers. Yeah if i use the URL and go to http://URL:8123/api/states?api_password=mypassword i can see everything.

                  EDIT. Also, http://URL:8123/api/states/sensor.olkyl_temperature?api_password=password is working fine from my browser.

                  T 1 Reply Last reply Nov 26, 2017, 3:09 PM Reply Quote 0
                  • T Offline
                    tkoeberl @danielgr
                    last edited by tkoeberl Nov 26, 2017, 3:11 PM Nov 26, 2017, 3:09 PM

                    @danielgr https instead of http? Are you able to wget the page from your Mirror?

                    D 1 Reply Last reply Nov 26, 2017, 3:17 PM Reply Quote 0
                    • D Offline
                      danielgr @tkoeberl
                      last edited by Nov 26, 2017, 3:17 PM

                      @tkoeberl Doh. DNS issues on the MM. Solved.

                      Thanks!

                      M 1 Reply Last reply Apr 15, 2018, 9:14 AM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy