Panel Offline
Hi i have a level that commands a light dimmer.
When the 8400 wiFi panel go offline ( I hate WiFi!!! ) the level raise up a level 0 event so the dimmer go off.
How can I know if the panel is online or offline?
Thank's a lot!!!
Alex
When the 8400 wiFi panel go offline ( I hate WiFi!!! ) the level raise up a level 0 event so the dimmer go off.
How can I know if the panel is online or offline?
Thank's a lot!!!
Alex
Comments
However, to avoid the level being sent to zero, you will probably be better served by combining your panel with a virtual, and using the virtual instead. Virtuals never go off line unless the master shuts down.
DEFINE_DEVICE dvPANEL = 128:1:0 DEFINE_VARIABLE INTEGER nBARGRAPHVALUE // the active bargraph value DEFINE_START // we will NOT use a CREATE_LEVEL to Bargraph 1, // because if the panel goes OFFLINE, the bragraph value goes to 0 DEFINE_EVENT LEVEL_EVENT[dvPANEL,1] // Bargraph 1 { IF(DEVICE_ID(dvPANEL)) // only if Panel Device is online { nBARGRAPHVALUE = LEVEL.VALUE // take Bargraph value // send nBARGRAPHVALUE to any other device } } DATA_EVENT[dvPANEL] { ONLINE: { SEND_LEVEL dvPANEL,1,nBARGRAPHVALUE // resend latest value to the bargraph } } DEFINE_PROGRAMDATA_EVENT ONLINE/OFFLINE has a higher priority as a LEVEL_EVENT[]. Because of this, The DEVICE_ID(dvPANEL) fails and the LEVEL.VALUE, which falled to 0, is not executed.