waaren wrote: ↑Wednesday 01 August 2018 0:41
MartinManders wrote: ↑Tuesday 31 July 2018 23:57
...
Can't figure out wat went wrong, and why it isn't working after restarting.
Hi Martin,
could you try this time based script to see if dzVents reports anything in the log. Might help to find a root cause.
Code: Select all
return {
on = { timer = { "every minute" }},
execute = function(domoticz)
domoticz.log("This timer based script does send something to the domoticz log",domoticz.LOG_FORCE)
end
}
Hi Waaren,
I gave the eventsystem again a rest by starting and stopping.
Then put your script in the DzVents and activated it.
This is the result:
2018-08-02 10:44:12.271 Status: EventSystem: reset all events...
2018-08-02 10:44:12.273 Status: dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/Batterij_Check.lua
2018-08-02 10:44:12.273 Status: dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/laatstepoging.lua
2018-08-02 10:44:12.273 Status: dzVents: Write file: /home/pi/domoticz/scripts/dzVents/generated_scripts/waaren.lua
2018-08-02 10:44:14.872 (AEON) Thermostat (Therm R-L)
2018-08-02 10:44:50.849 (Slimme meter) P1 Smart Meter (Power)
2018-08-02 10:45:00.238 Status: dzVents: Info: ------ Start internal script: waaren:, trigger: every minute
2018-08-02 10:45:00.238 Status: dzVents: !Info: This timer based script does send something to the domoticz log
2018-08-02 10:45:00.238 Status: dzVents: Info: ------ Finished waaren
2018-08-02 10:45:01.231 (Slimme meter) P1 Smart Meter (Power)
Looks good, then trying to push the KF1 button.
2018-08-02 10:49:00.281 Status: dzVents: Info: ------ Start internal script: waaren:, trigger: every minute
2018-08-02 10:49:00.281 Status: dzVents: !Info: This timer based script does send something to the domoticz log
2018-08-02 10:49:00.281 Status: dzVents: Info: ------ Finished waaren
2018-08-02 10:49:08.355 (AEON) Thermostat (Therm R-L)
2018-08-02 10:49:32.578 (AEON) Thermostat (Therm R-R)
2018-08-02 10:49:38.307 (AEON) Light/Switch (KF1)
2018-08-02 10:49:40.876 (Slimme meter) P1 Smart Meter (Power)
No reaction on this event, and again a reaction from my other RPi?
Checked again both script, exactly the same, then a drunk a cup of strong coffee, and looked again on both configs in Domoticz.
And... I found the difference, in the non-working config I use switch type ="contact", in my working device I shared the switch as "On/Off".
Changed it, and the script works!
I'm really embarrassed that I overlooked it 5 days.......
And almost destroyed my believe in DzVents, sorry guys.
The devil is in the detail, thanks a lot Waaren for your time !
Cheers,
Martin