Hi all,
I need to have a device where I can store/change a time that is in seconds or minutes.
I need this to manage the time some light stays on or the time some light should be turned off after the alarm system is engaged.
That value would be used in NodeRed.
Which virtual device should I use?
Thanks!
Device to store time
Moderators: leecollings, remb0
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Device to store time
Would it not be easier to store it in a type time uservariable ?Andrex wrote: Wednesday 09 October 2019 12:34 I need to have a device where I can store/change a time that is in seconds or minutes.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: Device to store time
Tha fact is that I would like to have those variables to be quickly editable by my colleague, so a device would be really nice.
It would be cool to be able to "enable" a user variable to become a device
It would be cool to be able to "enable" a user variable to become a device
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Device to store time
A dimmer can be set to a number between 1-100.Andrex wrote:Tha fact is that I would like to have those variables to be quickly editable by my colleague, so a device would be really nice.
It would be cool to be able to "enable" a user variable to become a device
A selector has a limited number of steps but content can be set to any number.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: Device to store time
Right!!!waaren wrote: Wednesday 09 October 2019 18:21 A dimmer can be set to a number between 1-100.
A selector has a limited number of steps but content can be set to any number.
I'll try, thanks for the suggestion!
But still, a device of plain editable number would be great!
Re: Device to store time
Is there a way to change the level of the selector? Because retrieving the value with the API only gives the level and not the level name.waaren wrote: Wednesday 09 October 2019 18:21 A selector has a limited number of steps but content can be set to any number.
Also it would be much easier for me to use the level directly with the numbers I need.
Thanks!
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Device to store time
I use dzvents for both setting and retrieving this information. .(attribute levelname(s) and method switchSelector)Andrex wrote: Thursday 10 October 2019 20:05Is there a way to change the level of the selector? Because retrieving the value with the API only gives the level and not the level name.waaren wrote: Wednesday 09 October 2019 18:21 A selector has a limited number of steps but content can be set to any number.
Also it would be much easier for me to use the level directly with the numbers I need.
Thanks!
Using the API the level of the selector can be set with
Code: Select all
https:/<domoticz ip>:domoticz port>/json.htm?type=command¶m=switchlight&switchcmd=Set%20Level&level=<LEVEL>&idx=<ID> Code: Select all
https:/<domoticz ip>:domoticz port>/json.htm?type=devices&rid=<ID >- Spoiler: show
Off|NPO Radio 1|NPO Radio 2 92.9 (Pop)|Radio 10|Radio Rijnmond|Sublime Smooth
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Re: Device to store time
I wouldn't mark this as solved since it's still not possible to store a plain number into a device
Who is online
Users browsing this forum: No registered users and 1 guest