This object is in archive! 

virtual switch values are not what the web control app indicates

Frank Weijnen shared this problem 7 years ago
Known

Today I had to disconnect my zipabox from the internet while I installed an UPS.


After I connected the router to the UPS the internet connection came up again and the Zipabox LED went to steady green. So far so good.

A short while after I noticed that some virtual switch values were ON in the WEB interface but the rules that checked these virtual switch values reacted as they were OFF.

I know that virtual modules are stored in the cloud but that means that the zipabox does not work properly in standalone (= not internet) situation. This could also be a potential risk in healthcare!

Please move the virtual stuff (switches, meter etc.) from the cloud to the box.


Cheers,

Frank.

Replies (1)

photo
1

Frank,


As far as I know, also the virtual devices are hosted on, and run on, the local Zipabox. I guess you can easily verify this by creating a virtual switch which changes its state when a door sensor or whatever is activated, and where the virtual switch thereafter changes a light - and testing this with your network cable disconnected.

I bet you will find that what you saw in the web control app, was whatever was there before the Zipabox was rebooted, and which wasn't automatically synchronized with the Zipabox again after the reboot.

Brgds, Robert

photo
1

Hi Robert,


Why would my zipabox reboot after the internet connection was lost for about 20 min.? And why showed the web interface (after I logged on again) show a virtual switch as ON while a rule processed it as being OFF?

My comment that virtual devices are stored in the cloud is based on an answer I got from zipato on a recent ticket:

"This caused that for s short time our cloud services were unavailable.

The reason why it affected your local rules is most likely because you are

using the virtual devices which are cloud dependant.


In local mode, rules or actions related to the cloud connection will not work

properly, while everything lease will (control, scenes, rules related to the

devices itself, schedules etc.)"

Cheers, Frank.

photo
1

Frank,

The reply you got is correct: They said that IF you have designed any of your local virtual devices to be cloud dependent, these particular virtual devices will NOT work in offline mode.


They did not say that local virtual devices which are not cloud dependent also would not work.


All other virtual devices will of course work even if offline.

I have created a very simple demo of this. If you have sensors and switches you can test this on your own Zipabox: Create the simple rules, sync, disconnect the ethernet connection from your zipabox and you will see that the rules still run.

Brgds

Robert

photo
1

Robert,


I tried your test, see attachment, and while online, it works ok. When I disconnect the internet than I hear only a sound the first time the sensor is triggered, after that only silence. When I reconnect the internet then, after the connection is established, I hear the sounds again.

There is one strange thing tough, when I disconnect the internet, the green light starts flashing, so far normal. After I did the test I reconnected the internet and the green light was still flashing. After a short period, the green flashing switched to a blue flashing and after, I don't know, I guess 30 sec. the green light came on again. Only after the green light was on again did the rule work ok again.

So any idea why my zipabox switched to a blue flashing light? If I'm not mistaken this means that JAVA is loading???

I am on firmware 1.0.19

Frank.

photo
1

Frank,

It sounds like your Zipabox crashed and restarted.

There's something strange going on in your Zipabox, because this set of rules definitely work fine without an internet connection.

photo
Leave a Comment
 
Attach a file