New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-homewizard-energy-socket

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-homewizard-energy-socket - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7

110

CHANGELOG.md

@@ -7,4 +7,25 @@ ### Changelog

#### [1.2.7](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.3.0...1.2.7)
- feat: use energy sockets from config to skip automatic discovery [`708cd58`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/708cd584ec47adc50604192b0b5251b66ed870eb)
- chore: update dependencies [`a6a3a75`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/a6a3a7525e3cc09cb08f009a76c3c5d219c94ace)
- chore: tweak config content [`de7db4c`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/de7db4ca3a24bd150014793c81bb2d3bd84a8538)
- refactor: build as commonjs module [`a633973`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/a633973b1e104d1c3ebb9ac74c32bbbeac65814a)
- chore: update readme [`9b9d2f4`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/9b9d2f4df4c50ccfcc24382fc0e864357f274f99)
- chore: update readme [`77904be`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/77904bef39e810af008e7a69c5b42f62725dcc2d)
#### [1.3.0](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.2.6...1.3.0)
> 12 December 2022
- feat: use energy sockets from config to skip automatic discovery [`d539c7b`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/d539c7b1dbed53a5613ef6267181d40330bbf891)
- chore: no commit limit in changelog.md [`84d0896`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/84d08966beb6193a3bbbf82073ff50c9a3c696d4)
- chore: tweak config content [`40a8b06`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/40a8b06a50a629cb4f27f9a9aa330228d1b74def)
- chore: release v1.3.0 [`6ce2ffd`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/6ce2ffd7b71a8b50be6b2ffe48d81472933bd688)
#### [1.2.6](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.2.5...1.2.6)
> 12 December 2022
- chore: release v1.2.6 [`1bc912e`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/1bc912e21a4fc334b5a18f237606208347c32373)
- chore: reset changelog to how it was [`1c9cbdf`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/1c9cbdf350f872104e45ceac435a8b5bdc30fbbb)

@@ -19,2 +40,13 @@

- chore(deps-dev): bump @typescript-eslint/eslint-plugin [`7e04dea`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/7e04dea7633f5f9bd20b02c8a6e7618efa1082db)
- chore: release v1.2.5 [`7be6125`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/7be612548a2ff7e7ecfa37973323560748353cde)
- test: restructure mocks [`e2ed952`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/e2ed952660ee78b9ab6c5d4d7950fbf6405d7274)
- chore(deps-dev): bump @vitest/coverage-c8 from 0.25.6 to 0.25.7 [`9f186d8`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/9f186d850b562553dc64d6b2f52e7e10ae7720b4)
- chore: update readme [`838668e`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/838668efb7817afe5727dd6c40a81bfaabb1b89d)
- chore(deps-dev): bump prettier from 2.8.0 to 2.8.1 [`146d77d`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/146d77d7e289c6930e45b5f98a623a98fe5749a9)
- chore(deps-dev): bump @types/node from 18.11.10 to 18.11.13 [`45b79a7`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/45b79a7eff8e08b6ae8f51798cd7653293fdb4fe)
- fix: changelog.md missing commits [`e366257`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/e366257ff1543a85166efae2a4931173e528b01b)
- chore: improve debug logging [`39eb7e2`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/39eb7e21623428e7202430b5e59874a6d75f7a28)
- feat: set default bridge name [`250d4cb`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/250d4cb53e6e988904bfe22560abe1b1088f980e)
- chore: update readme [`e51573b`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/e51573bbd28fd88d0fcb23b458de4e46f846e98a)
- chore: update readme [`ec0cca1`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/ec0cca15bb32c8799d1e7f32c042cca489d606f7)

@@ -35,2 +67,6 @@ #### [1.2.4](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.2.3...1.2.4)

- chore: only run test on pre-commit [`1b50e0a`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/1b50e0a593741aeff9b8312c6ed705f2d7fe556a)
- chore: remove backfill-limit option from changelog generation [`d30ee53`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/d30ee531bb7ea490d511c1712a11cc893e07bbd9)
- chore: disable backfill-limit on changelog [`7a794a6`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/7a794a67e8ff9e009d660edb48585fb44ab43691)
- chore: run lint on commit [`d6c0568`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/d6c05688f6f3ffabbb10f8b2bf4bfb0e224c9c16)
- fix: linter error preventing release [`14a2510`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/14a2510e80490f95d1b1762ebeabf07b881652ab)

@@ -51,2 +87,3 @@ #### [1.2.2](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.2.1...1.2.2)

- chore: update docs on error we throw [`7ca003b`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/7ca003b3d60f8c27e331dbafd4fd866da191b7c5)
- chore: add test todo [`4c75005`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/4c750058eef637d274d538072d5e1ba4d160a627)

@@ -60,2 +97,20 @@ #### [1.2.0](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.1.0...1.2.0)

