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.

    MMM-Domiticz

    Scheduled Pinned Locked Moved Utilities
    68 Posts 18 Posters 51.0k 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.
    • C Offline
      Charley Module Developer
      last edited by yawns

      Description

      Hello MagicMirror users,

      I have made a module to display data from your Domoticz system.

      At this moment it shows the devices that have been switched on. The CO2 levels with a threshold and the level of the battery driven devices.

      In this module you can set your own labels in your preferred langauge

      Screenshots

      0_1522221997050_screendomoticz.png
      More options are coming soon

      Download

      [card:SpoturDeal/MMM-Domoticz]

      MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

      1 Reply Last reply Reply Quote 0
      • M Offline
        marcnlx
        last edited by

        Awesome…gonna test it out tonight!

        1 Reply Last reply Reply Quote 0
        • C Offline
          Charley Module Developer
          last edited by

          Just let me know if you like something added.

          MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

          1 Reply Last reply Reply Quote 1
          • F Offline
            Fonfon
            last edited by

            HI !

            Awesome module so great
            how is possible to adapt it fot my country and my town ?
            please

            1 Reply Last reply Reply Quote 0
            • C Offline
              Charley Module Developer
              last edited by Charley

              In your config.js you just add the proper Titles

              energyTitle: ‘Energy used by’ ,
              batteryTitle: ‘Battery level’,
              coTitle: ‘CO2 level’

              these values are by default, so if you don’t give any titles It will be in English

              Domoticz is from your home domotica system.

              MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

              1 Reply Last reply Reply Quote 0
              • M Offline
                marcnlx
                last edited by

                For some reason I can’t get it to work…

                I copy & pasted the example from Github (corrected the Domiticz typo), changed the API details, but it doesn’t work. I suspect this other Domoticz module could have something to do with it…

                MMM-domoticz

                {
                                       module: 'MMM-domoticz/domoticz',
                                       header: 'Smart Home',
                                       position: 'bottom_left',
                                       config: {
                                       apiBase: "http://192.168.1.12",
                                       apiPort: "80",
                                       sensors: [
                

                I changed renaming MMM-Domoticz (this module) to MMM-Domoticz2, but then it also would not run. Below is a copy of my config.js entry:

                {
                        module: "MMM-Domoticz",
                        position: "bottom_left",   // see mirror setting for options
                        config: {
                                updateInterval: 45, // every 45 seconds
                                apiBase: '192.168.1.12',
                                apiPort: 80,
                                apiUser: "abcd",
                                apiPw: "efgh",
                                moduleTitle: "Current temperatures Domiticz",
                                energyTitle: "Energy used by",
                                batteryTitle: "Battery level",
                                coTitle: "CO2 level"
                                energyNow: "Currently",
                                energyTotal: "Energy used",
                                batteryThreshold: 20,
                                coThreshold: 650,
                                showItems: ['temperature','energy','battery','co'],   // possible items  temperature, energy
                                excludedDevices: ['none']  // Device that will not be shown
                        }
                },
                
                1 Reply Last reply Reply Quote 0
                • C Offline
                  Charley Module Developer
                  last edited by

                  @marknlx Thanks for pointing out the typo. It has been fixed at github

                  Are you sure your Domoticz is using port 80? Normally it is 8080
                  you can try to login to Domtoticz with your browser first.

                  Then enter this url http://192.168.1.12:80/json.htm?type=devices&filter=all&used=true&order=Name

                  It should give you something like

                  {
                     "ActTime" : 1522301589,
                     "AstrTwilightEnd" : "22:03",
                     "AstrTwilightStart" : "05:22",
                     "CivTwilightEnd" : "20:39",
                     "CivTwilightStart" : "06:45",
                     "DayLength" : "12:46",
                     "NautTwilightEnd" : "21:20",
                     "NautTwilightStart" : "06:05",
                     "ServerTime" : "2018-03-29 07:33:09",
                     "SunAtSouth" : "13:05",
                     "Sunrise" : "07:19",
                     "Sunset" : "20:05",
                     "result" : [
                        {
                           "Data" : "Off",
                           "Description" : "",
                           "Favorite" : 1,
                           "LastUpdate" : "2018-03-28 15:06:24",
                           "Name" : "Livingroom mainlight",
                           "PlanID" : "",
                           "PlanIDs" : [ 0 ],
                           "Protected" : false,
                           "Status" : "Off",
                           "Type" : "Group",
                           "TypeImg" : "group",
                           "UsedByCamera" : false,
                           "XOffset" : 0,
                           "YOffset" : 0,
                           "idx" : "2"
                        },
                  

                  If you don’t get this check the IP address, the Port
                  if it works then check your username and password (case sensitive)

                  Hope you get it to work.

                  MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                  1 Reply Last reply Reply Quote 0
                  • P Offline
                    Peter
                    last edited by

                    I have Domoticz running and I can see the lights that are “on” on the Magic Mirror screen.
                    But I also have several Somfy blinds; they work fine with Domoticz, but how can I see them on the MM screen?
                    Can anybody give me a help?
                    Peter

                    1 Reply Last reply Reply Quote 0
                    • C Offline
                      Charley Module Developer
                      last edited by

                      @Peter I have just updated the module. Now blinds are included.

                      Just update your config.js with a ‘blindsTitle’ and add ‘blinds’ to showItems

                      MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                      P 1 Reply Last reply Reply Quote 0
                      • P Offline
                        Peter @Charley
                        last edited by

                        @Charley can you give me some more help?
                        I have 4 screens, id: 1,2,3,4 and 5 for all the screens together.
                        I would like to see when the screens are open or closed.
                        And if possible: with coloured symbols.
                        Can you tell me what to put in config.js?
                        Peter

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          Charley Module Developer
                          last edited by

                          @peter
                          Look at the GitHub page there is an updated config.js example that should help.

                          MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            Peter
                            last edited by

                            It works!
                            Thanks!
                            The only thing I would like to change is the color of the icons.
                            Peter

                            1 Reply Last reply Reply Quote 0
                            • C Offline
                              Charley Module Developer
                              last edited by

                              @Peter What colours would you like and for what state (On, Off, Open Close)

                              MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                Peter
                                last edited by

                                Maybe lights off, outlets off and screens open in white.
                                Lights on, outlets on and screens down in yellow.
                                Peter

                                1 Reply Last reply Reply Quote 0
                                • C Offline
                                  Charley Module Developer
                                  last edited by Charley

                                  I have added colour yellow to closed Blinds/shutters.
                                  There is no added colour to lights, outlets because the are not visible when they are inactive.
                                  However if you like to add a colour you can change the code in line 72
                                  make sure you have a space between small and yellow just before the i-element for the icons

                                  MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                                  P 1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    Peter @Charley
                                    last edited by

                                    @Charley thanks, it works!
                                    Maybe you can answer another question: when I close or open the screens with domotics, the icons changes ( and the text open- close) in my Magic Mirror screen but when I close or open the screens with the original remote the icon does not change on the MM screen, only on the domoticz screen.
                                    I hope my question is clear enough.

                                    Peter

                                    1 Reply Last reply Reply Quote 0
                                    • C Offline
                                      Charley Module Developer
                                      last edited by

                                      Hello Peter,

                                      There are two different things. One is Domoticz and the other is MagicMirror.
                                      The module requests data from Domoticz. It is a reply in json.
                                      This comes from my shutter.

                                      {
                                               "AddjMulti" : 1.0,
                                               "AddjMulti2" : 1.0,
                                               "AddjValue" : 0.0,
                                               "AddjValue2" : 0.0,
                                               "BatteryLevel" : 255,
                                               "CustomImage" : 0,
                                               "Data" : "Open",
                                               "Description" : "",
                                               "DimmerType" : "abs",
                                               "Favorite" : 0,
                                               "HardwareID" : 7,
                                               "HardwareName" : "ZwaveUSB",
                                               "HardwareType" : "OpenZWave USB",
                                               "HardwareTypeVal" : 21,
                                               "HaveDimmer" : true,
                                               "HaveGroupCmd" : true,
                                               "HaveTimeout" : false,
                                               "ID" : "00000501",
                                               "Image" : "Light",
                                               "IsSubDevice" : false,
                                               "LastUpdate" : "2018-04-16 08:37:09",
                                               "Level" : 255,
                                               "LevelInt" : 255,
                                               "MaxDimLevel" : 100,
                                               "Name" : "Rolluik",
                                               "Notifications" : "false",
                                               "PlanID" : "7",
                                               "PlanIDs" : [ 7 ],
                                               "Protected" : false,
                                               "ShowNotifications" : true,
                                               "SignalLevel" : "-",
                                               "Status" : "Open",
                                               "StrParam1" : "",
                                               "StrParam2" : "",
                                               "SubType" : "Switch",
                                               "SwitchType" : "Blinds Inverted",
                                               "SwitchTypeVal" : 6,
                                               "Timers" : "true",
                                               "Type" : "Light/Switch",
                                               "TypeImg" : "blinds",
                                               "Unit" : 1,
                                               "Used" : 1,
                                               "UsedByCamera" : false,
                                               "XOffset" : "698",
                                               "YOffset" : "1168",
                                               "idx" : "31"
                                            },
                                      

                                      The Image in this record is not the image in the MagicMirror. The MagicMirror Icons are from Fontawesome version 4.7 there is now a version 5 available but doesn’t like to work along 4.7 in MagicMirror.

                                      The icons you see in my module are based on the type of device retrieved with the json file from Domoticz. See the lines in my code from 55 to line 71

                                      There are no icons for shutters/shades or similar in fontawesome. That is why I use the status text from Domoticz. (In the Netherlands the webinterface is in Dutch but you will see that the status of the blinds are in English)

                                      Hope this clarifies the icon issue.

                                      MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                                      1 Reply Last reply Reply Quote 0
                                      • C Offline
                                        Charley Module Developer
                                        last edited by

                                        Updated today with Humidity and the possibility to not show the subMenus.

                                        I choose not to add the Barometric Pressure and Sound Levels from Netatmo because my screen would be high enough in portrait mode.

                                        MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jaminben
                                          last edited by

                                          Hi Charley,

                                          I’m a newbie to MM so excuse me if the answer is obvious… the temperature and humidity work correctly but is there a way to display one after the other for the same sensor… so in my example screenshot you can see it lists all the temperatures first and then the humidity readings.

                                          Anyway, many thanks for creating the module… it’s fantastic :)

                                          0_1524401116389_house Tempretures.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • C Offline
                                            Charley Module Developer
                                            last edited by Charley

                                            @jaminben Thanks for the thank you, i am still working on it to make it better.

                                            You can add more in your config.js settings

                                                  showItems: ['temperature','energy','battery','co', 'blinds','humidity','baro'],   // possible items  temperature, energy, battery, co, blinds, humidity,  baro
                                            
                                            

                                            Could you please reply with your config settings for this module .(delete any personal information ip,username or password)

                                            I think I misread your question, however all sensors data are grouped in the newest version.

                                            MMM-Bose-Soundtouch, MMM-Domoticz, MMM-crypto-portfolio, MMM-Fibaro, MMM-rain-forecast

                                            J 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • 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