Page 1 of 1

dz.notify returned: 32256

Posted: Thursday 04 July 2024 22:25
by MarsaultP
Hi,

This script work well .... but this message on log :
Error: Error executing script command (/home/bilou/domoticz/scripts/dzVents/scripts/script_time_alerte_radar.lua). returned: 32256

Code: Select all

return 
{

	active = true,

	on = {
		devices = {
			'Abri voitures Motion' -- detecteur radar voiture
		}
	},

   execute = function( dz, device ) 
		
		if (device.active) then
			-- Notification detection radar abri voiture
			dz.notify('Domoticz RADAR abri '..os.date("%X"),'detection',dz.PRIORITY_HIGH)
			print('Notification alerte RADAR abri voiture')
		end
 
    end
}
A idea of what is wrong ?

Best reagrds

Philippe

Re: dz.notify returned: 32256

Posted: Thursday 04 July 2024 23:06
by waltervl
Do a test without the os.date to check there are no corruptions created by this.

Code: Select all

dz.notify('Domoticz RADAR abri ','detection',dz.PRIORITY_HIGH)

Re: dz.notify returned: 32256

Posted: Friday 05 July 2024 19:29
by MarsaultP
Yes, I do this test, but without os.date that return the same error !

Re: dz.notify returned: 32256

Posted: Friday 05 July 2024 19:51
by Kedi
rename the script to "alerte_radar.lua"

Re: dz.notify returned: 32256

Posted: Friday 05 July 2024 21:15
by MarsaultP
Damned ! Yessssssssssss
I had forgot the rule .... THANKS

Re: dz.notify returned: 32256

Posted: Friday 05 July 2024 22:36
by waltervl
Why not use the internal dzvents script editor? Saves some thinking and managing. Also scripts are stored in the database. Makes live much easier.

Re: dz.notify returned: 32256

Posted: Friday 12 July 2024 22:24
by MarsaultP
Good advice : I rewrite the script with internal editor (I just discover !) and it's perfect !
Thank's