Hi All.
i have a question . I use network binding. on 2.5m4
on the site map i have switches that show the status of my system. but now i am trying to have them rater say Online or Offline.(did search but could not realy see anything.
here are some of my files.
Items :
Switch Allen "Allen" (System) {channel="network:pingdevice:Allen:online"}
String Allen_Online "Allen Online"
Switch Aletchia "Aletchia" (System) {channel="network:pingdevice:Aletchia:online"}
Switch Kodi "Kodi" (System) {channel="network:pingdevice:Kodi:online"}
Site map :
Frame label="Online - Live" {
Default item=Allen label="Allen Iphone" icon="apple"
Default item=Allen_Online label="Allen Iphone" icon="apple"
Default item=Aletchia label="Aletchia Iphone" icon="apple"
Rule : (first try)
rule "Allen Online"
when
Item Allen changed from OFF to ON
then
// do something
Allen_Online.postUpdate(Online)
end
Am i in the right direction or way off ?