ArjanKranenburg / virtual-devices

Homey-app to add Virtual Devices that can trigger your flows.
Other
25 stars 17 forks source link

Relative Dim not triggering / let real devices change. #80

Open ljsvv opened 5 years ago

ljsvv commented 5 years ago

Hello,

I am using Homey V2 with VD v0.8.4.

When using set dim relative +10% or -10% the devices that use set dim level in a flow do not change.

When directly changing dim level the devices to change.

I saw when I am using use relative dim the dim level becomes 0.1000000023422 for example.

ArjanKranenburg commented 5 years ago

See Slack: https://athomcommunity.slack.com/archives/C04E9KJAD/p1547404078850400

Just to record: The situation is 2 flows, one triggering the other. The first flow is: image

The second flow is: image

ljsvv commented 5 years ago

Indeed the first flow has a trigger, if 3 button of a remotec button is pressed 2x and dim_dir (a variable that is true or false) is true relative dim + 10% else dim relative -10%.

ljsvv commented 5 years ago

Found the issue and it seems to be round related. When the dimming value is perfectly in 2 digits for example 0.25 -> 0.50 it Works. When adding relative % from 0.26 to +25 % gives 0.50000004 and then is doesn’t update the intensity of the bulbs.

ArjanKranenburg commented 5 years ago

OK. Good to know. I'll see if I can round the value, or ask Athom to do it, since it's their flow-card. But I also tried with a fixed 2-digit value and that didn't work for me either. Hence the issue for Athom.

ljsvv commented 5 years ago

Hey Arjan,

Should the update that is pushed today fix this issue?

Did you get a reaction from Athom?

ArjanKranenburg commented 5 years ago

No, it fixes other issues. Athom requested for more info, Which I will provide tonight.

/Arjan