- test: up the test coverage for api [`a07356c`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/a07356cce3502f9932d0eb8c14a2924c1b0d16b5)
- test: added unit tests for energy socket accessory [`ae62555`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/ae62555e81f40b0733e55612548019fe5183b517)
- refactor: update homewizard api class [`db2cdb6`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/db2cdb6196876654c33f2212aa409f9858dfb87c)
- test: api server errors [`157fc50`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/157fc50b46be8f9027c52d7cca749072cd4d7dfa)
- feat: use request from undici instead of fetch, to also support node 14 [`84bf634`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/84bf6348dd2d179217fb4f9cbb6b59ddd68cf94e)
- refactor: update http request method with better error handling [`36d0e27`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/36d0e27b7009f90666dd13cc33a6177eb3226baf)
- refactor: better types on put endpoint [`b6afb57`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/b6afb57831fe4f2868b8bc490361df01edd6fe07)
- refactor: use default timeout for http requests [`70f99fc`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/70f99fc77b29b304cdda0e321b3c6887f3463bd5)
- chore: update readme [`537cc34`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/537cc347b26db0dbf54ebeb32566184d4ec0df33)
- test: make energy socket accessory test simpler [`8afacd2`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/8afacd2ae238258243140a0c3ac0db046d2040d9)
- chore: release v1.2.0 [`d69ee96`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/d69ee96854404e5a68ed6898362688083506bdce)
- chore: cleanup vite.setup.ts [`0f18cc6`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/0f18cc6d1e7553d8698475028719843c127bd1bc)
- chore: update readme [`b320100`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/b32010066f6ec9f2e983efd8d19165764f41b24d)
- refactor: api error message [`ee3c548`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/ee3c54892a8db299558730d5ced175dda8d09720)
- chore: remove mock dir from build dir [`be1dd53`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/be1dd53873349e9472ebb149d1e6287c39052555)
- fix: type error [`a3d2bb2`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/a3d2bb2297f08cc41e39e57d835c2c8145e5a389)
- fix: consistently use displayName [`820ccc6`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/820ccc613cd59939d067f1f8eccc804b83fec4df)
- chore: update readme [`a0832c2`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/a0832c2153109bba9588fcf692ad46ae3aea42ff)
- refactor: return NOT_ALLOWED_IN_CURRENT_STATE when switch_lock = true [`b2b0056`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/b2b0056ded1cbdba6f5c570fa1e40d4c74be73b0)

@@ -69,2 +124,44 @@ #### [1.1.0](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.0.9...1.1.0)

- test: mock api endpoints and let unit tests use those endpoints [`6082fb3`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/6082fb3dd823cd9b17c807e15e9f83274915f3f4)
- chore: add husky and lint-staged [`7a01911`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/7a01911d4880fc41832d1b35e6be3ae3b5f462f3)
- refactor: use api class to handle api calls [`165f9ff`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/165f9ffa5c6276cb64990d8c641a7f9c65c3e109)
- refactor: use native http and https node modules to do api requests [`20d4f11`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/20d4f11a4ecb3a97a97aeacfab428304b54203fb)
- fix: put request not having content length [`11e2f30`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/11e2f30b67b3514f8bd05682b1aaa48e94cdc148)
- chore: update github yml files [`45c84ca`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/45c84ca540ef281f02cd961668e323c17224703d)
- feat: handle the Identify event from HomeKit when setting up a accessory [`02b779a`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/02b779a311cd49ccb5c93d06cc720c0f37b5aba0)
- chore: added codeql [`dab04b1`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/dab04b1bfd2325c75a0efa78864d7a17bb0baa2c)
- fix: build files not having the resolved alias paths [`8c5d076`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/8c5d076cc90eddea40bc22d2472918741c2a640a)
- test: add some platform unit tests [`75ca082`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/75ca082982e2a4817505ba78ed3d8104c42ed8a3)
- refactor: let httpRequest method use fetch options [`d66a6c8`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/d66a6c8d995a0834098480dbbe9bb8be0f6315d6)
- chore: update types for node-fetch [`95899a9`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/95899a9d6efad615e1e8ef9a64885e74ed9dfa29)
- refactor: move the types to the api directory [`1dffdb2`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/1dffdb21e907653239257fb64753907799243a65)
- chore: cleanup code a bit [`e750457`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/e750457a18c0db27e6f800f74ca8109a0e9e7ba0)
- chore: update readme [`cb61b1d`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/cb61b1d9a35e0bcef726ed3d74a63a038565cc75)
- chore: use different build config to exclude test files [`3711d52`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/3711d52e5a5d28b628b96fae438f0062ac24e54b)
- chore: tighten type check [`26c579e`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/26c579eae18e64bae61b608065c429e2f1e4a66e)
- feat: handle setting the state properly when switch_lock is true [`15f0e6f`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/15f0e6f285b1ff168985b4a3296e6b8133e4412b)
- fix: response.json() not returning the correct data [`91f4a87`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/91f4a8796ac6e5340f7e405b5a7f3a9654c7a024)
- chore(deps-dev): bump @types/jest from 29.2.3 to 29.2.4 [`0232206`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/02322067d40e55630ade0f72eb0c40ece19dc9e5)
- chore: release v1.1.0 [`1350b8a`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/1350b8a5744eece405bc5de5869e66297bbb6fd2)
- chore: add dependabot [`59714df`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/59714df9c5344979013cf8ea61752ebdfaf4e115)
- refactor: use consistent display name [`cb94011`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/cb94011111c1e6e53e2fcac033b68bb5d8023e8f)
- chore: change workflow names [`e2098ea`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/e2098eaab1edd1066baa9bd46e6ec43e5da17e01)
- chore: update readme [`f954a1a`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/f954a1a17e775e60b1b8193931b607a5632a01d6)
- chore: added the api error type [`371d429`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/371d4292aaebd04e27abab0c3cf05249a68a49d6)
- chore: update readme about switch lock setting [`9cd1423`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/9cd1423a3024b3fd75ed624ddb33c79ca74d4e19)
- chore: better debug logging [`97a379a`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/97a379a70cd6c16518b1a77afb813cdf73acbe3a)
- chore: rename badge paths to this current project [`e122ee2`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/e122ee23e3eb275e4a6fef02ae6cbc64edc8b478)
- chore: do not install husky in ci [`a229b94`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/a229b944b906579b8e29744502828520963c6376)
- chore: update readme [`8658fa4`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/8658fa4d071c97a2d8ff6445ece1eddcee96f15f)
- chore: added funding.yml [`11222a4`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/11222a44b07cc9f07214046e7ec4701b4927dde0)
- chore: remove console log [`186da0a`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/186da0ace8bef061a693c2dec530fad9696d9b06)
- chore: also test for node 19 [`3bf00cb`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/3bf00cb7f54f21ad008b91224a07d3581e3348ae)
- chore: exclude test files from build [`1b658bb`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/1b658bba2ee9dc7ec64f96444559da4cdef74cf3)
- chore(deps-dev): bump @types/jest from 29.2.3 to 29.2.4 [`a038e31`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/a038e31e2ed24d1796f8a4797868425c91e8bc83)
- test: fix test having open handles [`cd18275`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/cd18275227dbf40cc34f31039cf7292575c9b72f)
- chore: add todo [`c76a5ed`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/c76a5ed9cdf2fb85558c47cd08262d4a0cceec9b)
- chore: update readme on switch lock [`209aaca`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/209aaca22ce2ac4a95b9bea149fa8b7f8ee7abb0)
- chore: update package.json description [`df9c344`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/df9c344b35bc5309c5b315a64b8dd741f6d57516)
- chore: update readme [`d6db4a2`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/d6db4a2de37155ebe10a77a1dfcc2e44c0495a62)
- chore: update package description [`1e052b3`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/1e052b3ba2e4bb0042ff1ce532e259e6b1285c4e)
- chore: add images for docs/wiki [`8eca2f1`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/8eca2f15e2d262c0aff221007f038e07fe29ad1c)

