Autor Thema: creating notify with TYPE=xyz  (Gelesen 1084 mal)

Offline andyclimb

  • Full Member
  • ***
  • Beiträge: 141
creating notify with TYPE=xyz
« am: 10 Oktober 2016, 11:27:44 »
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...

A
AM

Offline rudolfkoenig

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 24681
Antw:creating notify with TYPE=xyz
« Antwort #1 am: 10 Oktober 2016, 12:57:55 »
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 } }

 

decade-submarginal