V_Persentage in ServoActuator

Moderator: leecollings

Post Reply
Lyubomyr
Posts: 17
Joined: Saturday 05 December 2015 0:24
Target OS: Windows
Domoticz version: 3.4834
Contact:

V_Persentage in ServoActuator

Post 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 :)
User avatar
gizmocuz
Posts: 2484
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: V_Persentage in ServoActuator

Post 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%)
Quality outlives Quantity!
Lyubomyr
Posts: 17
Joined: Saturday 05 December 2015 0:24
Target OS: Windows
Domoticz version: 3.4834
Contact:

Re: V_Persentage in ServoActuator

Post 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?
User avatar
gizmocuz
Posts: 2484
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: V_Persentage in ServoActuator

Post 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%)
Quality outlives Quantity!
Lyubomyr
Posts: 17
Joined: Saturday 05 December 2015 0:24
Target OS: Windows
Domoticz version: 3.4834
Contact:

Re: V_Persentage in ServoActuator

Post 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?
User avatar
gizmocuz
Posts: 2484
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: V_Persentage in ServoActuator

Post by gizmocuz »

I dont know, but can you edit the switch and set the type to 'blinds percentage' ?
Quality outlives Quantity!
pj-r
Posts: 140
Joined: Wednesday 17 December 2014 17:30
Target OS: Linux
Domoticz version: V3.8650
Location: Jyväskylä, Finland
Contact:

Re: V_Persentage in ServoActuator

Post 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.
LXC(x64 Ubuntu Xenial), RFXtrx433E, MySensors
Lyubomyr
Posts: 17
Joined: Saturday 05 December 2015 0:24
Target OS: Windows
Domoticz version: 3.4834
Contact:

Re: V_Persentage in ServoActuator

Post by Lyubomyr »

Thank You!
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest