dz.notify returned: 32256

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
MarsaultP
Posts: 33
Joined: Wednesday 27 November 2019 13:31
Target OS: Linux
Domoticz version: 2024.7
Location: France
Contact:

dz.notify returned: 32256

Post 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
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: dz.notify returned: 32256

Post 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)
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
MarsaultP
Posts: 33
Joined: Wednesday 27 November 2019 13:31
Target OS: Linux
Domoticz version: 2024.7
Location: France
Contact:

Re: dz.notify returned: 32256

Post by MarsaultP »

Yes, I do this test, but without os.date that return the same error !
Kedi
Posts: 536
Joined: Monday 20 March 2023 14:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Somewhere in NL
Contact:

Re: dz.notify returned: 32256

Post by Kedi »

rename the script to "alerte_radar.lua"
Logic will get you from A to B. Imagination will take you everywhere.
MarsaultP
Posts: 33
Joined: Wednesday 27 November 2019 13:31
Target OS: Linux
Domoticz version: 2024.7
Location: France
Contact:

Re: dz.notify returned: 32256

Post by MarsaultP »

Damned ! Yessssssssssss
I had forgot the rule .... THANKS
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: dz.notify returned: 32256

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
MarsaultP
Posts: 33
Joined: Wednesday 27 November 2019 13:31
Target OS: Linux
Domoticz version: 2024.7
Location: France
Contact:

Re: dz.notify returned: 32256

Post by MarsaultP »

Good advice : I rewrite the script with internal editor (I just discover !) and it's perfect !
Thank's
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest