Search found 45 matches

by andrehj
Thursday 26 December 2024 12:52
Forum: dzVents
Topic: compare time from fixing time..
Replies: 6
Views: 1493

Re: compare time from fixing time..

(Sorry to revive an old topic, but I couldn't find anything more recent.) The compare method require two dzVents time objects. return { on = { timer = { 'every minute', }, }, execute = function(dz) local myTime = '15:00:00' local someTime = dz.time.makeTime(dz.time.rawDate .. ' ' .. myTime) -- this ...
by andrehj
Wednesday 20 November 2024 10:01
Forum: dzVents
Topic: Script, only triggered by a device, should sometimes restart itself after one minute. How?
Replies: 7
Views: 1166

Re: Script, only triggered by a device, should sometimes restart itself after one minute. How?

How do I turn a dummy device on after an x amount of time from a dzvent script Use a command option: https://wiki.domoticz.com/DzVents:_next_generation_Lua_scripting#Command_options_(delay,_duration,_event_triggering) eg device.switchOn().afterMin(2).forSec(10) Sorry, typing my previous message ...
by andrehj
Wednesday 20 November 2024 9:58
Forum: dzVents
Topic: Script, only triggered by a device, should sometimes restart itself after one minute. How?
Replies: 7
Views: 1166

Re: Script, only triggered by a device, should sometimes restart itself after one minute. How?

What is that certain case? Can it be calculated by dzvents? First, thanks a lot for your reply. Very appreciated. Yes. It can be calculated by dzvents. The case is: I have a smart plug which measures and switches the power supply to my computer peripherals (monitor, speakers, usb-dock etc). I want ...
by andrehj
Wednesday 20 November 2024 9:00
Forum: dzVents
Topic: Script, only triggered by a device, should sometimes restart itself after one minute. How?
Replies: 7
Views: 1166

Re: Script, only triggered by a device, should sometimes restart itself after one minute. How?

I use dummy devices for this which I set to turn on after an amount of time, and use them as triggers for the event. Thanks. That sounds like a viable idea. But how do I turn a dummy device on after an x amount of time from a dzvent script? Is that something like: 1. Retrieve current time, 2. Add 1 ...
by andrehj
Tuesday 19 November 2024 19:25
Forum: dzVents
Topic: Script, only triggered by a device, should sometimes restart itself after one minute. How?
Replies: 7
Views: 1166

Script, only triggered by a device, should sometimes restart itself after one minute. How?

I have a script that is triggered by a device. This works well. But only in a certain case, the script detects that it has to rerun after one or two minutes, to check a certain state. This is needed maybe twice a day. How can I accomplish that? Is it even possible? (I can of course start the script ...
by andrehj
Sunday 10 November 2024 16:39
Forum: dzVents
Topic: Cannot create log entry from dzVents script. Log tab "Status" always empty
Replies: 14
Views: 1611

Re: Cannot create log entry from dzVents script. Log tab "Status" always empty

Thanks everyone. Issue is now completely resolved. The problems were: 1. All my hardware had all logging enabled (Info, Status and Error) 2. Years ago I had seen that my All log was flooded with messages, and this made debugging scripts nearly impossible. I did not know that that was caused by the ...
by andrehj
Sunday 10 November 2024 12:12
Forum: dzVents
Topic: Cannot create log entry from dzVents script. Log tab "Status" always empty
Replies: 14
Views: 1611

Re: Cannot create log entry from dzVents script. Log tab "Status" always empty

Hm, thanks for the clarification. That makes the Info and Debug messages more or less useless, since the All tab is flooded with output of many devices (especially the "P1 meter" writes way to many messages in this log, why?). That leaves only the Status and Error logs as useful to debug scripts ...
by andrehj
Sunday 10 November 2024 12:00
Forum: dzVents
Topic: Cannot create log entry from dzVents script. Log tab "Status" always empty
Replies: 14
Views: 1611

Re: Cannot create log entry from dzVents script. Log tab "Status" always empty

Thanks @waltervl! Your script outputs the following lines in the All tab of the error log: 2024-11-10 11:55:10.986 dzVents: log_script: ------ Start internal script: Log test with dummy switch test: Device: "test (Dummy)", Index: 389 2024-11-10 11:55:10.986 dzVents: log_script: INFO log line! 2024 ...
by andrehj
Sunday 10 November 2024 11:47
Forum: dzVents
Topic: Cannot create log entry from dzVents script. Log tab "Status" always empty
Replies: 14
Views: 1611

Re: Cannot create log entry from dzVents script. Log tab "Status" always empty

I'm a little further: I've just changed something in /etc/init.d/domoticz.sh. From DAEMON_ARGS="$DAEMON_ARGS -log /home/pi/domoticz/log/domoticz.log" DAEMON_ARGS="$DAEMON_ARGS -loglevel error" # DAEMON_ARGS="$DAEMON_ARGS -loglevel normal,status,error" to #DAEMON_ARGS="$DAEMON_ARGS -log /home/pi ...
by andrehj
Sunday 10 November 2024 10:53
Forum: dzVents
Topic: Cannot create log entry from dzVents script. Log tab "Status" always empty
Replies: 14
Views: 1611

Re: Cannot create log entry from dzVents script. Log tab "Status" always empty

Thanks @HvdeW, but you still fail to understand the problems. 1. All of these examples do not work. I still have only three tabs in Setup → Log, (All, Status and Error), as shown in the picture in my original post. And my test messages do not show up in any of these tabs. Only if there is an error i ...
by andrehj
Sunday 10 November 2024 9:33
Forum: dzVents
Topic: Cannot create log entry from dzVents script. Log tab "Status" always empty
Replies: 14
Views: 1611

Re: Cannot create log entry from dzVents script. Log tab "Status" always empty

Thanks @HvdW, I will try your suggestions later today. I do have one more question and one remark though: Via Setup → Log I have three log tabs: All, Status and Error. How these tabs reflect the four log statuses (LOG_INFO, LOG_STATUS, LOG_ERROR and LOG_DEBUG)? You refer to the dzVents wiki. But t ...
by andrehj
Saturday 09 November 2024 20:58
Forum: dzVents
Topic: Cannot create log entry from dzVents script. Log tab "Status" always empty
Replies: 14
Views: 1611

Cannot create log entry from dzVents script. Log tab "Status" always empty

I'm trying to debug a script, but no matter what I do, the tab "Status" in the log (accessed via Setup → Log) always stays empty. Only the errors in the scripts are shown in the "Error" tab. These are my log settings in "Setup → Settings → Other: 2024-11-09 20_47_29-Domoticz log settings.png This is ...
by andrehj
Wednesday 11 September 2024 20:57
Forum: Show your projects
Topic: Energy Dashboard (Build in)
Replies: 285
Views: 38384

Re: Energy Dashboard (Build in)

Thanks. You probably mean this discussion: https://www.domoticz.com/forum/viewtopic.php?p=318834#p318834 I should be able to find it, however, it apparently only fixes the values, not the movement of the dotted lines. Also, any modifications I make to that code will be overwritten at every update of ...
by andrehj
Wednesday 11 September 2024 19:57
Forum: Show your projects
Topic: Energy Dashboard (Build in)
Replies: 285
Views: 38384

Re: Energy Dashboard (Build in)

Thanks @waltervl. Too bad no-one thought of this. However, just created an extra dummy device to fix the display of the solar system in the Energy Dashboard, and immediately ran into another problem: The Energy Dashboard converts consumption to production! At night my solar system consumes energy ...
by andrehj
Sunday 08 September 2024 18:49
Forum: Show your projects
Topic: Energy Dashboard (Build in)
Replies: 285
Views: 38384

Re: Energy Dashboard (Build in)

Very nice, this dashboard. However, I'm running into a problem: A P1 Smart Meter device is not available as Solar device in Energy Dashboard Setup. I have the power, production and consumption data of my PV system in a counter of type "P1 Smart Meter" (which I'm filling with a script running every ...
by andrehj
Sunday 05 May 2024 10:12
Forum: Utility
Topic: setpoint no longer show the "SetPoint"
Replies: 13
Views: 3005

Re: setpoint no longer show the "SetPoint"

Thanks @hestia for posting this issue, I just ran into exactly the same problem. And thanks @waltervl for posting the solution. After years of using Domoticz, I never found out that you can simply click on an icon of a setpoint device to change a thermostat setpoint. Always used the same method as ...
by andrehj
Sunday 23 April 2023 20:11
Forum: Others
Topic: Alecto WS 5500 weather station
Replies: 36
Views: 11660

Re: Alecto WS 5500 weather station

Huis1 wrote: Wednesday 19 April 2023 17:40 I have the Alecto working in Domoticz using the PWS plugin (https://github.com/Xorfor/Domoticz-PWS-Plugin).

Works like a charm
I can confirm that. It's the only plugin I still use in Domoticz.
by andrehj
Wednesday 01 March 2023 9:33
Forum: Z-Wave
Topic: Fibaro FGR223 Roller Shutter 3 physical buttons cannot control the slats angle?
Replies: 8
Views: 976

Re: Fibaro FGR223 Roller Shutter 3 physical buttons broken by update to 2023.1?

Physical button operation can not be interfered by Domoticz other than via settings in the device itself: physical buttons will even work when no controller is present at all. andrejh's problem must therefor be something in the z-wave node's options. Did you try re-calibrating your shutter 3? You ...
by andrehj
Tuesday 28 February 2023 19:58
Forum: Z-Wave
Topic: Fibaro FGR223 Roller Shutter 3 physical buttons cannot control the slats angle?
Replies: 8
Views: 976

Re: Fibaro FGR223 Roller Shutter 3 physical buttons broken by update to 2023.1?

In 2023.1 threw are several changes made for the rolling shutter switches. There is mainly some harmonization done between up, down, open close etc. In the buttons but also in DzEvents. Best to start with the settings of the button itself, then verify if your scripts also do what you expect. I also ...
by andrehj
Tuesday 28 February 2023 19:54
Forum: Z-Wave
Topic: Fibaro FGR223 Roller Shutter 3 physical buttons cannot control the slats angle?
Replies: 8
Views: 976

Re: Fibaro FGR223 Roller Shutter 3 physical buttons broken by update to 2023.1?

Is anything happening in Domoticz acting on the change of the position, when you use those switches, since updates are send to Domoticz and a script could be interfering? Yes. Just checked. In Domoticz the blinds change from completely open to completely closed (not to be confused with up / down ...