mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-04 13:05:52 +00:00
sync with core3 features
This commit is contained in:
@@ -363,6 +363,8 @@ function export_data(type: string) {
|
||||
return emsesp_modules;
|
||||
case 'allvalues':
|
||||
return emsesp_allvalues;
|
||||
case 'systembackup':
|
||||
return emsesp_systembackup;
|
||||
default:
|
||||
return status(404);
|
||||
}
|
||||
@@ -732,6 +734,8 @@ const emsesp_info = {
|
||||
]
|
||||
};
|
||||
|
||||
const emsesp_systembackup = {};
|
||||
|
||||
const emsesp_allvalues = {
|
||||
'Boiler Nefit Trendline HRC30 (DeviceID:0x08, ProductID:123, Version:06.01)': {
|
||||
'force heating off': 'off',
|
||||
@@ -4564,7 +4568,7 @@ router
|
||||
let sorted_devices = [...emsesp_coredata.devices].sort((a, b) => a.t - b.t);
|
||||
// append emsesp_coredata to sorted_devices so Custom is always at the end of the list
|
||||
sorted_devices.push(emsesp_coredata_custom);
|
||||
// sorted_devices = []; // uncomment if simulating no devices...
|
||||
// return { connected: false, devices: [] }; // uncomment if simulating no devices...
|
||||
return { connected: true, devices: sorted_devices };
|
||||
})
|
||||
.get(EMSESP_SENSOR_DATA_ENDPOINT, () => {
|
||||
|
||||
Reference in New Issue
Block a user