best way to input number 1..24 with Dashticz?

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

best way to input number 1..24 with Dashticz?

Post by renerene »

Request for Improved Timer and Delay Controls in Dashticz

I'm currently looking for a better way to set hourly delays and timers for charging and heat control in Dashticz. At the moment, I'm misusing thermostats for this purpose, which isn't ideal. It would be great if there was a dedicated feature that allowed us to set integer values.
Does anyone know if there's a more appropriate method for achieving this functionality? Or perhaps this could be considered as a feature request for future Dashticz updates?
Maybe there is an option using variabelels, but I prefer dummy devices.

Any insights or suggestions would be much appreciated. Thanks in advance!
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by Lokonli »

Currently you can use a slider, dial or selector switch.

What would you like to have? Any example?
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by renerene »

These are not so accurate if i remember. Also a dimmer chops the 100 scale in big chunks, you cannot increase with value 1. A thermostat is relative slow, takes a lot of patience and clicking om my old tablet.

I would like to be able to set my variable to 5 or 16.
lost
Posts: 660
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by lost »

Would be useful, even out of dashticz. A slider/rotating knob widget with tunable range/step/unit would be really useful. For now I use virtual selector switches than call some scripts with selector level setup parameter given to script but that's not so handy to setup.
My use case is disabling some timer plans for a few hours: If I needed a 1h/24h range for a full day (hopefully, not!), this would mean 24 lines in the selector! :o
User avatar
waltervl
Posts: 5845
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by waltervl »

In Domoticz the setpoint (thermostat) device is now configurable in min/max, step size and Unit of Measure.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by renerene »

lost wrote: Monday 27 January 2025 9:14 Would be useful, even out of dashticz. A slider/rotating knob widget with tunable range/step/unit would be really useful. For now I use virtual selector switches than call some scripts with selector level setup parameter given to script but that's not so handy to setup.
My use case is disabling some timer plans for a few hours: If I needed a 1h/24h range for a full day (hopefully, not!), this would mean 24 lines in the selector! :o
yes, that is a good one. Use selector for now, that is better than thermostat. Thx.
Hopefully someone will pick up your idea.
User avatar
waltervl
Posts: 5845
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by waltervl »

Is a Dial in Dashticz not a rotating knob for Dimmers and Thermostats/Setpoints? Setting a Domoticz dummy Setpoint device to min 1 and max 24, step 1, UOM hours should give you a rotating knob in Dashticz with 1-24 (and do not use subtype "updown" in Dasticz block).
https://dashticz.readthedocs.io/en/beta ... /dial.html#
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
lost
Posts: 660
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by lost »

waltervl wrote: Monday 27 January 2025 9:20 In Domoticz the setpoint (thermostat) device is now configurable in min/max, step size and Unit of Measure.
Hello, did not know about this addition, I'll give it a try, thanks!
renerene
Posts: 351
Joined: Wednesday 03 August 2016 11:36
Target OS: -
Domoticz version:
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by renerene »

attempt 1

Code: Select all

blocks['chargeHours'] = {
  idx: 2628,                   //The Domoticz device id
  title: 'chargeHrs',       //The title of the block as shown in the dial.
  width: 3,                   //The width of the block relative to the column width
    type: 'dial',               //Display as dial
  subtype: 'updown',
  hide_data: true,
  //icon: 'fas temperature-high',
}
Image
result: 10% steps


attempt 2

Code: Select all

blocks['chargeHours'] = {
  idx: 2628,                   //The Domoticz device id
  title: 'chargeHrs',       //The title of the block as shown in the dial.
  width: 3,                   //The width of the block relative to the column width
  type: 'dial',               //Display as dial
  min: 2,
  max: 16,  
  subtype: 'updown',
  hide_data: true,
  //icon: 'fas temperature-high',
}
result:
a) starts wit 21 degree, as soon as you get below 16 it does not go up
b) 0.5 incremental = not wanted

attempt 3 = success

Code: Select all

blocks['chargeHours'] = {
  idx: 2628,                   //The Domoticz device id
  title: 'chargeHrs',       //The title of the block as shown in the dial.
  width: 3,                   //The width of the block relative to the column width
  type: 'dial',               //Display as dial
  min: 2,
  max: 16,  
  steps: 2,
  subtype: 'updown',
  hide_data: true,
  unit: 'h',
  decimals: 0,
  //icon: 'fas temperature-high',
}
Image


PLEASE NOTE
sensor type 'dimmer' does not work (not sensitive to "steps"), use Dummy -> Setpoint
Image
2628 = ok / 2044 = nok


--> thx Walter
Last edited by renerene on Monday 27 January 2025 19:59, edited 1 time in total.
User avatar
waltervl
Posts: 5845
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by waltervl »

Indeed as expected... Why not use a setpoint device as I proposed here earlier? Then also in a normal Domoticz Gui this will work.
https://wiki.domoticz.com/Dummy_for_vir ... t_Setpoint
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
lost
Posts: 660
Joined: Thursday 10 November 2016 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: best way to input number 1..24 with Dashticz?

Post by lost »

waltervl wrote: Monday 27 January 2025 19:54 Why not use a setpoint device as I proposed here earlier?
Can confirm this may be a good option. Tried this but did not changed my selector for now because widget does not allow to call some scripts directly with the setpoint value, as you can do in selector levels (setpoint changes needs to be handled from a device script for this kind of use). So this'll need a bit of rework as this was for now using a shell script (just doing some parameter formatting) calling another python one (as you cannot invalidate all timers associated with a device easily, unfortunately, this needs parsing whole 'getschedules' HTTP/JSON API returns to filter on device names and then use 'enabledisabletimer' on all those setup for the device).
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest