Page 1 of 2

Lost widget

Posted: 13 Jan 2015 21:34
by LAN-Opfer
I lost a widget in the new "Z-Way Home Automation UI". I had a binary widget and a switchMultilevel for my dimmer Fibaro FGD211.
Today I found only the switchMultilevel - I miss the binary. Perhaps it was a Problem, that I renamed both to "Aussenlicht".

What can I do?

Uwe

Re: Lost widget

Posted: 13 Jan 2015 21:56
by pz1
LAN-Opfer wrote:What can I do?

Some users including myself have mentioned that after edits things may get lost in HA. I noticed that with rules and schedules. Scenes have survived so far. Can't reproduce the thing yet unfortunately.

Do make regular backups from your work (this should work: viewtopic.php?f=3422&t=21052&p=54276#p54276 haven't tried myself yet)

Re: Lost widget

Posted: 13 Jan 2015 23:07
by LAN-Opfer
...good idea - I will do that in future. But what about the widget? Shall I reinclude the device?

Uwe

Re: Lost widget

Posted: 13 Jan 2015 23:30
by pz1
I can't say for sure, but I would exclude and next include the device. The first action should remove the remaining widget, the last action should create two new widgets.

Re: Lost widget

Posted: 14 Jan 2015 22:06
by LAN-Opfer
...I did a exclude and a include again - but I miss the binary. The Id is 13 - before it was 12, but I see only a sensorMultilevel widget.

Re: Lost widget

Posted: 15 Jan 2015 00:10
by pz1
Don't have any dimmers, so I am adraid I can't help you any further

Re: Lost widget

Posted: 15 Jan 2015 13:34
by LAN-Opfer
as a workaround I did create a virtual device.

Code for action On:
zway.devices[13].SwitchBinary.Set(1)
Code for action Off:
zway.devices[13].SwitchBinary.Set(0)
Code to get value:
zway.devices[13].SwitchBinary.Get()
Interval in seconds between polling requests
-1

Unfortunately it does not work :-((

Re: Lost widget

Posted: 15 Jan 2015 14:02
by pz1
LAN-Opfer wrote: zway.devices[13].SwitchBinary.Get()
How did you make this? I assume HA Create device : toggleButton.
The Get() command does not return the status of the switch, but rather writes the result to the Z-Way tree.
To get it from there try:

Code: Select all

zway.devices[13].instances[0].SwitchBinary.data.level.value
I am not completely sure because I never tested this myself. (It might work as well without the instances[0]. part

Re: Lost widget

Posted: 15 Jan 2015 15:17
by LAN-Opfer
I used a virtual device:
Z-Wave10.jpg
Z-Wave10.jpg (215.75 KiB) Viewed 8029 times

Re: Lost widget

Posted: 15 Jan 2015 15:39
by pz1
try for status:
zway.devices[13].instances[0].SwitchBinary.data.level.value ? "on" : "off"