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.4k 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.
    • J Offline
      j.e.f.f Project Sponsor Module Developer @Kuhlemann
      last edited by

      @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
      • KuhlemannK Offline
        Kuhlemann
        last edited by Kuhlemann

        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
        • evroomE Offline
          evroom
          last edited by

          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 Reply Quote 0
          • S Offline
            sdetweil @evroom
            last edited by

            @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
            • evroomE Offline
              evroom
              last edited by

              @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
              • evroomE Offline
                evroom
                last edited by

                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 KuhlemannK 2 Replies Last reply Reply Quote 1
                • S Offline
                  sdetweil @evroom
                  last edited by

                  @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
                  • evroomE Offline
                    evroom
                    last edited by

                    @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
                    • KuhlemannK Offline
                      Kuhlemann @evroom
                      last edited by

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