Lost widget

Discussions about RaZberry - Z-Wave board for Raspberry computer
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Lost widget

Post 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
Z-Way v2.0.1-rc18 on Raspberry Pi
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Lost widget

Post 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)
Since 29-12-2016 I am no longer a moderator for this forum
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Lost widget

Post by LAN-Opfer »

...good idea - I will do that in future. But what about the widget? Shall I reinclude the device?

Uwe
Z-Way v2.0.1-rc18 on Raspberry Pi
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Lost widget

Post 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.
Since 29-12-2016 I am no longer a moderator for this forum
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Lost widget

Post 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.
Z-Way v2.0.1-rc18 on Raspberry Pi
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Lost widget

Post by pz1 »

Don't have any dimmers, so I am adraid I can't help you any further
Since 29-12-2016 I am no longer a moderator for this forum
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Lost widget

Post 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 :-((
Z-Way v2.0.1-rc18 on Raspberry Pi
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Lost widget

Post 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
Since 29-12-2016 I am no longer a moderator for this forum
LAN-Opfer
Posts: 98
Joined: 03 Oct 2014 13:23

Re: Lost widget

Post by LAN-Opfer »

I used a virtual device:
Z-Wave10.jpg
Z-Wave10.jpg (215.75 KiB) Viewed 8030 times
Z-Way v2.0.1-rc18 on Raspberry Pi
pz1
Posts: 2053
Joined: 08 Apr 2012 13:44

Re: Lost widget

Post by pz1 »

try for status:
zway.devices[13].instances[0].SwitchBinary.data.level.value ? "on" : "off"
Since 29-12-2016 I am no longer a moderator for this forum
Post Reply