Page 1 of 1
V_Persentage in ServoActuator
Posted: Monday 21 March 2016 21:59
by Lyubomyr
Hello.
I've been trying to implement servoactuator sketch from MySensors. There is a variable V_Percentage that can be obtained from the controller. How can I make my blinds 50% covered with Domoticz?
Please, do not propose to press stop button when blinds are 50% closed

Re: V_Persentage in ServoActuator
Posted: Tuesday 22 March 2016 8:28
by gizmocuz
I can tell you how other hardware is doing it (for example the fibaro roller shutter)
First you need to calibrate, blind goes UP all the way, start measuring (power usage..?) and goes to the bottom (100%)
Now it knows how long it takes to go from 0 to 100%
Now you must find a way to translate the percentage to the position
And when you move your blinds up or down, then your can re calibrate on which position you are (0 or 100%)
Re: V_Persentage in ServoActuator
Posted: Tuesday 22 March 2016 21:04
by Lyubomyr
Thank You very much for explanation.
But if I want not just two positions 0% and 100%, but four, for instance: 0% 25% 50% 100%. Is it possible to achieve this using Domoticz?
Re: V_Persentage in ServoActuator
Posted: Wednesday 23 March 2016 8:04
by gizmocuz
if you know the time it takes from 0 to 100% , lets say 10 seconds, then going from 0 to 25% will be (10/100)*25 = 2.5 seconds
When your sketch is powered on, i would send the blinds always to 0%, so you know where it is (could be an option to set it to 100%)
Re: V_Persentage in ServoActuator
Posted: Thursday 24 March 2016 6:47
by Lyubomyr
Thank You very much, but perhaps I didn't make myself clear.
So, imagine that You made all necessary measurements and You know times at el. What should I do in Domoticz(!) (what command to use) to send V_Persentage command to node.
V_Up, V_Down, V_Stop I know how to send, but what about V_Persentage?
Re: V_Persentage in ServoActuator
Posted: Thursday 24 March 2016 8:38
by gizmocuz
I dont know, but can you edit the switch and set the type to 'blinds percentage' ?
Re: V_Persentage in ServoActuator
Posted: Thursday 24 March 2016 12:37
by pj-r
I'm using S_DIMMER(/V_DIMMER/V_LIGHT) and changed its type to 'blinds percentage' in domoticz after its presented.. works well for me.
Re: V_Persentage in ServoActuator
Posted: Friday 25 March 2016 9:55
by Lyubomyr
Thank You!