mirror of
https://github.com/Utyff/Zintercom.git
synced 2026-01-12 09:17:41 +03:00
Small fix :)
This commit is contained in:
@@ -106,8 +106,8 @@ const tz = {
|
|||||||
key: ['state', 'mode', 'sound', 'once', 'always', 'drop', 'time_ring', 'time_talk', 'time_open', 'time_bell', 'time_report'],
|
key: ['state', 'mode', 'sound', 'once', 'always', 'drop', 'time_ring', 'time_talk', 'time_open', 'time_bell', 'time_report'],
|
||||||
convertSet: async (entity, key, rawValue, meta) => {
|
convertSet: async (entity, key, rawValue, meta) => {
|
||||||
const lookup = {
|
const lookup = {
|
||||||
'OFF': 0x00,
|
'OFF': '0',
|
||||||
'ON': 0x01,
|
'ON': '1',
|
||||||
};
|
};
|
||||||
const modeOpenLookup = {
|
const modeOpenLookup = {
|
||||||
'Never': '0',
|
'Never': '0',
|
||||||
@@ -150,7 +150,7 @@ const tz = {
|
|||||||
|
|
||||||
await entity.write('closuresDoorLock', payloads[key]);
|
await entity.write('closuresDoorLock', payloads[key]);
|
||||||
|
|
||||||
if (key === 'once'||'always'||'drop'||'mode') {
|
if (key == 'once' || key == 'always' || key == 'drop' || key == 'mode') {
|
||||||
const payloads = {
|
const payloads = {
|
||||||
mode: ['closuresDoorLock', 0x0051],
|
mode: ['closuresDoorLock', 0x0051],
|
||||||
once: ['closuresDoorLock', 0x0051],
|
once: ['closuresDoorLock', 0x0051],
|
||||||
|
|||||||
Reference in New Issue
Block a user