@@ -107,2 +204,3 @@ #### [1.0.9](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.0.8...1.0.9)

- chore: update readme [`2584910`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/2584910fc0965e4a9a2c780e23be007ac57c21bf)
- chore: update readme [`96ec435`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/96ec435fb767d4c302247bca4a1fe6fd385342fa)

@@ -131,2 +229,5 @@ #### [1.0.4](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/compare/1.0.3...1.0.4)

- chore: added updated license [`9475944`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/9475944094db3f532edd9a104ef2d25654d5426d)
- chore: release v1.0.2 [`267e837`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/267e8379f29825f37d75889e52cac638ec91244a)
- chore: added changelog [`55ac1d6`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/55ac1d66e36e532f8342bdf2388d1b1d527ce30f)
- chore: update readme [`49faea2`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/49faea2f059ce42bf1f146b56c9e0337223f7fe7)

@@ -140,1 +241,10 @@ #### 1.0.1

- chore: added release-it [`f8c23c7`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/f8c23c751cde2518c787efdbb01887c2f3f60247)
- chore: update packages [`c123655`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/c123655aa4e812c85e044c9917fedbedee4273c9)
- chore: update readme [`3b2b8f6`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/3b2b8f6c518f62587b121f23f191f95d7b0479a1)
- Initial commit [`8e89e4a`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/8e89e4a3fe715c01bc7be80fce1d99ed33d5b834)
- chore: update readme and types [`6bbe96a`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/6bbe96a8eb20362f6db43265ce1383aa4d46f9b4)
- chore: update readme and package.json [`6b1d3d1`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/6b1d3d1a917cf50ef27d425fb1137d839e3a2392)
- chore: update readme [`6a4d9ff`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/6a4d9ff1939f4ca75a46f62db30f8cb86c625860)
- chore: update readme [`681ae5f`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/681ae5f02b31a6c8030be2ad654e7c556fb87601)
- chore: release v1.0.1 [`97d7eef`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/97d7eef3132c7f7349c545c7c874d77180829efd)
- chore: update package.json [`7543609`](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket/commit/75436093dc1f7e6fe6c47bb5bb8d5a8d326cfa25)

86

config.schema.json

