You can use geofencing for that, but you will loose ability to be informed who entered home.
Isn’t the heating system turned on/off by some z-wave switch? Then why using separate virtual switch instead of just monitoring state of that z-wave switch?
I steer my heating with house modes and it works pretty well. If you have thermostat devices, you can set certain state (like Heat/Cool/Off/Auto) and temperature to be set when certain house mode is activated. If your heaters work as simple on/off devices, you can make specific scenes to be run according to the certain modes. For more fine-tuning scenes can be used as well (like: set certain temperatures for specific time periods).
I have two locations: one has central (hot water) heating so I have z-wave valves installed on each radiator. I have two scenes, one set lower temperatures for each valve at certain time in the evening, second sets higher temperatures in the morning. The rest is steered by house modes (i.e. lower temperatures when I’m away or on vacations).
At second place I have electrical heaters which work basically as on/off devices. Then I have temp sensor in each room and two scenes for each heater: one turns it on if temperature drops below certain level (different for different times of day), second turns it off if temperature increases above defined level. Scenes work in house mode home or night. For “away” and “vacation” modes I have similar duo of the scenes respectively, but with different temperatures.
Now I experiment with Qubino flush ON/OFF thermostat, which works as ON/OFF switch, but the only thing you need is to set desired temperature (works similar as radiator valve). It can be steered via house modes as well (i.e. "keep temp 15C if I’m away, turn off when I’m on vacation, etc)
Similar question as above, can’t you use states of physical z-wave devices for that?
I found Lua less difficult than PLEG as it uses typical logical operators and you have everything (conditions, triggers, logic, actions) in one place while PLEG organizes them in separate sections which makes it more difficult for me to orient which is for what.
You can define variable as local (to be used only within certain scene) or global (accessible from other scenes). For example you may define variable “X” to store status of a switch (or any other data you define), to be used as a condition (if X == n then…) or to be replicated to other devices (i.e. "check the stat of switch 1 and then set states of switch 2, 3, 4 to match it)
If variable is defined as global one, you can use it in various scenes, just referring to its name. If it is local, works only within the scene where it is defined.
I don’t think overload is the only issue. If you’ve just had too many things, you would expect your amount of free memory to be very low and/or slow speed of your system. But amount of free memory should be more or less stable at certain level, while in your case it decreases continuously. This suggests that something in your system is not right and too many things is not the only trouble.
Then maybe something is wrong with datamine plugin settings, or the USB stick to which datamine saves data. In my case if it takes seconds for such message to dissapear, that’s all. And you have only 28 channels monitored, while I have 110.