Multiple Blocky events or one

Moderator: leecollings

Post Reply
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Multiple Blocky events or one

Post by poudenes »

Hi All,

I have 7 different block events. All for some specific triggers and actions.
Is it ok the keep them separate or will it speedup to combine them together in 1 bog blocky file?

For easy editing and finetune separate ones are easier. Otherwise the list become very long.
But was curious if it will be better to combine them to 1 blocky
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
User avatar
heggink
Posts: 989
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Multiple Blocky events or one

Post by heggink »

Interesting thought. When I converted my blockies into lua (due to the memory leak issue), I did them 1 by 1 and ended up with nearly 50 lua files that trashed my system performance. Once consolidated into 4 bigger scripts, my cpu was back to low single digits again (from 80+%). I can imagine that domoticz intelligently tracks what devices are used in the blocky. If not then a similar principle would apply...
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
poudenes
Posts: 667
Joined: Wednesday 08 March 2017 9:42
Target OS: Linux
Domoticz version: 3.8993
Location: Amsterdam
Contact:

Re: Multiple Blocky events or one

Post by poudenes »

heggink wrote:Interesting thought. When I converted my blockies into lua (due to the memory leak issue), I did them 1 by 1 and ended up with nearly 50 lua files that trashed my system performance. Once consolidated into 4 bigger scripts, my cpu was back to low single digits again (from 80+%). I can imagine that domoticz intelligently tracks what devices are used in the blocky. If not then a similar principle would apply...
Yes i read also that 1 lua script is better... Easier because its text so you can scroll faster true the whole list.
Block is graphical and when its very long there is a lag ... So i split up the blocky haha.

I don't see any cpu usage that is higher then with 1 blocky
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest