Virtual input number?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
raptorjr
Posts: 32
Joined: Tuesday 14 June 2016 21:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Virtual input number?

Post by raptorjr »

I have a water valve and a water meter. I would like to add some virtual thing that makes it possible for me to enter a number in Domoticz (litre/volume) and then make a script to open the valve for that specified amount.

Or maybe some kind of virtual slider where I can set the max and min value, and then use the slider to select a value within max/min.

But what virtual thing should I use?
User avatar
gizmocuz
Posts: 2712
Joined: Thursday 11 July 2013 18:59
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Top of the world
Contact:

Re: Virtual input number?

Post by gizmocuz »

How about you add a 'Dummy' hardware, create a virtual sensor, and as type choose 'Custom' ?
Quality outlives Quantity!
raptorjr
Posts: 32
Joined: Tuesday 14 June 2016 21:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Virtual input number?

Post by raptorjr »

Thank you. But I don't have Custom as a alternative in the "Sensor Type" dropdown. I'm running version 3.4834.
raptorjr
Posts: 32
Joined: Tuesday 14 June 2016 21:23
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Virtual input number?

Post by raptorjr »

If possible I could still need some help on where to find the Custom virtual sensor?
I have created some virtual switches and things, but I cant find Custom.
Hesmink
Posts: 168
Joined: Monday 22 June 2015 10:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: The Netherlands
Contact:

Re: Virtual input number?

Post by Hesmink »

Same here, I don't have the 'Custom' option (running 3.4834).

I was looking for a way to make my virtual sensor for heat usage correctly state 'GJ', instead of m3/water usage that I'm using now.
Is this supported somehow?
mvzut
Posts: 443
Joined: Thursday 12 November 2015 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: The Netherlands
Contact:

Virtual input number?

Post by mvzut »

raptorjr wrote:I have a water valve and a water meter. I would like to add some virtual thing that makes it possible for me to enter a number in Domoticz (litre/volume) and then make a script to open the valve for that specified amount.

Or maybe some kind of virtual slider where I can set the max and min value, and then use the slider to select a value within max/min.

But what virtual thing should I use?
The custom dummy sensor is great for storing arbitrary sensor data, but as far as I know there is no way to give it a value from within the Domoticz UI. So this is probably not what you want/need.

You could create two virtual dimmers, and use the sliders to select the open/close water amounts (in liters) from 1-100 (provided this is enough range for you). You must then create a script to read the values from the dimmers and define what to do if your water meter exceeds these limits. You should probably also use a dummy counter or a user variable to keep track of the amount of liters, and reset this every time the threshold is exceeded.

I don't know your exact situation, so my answer is quite generic, but maybe it helps.
Raspberry Pi 4 - RFXtrx433 - CC2531 Zigbee - Opentherm Gateway - P1 smart meter - Netatmo - Philips Hue - ELV Max! - ESP8266 DIY water meter - 6 x Sonos - 4 x IP cameras - Wall mounted tablet + Dashticz - Google Home integration - MANY switches/sensors
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest