Adjustable time on dashboard

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
TonB
Posts: 11
Joined: Thursday 18 February 2021 21:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Adjustable time on dashboard

Post 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.
TonB
Posts: 11
Joined: Thursday 18 February 2021 21:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: NL
Contact:

Re: Adjustable time on dashboard

Post by TonB »

anyone?

help is appreciated
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Adjustable time on dashboard

Post 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

User avatar
kiddigital
Posts: 438
Joined: Thursday 10 August 2017 6:52
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Adjustable time on dashboard

Post 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.
One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
Lokonli
Posts: 2291
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Adjustable time on dashboard

Post 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?
vspamn
Posts: 8
Joined: Thursday 02 April 2020 21:34
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: NL
Contact:

Re: Adjustable time on dashboard

Post by vspamn »

Did your idea work out Lokonli? I'm also interested.
willemd
Posts: 661
Joined: Saturday 21 September 2019 17:55
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.1
Location: The Netherlands
Contact:

Re: Adjustable time on dashboard

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest