added test to convert HH:MM to minutes for scheduler

This commit is contained in:
Proddy
2023-02-25 22:22:59 +01:00
parent 3b9da0ecfd
commit dce29857d3

View File

@@ -608,36 +608,40 @@ let emsesp_schedule = {
active: true, active: true,
flags: 31, flags: 31,
time: '07:30', time: '07:30',
e_min: 0,
cmd: 'hc1/mode', cmd: 'hc1/mode',
value: 'day', value: 'day',
description: 'Turn on central heating in morning' desc: 'Turn on central heating in morning'
}, },
{ {
id: '2', id: '2',
active: true, active: true,
flags: 31, flags: 31,
time: '23:00', time: '23:00',
e_min: 0,
cmd: 'hc1/mode', cmd: 'hc1/mode',
value: 'night', value: 'night',
description: 'Turn off central heating for the night' desc: 'Turn off central heating for the night'
}, },
{ {
id: '3', id: '3',
active: true, active: true,
flags: 128, flags: 128,
time: '00:01', time: '00:01',
e_min: 0,
cmd: 'thermostat/hc2/seltemp', cmd: 'thermostat/hc2/seltemp',
value: '20', value: '20',
description: 'Force thermostat temperature to 20 degrees every minute' desc: 'Force thermostat temperature to 20 degrees every minute'
}, },
{ {
id: '4', id: '4',
active: false, active: false,
flags: 85, flags: 85,
time: '04:00', time: '04:00',
e_min: 0,
cmd: 'system/restart', cmd: 'system/restart',
value: '', value: '',
description: 'auto restart EMS-EPS at 4am every other day' desc: 'auto restart EMS-EPS at 4am every other day'
} }
] ]
}; };