Configuration of group persistence does not work

###############  openhab  #####################################################
###############################################################################
##        Ip = Unable to parse ip . Please debug.
##   Release = Raspbian GNU/Linux 10 (buster)
##    Kernel = Linux 5.4.51-v7l+
##  Platform = Raspberry Pi 4 Model B Rev 1.2
##    Uptime = 0 day(s). 2:53:58
## CPU Usage = 0% avg over 4 cpu(s) (4 core(s) x 1 socket(s))
##  CPU Load = 1m: 0.12, 5m: 0.13, 15m: 0.06
##    Memory = Free: 2.81GB (74%), Used: 0.97GB (26%), Total: 3.78GB
##      Swap = Free: 2.58GB (100%), Used: 0.00GB (0%), Total: 2.58GB
##      Root = Free: 50.64GB (90%), Used: 5.25GB (10%), Total: 58.30GB
##   Updates = 0 apt updates available.
##  Sessions = 1 session(s)
## Processes = 135 running processes of 32768 maximum processes
###############################################################################

              Welcome to            __  _____    ____  _
            ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
           / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
          / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
          \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
              /_/
                  openHAB 2.5.9-1 (Release Build)

I try to persist some item states in InfluxDB. There for I setup up some items (default.items):

Switch presenceMobileAchim "Achim's Mobile" <network> (gPresence, gMobile) ["Mobile", "Achim"] { channel="network:pingdevice:mobileAchim:online" }
Switch presenceMobileDaniela "Daniela's Mobile" <network> (gPresence, gMobile) ["Mobile", "Daniela"] { channel="network:pingdevice:mobileDaniela:online" }
Switch presenceMobileLennart "Lennart's Mobile" <network> (gPresence, gMobile)  ["Mobile", "Lennart"] { channel="network:pingdevice:mobileLennart:online" }
Switch presenceMobileLouisa "Louisa's Mobile" <network> (gPresence, gMobile)  ["Mobile", "Louisa"] { channel="network:pingdevice:mobileLouisa:online" }
Switch S20_1 "Sonoff S20 #1" <poweroutlet_eu> ( gSonoff, gSinglePlug ) ["Power", "Plug", "Sonoff"] { channel="mqtt:topic:s20-1:switch20-1" }

My influxdb.persist looks as follows:

Strategies {
    everyHour : "0 0 * * * ?"
    everyDay  : "0 0 0 * * ?"
    default = everyChange
}

Items {
    // * : strategy = everyChange
    // S20_1: strategy = everyChange
    gSonoff*, gMobile* : strategy = everyChange
}

If I do use the groups or even one of them, nothing is stored in InfluxDB. If I use ‘*’ or ‘S20_1’ everything works fine! Does anyone can help?

Thanks in advance!

Achim

Show the definitions for gSonoff and gMobile.

I do not have any other definitions! Where else as in the above shown default.items, should I define them?

Should I define them in the top of my default.items? At this point the docs aren’t clear for me.

Yes, Group Items are Items and as an Item they have to be defined. The link you just provided is the right to where the syntax you need to use to define the Groups.

Thanks a lot! Now it works as expected! :wink:

After the definition of the groups in the top my default.items looks like this:

Group Flachskamp54
Group gPresence (Flachskamp54)
Group gMobile (Flachskamp54)
Group gSonoff (Flachskamp54)
Group gSinglePlug (Flachskamp54, gSonoff)

Switch presenceMobileAchim "Achim's Mobile" <network> (gPresence, gMobile) ["Mobile", "Achim"] { channel="network:pingdevice:mobileAchim:online" }
Switch presenceMobileDaniela "Daniela's Mobile" <network> (gPresence, gMobile) ["Mobile", "Daniela"] { channel="network:pingdevice:mobileDaniela:online" }
Switch presenceMobileLennart "Lennart's Mobile" <network> (gPresence, gMobile)  ["Mobile", "Lennart"] { channel="network:pingdevice:mobileLennart:online" }
Switch presenceMobileLouisa "Louisa's Mobile" <network> (gPresence, gMobile)  ["Mobile", "Louisa"] { channel="network:pingdevice:mobileLouisa:online" }
Switch S20_1 "Sonoff S20 #1" <poweroutlet_eu> ( gSonoff, gSinglePlug ) ["Power", "Plug", "Sonoff"] { channel="mqtt:topic:s20-1:switch20-1" }

And my `` looks like this:

Strategies {
    everyHour : "0 0 * * * ?"
    everyDay  : "0 0 0 * * ?"
    default = everyChange
}

Items {
    // * : strategy = everyChange
    // S20_1: strategy = everyChange
    gSinglePlug*, gMobile* : strategy = everyChange, everyHour
}
1 Like