@@ -5,12 +5,82 @@ {

"singular": true,
"headerDisplay": "Please [read the README](https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket#readme) of the plugin for more information and instructions on how to configure it.",
"schema": {
"name": {
"title": "Bridge name",
"type": "string",
"required": true,
"placeholder": "HomeWizard Energy Socket",
"description": "You'll see this name when you add the bridge in your Home app and also in the logs within Homebridge.",
"default": "HomeWizard Energy Socket"
"type": "object",
"properties": {
"name": {
"title": "Bridge name",
"type": "string",
"required": true,
"placeholder": "HomeWizard Energy Socket",
"description": "You'll see this name when you add the bridge in your Home app and also in the logs within Homebridge.",
"default": "HomeWizard Energy Socket"
},
"energySockets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"required": true
},
"ip": {
"type": "string",
"format": "ipv4",
"required": true
}
}
}
}
}
}
},
"layout": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
{
"key": "name",
"type": "name"
}
]
},
{
"type": "fieldset",
"title": "Energy Sockets",
"description": "<strong>This config option is optional.</strong> Only use this if you want to bypass automatic discovery or use only the Energy Sockets you define here. When no Energy Sockets are defined here, the plugin will automatically discover all Energy Sockets on your network.",
"expandable": true,
"items": [
{
"type": "help",
"helpvalue": "<p class='help-block'>To make communication with the Energy Socket reliable, make sure that it has a static IP address. You can set it from your router admin interface. More about that in the <a href='https://github.com/jvandenaardweg/homebridge-homewizard-energy-socket#readme' target='_blank'>README</a>.</p>"
},
{
"title": "Energy Socket",
"key": "energySockets",
"type": "array",
"notitle": true,
"items": [
{
"type": "flex",
"flex-flow": "row wrap",
"items": [
{
"key": "energySockets[].name",
"title": "Name",
"placeholder": "What is plugged in?"
},
{
"key": "energySockets[].ip",
"title": "IP Address",
"placeholder": "192.168.0.10"
}
]
}
]
}
]
}
]
}

10

dist/api/api.d.ts

