mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 09:19:51 +03:00
Merge branch 'dev' of https://github.com/emsesp/EMS-ESP32 into dev
This commit is contained in:
@@ -161,7 +161,7 @@ const SettingsCustomization: FC = () => {
|
||||
const saveCustomization = async () => {
|
||||
if (deviceEntities && selectedDevice) {
|
||||
const masked_entities = deviceEntities
|
||||
.filter((de) => de.m)
|
||||
// .filter((de) => de.m)
|
||||
.map((new_de) => new_de.m.toString(16).padStart(2, '0') + new_de.s);
|
||||
try {
|
||||
const response = await EMSESP.writeMaskedEntities({
|
||||
|
||||
@@ -131,10 +131,10 @@ export interface DeviceValue {
|
||||
n: string; // name
|
||||
c: string; // command
|
||||
l: string[]; // list
|
||||
h?: string; // help text
|
||||
s?: string; // steps for up/down
|
||||
m?: string; // min
|
||||
x?: string; // max
|
||||
h?: string; // help text, optional
|
||||
s?: string; // steps for up/down, optional
|
||||
m?: string; // min, optional
|
||||
x?: string; // max, optional
|
||||
}
|
||||
|
||||
export interface DeviceData {
|
||||
@@ -147,7 +147,7 @@ export interface DeviceEntity {
|
||||
n: string; // name
|
||||
s: string; // shortname
|
||||
m: number; // mask
|
||||
w?: boolean; // writeable
|
||||
w: boolean; // writeable
|
||||
}
|
||||
|
||||
export interface MaskedEntities {
|
||||
|
||||
Reference in New Issue
Block a user