mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
add NTP check to scheduler
This commit is contained in:
@@ -600,44 +600,47 @@ const emsesp_devicedata_4 = {
|
||||
};
|
||||
|
||||
// SCHEDULE
|
||||
let emsesp_schedule = [
|
||||
{
|
||||
id: '1',
|
||||
active: true,
|
||||
flags: 31,
|
||||
time: '07:30',
|
||||
cmd: 'hc1/mode',
|
||||
value: 'day',
|
||||
description: 'Turn on central heating in morning'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
active: true,
|
||||
flags: 31,
|
||||
time: '23:00',
|
||||
cmd: 'hc1/mode',
|
||||
value: 'night',
|
||||
description: 'Turn off central heating for the night'
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
active: true,
|
||||
flags: 128,
|
||||
time: '00:01',
|
||||
cmd: 'thermostat/hc2/seltemp',
|
||||
value: '20',
|
||||
description: 'Force thermostat temperature to 20 degrees every minute'
|
||||
},
|
||||
{
|
||||
id: '4',
|
||||
active: false,
|
||||
flags: 85,
|
||||
time: '04:00',
|
||||
cmd: 'system/restart',
|
||||
value: '',
|
||||
description: 'auto restart EMS-EPS at 4am every other day'
|
||||
}
|
||||
];
|
||||
let emsesp_schedule = {
|
||||
ntp_available: true,
|
||||
schedule: [
|
||||
{
|
||||
id: '1',
|
||||
active: true,
|
||||
flags: 31,
|
||||
time: '07:30',
|
||||
cmd: 'hc1/mode',
|
||||
value: 'day',
|
||||
description: 'Turn on central heating in morning'
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
active: true,
|
||||
flags: 31,
|
||||
time: '23:00',
|
||||
cmd: 'hc1/mode',
|
||||
value: 'night',
|
||||
description: 'Turn off central heating for the night'
|
||||
},
|
||||
{
|
||||
id: '3',
|
||||
active: true,
|
||||
flags: 128,
|
||||
time: '00:01',
|
||||
cmd: 'thermostat/hc2/seltemp',
|
||||
value: '20',
|
||||
description: 'Force thermostat temperature to 20 degrees every minute'
|
||||
},
|
||||
{
|
||||
id: '4',
|
||||
active: false,
|
||||
flags: 85,
|
||||
time: '04:00',
|
||||
cmd: 'system/restart',
|
||||
value: '',
|
||||
description: 'auto restart EMS-EPS at 4am every other day'
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
// CUSTOMIZATIONS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user