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?
Virtual input number?
Moderators: leecollings, remb0
- gizmocuz
- Posts: 3023
- 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?
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?
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?
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.
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?
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?
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?
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.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?
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
-
averter
- Posts: 51
- Joined: Thursday 24 February 2022 8:32
- Target OS: Linux
- Domoticz version: 2024.4
- Contact:
Re: Virtual input number?
I've also stumbled upon this issue as well and just wanted to share my solution. I've tried a virtual dimmer switch, but it was no good since the range is always between 0-100. A "Thermostat Setpoint" on the other hand can have ANY range and it has enough precision (decimals) for most applications. You can also change the units of the device to something else; see my case, attached, where I've changed it to miles.
- Attachments
-
- 3kywweqe8c.png (27.29 KiB) Viewed 62 times