Ich habe meine Things und Items als Textdateien konfiguriert:
network.things:
Code: Alles auswählen
Thing network:pingdevice:printerWF2760 [ hostname="192.168.178.xxx", retry=1, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:pi3b_ohtest [ hostname="192.168.178.xxx", retry=1, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:raspi_office [ hostname="192.168.178.xxx", retry=1, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:iPhoneSE1_Peter [ hostname="192.168.178.xxx", retry=1, timeout=5000, refreshInterval=60000 ]
Thing network:pingdevice:desktop [ hostname="192.168.178.xxx", retry=1, timeout=5000, refreshInterval=60000 ]
Code: Alles auswählen
Group:Number:SUM gNet "Netzwerk [%d]" <network> [NetworkAppliance] // Number of "Online"-Devices
Switch Printer_WF2760 "Drucker WF-2760 [MAP(tech.map):%s]" <workforce> (gNet) [Point] {channel="network:pingdevice:printerWF2760:online"}
Switch Pi3b_online "RPi3b OH-Test [MAP(tech.map):%s]" <network> (gNet) [Point] {channel="network:pingdevice:pi3b_ohtest:online"}
Switch RasPi_online "RPi3b+ Office [MAP(tech.map):%s]" <network> (gNet) [Point] {channel="network:pingdevice:raspi_office:online"}
Switch iPhoneSE1_Peter "iPhoneSE1 Peter [MAP(tech.map):%s]" <iphone> (gNet) [Point] {channel="network:pingdevice:iPhoneSE1_Peter:online"}
Switch desktop "Acer Desktop[MAP(tech.map):%s]" <network> (gNet) [Point] {channel="network:pingdevice:desktop:online"}