With the “Dummy Device” switch I made the following observations and encountered some problems:
- (1) After creation the switch was off by default. Ok.
- (2) The switch shall be be turned on automatically after an hour by the app “Automated Switch On” but it did not because there was no preceding “off event” recorded.
- (3) I expected the “Periodical Selected Switch Polling” app to poll the switch an create the “off event” but it did not.
- (4) Manually clicking on off created the “off event” as expected.
- (5) The App “Automated Switch On” turned the switch on an hour after the “off event” as expected but it created no “on event”. For comparison: In the previous setup with a “Virtual Device (JavaScript)” switch it created an “on event”.
- (6) After restarting the Raspberry the switch was still on as I expected. The previous “Virtual Device (JavaScript)” switch was initially off and created an “off event” after its configured polling interval so it could be turned on by “Automated Switch On”.
After a restart a event seems to be created for every real sensor and switch which shows the last known state. Wouldn’t it be nice if virtual switches did so too?
What is better for this use case, the “Virtual Device (JavaScript)” or the “Dummy Device” app?
If “Virtual Device (JavaScript)” is to prefer, how to configure it?
Z-Way version is v4.0.3.