Page 1 of 1
Adjustable time on dashboard
Posted: Wednesday 12 January 2022 21:53
by TonB
I would like to create a ajustable "clock" on my dashboard.
Just a block where you can see a time wich can changed using a up and down button.
That is, if it is possible off course
This time is my default switch off time (eg 23:00), but sometimes (when we have a party at home or on newyearseve) we whant to change that time.
I've been looking in available switches but can't find one.
I've read about dashticz, which looks promising, but scrolling trough te documenation i'm not shure if this is possible in dashticz.
I'm even concidering to create a new Domotic system on another Pi using Home assistant, just to find out which product is best suitable for me, but I would like to stick with Domoticz....
Hope someone can help.
Re: Adjustable time on dashboard
Posted: Wednesday 26 January 2022 21:57
by TonB
anyone?
help is appreciated
Re: Adjustable time on dashboard
Posted: Wednesday 26 January 2022 22:35
by Lokonli
I can make that for Dashticz.
Where would you like to store the modified data? In a text device, a variable, something else?
Verstuurd vanaf mijn AC2003 met Tapatalk
Re: Adjustable time on dashboard
Posted: Thursday 27 January 2022 6:42
by kiddigital
Maybe a ‘text’ sensor (Dummy hardware) could be a good way to store this ‘defaultNightTime’ value.
It can than also be viewed in Domoticz itself as well.
And more importantly, this value can be used in all kind of automation scenarios (as in this use-case).
Domoticz does not offer a UI way to (easily) modify the value of a ‘text’ sensor (at least not that I know of) but it can modify the value through the API. Which was the original use-case of virtual sensors from the Dummy hardware in the first case
Dashticz could offer one or more UI ways to modify a text sensor and update the value through the API.
Re: Adjustable time on dashboard
Posted: Thursday 27 January 2022 8:33
by Lokonli
I like the idea.
Version 1:
Block to set a time, for instance via up-down buttons for hh:mm:ss
synchronized with a variable in Domoticz. Text will be set to "<hh>:<mm>:<ss>"
parameters:
variable id (number)
showSeconds (true/false)
Version 2:
Alarm function: At indicated time switch Domoticz device to on
parameters:
device id
variable id
preset (in case no variable id), to preset the timer
Version 3:
Countdown function: Countdown to 0 and switch Domoticz device to on.
parameters:
repeat: (true/false/<number>)
Additional ideas? Remarks?
Re: Adjustable time on dashboard
Posted: Friday 30 December 2022 10:58
by vspamn
Did your idea work out Lokonli? I'm also interested.
Re: Adjustable time on dashboard
Posted: Friday 30 December 2022 11:59
by willemd
Maybe use a thermostat setpoint device and just interpret the temperature as time? Temperature is adjustable with 1 decimal, so if you change the setpoint to 23.1 'C this is 23:06 hours?
Or use a selector switch with up and down button and the related action updates another devcie that actually stores the time?