Search found 60 matches

by Tarzan737
Thursday 12 October 2023 18:28
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

yes.. i would think that to.. the batt is connected to a device that shut off the load at 23V that is why i wanted it as value 0V but mayby i should use the entire range as you write 0 = 0V anyway im very happy about the code you helped me with as it is! But i have another overkill question (not ...
by Tarzan737
Thursday 12 October 2023 5:55
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

Yes this works.. Thanks, can i ask what the 60 do in the formula? how could you findout 60?



edit.. ahh i realized now (Early at morning)

Thank you!!
by Tarzan737
Wednesday 11 October 2023 23:00
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

ok then it is not what i want.. my final goal is this.. my device Batt has a value (in real world it is a 24v battery charging from 23-27 volts) and this gives a value from lets say 300 to 520 something from (hardware Denkovi to domotics) i want to create a dummy volt sensor that translates values ...
by Tarzan737
Wednesday 11 October 2023 17:52
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

or is it possible to write a code like this? numbers between instead of > ? when using this code the log is clean and updating time in voltage sensor but only the value from batt (not correcting value to volt) return { on = { devices = { 'Batt' -- change to name of voltage device } }, logging ...
by Tarzan737
Wednesday 11 October 2023 17:45
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

hi! i get this in the log with latest script 2023-10-11 17:44:08.545 Error: dzVents: Error: (3.1.8) volt: An error occurred when calling event handler Test 2023-10-11 17:44:08.545 Error: dzVents: Error: (3.1.8) volt: ...e/pi/domoticz/scripts/dzVents/generated_scripts/Test.lua:25: attempt to compare ...
by Tarzan737
Tuesday 10 October 2023 19:12
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

ok. so probably its other stuff i need to change now with string values? since i get the same error in log.. Dont i think i manage to do this right now.. anyway this is the last code i have if someone see anything obvious that i do wrong return { on = { devices = { 'Batt' -- change to name of ...
by Tarzan737
Tuesday 10 October 2023 16:22
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

hello..

i did try that to.. but i get unable to compare number with string in that line in the log..
by Tarzan737
Monday 09 October 2023 22:31
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

ohh so stupid i feel now.. i have been watching this so many times but not really good in this.. but thanks (very much) it is working now.. now i want something like if measuredVoltage > 500 then voltage 27 end if u know what i mean? so i can convert different values to correct voltage.. but i cant ...
by Tarzan737
Monday 09 October 2023 21:21
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

ok so i tried to use that as base and now my dummy device is updating in time and i can se in log that its reading values from my device as well.. but no values are updating in custom volt device still 0v this is how the script looks like now.. return { on = { devices = { 'Batt' -- change to name of ...
by Tarzan737
Sunday 08 October 2023 15:12
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

i have tried some days now to edit scrips and so on.. i cant get it to work.. can someone give me an exampe of a script just to copy the same info from a utility sensor to a dummy voltage sensor.. i tried something like this (plus a lot of others with no result) return { on = { devices = { 'Batt ...
by Tarzan737
Thursday 05 October 2023 16:48
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

Thanks.. but my level of knowledge is to edit values in finnished scrips, i dont think i can manage to make my own script..

I was hoping someone else had a similar setup..
by Tarzan737
Wednesday 04 October 2023 22:15
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

I have this script for a percentage sensor that will work very good but it would be nice to show actually volts instead.. return { on = { devices = { 'Tank' }, }, logging = { level = domoticz.LOG_INFO, marker = "Converter" }, execute = function(dz, item) local inverted = true -- if max value of ...
by Tarzan737
Wednesday 04 October 2023 22:12
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

im using denkovi hardware but as i wrote i just get a X value that corresponds to Y volt

so it is a script im looking for to implement/Correct the values from utility sensor to a dummy in volts

its the script and formula i want :)
by Tarzan737
Wednesday 04 October 2023 21:41
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Re: Create a Voltage sensor from utility to dummy

hi.. thanks..

something similar.. but i dont want 120 to be 120v or 0 (value of utility) to be 0 V


im going to measure a battery voltage range of like 22v to 27v dc..

lets say utility sensor say 120 and that is the same as 22v and 240 (ut sensor) 27V
by Tarzan737
Wednesday 04 October 2023 18:16
Forum: Utility
Topic: Create a Voltage sensor from utility to dummy
Replies: 29
Views: 2889

Create a Voltage sensor from utility to dummy

Hello.. i need to create a (Dummy) voltage sensor from utility sensor to correct value

lets say i get a value on the utility sensor of 120 (or whatever it is) and send that to dummy sensor as 23V and value 121 (or whatever) as 23.5v
and so on...

someone that can help me with a script?
by Tarzan737
Sunday 20 February 2022 19:03
Forum: Utility
Topic: Pump timer/day restriction
Replies: 0
Views: 334

Pump timer/day restriction

Hello.. im building an irrigation system indoors, and i want a restriction for the pump to just operate a max minutes per day.. in blockly i can set pump on for certain Seconds/Minutes/days etc, i want to be able to set pump on and off for many times during the day so far everything is good but i ...
by Tarzan737
Saturday 18 September 2021 19:14
Forum: Utility
Topic: Moisture % XT300 keeps rising
Replies: 7
Views: 2031

Re: Moisture % XT300 keeps rising

how can you see 2 graphs in the same? im interested to do that as well!
by Tarzan737
Friday 18 June 2021 20:49
Forum: dzVents
Topic: Time in minutes or hours
Replies: 2
Views: 474

Re: Time in minutes or hours

Thank u very much!
by Tarzan737
Wednesday 16 June 2021 22:39
Forum: dzVents
Topic: Time in minutes or hours
Replies: 2
Views: 474

Time in minutes or hours

hello! i copied this code from an earlier post and it works fine, but i want it in minutes or hours instead for my heater if possible? return { on = { devices = { 1324, -- device for which you want to record the On time. }, }, data = { lastOn = { initial = 0 }, }, logging = { level = domoticz.LOG ...