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

MMM-Domiticz

Scheduled Pinned Locked Moved Utilities
68 Posts 18 Posters 37.2k 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
    art212 @MisterT
    last edited by Nov 19, 2020, 3:14 PM

    @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 Nov 20, 2020, 9:26 AM Reply Quote 0
    • M Offline
      MisterT @art212
      last edited by Nov 20, 2020, 9:26 AM

      @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 Nov 22, 2020, 12:20 PM

        @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 Nov 22, 2020, 7:04 PM Reply Quote 0
        • M Offline
          MisterT @Mazzokun
          last edited by Nov 22, 2020, 7:04 PM

          @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 Dec 18, 2020, 4:43 PM Reply Quote 0
          • A Offline
            art212 @MisterT
            last edited by Dec 18, 2020, 4:43 PM

            @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 Dec 27, 2020, 11:58 AM Reply Quote 0
            • A Offline
              art212
              last edited by Dec 18, 2020, 4:45 PM

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • N Offline
                Nilnik Project Sponsor
                last edited by Dec 18, 2020, 10:06 PM

                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 Dec 27, 2020, 11:58 AM

                  @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
                  • 1
                  • 2
                  • 3
                  • 4
                  • 5
                  • 6
                  • 7
                  • 7 / 7
                  • 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