Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Luligu committed Jun 19, 2024
1 parent 91c4ab0 commit 557c4b1
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 93 deletions.
14 changes: 3 additions & 11 deletions matterbridge-shelly.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,21 +24,13 @@
"exposeSwitch": {
"description": "Choose how to expose the shelly switches: as a switch, light or outlet",
"type": "string",
"enum": [
"switch",
"light",
"outlet"
],
"enum": ["switch", "light", "outlet"],
"default": "switch"
},
"exposeInput": {
"description": "Choose how to expose the shelly inputs: disabled, contact or momentary switch",
"type": "string",
"enum": [
"disabled",
"contact",
"momentary"
],
"enum": ["disabled", "contact", "momentary"],
"default": "disabled"
},
"blackList": {
Expand Down Expand Up @@ -99,4 +91,4 @@
"default": false
}
}
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,4 +118,4 @@
"overrides": {
"eslint": "latest"
}
}
}
6 changes: 2 additions & 4 deletions src/mock/shelly1minig3-543204547478.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@
"status": {
"ble": {},
"bthome": {
"errors": [
"bluetooth_disabled"
]
"errors": ["bluetooth_disabled"]
},
"cloud": {
"connected": true
Expand Down Expand Up @@ -187,4 +185,4 @@
"connected": false
}
}
}
}
14 changes: 3 additions & 11 deletions src/mock/shelly1pmminig3-543204519264.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,20 +158,12 @@
"current": 0,
"aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718609331
},
"ret_aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718609331
},
"temperature": {
Expand Down Expand Up @@ -210,4 +202,4 @@
"connected": false
}
}
}
}
8 changes: 2 additions & 6 deletions src/mock/shellydimmer2-98CDAC0D01BB.json
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,7 @@
"overpower": 0,
"is_valid": true,
"timestamp": 1718616373,
"counters": [
0,
0,
0
],
"counters": [0, 0, 0],
"total": 0
}
],
Expand Down Expand Up @@ -253,4 +249,4 @@
"fs_free": 119476,
"uptime": 122095
}
}
}
8 changes: 2 additions & 6 deletions src/mock/shellyplus1pm-441793d69718.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,7 @@
"current": 0,
"aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718609280
},
"temperature": {
Expand Down Expand Up @@ -198,4 +194,4 @@
"connected": false
}
}
}
}
8 changes: 2 additions & 6 deletions src/mock/shellyplus2pm-5443b23d81f8.roller.json
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,7 @@
"freq": 50,
"aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718609280
},
"temperature": {
Expand Down Expand Up @@ -237,4 +233,4 @@
"connected": false
}
}
}
}
26 changes: 5 additions & 21 deletions src/mock/shellyplus2pm-5443b23d81f8.switch.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,20 +191,12 @@
"pf": 0,
"aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718643780
},
"ret_aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718643780
},
"temperature": {
Expand All @@ -223,20 +215,12 @@
"pf": 0,
"aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718643780
},
"ret_aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718643780
},
"temperature": {
Expand Down Expand Up @@ -275,4 +259,4 @@
"connected": false
}
}
}
}
2 changes: 1 addition & 1 deletion src/mock/shellyplusi4-cc7b5c8aea2c.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,4 @@
"connected": false
}
}
}
}
18 changes: 4 additions & 14 deletions src/mock/shellypmminig3-84fce63957f4.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@
"status": {
"ble": {},
"bthome": {
"errors": [
"bluetooth_disabled"
]
"errors": ["bluetooth_disabled"]
},
"cloud": {
"connected": true
Expand All @@ -141,20 +139,12 @@
"freq": 50,
"aenergy": {
"total": 509.289,
"by_minute": [
0,
0,
213.298
],
"by_minute": [0, 0, 213.298],
"minute_ts": 1718609280
},
"ret_aenergy": {
"total": 0,
"by_minute": [
0,
0,
0
],
"by_minute": [0, 0, 0],
"minute_ts": 1718609280
}
},
Expand Down Expand Up @@ -185,4 +175,4 @@
"connected": false
}
}
}
}
14 changes: 3 additions & 11 deletions src/mock/shellyswitch25-3494546BBF7E.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,23 +253,15 @@
"overpower": 0,
"is_valid": true,
"timestamp": 1718616379,
"counters": [
0,
0,
0
],
"counters": [0, 0, 0],
"total": 0
},
{
"power": 0,
"overpower": 0,
"is_valid": true,
"timestamp": 1718616379,
"counters": [
0,
0,
0
],
"counters": [0, 0, 0],
"total": 0
}
],
Expand Down Expand Up @@ -307,4 +299,4 @@
"voltage": 240.36,
"uptime": 122102
}
}
}
1 change: 0 additions & 1 deletion src/utils.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { deepEqual, deepCopy, getIpv4InterfaceAddress, getIpv6InterfaceAddress } from 'matterbridge';
import { ShellyData } from './shellyTypes';
import { promises as fs } from 'fs';
import path from 'path';

Expand Down

0 comments on commit 557c4b1

Please sign in to comment.