• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Same device in multiple groups
#1
Hi,
I wonder if you can define a device (in my case datetime) and then assign it to multiple groups in the GUI.
Regards.
 
Reply
#2
I have no clue. Did you try it? Honestly never tried it myself.
 
Reply
#3
Hi curlymo,

So it works as it should
Code:
    "devices": {
    "daytime01": {
         "protocol": [ "datetime" ],
         "id": [{
                 "longitude": 8.96965,
                 "latitude": 46.35972,
                 "ntpserver": "0.ch.pool.ntp.org"
         }],
         "year": 2015,
         "month": 3,
         "day": 17,
         "hour": 11,
         "minute": 30,
         "second": 54,
         "weekday": 3
   },
       "daytime02": {
         "protocol": [ "datetime" ],
         "id": [{
                 "longitude": 8.96965,
                 "latitude": 46.35972,
                 "ntpserver": "0.ch.pool.ntp.org"
         }],
         "year": 2015,
         "month": 3,
         "day": 17,
         "hour": 11,
         "minute": 30,
         "second": 54,
         "weekday": 3
   }
    },

    "gui": {
    "daytime01": {
            "name": "Time",
            "group": [ "Living" ],
            "media": [ "all" ],
            "format": "HH:mm:ss"
    },
     "daytime02": {
            "name": "Time",
            "group": [ "Kitchen" ],
            "media": [ "all" ],
            "format": "HH:mm:ss"
    }                 
},

but not with the settings below
Code:
"devices": {
                "daytime01": {
                        "protocol": [ "datetime" ],
                        "id": [{
                                "longitude": 8.96965,
                                "latitude": 46.35972,
                                "ntpserver": "0.ch.pool.ntp.org"
                        }],
                        "year": 2015,
                        "month": 3,
                        "day": 17,
                        "hour": 12,
                        "minute": 43,
                        "second": 6,
                        "weekday": 3
                }
        },

        "gui": {
                "daytime01": {
                        "name": "Time",
                        "group": [ "Living" ],
                        "group": [ "Kitchen" ],
                        "media": [ "all" ],
                        "format": "HH:mm:ss"
                }
        },

**************************


    "devices": {
    "daytime01": {
         "protocol": [ "datetime" ],
         "id": [{
                 "longitude": 8.96965,
                 "latitude": 46.35972,
                 "ntpserver": "0.ch.pool.ntp.org"
         }],
         "year": 2015,
         "month": 3,
         "day": 17,
         "hour": 11,
         "minute": 30,
         "second": 54,
         "weekday": 3
   }
    },
    "gui": {
    "daytime01": {
            "name": "Time",
            "group": [ "Living" ],
            "media": [ "all" ],
            "format": "HH:mm:ss"
    },
     "daytime01": {
            "name": "Time",
            "group": [ "Kitchen" ],
            "media": [ "all" ],
            "format": "HH:mm:ss"
    }                 
},

**************************

        "devices": {
                "daytime01": {
                        "protocol": [ "datetime" ],
                        "id": [{
                                "longitude": 8.96965,
                                "latitude": 46.35972,
                                "ntpserver": "0.ch.pool.ntp.org"
                        }],
                        "year": 2015,
                        "month": 3,
                        "day": 17,
                        "hour": 12,
                        "minute": 9,
                        "second": 19,
                        "weekday": 3
                }
        },

        "gui": {
                "daytime01": {
                        "name": "Time",
                        "group": [ "Living", "Kitchen" ],
                        "media": [ "all" ],
                        "format": "HH:mm:ss"
                }
        },
 
Reply
#4
I believe the documentation for the gui section says that the default webGUI only respects the first group of a device
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Cannot connect to WebGUI von BlackBerry 10 device. muecke 2 1,572 12-02-2016, 10:22 AM
Last Post: muecke
  Working on a Add Device Page janniek 5 3,853 12-15-2014, 12:01 AM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)