-
Notifications
You must be signed in to change notification settings - Fork 78
Open
Description
shelly-script-examples/ble-shelly-dw.js
Lines 56 to 70 in f5b47c0
| actions: [ | |
| { | |
| cond: { | |
| Window: 0, | |
| }, | |
| action: triggerAutomation, | |
| }, | |
| { | |
| cond: { | |
| Window: 1, | |
| }, | |
| action: printClosed, | |
| }, | |
| ], | |
| }; |
fix = Lowercase Window => window
actions: [
{
cond: {
window: 0,
},
action: triggerAutomation,
},
{
cond: {
window: 1,
},
action: printClosed,
},
],
};
shelly-script-examples/ble-shelly-dw.js
Lines 88 to 99 in f5b47c0
| const BTH = { | |
| 0x00: { n: "pid", t: uint8 }, | |
| 0x01: { n: "battery", t: uint8, u: "%" }, | |
| 0x02: { n: "temperature", t: int16, f: 0.01, u: "tC" }, | |
| 0x03: { n: "humidity", t: uint16, f: 0.01, u: "%" }, | |
| 0x05: { n: "illuminance", t: uint24, f: 0.01 }, | |
| 0x21: { n: "motion", t: uint8 }, | |
| 0x2d: { n: "window", t: uint8 }, | |
| 0x2e: { n: "humidity", t: uint8, u: "%" }, | |
| 0x3a: { n: "button", t: uint8 }, | |
| 0x3f: { n: "rotation", t: int16, f: 0.1 }, | |
| 0x45: { n: "temperature", t: int16, f: 0.1, u: "tC" }, |
Metadata
Metadata
Assignees
Labels
No labels