@@ -7,8 +7,11 @@ import { Logger } from 'homebridge';

}
interface HomeWizardApiOptions {
apiVersion?: 'v1';
logger: Logger;
}
export declare class HomeWizardApi {
private readonly log;
private readonly url;
private readonly path;
private readonly serialNumber;
constructor(url: string, path: string, serialNumber: string, logger: Logger);
private apiVersion;
constructor(url: string, options: HomeWizardApiOptions);
get endpoints(): {

@@ -27,2 +30,3 @@ basic: string;

}
export {};
//# sourceMappingURL=api.d.ts.map

@@ -0,1 +1,2 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -10,5 +11,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
import { request as undiciRequest } from 'undici';
const request = (...args) => undiciRequest(args[0], Object.assign(Object.assign({}, args[1]), { bodyTimeout: 2000 }));
export class HomeWizardApiError extends Error {
Object.defineProperty(exports, "__esModule", { value: true });
exports.HomeWizardApi = exports.HomeWizardApiError = void 0;
const undici_1 = require("undici");
const request = (...args) => (0, undici_1.request)(args[0], Object.assign(Object.assign({}, args[1]), { bodyTimeout: 2000, headersTimeout: 2000 }));
class HomeWizardApiError extends Error {
constructor(message) {

@@ -19,19 +22,19 @@ super(message);

}
export class HomeWizardApi {
constructor(url, path, serialNumber, logger) {
this.log = logger;
exports.HomeWizardApiError = HomeWizardApiError;
class HomeWizardApi {
constructor(url, options) {
this.log = options.logger;
this.url = url;
this.path = path;
this.serialNumber = serialNumber;
this.apiVersion = options.apiVersion || 'v1';
}
get endpoints() {
const { url, path } = this;
const { url } = this;
return {
basic: `${url}/api`,
state: `${url}${path}/state`,
identify: `${url}${path}/identify`,
state: `${url}/api/${this.apiVersion}/state`,
identify: `${url}/api/${this.apiVersion}/identify`,
};
}
get loggerPrefix() {
return `[Api] -> ${this.url} (${this.serialNumber}) -> `;
return `[Api] -> ${this.url} -> `;
}

@@ -120,2 +123,3 @@ isResponseOk(response) {

}
exports.HomeWizardApi = HomeWizardApi;
//# sourceMappingURL=api.js.map

@@ -1,2 +0,18 @@

export * from './api.js';
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("./api"), exports);
//# sourceMappingURL=index.js.map

@@ -21,6 +21,4 @@ import { PlatformConfig } from 'homebridge';

uuid: string;
hostname: string;
ip: string;
port: number;
path: string;
apiVersion: string;
apiUrl: string;

@@ -34,3 +32,6 @@ serialNumber: string;

export interface HomeWizardEnergyConfig extends PlatformConfig {
name: string;
energySockets?: {
name: string;
ip: string;
}[];
}

@@ -37,0 +38,0 @@ export interface HomeWizardApiStateResponse {

@@ -1,5 +0,8 @@

export const PLATFORM_MANUFACTURER = 'HomeWizard';
export const MDNS_DISCOVERY_TYPE = 'hwenergy';
export const MDNS_DISCOVERY_PROTOCOL = 'tcp';
export var HomeWizardDeviceTypes;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorCodes = exports.HomeWizardDeviceTypes = exports.MDNS_DISCOVERY_PROTOCOL = exports.MDNS_DISCOVERY_TYPE = exports.PLATFORM_MANUFACTURER = void 0;
exports.PLATFORM_MANUFACTURER = 'HomeWizard';
exports.MDNS_DISCOVERY_TYPE = 'hwenergy';
exports.MDNS_DISCOVERY_PROTOCOL = 'tcp';
var HomeWizardDeviceTypes;
(function (HomeWizardDeviceTypes) {

@@ -11,4 +14,4 @@ HomeWizardDeviceTypes["WIFI_PI_METER"] = "HWE-P1";

HomeWizardDeviceTypes["WIFI_KWH_METER_PHASE_2"] = "SDM630-wifi";
})(HomeWizardDeviceTypes || (HomeWizardDeviceTypes = {}));
export var ErrorCodes;
})(HomeWizardDeviceTypes = exports.HomeWizardDeviceTypes || (exports.HomeWizardDeviceTypes = {}));
var ErrorCodes;
(function (ErrorCodes) {

@@ -22,3 +25,3 @@ ErrorCodes[ErrorCodes["BODY_CONTAINS_INVALID_JSON"] = 2] = "BODY_CONTAINS_INVALID_JSON";

ErrorCodes[ErrorCodes["INTERNAL_ERROR"] = 901] = "INTERNAL_ERROR";
})(ErrorCodes || (ErrorCodes = {}));
})(ErrorCodes = exports.ErrorCodes || (exports.ErrorCodes = {}));
//# sourceMappingURL=types.js.map

@@ -0,1 +1,2 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -10,4 +11,6 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
import { PLATFORM_MANUFACTURER, } from './api/types.js';
export class EnergySocketAccessory {
Object.defineProperty(exports, "__esModule", { value: true });
exports.EnergySocketAccessory = void 0;
const types_1 = require("./api/types");
class EnergySocketAccessory {
constructor(platform, accessory, api) {

@@ -18,3 +21,3 @@ this.platform = platform;

this.properties = properties;
const loggerPrefix = `${properties.hostname} (${properties.serialNumber}) -> `;
const loggerPrefix = `[Energy Socket: ${properties.displayName}] -> `;
this.loggerPrefix = loggerPrefix;

@@ -24,3 +27,3 @@ this.platform.log.debug(this.loggerPrefix, `Initializing platform accessory ${JSON.stringify(properties)}`);

const informationService = this.accessory.getService(this.platform.Service.AccessoryInformation);
informationService === null || informationService === void 0 ? void 0 : informationService.setCharacteristic(this.platform.Characteristic.Manufacturer, PLATFORM_MANUFACTURER);
informationService === null || informationService === void 0 ? void 0 : informationService.setCharacteristic(this.platform.Characteristic.Manufacturer, types_1.PLATFORM_MANUFACTURER);
informationService === null || informationService === void 0 ? void 0 : informationService.setCharacteristic(this.platform.Characteristic.Model, this.getModel(properties.productName, properties.productType));

@@ -110,2 +113,3 @@ informationService === null || informationService === void 0 ? void 0 : informationService.setCharacteristic(this.platform.Characteristic.SerialNumber, properties.serialNumber);

}
exports.EnergySocketAccessory = EnergySocketAccessory;
//# sourceMappingURL=energy-socket-accessory.js.map

@@ -1,6 +0,8 @@

import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';
import { HomebridgeHomeWizardEnergySocket } from './platform.js';
export default (api) => {
api.registerPlatform(PLUGIN_NAME, PLATFORM_NAME, HomebridgeHomeWizardEnergySocket);
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const settings_1 = require("./settings");
const platform_1 = require("./platform");
exports.default = (api) => {
api.registerPlatform(settings_1.PLUGIN_NAME, settings_1.PLATFORM_NAME, platform_1.HomebridgeHomeWizardEnergySocket);
};
//# sourceMappingURL=index.js.map
import { API, DynamicPlatformPlugin, Logger, PlatformAccessory, PlatformConfig, Service, Characteristic } from 'homebridge';
import { Service as BonjourService } from 'bonjour-service';
import { EnergySocketAccessoryProperties, HomeWizardEnergyPlatformAccessoryContext, TxtRecord } from './api/types';
import { EnergySocketAccessoryProperties, HomeWizardEnergyConfig, HomeWizardEnergyPlatformAccessoryContext, TxtRecord } from './api/types';
import { HomeWizardApi } from './api';

@@ -10,14 +10,21 @@ export declare class HomebridgeHomeWizardEnergySocket implements DynamicPlatformPlugin {

readonly Characteristic: typeof Characteristic;
readonly cachedAccessories: PlatformAccessory[];
cachedAccessories: PlatformAccessory<HomeWizardEnergyPlatformAccessoryContext>[];
private config;
private bonjour;
private loggerPrefix;
private interval;
constructor(log: Logger, config: PlatformConfig, api: API);
configureAccessory(accessory: PlatformAccessory<HomeWizardEnergyPlatformAccessoryContext>): void;
discoverDevices(): void;
isStaleCachedAccessory(cachedAccessory: PlatformAccessory<HomeWizardEnergyPlatformAccessoryContext>, energySocketsConfig: HomeWizardEnergyConfig['energySockets']): boolean;
stopDiscoveringDevices(): void;
startDiscoveringDevices(): void;
isDeviceApiEnabled(txtRecord: TxtRecord): boolean;
isDeviceProductTypeSupported(txtRecord: TxtRecord): boolean;
handleDiscoveredService(service: BonjourService): Promise<void>;
handleEnergySocketsFromConfig(): Promise<void>;
addAccessory(energySocketProperties: EnergySocketAccessoryProperties, api: HomeWizardApi): void;
attachAccessoryToPlatform(accessory: PlatformAccessory<HomeWizardEnergyPlatformAccessoryContext>, api: HomeWizardApi): void;
getEnergySocketPropertiesFromIp(ip: string, configName?: string): Promise<{
energySocketProperties: EnergySocketAccessoryProperties;
api: HomeWizardApi;
}>;
getEnergySocketPropertiesFromService(service: BonjourService): Promise<{

@@ -24,0 +31,0 @@ energySocketProperties: EnergySocketAccessoryProperties;

@@ -0,1 +1,2 @@

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -10,8 +11,10 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }

};
import { Bonjour } from 'bonjour-service';
import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js';
import { EnergySocketAccessory } from './energy-socket-accessory.js';
import { HomeWizardDeviceTypes, MDNS_DISCOVERY_PROTOCOL, MDNS_DISCOVERY_TYPE, } from './api/types.js';
import { HomeWizardApi } from './api/index.js';
export class HomebridgeHomeWizardEnergySocket {
Object.defineProperty(exports, "__esModule", { value: true });
exports.HomebridgeHomeWizardEnergySocket = void 0;
const bonjour_service_1 = require("bonjour-service");
const settings_1 = require("./settings");
const energy_socket_accessory_1 = require("./energy-socket-accessory");
const types_1 = require("./api/types");
const api_1 = require("./api");
class HomebridgeHomeWizardEnergySocket {
constructor(log, config, api) {

@@ -23,31 +26,45 @@ this.log = log;

this.cachedAccessories = [];
this.interval = null;
const loggerPrefix = `Platform Setup -> `;
this.bonjour = null;
const loggerPrefix = `[Platform Setup] -> `;
this.loggerPrefix = loggerPrefix;
this.config = config;
this.bonjour = new Bonjour();
this.log.debug(loggerPrefix, 'Finished initializing platform:', config.name);
this.api.on("didFinishLaunching", () => {
log.debug(loggerPrefix, 'Executed didFinishLaunching callback');
this.discoverDevices();
var _a;
this.log.debug(loggerPrefix, 'Executed didFinishLaunching callback');
if (!((_a = this.config.energySockets) === null || _a === void 0 ? void 0 : _a.length)) {
this.startDiscoveringDevices();
return;
}
this.handleEnergySocketsFromConfig();
});
this.api.on("shutdown", () => {
this.bonjour.destroy();
if (this.interval) {
clearInterval(this.interval);
}
this.stopDiscoveringDevices();
});
}
configureAccessory(accessory) {
this.log.info(this.loggerPrefix, `Loading accessory from cache: ${accessory.displayName} ${accessory.context.energySocket.hostname}`);
this.log.debug(this.loggerPrefix, `Loading accessory from cache: ${accessory.displayName}`);
this.cachedAccessories.push(accessory);
}
discoverDevices() {
if (this.interval) {
clearInterval(this.interval);
isStaleCachedAccessory(cachedAccessory, energySocketsConfig) {
if (!energySocketsConfig)
return false;
const configIps = energySocketsConfig.map(energySocket => energySocket.ip);
const accessoryIp = cachedAccessory.context.energySocket.ip;
const isIpStillInConfig = configIps.includes(accessoryIp);
return !isIpStillInConfig;
}
stopDiscoveringDevices() {
if (this.bonjour) {
this.log.info(this.loggerPrefix, 'Stopping automatic discovering Energy Sockets in your network...');
this.bonjour.destroy();
this.bonjour = null;
}
this.log.info(this.loggerPrefix, 'Finding HomeWizard devices in your network...');
}
startDiscoveringDevices() {
this.log.info(this.loggerPrefix, 'Automatically discovering Energy Sockets in your network...');
this.bonjour = new bonjour_service_1.Bonjour();
const browser = this.bonjour.find({
protocol: MDNS_DISCOVERY_PROTOCOL,
type: MDNS_DISCOVERY_TYPE,
protocol: types_1.MDNS_DISCOVERY_PROTOCOL,
type: types_1.MDNS_DISCOVERY_TYPE,
});

@@ -68,3 +85,3 @@ browser.on('up', (service) => {

isDeviceProductTypeSupported(txtRecord) {
return txtRecord.product_type === HomeWizardDeviceTypes.WIFI_ENERGY_SOCKET;
return txtRecord.product_type === types_1.HomeWizardDeviceTypes.WIFI_ENERGY_SOCKET;
}

@@ -74,2 +91,6 @@ handleDiscoveredService(service) {

const txtRecord = service.txt;
if (!this.isDeviceProductTypeSupported(txtRecord)) {
this.log.info(this.loggerPrefix, `Found a device that is not an Energy Socket (${types_1.HomeWizardDeviceTypes.WIFI_ENERGY_SOCKET}), skipping`, JSON.stringify(txtRecord));
return;
}
if (!this.isDeviceApiEnabled(txtRecord)) {

@@ -79,21 +100,5 @@ this.log.info(this.loggerPrefix, `Found a Energy Socket, but it has not enabled the "Local Api" setting, skipping`, JSON.stringify(txtRecord));

}
if (!this.isDeviceProductTypeSupported(txtRecord)) {
this.log.info(this.loggerPrefix, `Found a device that is not an Energy Socket (${HomeWizardDeviceTypes.WIFI_ENERGY_SOCKET}), skipping`, JSON.stringify(txtRecord));
return;
}
try {
const { energySocketProperties, api } = yield this.getEnergySocketPropertiesFromService(service);
const existingAccessory = this.cachedAccessories.find(accessory => accessory.UUID === energySocketProperties.uuid);
if (!existingAccessory) {
this.log.info(this.loggerPrefix, 'Adding new accessory:', energySocketProperties.displayName, energySocketProperties.apiUrl, energySocketProperties.uuid);
const newAccessory = new this.api.platformAccessory(energySocketProperties.displayName, energySocketProperties.uuid);
newAccessory.context.energySocket = energySocketProperties;
this.attachAccessoryToPlatform(newAccessory, api);
this.api.registerPlatformAccessories(PLUGIN_NAME, PLATFORM_NAME, [newAccessory]);
return;
}
this.log.info(this.loggerPrefix, `Restoring existing accessory from cache: ${existingAccessory.displayName}`);
existingAccessory.context.energySocket = energySocketProperties;
this.api.updatePlatformAccessories([existingAccessory]);
this.attachAccessoryToPlatform(existingAccessory, api);
this.addAccessory(energySocketProperties, api);
}

@@ -105,31 +110,76 @@ catch (error) {

}
handleEnergySocketsFromConfig() {
return __awaiter(this, void 0, void 0, function* () {
if (!this.config.energySockets || !this.config.energySockets.length) {
this.log.error(this.loggerPrefix, `handleEnergySocketsFromConfig is invoked, but config.energySockets has no array items. We are stopping.`);
return;
}
this.log.debug(this.loggerPrefix, `Found ${this.config.energySockets.length} Energy Sockets in config, skipping automatic discovery...`);
const staleCachedAccessories = this.cachedAccessories.filter(accessory => {
return this.isStaleCachedAccessory(accessory, this.config.energySockets);
});
if (staleCachedAccessories.length) {
this.log.debug(this.loggerPrefix, `Found ${staleCachedAccessories.length} stale cached accessories. We will remove them...`);
for (const staleCachedAccessory of staleCachedAccessories) {
this.log.info(this.loggerPrefix, `Removing stale cached accessory: ${staleCachedAccessory.displayName} (${staleCachedAccessory.UUID})`);
this.api.unregisterPlatformAccessories(settings_1.PLUGIN_NAME, settings_1.PLATFORM_NAME, [staleCachedAccessory]);
const updatedCachedAccessories = this.cachedAccessories.filter(accessory => accessory.UUID !== staleCachedAccessory.UUID);
this.cachedAccessories = [...updatedCachedAccessories];
}
}
for (const energySocket of this.config.energySockets) {
try {
const { energySocketProperties, api } = yield this.getEnergySocketPropertiesFromIp(energySocket.ip, energySocket.name);
this.addAccessory(energySocketProperties, api);
}
catch (error) {
this.log.error(this.loggerPrefix, `Error while handling energy socket from config: ${JSON.stringify(error)}`);
}
}
});
}
addAccessory(energySocketProperties, api) {
try {
const existingAccessory = this.cachedAccessories.find(accessory => accessory.UUID === energySocketProperties.uuid);
if (!existingAccessory) {
this.log.info(this.loggerPrefix, 'Adding new accessory:', energySocketProperties.displayName, energySocketProperties.apiUrl, energySocketProperties.uuid);
const newAccessory = new this.api.platformAccessory(energySocketProperties.displayName, energySocketProperties.uuid);
newAccessory.context.energySocket = energySocketProperties;
this.attachAccessoryToPlatform(newAccessory, api);
this.api.registerPlatformAccessories(settings_1.PLUGIN_NAME, settings_1.PLATFORM_NAME, [newAccessory]);
return;
}
this.log.info(this.loggerPrefix, `Restoring existing accessory from cache: ${existingAccessory.displayName}`);
existingAccessory.context.energySocket = energySocketProperties;
this.api.updatePlatformAccessories([existingAccessory]);
this.attachAccessoryToPlatform(existingAccessory, api);
}
catch (error) {
this.log.error(this.loggerPrefix, `Error while adding the accessory: ${JSON.stringify(error)}`);
}
}
attachAccessoryToPlatform(accessory, api) {
this.log.info(this.loggerPrefix, 'Attaching accessory to platform:', accessory.displayName);
new EnergySocketAccessory(this, accessory, api);
new energy_socket_accessory_1.EnergySocketAccessory(this, accessory, api);
}
getEnergySocketPropertiesFromService(service) {
var _a;
getEnergySocketPropertiesFromIp(ip, configName) {
return __awaiter(this, void 0, void 0, function* () {
const txtRecord = service.txt;
this.log.debug(this.loggerPrefix, `Received data from Bonjour service: ${JSON.stringify(service)}`);
const hostname = service.host;
const serialNumber = txtRecord.serial;
const path = txtRecord.path;
const productName = txtRecord.product_name;
const productType = txtRecord.product_type;
const ip = (_a = service.addresses) === null || _a === void 0 ? void 0 : _a[0];
const port = service.port;
const displayName = `${productName} ${serialNumber}`;
const uuid = this.api.hap.uuid.generate(serialNumber);
const apiUrl = `http://${ip}:${port}`;
const api = new HomeWizardApi(apiUrl, path, serialNumber, this.log);
this.log.info(this.loggerPrefix, `Using IP ${ip} to find information about the Energy Socket...`);
const apiUrl = `http://${ip}`;
try {
const api = new api_1.HomeWizardApi(apiUrl, {
logger: this.log,
});
const basicInformation = yield api.getBasicInformation();
const firmwareVersion = basicInformation.firmware_version;
const productName = basicInformation.product_name;
const productType = basicInformation.product_type;
const serialNumber = basicInformation.serial;
const apiVersion = basicInformation.api_version;
const uuid = this.api.hap.uuid.generate(serialNumber);
const displayName = configName ? configName : `${productName} ${serialNumber}`;
const energySocketProperties = {
uuid,
ip,
port,
hostname,
path,
apiVersion,
apiUrl,

@@ -153,3 +203,20 @@ serialNumber: serialNumber,

}
getEnergySocketPropertiesFromService(service) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
this.log.debug(this.loggerPrefix, `Received data from Bonjour service: ${JSON.stringify(service)}`);
const ip = (_a = service.addresses) === null || _a === void 0 ? void 0 : _a[0];
try {
const energySocketProperties = yield this.getEnergySocketPropertiesFromIp(ip);
return energySocketProperties;
}
catch (error) {
const errorMessage = `Could not get basic information from the Energy Socket, skipping: ${JSON.stringify(error)}`;
this.log.error(this.loggerPrefix, errorMessage);
throw new Error(errorMessage);
}
});
}
}
exports.HomebridgeHomeWizardEnergySocket = HomebridgeHomeWizardEnergySocket;
//# sourceMappingURL=platform.js.map

@@ -1,3 +0,6 @@

export const PLATFORM_NAME = 'HomebridgeHomeWizardEnergySocket';
export const PLUGIN_NAME = 'homebridge-homewizard-energy-socket';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PLUGIN_NAME = exports.PLATFORM_NAME = void 0;
exports.PLATFORM_NAME = 'HomebridgeHomeWizardEnergySocket';
exports.PLUGIN_NAME = 'homebridge-homewizard-energy-socket';
//# sourceMappingURL=settings.js.map
{
"displayName": "Homebridge HomeWizard Energy Socket",
"name": "homebridge-homewizard-energy-socket",
"type": "module",
"version": "1.2.6",
"version": "1.2.7",
"description": "This Homebridge plugin exposes your HomeWizard Energy Sockets to Apple HomeKit. So you can use the Home App to switch your Energy Sockets on or off and integrate the Energy Sockets into your Home Automations.",

@@ -47,6 +46,6 @@ "license": "MIT",

"devDependencies": {
"@types/node": "^18.11.10",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vitest/coverage-c8": "^0.25.6",
"@types/node": "^18.11.13",
"@typescript-eslint/eslint-plugin": "^5.46.0",
"@typescript-eslint/parser": "^5.46.0",
"@vitest/coverage-c8": "^0.25.7",
"dotenv-cli": "^6.0.0",

@@ -59,3 +58,3 @@ "eslint": "^8.29.0",

"nodemon": "^2.0.20",
"prettier": "^2.8.0",
"prettier": "^2.8.1",
"release-it": "^15.5.1",

@@ -65,4 +64,4 @@ "resolve-tspaths": "^0.8.3",

"ts-node": "^10.9.1",
"typescript": "^4.9.3",
"vitest": "^0.25.3"
"typescript": "^4.9.4",
"vitest": "^0.25.7"
},

@@ -79,3 +78,3 @@ "dependencies": {

"hooks": {
"after:bump": "npx auto-changelog -p"
"after:bump": "npx auto-changelog -p --commit-limit false"
},

@@ -82,0 +81,0 @@ "npm": {

@@ -50,3 +50,3 @@ <p align="center">

After enabling the plugin, the plugin will automatically discover the Energy Sockets in your network that have the "Local API" setting enabled using Multicast DNS. Multicast DNS is a feature of all routers. So unless you have changed these settings specifically, or using multiple different LAN networks, there should be no need to change any settings for this. It should just work.
By default the plugin will automatically discover the Energy Sockets in your network that have the "Local API" setting enabled using Multicast DNS. Multicast DNS is a feature of all routers. So unless you have changed these settings specifically, or using multiple different LAN networks, there should be no need to change any settings for this. It should just work.

@@ -61,2 +61,2 @@ More on this in the [HomeWizard API documentation about Discovery](https://homewizard-energy-api.readthedocs.io/discovery.html).

- Restart the Homebridge plugin and/or server
- If none of the above help, there probably is an issue with Multicast DNS in your network. Check your network settings and/or router settings to enable Multicast DNS.
- If none of the above help, there probably is an issue with Multicast DNS in your network. Check your network settings and/or router settings to enable Multicast DNS. Or use the Energy Sockets config option for the plugin to manually add your Energy Sockets by using the IP address.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc