homebridge-freeathome-local-api 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +112 -100
- package/README.md +104 -100
- package/dist/functionId.d.ts +10 -2
- package/dist/functionId.d.ts.map +1 -1
- package/dist/functionId.js +14 -2
- package/dist/functionId.js.map +1 -1
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +8 -1
- package/dist/platform.js.map +1 -1
- package/dist/shutterActuatorAccessory.d.ts +30 -0
- package/dist/shutterActuatorAccessory.d.ts.map +1 -0
- package/dist/shutterActuatorAccessory.js +114 -0
- package/dist/shutterActuatorAccessory.js.map +1 -0
- package/dist/switchActuatorAccessory.d.ts +1 -1
- package/dist/switchActuatorAccessory.js +1 -1
- package/package.json +76 -76
- package/sonar-project.properties +14 -14
- package/test/platform.spec.ts +13 -1
- package/test/shutterActuatorAccessory.spec.ts +441 -0
- package/tsconfig.spec.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,100 +1,112 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
|
|
5
|
-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
-
|
|
8
|
-
## [1.
|
|
9
|
-
|
|
10
|
-
### Added
|
|
11
|
-
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
- [PG-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- [PG-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
###
|
|
89
|
-
|
|
90
|
-
- [PG-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
###
|
|
96
|
-
|
|
97
|
-
- [PG-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
## [1.2.0](https://github.com/pgerke/homebridge-freeathome-local-api/releases/tag/1.2) - 21.08.2022
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Experimentally support blinds and shutter actuators
|
|
13
|
+
|
|
14
|
+
## 1.1.1 - 24.07.2022
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
|
|
18
|
+
- Bump dependencies
|
|
19
|
+
|
|
20
|
+
## [1.1.0](https://github.com/pgerke/homebridge-freeathome-local-api/releases/tag/1.1) - 03.07.2022
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- [PG-192](https://pgerke.atlassian.net/browse/PG-192):
|
|
25
|
+
Support door openers
|
|
26
|
+
- [PG-203](https://pgerke.atlassian.net/browse/PG-203):
|
|
27
|
+
Allow the user to specify channels and devices to ignore
|
|
28
|
+
|
|
29
|
+
## [1.0.0](https://github.com/pgerke/homebridge-freeathome-local-api/releases/tag/1.0) - 27.06.2022
|
|
30
|
+
|
|
31
|
+
This is the first official release. The plugin now has full code coverage, meets the defined quality gate with respect to code style and has passed extensive stability tests as well as static code analysis, so I feel confident ending the preview phase at this time. The release version retains all features from v0.4.0-pre.
|
|
32
|
+
|
|
33
|
+
## 0.4.0-pre - 21.06.2022
|
|
34
|
+
|
|
35
|
+
### Added
|
|
36
|
+
|
|
37
|
+
- [PG-195](https://pgerke.atlassian.net/browse/PG-195):
|
|
38
|
+
Experimentally support smoke detectors
|
|
39
|
+
- [PG-197](https://pgerke.atlassian.net/browse/PG-197):
|
|
40
|
+
Experimentally support motion sensors
|
|
41
|
+
- [PG-177](https://pgerke.atlassian.net/browse/PG-177):
|
|
42
|
+
Support sponsoring
|
|
43
|
+
|
|
44
|
+
### Fixed
|
|
45
|
+
|
|
46
|
+
- [PG-196](https://pgerke.atlassian.net/browse/PG-196):
|
|
47
|
+
Fixed an issue with a regular expression causing update messages to be rejected
|
|
48
|
+
|
|
49
|
+
## 0.3.1-pre - 20.06.2022
|
|
50
|
+
|
|
51
|
+
### Fixed
|
|
52
|
+
|
|
53
|
+
- [PG-194](https://pgerke.atlassian.net/browse/PG-194):
|
|
54
|
+
Re-added support for switch accessories (was removed accidentally)
|
|
55
|
+
|
|
56
|
+
## [0.3.0-pre](https://github.com/pgerke/homebridge-freeathome-local-api/releases/tag/0.3-pre) - 20.06.2022
|
|
57
|
+
|
|
58
|
+
### Added
|
|
59
|
+
|
|
60
|
+
- [PG-186](https://pgerke.atlassian.net/browse/PG-186):
|
|
61
|
+
Automatic reconnection to System Access Point web socket after connection loss.
|
|
62
|
+
- [PG-192](https://pgerke.atlassian.net/browse/PG-192):
|
|
63
|
+
Support automatic door opener
|
|
64
|
+
- [PG-190](https://pgerke.atlassian.net/browse/PG-190):
|
|
65
|
+
Meet test coverage target
|
|
66
|
+
|
|
67
|
+
### Fixed
|
|
68
|
+
|
|
69
|
+
- [PG-193](https://pgerke.atlassian.net/browse/PG-193):
|
|
70
|
+
Rolled back to ts-node@10.8.0 to fix an issue with code coverage calculation.
|
|
71
|
+
|
|
72
|
+
## 0.2.3-pre - 17.06.2022
|
|
73
|
+
|
|
74
|
+
### Fixed
|
|
75
|
+
|
|
76
|
+
- [PG-188](https://pgerke.atlassian.net/browse/PG-188), [#7](https://github.com/pgerke/homebridge-freeathome-local-api/issues/7):
|
|
77
|
+
Fixed dimmer brightness fallback issue
|
|
78
|
+
|
|
79
|
+
## 0.2.2-pre - 16.06.2022
|
|
80
|
+
|
|
81
|
+
### Fixed
|
|
82
|
+
|
|
83
|
+
- [PG-184](https://pgerke.atlassian.net/browse/PG-184):
|
|
84
|
+
Fixed broken config scheme
|
|
85
|
+
|
|
86
|
+
## 0.2.0-pre - 16.06.2022
|
|
87
|
+
|
|
88
|
+
### Added
|
|
89
|
+
|
|
90
|
+
- [PG-181](https://pgerke.atlassian.net/browse/PG-181):
|
|
91
|
+
Support dimmer actuator
|
|
92
|
+
- [PG-182](https://pgerke.atlassian.net/browse/PG-182):
|
|
93
|
+
Support thermostat actuator
|
|
94
|
+
|
|
95
|
+
### Changed
|
|
96
|
+
|
|
97
|
+
- [PG-179](https://pgerke.atlassian.net/browse/PG-179):
|
|
98
|
+
Homekit get value requests will now be resolved from a cache instead of requesting the value from the system access point.
|
|
99
|
+
|
|
100
|
+
### Fixed
|
|
101
|
+
|
|
102
|
+
- [PG-178](https://pgerke.atlassian.net/browse/PG-178):
|
|
103
|
+
Binary Switch is actually a switch actuator
|
|
104
|
+
|
|
105
|
+
## 0.1.0-pre - 14.06.2022
|
|
106
|
+
|
|
107
|
+
### Added
|
|
108
|
+
|
|
109
|
+
- [PG-144](https://pgerke.atlassian.net/browse/PG-144):
|
|
110
|
+
Initial vertical increment, not published to npmjs.org yet.
|
|
111
|
+
- [PG-146](https://pgerke.atlassian.net/browse/PG-146):
|
|
112
|
+
Support binary switch
|
package/README.md
CHANGED
|
@@ -1,100 +1,104 @@
|
|
|
1
|
-
# homebridge-freeathome-local-api
|
|
2
|
-
|
|
3
|
-
A Homebridge plugin that allows the user to control BUSCH-JAEGER free@home devices using the System Access Point local API.
|
|
4
|
-
|
|
5
|
-
[](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
|
|
6
|
-

|
|
7
|
-
[](https://codecov.io/gh/pgerke/homebridge-freeathome-local-api)
|
|
8
|
-

|
|
9
|
-

|
|
10
|
-

|
|
11
|
-
|
|
12
|
-
## Features
|
|
13
|
-
|
|
14
|
-
- Control your BUSCH-JAEGER free@home lights, outlets, heating regulators and more with your Apple devices
|
|
15
|
-
- Ask Siri to control your devices and set automations with Apple Home
|
|
16
|
-
- Based on the local API provided by the System Access Point running firmware version >2.6.0
|
|
17
|
-
- 100% covered by automated unit tests
|
|
18
|
-
|
|
19
|
-
## Supported accessories
|
|
20
|
-
|
|
21
|
-
I'll add further accessories over time, but feel free to request your favorite accessory type in a [GitHub issue](https://github.com/pgerke/homebridge-freeathome-local-api/issues).
|
|
22
|
-
|
|
23
|
-
### Official Support
|
|
24
|
-
|
|
25
|
-
The accessories listed below are well tested with automated unit tests as well as functional and stability tests on real hardware. To the best of my knowledge the accessories are behaving as they should be.
|
|
26
|
-
|
|
27
|
-
- Switch actuators: Binary switches, outlets, simple (on/off) lights
|
|
28
|
-
- Dimmable Lights
|
|
29
|
-
- Thermostats
|
|
30
|
-
- Door Openers
|
|
31
|
-
- The automatic door opener (which will be displayed as a switch)
|
|
32
|
-
|
|
33
|
-
### Experimental Support
|
|
34
|
-
|
|
35
|
-
Some more accessories are supported experimentally. The experimental accessories are implemented according to the BUSCH-JAEGER specification and fully unit tested, but I don't own the hardware, so I cannot perform in-situ tests for functionality, user experience and stability. If you own one or more of the devices listed below and want to help me support those accessories, please create a [GitHub issue](https://github.com/pgerke/homebridge-freeathome-local-api/issues) or reach out to me via [email](mailto:info@philipgerke.com).
|
|
36
|
-
|
|
37
|
-
- Smoke Detector
|
|
38
|
-
- Motion Sensors
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
##
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
I
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
##
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
##
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
1
|
+
# homebridge-freeathome-local-api
|
|
2
|
+
|
|
3
|
+
A Homebridge plugin that allows the user to control BUSCH-JAEGER free@home devices using the System Access Point local API.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
|
|
6
|
+

|
|
7
|
+
[](https://codecov.io/gh/pgerke/homebridge-freeathome-local-api)
|
|
8
|
+

|
|
9
|
+

|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
## Features
|
|
13
|
+
|
|
14
|
+
- Control your BUSCH-JAEGER free@home lights, outlets, heating regulators and more with your Apple devices
|
|
15
|
+
- Ask Siri to control your devices and set automations with Apple Home
|
|
16
|
+
- Based on the local API provided by the System Access Point running firmware version >2.6.0
|
|
17
|
+
- 100% covered by automated unit tests
|
|
18
|
+
|
|
19
|
+
## Supported accessories
|
|
20
|
+
|
|
21
|
+
I'll add further accessories over time, but feel free to request your favorite accessory type in a [GitHub issue](https://github.com/pgerke/homebridge-freeathome-local-api/issues).
|
|
22
|
+
|
|
23
|
+
### Official Support
|
|
24
|
+
|
|
25
|
+
The accessories listed below are well tested with automated unit tests as well as functional and stability tests on real hardware. To the best of my knowledge the accessories are behaving as they should be.
|
|
26
|
+
|
|
27
|
+
- Switch actuators: Binary switches, outlets, simple (on/off) lights
|
|
28
|
+
- Dimmable Lights
|
|
29
|
+
- Thermostats
|
|
30
|
+
- Door Openers
|
|
31
|
+
- The automatic door opener (which will be displayed as a switch)
|
|
32
|
+
|
|
33
|
+
### Experimental Support
|
|
34
|
+
|
|
35
|
+
Some more accessories are supported experimentally. The experimental accessories are implemented according to the BUSCH-JAEGER specification and fully unit tested, but I don't own the hardware, so I cannot perform in-situ tests for functionality, user experience and stability. If you own one or more of the devices listed below and want to help me support those accessories, please create a [GitHub issue](https://github.com/pgerke/homebridge-freeathome-local-api/issues) or reach out to me via [email](mailto:info@philipgerke.com).
|
|
36
|
+
|
|
37
|
+
- Smoke Detector
|
|
38
|
+
- Motion Sensors
|
|
39
|
+
- Blinds Actuators
|
|
40
|
+
- Shutter Actuators
|
|
41
|
+
- Awning Actuators
|
|
42
|
+
- Attic Window Actuators
|
|
43
|
+
|
|
44
|
+
## Ignoring devices and channels
|
|
45
|
+
|
|
46
|
+
If you don't want to create an accessory for a specific channel, you can add the channel to the ignore list in the settings UI or the `config.json`. This is useful, if you have supported devices you don't want to expose to Apple Home or you have devices that are not usable even though they are configured. A real-world example are unused door openers provided by the Welcome Panel. A request to trigger an unused door opener will always fail with an error, so you can ignore the unused openers, to keep your Apple Home neat and avoid confusion.
|
|
47
|
+
|
|
48
|
+
The format for an ignored channel is `{DeviceSerial}/{Channel}`. For example: To ignore channel `ch0010` of the device with the serial `ABB700123456`, add `ABB700123456/ch0010` to the ignored channel list. To ignore all channels of a device use an asterisk for the channel part. For example, add `ABB700123456/*` to the ignored channel list to exclude all channels provided by the device with the serial `ABB700123456`.
|
|
49
|
+
|
|
50
|
+
A sample configuration section for the plugin with ignored channels might look like this:
|
|
51
|
+
|
|
52
|
+
```json
|
|
53
|
+
{
|
|
54
|
+
"name": "My free@home Setup",
|
|
55
|
+
"host": "sysap.home.net",
|
|
56
|
+
"user": "12345678-9ACB-DEF0-1234-56789ABCDEF0",
|
|
57
|
+
"password": "s3cre3tP4ssw0rt",
|
|
58
|
+
"tlsEnabled": false,
|
|
59
|
+
"verboseErrors": false,
|
|
60
|
+
"experimental": false,
|
|
61
|
+
"ignoredChannels": ["ABB700123456/ch0010", "ABB700123457/*"],
|
|
62
|
+
"platform": "FreeAtHomeLocalApi"
|
|
63
|
+
}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Requirements
|
|
67
|
+
|
|
68
|
+
- free@home Access Point running firmware version >2.6.0
|
|
69
|
+
- Access to an user account that has access to the local API
|
|
70
|
+
|
|
71
|
+
## Changelog
|
|
72
|
+
|
|
73
|
+
The changelog can be viewed [here](CHANGELOG.md).
|
|
74
|
+
|
|
75
|
+
## I found a bug, what do I do?
|
|
76
|
+
|
|
77
|
+
I'm happy to hear any feedback regarding the plugin or it's implementation, be it critizism, praise or rants. Please create a [GitHub issue](https://github.com/pgerke/homebridge-freeathome-local-api/issues) or drop me an [email](mailto:info@philipgerke.com) if you would like to contact me.
|
|
78
|
+
|
|
79
|
+
I would especially appreciate, if you could report any issues you encounter while using the library. Issues I know about, I can probably fix.
|
|
80
|
+
|
|
81
|
+
If you want to submit a bug report, please check if the issue you have has already been reported. If you want to contribute additional information to the issue, please add it to the existing issue instead of creating another one. Duplicate issues will take time from bugfixing and thus delay a fix.
|
|
82
|
+
|
|
83
|
+
While creating a bug report, please make it easy for me to fix it by giving us all the details you have about the issue. Always include the version of the library and a short concise description of the issue. Besides that, there are a few other pieces of information that help tracking down bugs:
|
|
84
|
+
|
|
85
|
+
- The system environment in which the issue occurred (e.g. node version)
|
|
86
|
+
- Some steps to reproduce the issue, e.g. a code snippet
|
|
87
|
+
- The expected behaviour and how the failed failed to meet that expectation
|
|
88
|
+
- Anything else you think I might need
|
|
89
|
+
|
|
90
|
+
## I have a feature request, what do I do?
|
|
91
|
+
|
|
92
|
+
Please create a [GitHub issue](https://github.com/pgerke/homebridge-freeathome-local-api/issues) or drop me an [email](mailto:info@philipgerke.com)!
|
|
93
|
+
|
|
94
|
+
## Non-Affiliation Disclaimer
|
|
95
|
+
|
|
96
|
+
This plugin is not endorsed by, directly affiliated with, maintained, authorized, or sponsored by Busch-Jaeger Elektro GmbH or ABB Asea Brown Boveri Ltd or . All product and company names are the registered trademarks of their original owners. The use of any trade name or trademark is for identification and reference purposes only and does not imply any association with the trademark holder of their product brand.
|
|
97
|
+
|
|
98
|
+
## License
|
|
99
|
+
|
|
100
|
+
The project is subject to the MIT license unless otherwise noted. A copy can be found in the root directory of the project [LICENSE](./LICENSE).
|
|
101
|
+
|
|
102
|
+
<hr>
|
|
103
|
+
|
|
104
|
+
Made with ❤️ by [Philip Gerke](https://github.com/pgerke)
|
package/dist/functionId.d.ts
CHANGED
|
@@ -20,8 +20,16 @@ export declare enum FunctionID {
|
|
|
20
20
|
/** A motion detector */
|
|
21
21
|
FID_MOVEMENT_DETECTOR = "11",
|
|
22
22
|
/** A door opener */
|
|
23
|
-
FID_DES_DOOR_OPENER_ACTUATOR = "1A"
|
|
23
|
+
FID_DES_DOOR_OPENER_ACTUATOR = "1A",
|
|
24
|
+
/** A shutter actuator */
|
|
25
|
+
FID_SHUTTER_ACTUATOR = "9",
|
|
26
|
+
/** A roller blind actuator */
|
|
27
|
+
FID_BLIND_ACTUATOR = "61",
|
|
28
|
+
/** An attic window actuator */
|
|
29
|
+
FID_ATTIC_WINDOW_ACTUATOR = "62",
|
|
30
|
+
/** An awning actuator */
|
|
31
|
+
FID_AWNING_ACTUATOR = "63"
|
|
24
32
|
}
|
|
25
33
|
/** Contains the list of function IDs that are only experimentally supported by the plugin */
|
|
26
|
-
export declare const
|
|
34
|
+
export declare const experimentallySupportedFunctionIDs: Array<FunctionID>;
|
|
27
35
|
//# sourceMappingURL=functionId.d.ts.map
|
package/dist/functionId.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functionId.d.ts","sourceRoot":"","sources":["../src/functionId.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,UAAU;IACpB,kCAAkC;IAClC,mBAAmB,MAAM;IACzB,uEAAuE;IACvE,kDAAkD,OAAO;IACzD,sBAAsB;IACtB,oBAAoB,OAAO;IAC3B,yDAAyD;IACzD,kBAAkB,OAAO;IACzB,yDAAyD;IACzD,gBAAgB,OAAO;IACvB,+BAA+B;IAC/B,sCAAsC,OAAO;IAC7C,uBAAuB;IACvB,kBAAkB,OAAO;IACzB,wBAAwB;IACxB,qBAAqB,OAAO;IAC5B,oBAAoB;IACpB,4BAA4B,OAAO;
|
|
1
|
+
{"version":3,"file":"functionId.d.ts","sourceRoot":"","sources":["../src/functionId.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,UAAU;IACpB,kCAAkC;IAClC,mBAAmB,MAAM;IACzB,uEAAuE;IACvE,kDAAkD,OAAO;IACzD,sBAAsB;IACtB,oBAAoB,OAAO;IAC3B,yDAAyD;IACzD,kBAAkB,OAAO;IACzB,yDAAyD;IACzD,gBAAgB,OAAO;IACvB,+BAA+B;IAC/B,sCAAsC,OAAO;IAC7C,uBAAuB;IACvB,kBAAkB,OAAO;IACzB,wBAAwB;IACxB,qBAAqB,OAAO;IAC5B,oBAAoB;IACpB,4BAA4B,OAAO;IACnC,yBAAyB;IACzB,oBAAoB,MAAM;IAC1B,8BAA8B;IAC9B,kBAAkB,OAAO;IACzB,gCAAgC;IAChC,yBAAyB,OAAO;IAChC,yBAAyB;IACzB,mBAAmB,OAAO;CAC3B;AAED,6FAA6F;AAC7F,eAAO,MAAM,kCAAkC,EAAE,KAAK,CAAC,UAAU,CAOhE,CAAC"}
|
package/dist/functionId.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.experimentallySupportedFunctionIDs = exports.FunctionID = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* The enumeration containing the supported function IDs as defined at
|
|
6
6
|
* https://developer.eu.mybuildings.abb.com/fah_local/reference/functionids/
|
|
@@ -25,10 +25,22 @@ var FunctionID;
|
|
|
25
25
|
FunctionID["FID_MOVEMENT_DETECTOR"] = "11";
|
|
26
26
|
/** A door opener */
|
|
27
27
|
FunctionID["FID_DES_DOOR_OPENER_ACTUATOR"] = "1A";
|
|
28
|
+
/** A shutter actuator */
|
|
29
|
+
FunctionID["FID_SHUTTER_ACTUATOR"] = "9";
|
|
30
|
+
/** A roller blind actuator */
|
|
31
|
+
FunctionID["FID_BLIND_ACTUATOR"] = "61";
|
|
32
|
+
/** An attic window actuator */
|
|
33
|
+
FunctionID["FID_ATTIC_WINDOW_ACTUATOR"] = "62";
|
|
34
|
+
/** An awning actuator */
|
|
35
|
+
FunctionID["FID_AWNING_ACTUATOR"] = "63";
|
|
28
36
|
})(FunctionID = exports.FunctionID || (exports.FunctionID = {}));
|
|
29
37
|
/** Contains the list of function IDs that are only experimentally supported by the plugin */
|
|
30
|
-
exports.
|
|
38
|
+
exports.experimentallySupportedFunctionIDs = [
|
|
31
39
|
FunctionID.FID_SMOKE_DETECTOR,
|
|
32
40
|
FunctionID.FID_MOVEMENT_DETECTOR,
|
|
41
|
+
FunctionID.FID_SHUTTER_ACTUATOR,
|
|
42
|
+
FunctionID.FID_BLIND_ACTUATOR,
|
|
43
|
+
FunctionID.FID_ATTIC_WINDOW_ACTUATOR,
|
|
44
|
+
FunctionID.FID_AWNING_ACTUATOR,
|
|
33
45
|
];
|
|
34
46
|
//# sourceMappingURL=functionId.js.map
|
package/dist/functionId.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functionId.js","sourceRoot":"","sources":["../src/functionId.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,
|
|
1
|
+
{"version":3,"file":"functionId.js","sourceRoot":"","sources":["../src/functionId.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,UA2BX;AA3BD,WAAY,UAAU;IACpB,kCAAkC;IAClC,uCAAyB,CAAA;IACzB,uEAAuE;IACvE,uEAAyD,CAAA;IACzD,sBAAsB;IACtB,yCAA2B,CAAA;IAC3B,yDAAyD;IACzD,uCAAyB,CAAA;IACzB,yDAAyD;IACzD,qCAAuB,CAAA;IACvB,+BAA+B;IAC/B,2DAA6C,CAAA;IAC7C,uBAAuB;IACvB,uCAAyB,CAAA;IACzB,wBAAwB;IACxB,0CAA4B,CAAA;IAC5B,oBAAoB;IACpB,iDAAmC,CAAA;IACnC,yBAAyB;IACzB,wCAA0B,CAAA;IAC1B,8BAA8B;IAC9B,uCAAyB,CAAA;IACzB,gCAAgC;IAChC,8CAAgC,CAAA;IAChC,yBAAyB;IACzB,wCAA0B,CAAA;AAC5B,CAAC,EA3BW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QA2BrB;AAED,6FAA6F;AAChF,QAAA,kCAAkC,GAAsB;IACnE,UAAU,CAAC,kBAAkB;IAC7B,UAAU,CAAC,qBAAqB;IAChC,UAAU,CAAC,oBAAoB;IAC/B,UAAU,CAAC,kBAAkB;IAC7B,UAAU,CAAC,yBAAyB;IACpC,UAAU,CAAC,mBAAmB;CAC/B,CAAC"}
|
package/dist/platform.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,qBAAqB,EACrB,MAAM,EACN,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,cAAc,EAEf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,iBAAiB,EAIlB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,iBAAiB,EAAyB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"platform.d.ts","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,qBAAqB,EACrB,MAAM,EACN,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,cAAc,EAEf,MAAM,YAAY,CAAC;AAEpB,OAAO,EAEL,iBAAiB,EAIlB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,iBAAiB,EAAyB,MAAM,qBAAqB,CAAC;AAc/E,6CAA6C;AAC7C,qBAAa,4BAA6B,YAAW,qBAAqB;aA8BtD,GAAG,EAAE,MAAM;aACX,MAAM,EAAE,cAAc;aACtB,GAAG,EAAE,GAAG;IA/B1B,4BAA4B;IAC5B,SAAgB,OAAO,EAAE,OAAO,OAAO,CAAwB;IAC/D,mCAAmC;IACnC,SAAgB,cAAc,EAAE,OAAO,cAAc,CACvB;IAC9B,8CAA8C;IAC9C,SAAgB,WAAW,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC,CAAM;IAC9E,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAE5B;IACP,8BAA8B;IAC9B,SAAgB,KAAK,EAAE,iBAAiB,CAAC;IACzC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0C;IACzE,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmB;IAC7C,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAe;IACrD,OAAO,CAAC,mBAAmB,CAAK;IAChC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;IAEzC,OAAO,KAAK,gBAAgB,GAE3B;IAED;;;;;OAKG;gBAEe,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,GAAG;IA+F1B;;;;;;OAMG;IACI,kBAAkB,CAAC,SAAS,EAAE,iBAAiB;IA+BtD,kFAAkF;YACpE,eAAe;IAmF7B,OAAO,CAAC,eAAe;IAmDvB,OAAO,CAAC,eAAe;IA8DvB,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,sBAAsB;CAoB/B"}
|
package/dist/platform.js
CHANGED
|
@@ -12,6 +12,7 @@ const util_1 = require("./util");
|
|
|
12
12
|
const smokeDetectorAccessory_1 = require("./smokeDetectorAccessory");
|
|
13
13
|
const motionSensorAccessory_1 = require("./motionSensorAccessory");
|
|
14
14
|
const doorOpenerAccessory_1 = require("./doorOpenerAccessory");
|
|
15
|
+
const shutterActuatorAccessory_1 = require("./shutterActuatorAccessory");
|
|
15
16
|
const DelayFactor = 200;
|
|
16
17
|
/** The free@home Homebridge platform. */
|
|
17
18
|
class FreeAtHomeHomebridgePlatform {
|
|
@@ -201,7 +202,7 @@ class FreeAtHomeHomebridgePlatform {
|
|
|
201
202
|
}
|
|
202
203
|
// Filter experimental devices
|
|
203
204
|
if (!this.experimentalMode &&
|
|
204
|
-
functionId_1.
|
|
205
|
+
functionId_1.experimentallySupportedFunctionIDs.includes(channel.functionID.toUpperCase())) {
|
|
205
206
|
return false;
|
|
206
207
|
}
|
|
207
208
|
return true;
|
|
@@ -229,6 +230,12 @@ class FreeAtHomeHomebridgePlatform {
|
|
|
229
230
|
case functionId_1.FunctionID.FID_DES_DOOR_OPENER_ACTUATOR:
|
|
230
231
|
this.fahAccessories.set(`${serial}_${channelId}`, new doorOpenerAccessory_1.DoorOpenerAccessory(this, accessory));
|
|
231
232
|
return;
|
|
233
|
+
case functionId_1.FunctionID.FID_SHUTTER_ACTUATOR:
|
|
234
|
+
case functionId_1.FunctionID.FID_BLIND_ACTUATOR:
|
|
235
|
+
case functionId_1.FunctionID.FID_ATTIC_WINDOW_ACTUATOR:
|
|
236
|
+
case functionId_1.FunctionID.FID_AWNING_ACTUATOR:
|
|
237
|
+
this.fahAccessories.set(`${serial}_${channelId}`, new shutterActuatorAccessory_1.ShutterActuatorAccessory(this, accessory));
|
|
238
|
+
return;
|
|
232
239
|
default:
|
|
233
240
|
this.log.error(`${serial} (${channelId}): Cannot configure accessory for FunctionID '${functionID}'!`);
|
|
234
241
|
}
|
package/dist/platform.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":";;;AAUA,yCAAwD;AACxD,6EAMqC;AACrC,uEAAoE;AACpE,2DAA+E;AAC/E,
|
|
1
|
+
{"version":3,"file":"platform.js","sourceRoot":"","sources":["../src/platform.ts"],"names":[],"mappings":";;;AAUA,yCAAwD;AACxD,6EAMqC;AACrC,uEAAoE;AACpE,2DAA+E;AAC/E,6CAA8E;AAE9E,uDAAoD;AAEpD,6FAA0F;AAC1F,iCAAmC;AACnC,qEAAkE;AAClE,mEAAgE;AAChE,+DAA4D;AAC5D,yEAAsE;AAEtE,MAAM,WAAW,GAAG,GAAG,CAAC;AAExB,6CAA6C;AAC7C,MAAa,4BAA4B;IAuBvC;;;;;OAKG;IACH,YACkB,GAAW,EACX,MAAsB,EACtB,GAAQ;;QAFR,QAAG,GAAH,GAAG,CAAQ;QACX,WAAM,GAAN,MAAM,CAAgB;QACtB,QAAG,GAAH,GAAG,CAAK;QA/B1B,4BAA4B;QACZ,YAAO,GAAmB,IAAI,CAAC,GAAG,CAAC,GAAG,C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C,EAAE,EAAE,CACJ,CAAC,CAAC,WAAW,EAAE,KAAK,GAAG,MAAM,CAAC,WAAW,EAAE,IAAI;YAC/C,CAAC,CAAC,WAAW,EAAE,KAAK,GAAG,MAAM,CAAC,WAAW,EAAE,IAAI,OAAO,CAAC,WAAW,EAAE,EAAE,CACzE,CAAC;IACJ,CAAC;IAEO,sBAAsB,CAAC,OAAyB;QACtD,6BAA6B;QAC7B,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAS,CAAC,CAAC,UAAU,CAAC,CAAC;QAE9D,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;;YAC/B,oDAAoD;YACpD,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAC3B,iDAAiD,CAClD,CAAC;YACF,IAAI,CAAC,KAAK,EAAE;gBACV,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,qBAAqB,SAAS,qBAAqB,CAAC,CAAC;gBACpE,OAAO;aACR;YAED,qFAAqF;YACrF,MAAA,IAAI,CAAC,cAAc;iBAChB,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,0CAC7B,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,gBAAS,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC;QAC1E,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAxYD,oEAwYC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PlatformAccessory } from "homebridge";
|
|
2
|
+
import { FreeAtHomeAccessory } from "./freeAtHomeAccessory";
|
|
3
|
+
import { FreeAtHomeContext } from "./freeAtHomeContext";
|
|
4
|
+
import { FreeAtHomeHomebridgePlatform } from "./platform";
|
|
5
|
+
/**
|
|
6
|
+
* A shutter actuator accessory
|
|
7
|
+
* @description
|
|
8
|
+
* A shutter actuator can be used to control more or less any free@home device
|
|
9
|
+
* that controls windows coverings. The rolling blind actuator, the attic window and
|
|
10
|
+
* the awning actuator are also supported by this actuator.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ShutterActuatorAccessory extends FreeAtHomeAccessory {
|
|
13
|
+
readonly platform: FreeAtHomeHomebridgePlatform;
|
|
14
|
+
readonly accessory: PlatformAccessory<FreeAtHomeContext>;
|
|
15
|
+
private readonly service;
|
|
16
|
+
private stateCurrentPosition;
|
|
17
|
+
private statePositionState;
|
|
18
|
+
private stateTargetPosition;
|
|
19
|
+
private stateObstructed;
|
|
20
|
+
/**
|
|
21
|
+
* Constructs a new Shutter Actuator accessory instance.
|
|
22
|
+
* @param platform The free@home Homebridge platform controlling the accessory
|
|
23
|
+
* @param accessory The platform accessory.
|
|
24
|
+
*/
|
|
25
|
+
constructor(platform: FreeAtHomeHomebridgePlatform, accessory: PlatformAccessory<FreeAtHomeContext>);
|
|
26
|
+
private getPositionState;
|
|
27
|
+
private setTargetPosition;
|
|
28
|
+
updateDatapoint(datapoint: string, value: string): void;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=shutterActuatorAccessory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shutterActuatorAccessory.d.ts","sourceRoot":"","sources":["../src/shutterActuatorAccessory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,iBAAiB,EAAW,MAAM,YAAY,CAAC;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAG1D;;;;;;GAMG;AACH,qBAAa,wBAAyB,SAAQ,mBAAmB;IAa7D,QAAQ,CAAC,QAAQ,EAAE,4BAA4B;IAC/C,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAC,iBAAiB,CAAC;IAb1D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAU;IAClC,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,kBAAkB,CAAS;IACnC,OAAO,CAAC,mBAAmB,CAAS;IACpC,OAAO,CAAC,eAAe,CAAU;IAEjC;;;;OAIG;gBAEQ,QAAQ,EAAE,4BAA4B,EACtC,SAAS,EAAE,iBAAiB,CAAC,iBAAiB,CAAC;IA2D1D,OAAO,CAAC,gBAAgB;YAWV,iBAAiB;IAsBf,eAAe,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;CAkCxE"}
|