Prowl in dzVents not working

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

Moderator: leecollings

Post Reply
Gingerpale
Posts: 53
Joined: Wednesday 13 January 2016 16:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1
Contact:

Prowl in dzVents not working

Post by Gingerpale »

Since latest few beta versions, Prowl is not working anymore when fired from dzVents.
E.g.

Code: Select all

domoticz.notify('Prowl', 'Test Dz', domoticz.PRIORITY_NORMAL,nil,nil,domoticz.NSS_PROWL)
It still works when testing it in "Settings - Notifications - Prowl" and it also works when fired from Blockly script.
Any known issue here?
Rpi4B,RFX433e,PiFace2, LCD, Hue bridge, Alexa (+TTS), HA-Bridge, Sonoff NSPanel, Sonoff RF (+IR) bridge, Nefit CV, Tasmota/MQTT, Enphase Solar, Smartmeter, Alarm I/F, H13726B Weather Station, CM180 Energy meter, Sonoff, KaKu, Tuya, Gledopto, AriLux,...
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Prowl in dzVents not working

Post by waltervl »

What if you use something simple and have the prowl messaging globally active. Do you get the message on all active notification systems including Prowl?

Code: Select all

domoticz.notify('Prowl', 'Test Dz')
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Gingerpale
Posts: 53
Joined: Wednesday 13 January 2016 16:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1
Contact:

Re: Prowl in dzVents not working

Post by Gingerpale »

I only have Prowl active, but testing with

Code: Select all

domoticz.notify('Prowl', 'Test Dz')
doesn't work either.
And if I do the same in Blockly: select subsystem "all", it does work.

And it always worked before. I use it in many dzVents scripts for years. So it seems that something has changed. But what?
Rpi4B,RFX433e,PiFace2, LCD, Hue bridge, Alexa (+TTS), HA-Bridge, Sonoff NSPanel, Sonoff RF (+IR) bridge, Nefit CV, Tasmota/MQTT, Enphase Solar, Smartmeter, Alarm I/F, H13726B Weather Station, CM180 Energy meter, Sonoff, KaKu, Tuya, Gledopto, AriLux,...
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Prowl in dzVents not working

Post by waltervl »

In another issue someone did accidentally set domoticz.NSS_PROWL to nil in his script.
You have not done that?

Do you remember on what version it still worked in beta?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Gingerpale
Posts: 53
Joined: Wednesday 13 January 2016 16:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1
Contact:

Re: Prowl in dzVents not working

Post by Gingerpale »

I usually install new beta's within a day or so after they have been released. And I see from my logs that it still worked at Feb 6th. After that it stopped working. So is it about 3 beta's ago?
I created a test script for this issue and I literally use this line in my test script (and similar in all my other scripts)

Code: Select all

return {
	on = 
	{
		devices = 
		{
			'Test ToggleSW',
		},
	},
	logging = 
	{
		level = domoticz.LOG_INFO,
		marker = 'Prowl Test',
	},

	execute = function(domoticz, item)
		domoticz.log('Script fired by device: '.. item.name .. ': ' .. item.state, domoticz.LOG_INFO)
        	if domoticz.devices(item.name).state == 'On' then
           		-- domoticz.notify('Prowl', 'Test Dz', domoticz.PRIORITY_NORMAL,nil,nil,domoticz.NSS_PROWL) -- original notify message
           		domoticz.notify('Prowl', 'Test Dz') -- Waltervl test suggestion
           		domoticz.log(item.name .. ' triggered', domoticz.LOG_INFO)
        	else
           		-- do nothing
        	end
	end -- execute
}
Rpi4B,RFX433e,PiFace2, LCD, Hue bridge, Alexa (+TTS), HA-Bridge, Sonoff NSPanel, Sonoff RF (+IR) bridge, Nefit CV, Tasmota/MQTT, Enphase Solar, Smartmeter, Alarm I/F, H13726B Weather Station, CM180 Energy meter, Sonoff, KaKu, Tuya, Gledopto, AriLux,...
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Prowl in dzVents not working

Post by waltervl »

It seems notification from dzvents is not working at all on recent beta (17099, I still have to update to latest), so looks like a bug. I will make a github issue if needed.
If you do

Code: Select all

domoticz.notify('Prowl', 'Test Dz')
It should also trigger a browser notification on top right corner. In stable it does, in beta is does not. Also Android Google Firebase notifications are not working from dzvents.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Prowl in dzVents not working

Post by waltervl »

Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Prowl in dzVents not working

Post by waltervl »

Fixed in current beta.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Gingerpale
Posts: 53
Joined: Wednesday 13 January 2016 16:11
Target OS: Raspberry Pi / ODroid
Domoticz version: 2026.1
Contact:

Re: Prowl in dzVents not working

Post by Gingerpale »

I've installed latest Beta and I can confirm it's working again!
Thanks!
Rpi4B,RFX433e,PiFace2, LCD, Hue bridge, Alexa (+TTS), HA-Bridge, Sonoff NSPanel, Sonoff RF (+IR) bridge, Nefit CV, Tasmota/MQTT, Enphase Solar, Smartmeter, Alarm I/F, H13726B Weather Station, CM180 Energy meter, Sonoff, KaKu, Tuya, Gledopto, AriLux,...
Romain2022
Posts: 13
Joined: Friday 16 September 2022 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Prowl in dzVents not working

Post by Romain2022 »

Hello erveryone,

I have the same issue with Firebase (Domoticz beta v17252 and Android App Domoticz in beta).

And in this topic, I saw : "Also Android Google Firebase notifications are not working from dzvents." :( :( :(
Why ? Is this feature planned to be implemented ?
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Prowl in dzVents not working

Post by waltervl »

For Firebase notifications setup in latest beta check the wiki for instructions. https://wiki.domoticz.com/Firebase_setup
There was also a general notification issue in dzvents but that was fixed.
So everything should work in latest beta, also sending Firebase (google) notifications with dzvents.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Romain2022
Posts: 13
Joined: Friday 16 September 2022 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Prowl in dzVents not working

Post by Romain2022 »

Hello,
I have followed the procedure to set up Firebase on both Domoticz and the Android app.
Moreover, notification tests work well from both Domoticz and the Android app.
Notifications arrive correctly on my phone from a Blocky script, but not from a dzEvents script.

Here my differents calls for notity method :
domoticz.notify('Devices non accessibles', message, domoticz.PRIORITY_HIGH,nil,381,domoticz.NSS_FIREBASE)
=> 381 is the id of my phone

domoticz.notify('Devices non accessibles', message, domoticz.PRIORITY_HIGH) => it was the call I've used before the Firebase change.
User avatar
waltervl
Posts: 7020
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Prowl in dzVents not working

Post by waltervl »

This is working for me, it sends a notification whenever I switch device Test on or off.

Code: Select all

return {
	on = {
		devices = {
			'test'
		}
	},
	logging = {
		marker = 'notification_script',
		level = domoticz.LOG_DEBUG
	},
	execute = function(domoticz, device)
		domoticz.notify('Test dzvents', 'Test dzvents notification beta')
	end
}
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Romain2022
Posts: 13
Joined: Friday 16 September 2022 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Prowl in dzVents not working

Post by Romain2022 »

Thanks for your help, it does work well.
The difference is that the message I was sending was probably too long. I do receive notifications when I shorten it. Maybe a Firebase limitation ?
Post Reply