i have a delta of 2 hours with the new version
["mesure"] = {
[1] = {
["time"] = "2025-6-12 19:15:2.427";
["data"] = 1;
};
in the docker-compose i put TZ=Europe/Paris and the date in the container is up
and the date in the container
root@af0c9761cdcc:/opt/domoticz# date
Thu Jun 12 21:15:09 CEST ...
Search found 48 matches
- Thursday 12 June 2025 21:18
- Forum: Bugs and Problems
- Topic: date in the data persistent
- Replies: 3
- Views: 1235
- Saturday 31 May 2025 22:04
- Forum: General Discussion
- Topic: test new day
- Replies: 2
- Views: 1369
Re: test new day
i found this solution with data persistent
Code: Select all
local jour = dz.time.day
if jour ~= dz.data.config.jour then
end
- Saturday 31 May 2025 10:25
- Forum: Bugs and Problems
- Topic: switch sekector priority of the OFF status or not ?
- Replies: 0
- Views: 2201
switch sekector priority of the OFF status or not ?
Hi
i put off on the switch selector, and i have a planning on(auto) at 7 am
i don't know if the execution is normal but the planning of 7 am reactivated the selector, is it normal ?
never the less, the off status is not priority
Pierrotori
i put off on the switch selector, and i have a planning on(auto) at 7 am
i don't know if the execution is normal but the planning of 7 am reactivated the selector, is it normal ?
never the less, the off status is not priority
Pierrotori
- Wednesday 12 March 2025 8:20
- Forum: General Discussion
- Topic: init persistent data with value
- Replies: 2
- Views: 1210
Re: init persistent data with value
i initialize the data, because the data will be insert every 5 minutes, it's take 60 minutes to have all the mesure and i have a function that calculate the standard deviation with the all values
i used the parameter size or check if the data is not equal to nil, but in my case it's more easy to add ...
i used the parameter size or check if the data is not equal to nil, but in my case it's more easy to add ...
- Tuesday 11 March 2025 13:52
- Forum: General Discussion
- Topic: init persistent data with value
- Replies: 2
- Views: 1210
init persistent data with value
Hi
i have this
And to init
is it the best solution to init the persistent data ?
Pierrotori
i have this
Code: Select all
data = {
value= { history = true, maxItems = 12}
}
Code: Select all
-- init the persistent data to zero
for i=1,12 do
dz.data.value.add(0)
end
Pierrotori
- Sunday 09 March 2025 9:28
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 1502
Re: tendances value in the dzvent script
i found the formule
n = len(days)
sum_x = sum(days)
sum_y = sum(water)
sum_xx = sum(days * days)
sum_xy = sum(days * water)
# Formules pour la pente (slope) et l'ordonnée à l'origine (intercept)
# slope = (n∑(xy)−∑x∑y)/(n∑(x^2)-∑(x)^2)
slope = (n * sum_xy - sum_x * sum_y) / (n * sum_xx - sum_x ^2 ...
n = len(days)
sum_x = sum(days)
sum_y = sum(water)
sum_xx = sum(days * days)
sum_xy = sum(days * water)
# Formules pour la pente (slope) et l'ordonnée à l'origine (intercept)
# slope = (n∑(xy)−∑x∑y)/(n∑(x^2)-∑(x)^2)
slope = (n * sum_xy - sum_x * sum_y) / (n * sum_xx - sum_x ^2 ...
- Saturday 01 February 2025 15:09
- Forum: General Discussion
- Topic: test new day
- Replies: 2
- Views: 1369
test new day
Hi,
it is a best solution to get the new day and test if dz.time.hour == 0 in the dzvents script ?
Regards
it is a best solution to get the new day and test if dz.time.hour == 0 in the dzvents script ?
Regards
- Saturday 01 February 2025 10:47
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 1502
Re: tendances value in the dzvent script
i try this , but no tendance water in the result of http
Code: Select all
http://xxx.xxx.xx.x:8080/json.htm?groupby=month&idx=625¶m=graph&sensor=counter&type=command- Saturday 01 February 2025 10:45
- Forum: dzVents
- Topic: timer with except
- Replies: 4
- Views: 2786
Re: timer with except
exactly, i didn't find a correct syntax . i have this solution to bypass
- Friday 31 January 2025 19:08
- Forum: dzVents
- Topic: timer with except
- Replies: 4
- Views: 2786
Re: timer with except
i found this solution , to have the trigger name in the script
local time_today = 'every 5 minutes except at 02:00-06:00' -- periode activité
local time_calme = 'every 5 minutes between 02:00 and 06:00' -- periode calme zero consommation
local time_today = 'every 5 minutes except at 02:00-06:00' -- periode activité
local time_calme = 'every 5 minutes between 02:00 and 06:00' -- periode calme zero consommation
- Wednesday 29 January 2025 17:16
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 1502
tendances value in the dzvent script
very good, thanks a lot i continue to update the dzvents script
- Wednesday 29 January 2025 8:00
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 1502
Re: tendances value in the dzvent script
if i would like to use the function in dzvents to calculate a trend bases, i suppose i use a sqlite function, is it correct ?
but by default sqlite is not installed
but by default sqlite is not installed
- Tuesday 28 January 2025 20:54
- Forum: General Discussion
- Topic: tendances value in the dzvent script
- Replies: 7
- Views: 1502
tendances value in the dzvent script
hi,
i have a rfx meter counter. Is it possible to get the value 349 tendance water in the dzvents script ? Pierrotori
i have a rfx meter counter. Is it possible to get the value 349 tendance water in the dzvents script ? Pierrotori
- Wednesday 08 January 2025 19:20
- Forum: dzVents
- Topic: timer with except
- Replies: 4
- Views: 2786
timer with except
Hi,
i would like to create a timer as 'every 5 minutes except at 02:00 and except at 06:00'
but the first exception is right but not the second
What is the good syntax in the rule ?
Pierrotori
i would like to create a timer as 'every 5 minutes except at 02:00 and except at 06:00'
but the first exception is right but not the second
What is the good syntax in the rule ?
Pierrotori
- Tuesday 07 January 2025 20:43
- Forum: Bugs and Problems
- Topic: date in the data persistent
- Replies: 3
- Views: 1235
date in the data persistent
Hi
when i use the command dz.data.stat_xxxx.add and i check the date in the data persistent file, i have this
["xxxx"] = {
[1] = {
["time"] = "2025-1-7 19:30:0.343";
["data"] = "blabla";
};
the problem is the time must be 20:30 and not 19:30
my rpi and container docker are at the right time ...
when i use the command dz.data.stat_xxxx.add and i check the date in the data persistent file, i have this
["xxxx"] = {
[1] = {
["time"] = "2025-1-7 19:30:0.343";
["data"] = "blabla";
};
the problem is the time must be 20:30 and not 19:30
my rpi and container docker are at the right time ...
- Monday 06 May 2024 21:00
- Forum: dzVents
- Topic: black text in domoticz log
- Replies: 3
- Views: 768
Re: black text in domoticz log
lua function ?
- Sunday 05 May 2024 19:26
- Forum: dzVents
- Topic: black text in domoticz log
- Replies: 3
- Views: 768
black text in domoticz log
Hi
what is the dzvents function to write a log text in black ?
Pierrotori
what is the dzvents function to write a log text in black ?
Pierrotori
- Monday 12 February 2024 16:46
- Forum: Z-Wave
- Topic: Device name in domoticz
- Replies: 7
- Views: 2518
Re: Device name in domoticz
i put %loc_%o and now i have flood (cave_temperature_air_2)
- Monday 12 February 2024 14:22
- Forum: Z-Wave
- Topic: Device name in domoticz
- Replies: 7
- Views: 2518
Re: Device name in domoticz
i understand your explication, in the MQTT , i have this
{
"value_template": "{{ value_json.value }}",
"command_topic": "zwave/16/112/0/2/set",
"device": {
"identifiers": [
"zwavejs2mqtt_0xd3fe56b6_node16"
],
"manufacturer": "Fibargroup",
"model": "Flood Sensor (FGFS101)",
"name ...
{
"value_template": "{{ value_json.value }}",
"command_topic": "zwave/16/112/0/2/set",
"device": {
"identifiers": [
"zwavejs2mqtt_0xd3fe56b6_node16"
],
"manufacturer": "Fibargroup",
"model": "Flood Sensor (FGFS101)",
"name ...
- Monday 12 February 2024 14:11
- Forum: Z-Wave
- Topic: Device name in domoticz
- Replies: 7
- Views: 2518
Re: Device name in domoticz
thanks for the topic i saw
if (subname.find("0x") != 0)
{
pDevice->name = dev_name + " (" + subname + ")"; }
else
pDevice->name = dev_name;
}
in fact the 0x is in the condition, i search to remove the Home Hex
if (subname.find("0x") != 0)
{
pDevice->name = dev_name + " (" + subname + ")"; }
else
pDevice->name = dev_name;
}
in fact the 0x is in the condition, i search to remove the Home Hex