• 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.

HomeKit or HomeBridge integration to readout room temperatures

Scheduled Pinned Locked Moved Solved Requests
10 Posts 4 Posters 4.1k Views 4 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.
  • K Offline
    Kuhlemann
    last edited by Kuhlemann Feb 25, 2019, 6:05 PM Feb 24, 2019, 5:08 PM

    Hi,
    I just built my own MM and one thing that I am missing is a possibilty to show the room temperature.
    I also use Apple HomeKit and have a temperature via Philips Hues Motion sensor. But I don’t find a way to let the MagicMirror read the temperature in my HomeKit.
    Has anyone a solution for this?
    MMM-hue-lights ist a great module by the way, but as the name says it only reads the status of the lights, not of the motion sensors.

    My HomeKit room as it looks on the iPhone:
    HomeKit

    J 1 Reply Last reply Feb 26, 2019, 12:54 PM Reply Quote 0
    • J Offline
      j.e.f.f Project Sponsor Module Developer @Kuhlemann
      last edited by Feb 26, 2019, 12:54 PM

      @kuhlemann Given how closed Apple is with their APIs, you may have better luck trying to integrate directly with the Phillips Hue Motion sensor directly than trying to access it via Homekit. No idea if Phillips makes their API available however.

      1 Reply Last reply Reply Quote 0
      • K Offline
        Kuhlemann
        last edited by Kuhlemann Feb 27, 2019, 8:08 PM Feb 27, 2019, 8:04 PM

        I now tried to solve this via ioBroker. I was able to adjust ioBroker via Node-RED to read out the temperature from my Hue motion sensor:
        ioBroker

        I tried to integrate this value via MMM-ioBroker.
        But I can’t get MMM-ioBroker to read the value 20,31.
        The config.js I use is:

          {
            module: 'MMM-ioBroker',
            position: 'top_right',
            config: {
              host: 'localhost',
              port: '8081',
              https: false,
              devices: [
                  { name: 'Haustemperatur',
                    deviceStates: [
                                      { id: 'node-red.0.hue.temperatur', icon: 'wi wi-thermometer', suffix: '°' },
                                  ]
                  },
                ]
            }
          },
        

        The MagicMirror only shows a “-” where the 20,31 should be. The rest of the module loads fine.
        Opening http://localhost:8081 in a browser opens the ioBroker on my Pi without any problem.

        Does anyone have an idea?

        1 Reply Last reply Reply Quote 0
        • E Offline
          evroom
          last edited by Feb 27, 2019, 9:30 PM

          Hi,

          Because of this post I tried to get Homematic IP readings that I successfully integrated in ioBroker.
          I have a separate host for ioBroker and use port 8082.
          I also cannot get MMM-ioBroker to read the temperature and humidity readings.

          My pm2 logsshows:

          0|mm  | Connecting socket for: MMM-ioBroker
          :
          :
          0|mm  | Request Failed.
          0|mm  |  Status Code: 404
          0|mm  | Request Failed.
          0|mm  |  Status Code: 404
          :
          :
          

          What do you see in the log ?

          MagicMirror version: 2.30.0
          Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          Test environment:
          MagicMirror version: v2.30.0
          Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
          Raspbian GNU/Linux 12 (bookworm)

          S 1 Reply Last reply Feb 27, 2019, 10:10 PM Reply Quote 0
          • S Offline
            sdetweil @evroom
            last edited by Feb 27, 2019, 10:10 PM

            @evroom 404 means not found.

            How did the url for the request get created? What does the url look like just before the request is sent?

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • E Offline
              evroom
              last edited by Feb 27, 2019, 10:24 PM

              @sdetweil
              I was hoping the module would take care of this.
              I do not know how a ioBroker URI should look like.
              I configured MMM-ioBroker using the IP and port of my ioBroker host and the ID’s that I used in ioBroker vis to display temperature and humidity of my Homematic IP devices.

              What would be the syntax of a GET call ?

              MagicMirror version: 2.30.0
              Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              Test environment:
              MagicMirror version: v2.30.0
              Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
              Raspbian GNU/Linux 12 (bookworm)

              1 Reply Last reply Reply Quote 0
              • E Offline
                evroom
                last edited by Feb 27, 2019, 10:54 PM

                Okay, got it working.

                In ioBroker I needed to activate the "Build-in Simple-API in web.0.

                Then this works:

                http://[ioBroker_IP]:8082/help
                

                And this works:

                http://[ioBroker_IP]:8082/getPlainValue/hm-rpc.0.xxxxxxxxx.1.ACTUAL_TEMPERATURE
                

                MagicMirror version: 2.30.0
                Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                Test environment:
                MagicMirror version: v2.30.0
                Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                Raspbian GNU/Linux 12 (bookworm)

                S K 2 Replies Last reply Feb 27, 2019, 11:19 PM Reply Quote 1
                • S Offline
                  sdetweil @evroom
                  last edited by Feb 27, 2019, 11:19 PM

                  @evroom cool!.. glad u got it working

                  can u mark this solved? 3 dots to the right of topic…

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    evroom
                    last edited by Feb 28, 2019, 7:48 AM

                    @sdetweil said in HomeKit or HomeBridge integration to readout room temperatures:

                    can u mark this solved? 3 dots to the right of topic…

                    It is the topic of @Kuhlemann , so he needs to try if the solution that worked for me will work for him.

                    MagicMirror version: 2.30.0
                    Raspberry Pi 4 Model B Rev 1.5 (8 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    Test environment:
                    MagicMirror version: v2.30.0
                    Raspberry Pi 3 Model B Plus Rev 1.3 (1 GB RAM)
                    Raspbian GNU/Linux 12 (bookworm)

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      Kuhlemann @evroom
                      last edited by Feb 28, 2019, 7:05 PM

                      @evroom Thank you, this worked for me! I would have never found this out alone!
                      Maybe someone should add this information to MMM-ioBroker!

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      1 / 1
                      • First post
                        5/10
                        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