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.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.
    • A Offline
      Awn
      last edited by

      Hi,

      First of all, thank you for the hard work on those modules.

      I’m nex to the MM world, and in the linux world in global, and it seems that I won’t be able to make it without your help.
      The module shows “Loading Domoticz data…” and seems to never get them…

      My config.js contains this :

       {
                              module: "MMM-Domoticz",
                              position: "bottom_right", 
                              config:
                                      {
                                      updateInterval: 20,
                                      apiBase: "https://192.168.**.***",
                                      apiPort: 443,
                                      apiUser: "**********",
                                      apiPw: "*********",
                                      moduleTitle: "Domoticz",
                                      temperatureTitle: "Températures dans la maison",
                                      subMenus: true,
                                      showItems: ['temperature', 'humidity'],
                                      textWhite: false,
                                      groupSensors: true,
                                      }
                      },
      
      

      Sadly, it seems that the pi running the MM isn’t getting an answer from the pi running Domoticz.

      I tried the url access from my browser:
      https://192.168..*/json.htm?type=devices&filter=all&used=true&order=Name

      I obtain a return with the different systems connected (RFXCom, Zwave, hue…)

      Can somebody guide me throught this please?

      Thanx !

      Regards,
      Awn

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

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @Awn
          last edited by

          @Awn on the magicmirror, using the keyboard, open the developers window, ctrl-shift-i,
          select the tab labeled console, on the window that opens, scroll up to see any errors

          u may also have to look in the terminal window log for errors from the node_helper

          these will be in the pm2 logs if using pm2.

          do

          pm2 logs --lines=100 
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • J Offline
            Jo-Rien
            last edited by

            I am not getting a neat list with this module, all readings from my temperature meters is shown on two lines and it’s kinda messing up the screen. Any idea what the problem is?

            1 Reply Last reply Reply Quote 0
            • T Offline
              ToniNappi
              last edited by

              Is it possible also exclude sensors from the displayed data? I have about 50 temp sensors and obviously I want only see the most important ones. I tried to put them in exlude list, but it doesn’t seem to work. Nice module still!

              Toni

              1 Reply Last reply Reply Quote 0
              • N Offline
                najtram
                last edited by

                Hi, there.

                Great module!
                It’s passing the described data perfectly except one of my top desired data.

                I’d really love to see “CounterToday” and “Data” from my Enphase Envoy.
                Since this is a kWh subtype it looks like I’m really close, but somehow I only see my P1 data.

                  {
                     "AddjMulti" : 1.0,
                     "AddjMulti2" : 1.0,
                     "AddjValue" : 0.0,
                     "AddjValue2" : 0.0,
                     "BatteryLevel" : 255,
                     "CounterToday" : "0.117 kWh",
                     "CustomImage" : 0,
                     "Data" : "486.173 kWh",
                     "Description" : "",
                     "Favorite" : 0,
                     "HardwareID" : 9,
                     "HardwareName" : "Enphase Envoy",
                     "HardwareType" : "Enphase Envoy with LAN (HTTP) interface",
                     "HardwareTypeVal" : 108,
                     "HaveTimeout" : false,
                     "ID" : "00000901",
                     "LastUpdate" : "2020-09-13 08:31:50",
                     "Name" : "Enphase kWh Production",
                     "Notifications" : "false",
                     "Options" : "",
                     "PlanID" : "0",
                     "PlanIDs" : [ 0 ],
                     "Protected" : false,
                     "ShowNotifications" : true,
                     "SignalLevel" : "-",
                     "SubType" : "kWh",
                     "SwitchTypeVal" : 0,
                     "Timers" : "false",
                     "Type" : "General",
                     "TypeImg" : "current",
                     "Unit" : 1,
                     "Usage" : "280 Watt",
                     "Used" : 1,
                     "XOffset" : "0",
                     "YOffset" : "0",
                     "idx" : "748"
                  },
                
                1 Reply Last reply Reply Quote 0
                • S Offline
                  Sp0nsje
                  last edited by

                  Hi thanks for the great work,

                  Is there a better guide on how to implement certain sensors ?
                  like an ‘‘IDX xx’’ value or something

                  {
                                          module: "MMM-Domoticz",
                                          position: "bottom_right",   // see mirror setting for options
                                          config: {
                                                  updateInterval: 5, // every 45 seconds
                                                  apiBase: "192.168.178.44",
                                                  apiPort: 18080,
                                                  apiUser: "MagicMirror",
                                                  apiPw: "MagicMirror",
                                                  moduleTitle: "My smart home by Domoticz",
                                                  energyTitle: "Energy used by",
                                                  batteryTitle: "Battery level",
                                                  coTitle: "CO2 level",
                                                  blindsTitle: "Blinds",
                                                  energyNow: "Currently using",
                                                  energyTotal: "Energy used",
                                                  energyToday: "Energy used today",
                                                  batteryThreshold: 20,
                                                  coThreshold: 650,
                                                  subMenus: true,
                                                  smartMeter: false,
                                                  smartMeterOffset: 0,
                                                  showItems: ['temperature'], //,'energy','battery','co','blinds','humidity','baro','usage','voltage','alarm','sensor','pulse','meter','rain'],
                                                  excludeDevices: ['none','include your own'],  // Device that will not be shown
                                                  onlyShowExcluded: false, // if true only exluded devices are shown
                                                  textWhite: true,
                                                  alarmOffLabel: "Disabled",
                                                  groupSensors: false,
                                          }
                                  },
                  
                  
                  

                  i can only show the temperatures when i select al the data it wil hang on Loading Domoticz Data…

                  would appriciate different screenshots of codes / layouts on the MM2

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

                    I think there is something broken into code or there is some dependence-package with raspberryOs…
                    In Domoticz I have 30+ devices and In MM shows only a meter device with 0,0,0 values ( I have 3 meter device, no possible value)…
                    If I try open the json url into chromium it says error 401 forbidden, but if I try the same url into Mac safari it simple works.
                    Any Idea?

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      MisterT @Mazzokun
                      last edited by

                      Hi @Mazzokun
                      I had a problem with this module and with the help of @sdetweil a New code is available here. It works with domoticz password

                      [link text] https://forum.magicmirror.builders/topic/11123/mmm-domoticz-cannot-read-property-0-of-undefined/13?page=2
                      (link url)

                      Enjoy

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

                        Hi, Are Domoticz and Magic Mirror installed on one Raspberry Pi? Are they two separate?

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          MisterT @art212
                          last edited by MisterT

                          @art212 Domoticz and Magic mirror are separate. In the config.js, just complete the Ip adress of Domoticz Device and Domoticz user and password if need. In my case, Domoticz is on a raspberry and my magic mirror on a other one

                          A 1 Reply Last reply Reply Quote 1
                          • A Offline
                            art212 @MisterT
                            last edited by

                            @MisterT Ok thanks for the answer. What do you think? Is it possible to run MM and Domoticz together on one Raspberry Pi machine? Because I have a big problem with that. Domoticz is showing me instead of MM. I have to uninstall one for the other to work well …

                            M 1 Reply Last reply Reply Quote 0
                            • M Offline
                              MisterT @art212
                              last edited by

                              @art212 i think it’s possible to run domoticz ans MM on the same raspberry. On terminal, if you write this command line, does domoticz appears on screen ?

                              Sudo service domoticz restart

                              If not domoticz is on but in background and You Can start MM with pm2

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                Mazzokun @MisterT
                                last edited by

                                @MisterT Hi! I tried your code but it doesn’t work… in which folder in domoticz folder I have to copy the script?
                                ty

                                M 1 Reply Last reply Reply Quote 0
                                • M Offline
                                  MisterT @Mazzokun
                                  last edited by

                                  @Mazzokun this command line is just for restart domoricz There is no link directly with magic mirror

                                  The command line in terminal (Home/pi/)

                                  Sudo service domoticz.sh status
                                  Just to know if domoticz is on or off

                                  Sudo service domoticz.sh restart
                                  Just to stop and start again domoticz

                                  Follow this link to start domoticz when raspberry boot

                                  https://www.domoticz.com/wiki/Linux

                                  And chapter

                                  Starting Domoticz automatically when the system boots

                                  A 1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    art212 @MisterT
                                    last edited by

                                    @MisterT

                                    Hey, I do everything according to the guide https://github.com/M-Arvidsson/MMM-domoticz/ and I don’t know what’s wrong. I copied the code to MagicMirror/modules and then in config.js I set it like this:

                                    {
                                    module: ‘marvidsson/domoticz’, //folder
                                    header: ‘Domoticz’,
                                    position: ‘top_left’,
                                    config: {
                                    apiBase: “http://192.168.1.XXX”, //Domoticz IP
                                    apiPort: “80XX”, //Port
                                    apiUser: “XXX”,
                                    apiPw: “XXXXXX”,
                                    sensors: [
                                    {
                                    idx: “2”, //Device IDX
                                    symbolon: “fa fa-user”, /font-awesome icon if device is On
                                    symboloff: “fa fa-user-o”, //font-awesome icon if device is Off (this will also be used if it is a temperature-de
                                    hiddenon: true, //true = hide if device is on (default: false)
                                    hiddenoff: false, //frue = hide if device is off (default: false)
                                    customTitle: “cwu”,
                                    },
                                    {
                                    idx: “2”,
                                    symbolon: “fa fa-circle-o-notch fa-spin”,
                                    symboloff: “fa fa-circle-o-notch”,
                                    },
                                    {
                                    idx: “2”,
                                    symbolon: “fa fa-circle-o-notch fa-spin”,
                                    symboloff: “fa fa-circle-o-notch”,
                                    hiddenoff: false,
                                    },
                                    {
                                    idx: “88”,
                                    symbolon: “fa fa-tachometer”,
                                    symboloff: “fa fa-tachometer”,
                                    },
                                    ],
                                    }
                                    },

                                    can u help me?

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

                                      This post is deleted!
                                      1 Reply Last reply Reply Quote 0
                                      • N Offline
                                        Nilnik Project Sponsor
                                        last edited by

                                        Hello, I changed line 171 i domoticz.js from setTimeout(function() { to setInterval(function() { . It works for me. I have used this module for many years…```
                                        Thisi my config:

                                        {
                                        			disabled: false,
                                        			module: 'Nilnik/domoticz', //folder
                                        			header: 'Domoticz Home Automation',
                                        			position: 'bottom_right',
                                        			config: {
                                        				apiBase: "http://xxx.xxx.x.xxx", //Domoticz IP
                                        				apiPort: "xxxx", //Port
                                        				updateInterval: 6000,
                                        				sensors: [
                                        				{
                                        					idx: "17", //Device IDX
                                        					symbolon: "fa fa-unlock", //font-awesome icon if device is On
                                        					symboloff: "fa fa-lock", //font-awesome icon if device is Off (this will also be used if it is a temperature-de
                                              				},
                                        				{
                                        					idx: "3",
                                        					symbolon: "fa fa-unlock",
                                        					symboloff: "fa fa-lock",
                                        				},
                                        				{
                                        					idx: "16",
                                        					symbolon: "fa fa-unlock",
                                        					symboloff: "fa fa-lock",
                                        				},
                                        				{
                                        					idx: "1",
                                        				},
                                        				{
                                        					idx: "2",
                                        					symboloff: "fa fa-thermometer-half",
                                        				},
                                        				{
                                        					idx: "10",
                                        					symboloff:"fa fa-thermometer-half",
                                        				},
                                        				{
                                        					idx: "11",
                                        					//symbolon: "fa fa-thermometer-half",
                                        					symboloff: "fa fa-thermometer-half",
                                        					
                                        				},
                                        				{
                                        					idx: "30",
                                        					//symbolon: "fa fa-thermometer-half",
                                        					symboloff: "fa fa-thermometer-half",
                                        				},
                                        				{
                                        					idx: "12",
                                        					symboloff: "fa fa-thermometer-half",
                                        				},
                                        				{	idx: "13",
                                        					symboloff: "fa fa-thermometer-half", 
                                        				},
                                        				{	idx: "7",
                                        					symboloff: "fa fa-thermometer-half",
                                        				},
                                        				{
                                        					idx: "23",
                                        					symboloff: "fa fa-user-lock",
                                        				},	
                                        			],
                                        		}
                                        	},	
                                        
                                        
                                        

                                        `

                                        1 Reply Last reply Reply Quote 1
                                        • M Offline
                                          Mazzokun @art212
                                          last edited by

                                          @art212 said in MMM-Domiticz:

                                          idx: “2”, //Device IDX
                                          symbolon: “fa fa-user”, /font-awesome icon if device is On

                                          there isn’t a slash

                                          idx: “2”, //Device IDX
                                          symbolon: “fa fa-user”, //font-awesome icon if device is On

                                          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
                                          • 2 / 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