Limit, what we send
This commit is contained in:
parent
41d1ec28dd
commit
ef7817bf22
5 changed files with 122 additions and 74 deletions
|
|
@ -565,6 +565,10 @@ exports.install = function(instance) {
|
|||
ws.send(JSON.stringify(cmd));
|
||||
switchLogic(pin, value)
|
||||
}
|
||||
|
||||
//if rvo is 24/7, it has just one switching profile point at 13:00. we do not want to send notification as it repeats every day.
|
||||
const d = new Date();
|
||||
if(d.getHours() != 13) sendNotification("Dido_controller: ", SETTINGS.rvoTbName, "switching_profile_point_applied_to_line", { line: line, value: onOrOff }, "", SEND_TO.tb, instance);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue