Page 1 of 1

Max Power settings on L!,L2,L3 usage

Posted: Friday 19 July 2024 9:30
by ravaoo
There is a Max Power setting and this is never met because i have 3 fase power connection.

For me it makes more sens to monitor en alarm on fase. So can there be a setting and alarm on L1,L2,L3 usage?
And if you are in that code it is low hanging fruit to do it also for L1,L2,L3 delivery.

Maybe it is a optional thing with a selector to use general (simple) or detail (more complex) monitoring and alarm settings. This to help starting users not to get lost.

I hope this sugestion is build in. For now i wil make some dzevents script to monitor my usage on fase level.

Re: Max Power settings on L!,L2,L3 usage

Posted: Friday 19 July 2024 9:37
by waltervl
This max power setting was implemented originally because some Zwave power hardware starting to give ridiculous high readings due to bugs or faulty hardware. So keep that in mind, it was not meant for monitoring your electricity environment. You also should not use it for that because the high value will not be stored in the database as it is being treated as an illegal value!

If you want to monitor your environment it is indeed the best way to do that with scripting or with a standard notification on the L1/L2/L3 sensor device. https://www.domoticz.com/wiki/Managing_ ... ifications

Re: Max Power settings on L!,L2,L3 usage

Posted: Friday 19 July 2024 10:30
by ravaoo
Thank you for responding this quick!

I made some script and works fine (tested it with low max)

Code: Select all

return {
	on = {
		devices = {
			'Usage L1','Usage L2','Usage L3','Delivery L3',
		}
	},
	logging = {
		level = domoticz.LOG_INFO,
		marker = 'Dz max power op fase niveau',
	},
	execute = function(domoticz, device)
-- nax power is 25A * 230V = 5750 => alarm setting 5000 watt
		if (device.actualWatt>5000) then
		    domoticz.notify('vermogen op '.. device.name ..' is ' .. device.actualWatt .. ' wat', 'dz max power op fase niveau heeft een overschrijding van het maximaal vermogen op een van de fases gezien.'..'Het vermogen op '.. device.name ..' is '..  device.actualWatt .. ' wat')
		    domoticz.log('vermogen op '.. device.name ..' is ' .. device.actualWatt .. ' wat', domoticz.LOG_INFO)
		end --actualwatt
	end
}