creating notify with TYPE=xyz

Begonnen von andyclimb, 10 Oktober 2016, 11:27:44

Vorheriges Thema - Nächstes Thema


as you can tell I'm having a flurry of activity with fhem!    thank you for all the help in advance...

im wondering if it is possible to create a notify for all devices of a particular type.  I've not noticed or seen any when looking on the forum etc...  of command ref...



notify needs a regexp, wich is checked against device-name or device-name:event or device-name:event:timestamp
You can either specify explicitly all devices in the device-name part of the regexp, like dev1|dev2|..., prefix the name of each device with its type, and use the regexp <TYPE>.*, oder check $TYPE in the executed code: { if($TYPE eq "mytype") { do something } }