Socket
Socket
Sign inDemoInstall

homebridge-multiswitcheroo

Package Overview
Dependencies
15
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

20

CHANGELOG.md

@@ -5,3 +5,3 @@ # Changelog

# ❗**WARNING**❗
# *If using `Switcheroo` type accessories, please see [README](https://github.com/iSteve-O/homebridge-multiswitcheroo/blob/NewVersion/README.md) note before updating to v2.0!!
# *If using `Switcheroo` type accessories, please see [README](https://github.com/iSteve-O/homebridge-multiswitcheroo/blob/OffFix/README.md) note before updating to v2.0!!
# *Version 2.0 contains breaking changes for `Switcheroo` type accessories.

@@ -18,12 +18,18 @@

# Changelog
## [3.0.1] - 2023-08-23
### Fixed
- Changed how status polling works to update switch status even when server status has not changed.
- Minor errors in README.md corrected.
## [3.0.0] - 2023-08-21
### Added
- ability to set `firmwareVersion` in the config.
- Ability to set `firmwareVersion` in the config.
- Proper error, warning & debug logging (almost).
### Changed
- removed unnecessary & outdated `require` dependancy. Should clear some install warnings.
- changed from using deprecated `request` to `axios` for http requests.
- fixed status polling so each accessory's `statusUrl` is called only once to update all switch statuses, instead of calling once for each switch at the `pollingInterval`.
- v3.0 uses about 75% less CPU & 15% less memory, on average, than even v2.0 (based on `top`)!
- Removed unnecessary & outdated `require` dependancy. Should clear some install warnings.
- Changed from using deprecated `request` to `axios` for http requests.
- Fixed status polling so each accessory's `statusUrl` is called only once to update all switch statuses, instead of calling once for each switch at the `pollingInterval`.
- Version 3.0 uses about 75% less CPU & 15% less memory, on average, than even v2.0 (based on `top`)!

@@ -34,3 +40,3 @@

- Optimized code to remove unnecessary `Switcheroo` accessory
(Install [`homebridge-http-switch`](https://github.com/Supereg/homebridge-http-switch/tree/master) to replace functionality as stated in [README](https://github.com/iSteve-O/homebridge-multiswitcheroo/blob/NewVersion/README.md)).
(Install [`homebridge-http-switch`](https://github.com/Supereg/homebridge-http-switch/tree/master) to replace functionality as stated in [README](https://github.com/iSteve-O/homebridge-multiswitcheroo/blob/OffFix/README.md)).
- Added ability to create `MultiSwitcheroo` accessories in the ConfigUI.

@@ -37,0 +43,0 @@

@@ -42,5 +42,5 @@ const axios = require('axios');

}
}, { longpolling: true, interval: this.config.pollingInterval });
}, { longpolling: false, interval: this.config.pollingInterval });
statusemitter.on('longpoll', (data) => {
statusemitter.on('poll', (data) => {
//this.log.debug(`Parsing URL data`);

@@ -47,0 +47,0 @@ //this.log.debug(`Received status data:`, data);

{
"name": "homebridge-multiswitcheroo",
"displayName": "MultiSwitcheroo",
"version": "3.0.0",
"version": "3.0.1",
"author": "iSteve-O",
"description": "User defined switches for http GET requests. Simple on/off or multiswitch on/off. Useful for lights, A/V systems, home automation, and includes live status polling!",
"license": "MIT",
"homepage": "https://github.com/iSteve-O/homebridge-multiswitcheroo/blob/TestSingle/README.md",
"homepage": "https://github.com/iSteve-O/homebridge-multiswitcheroo/tree/OffFix",
"repository": {
"type": "git",
"url": "git+https://github.com/iSteve-O/homebridge-multiswitcheroo/tree/TestSingle"
"url": "git+https://github.com/iSteve-O/homebridge-multiswitcheroo/tree/OffFix"
},

@@ -33,4 +33,4 @@ "keywords": [

"dependencies": {
"axios": "^1.4.0",
"polling-to-event": "^2.1.0"
"polling-to-event": "^2.1.0",
"axios": "^1.4.0"
},

@@ -37,0 +37,0 @@ "bugs": {

@@ -86,3 +86,3 @@ <p align="left">

If you already had a `Switcheroo` accessory defined & wish to update, simply change the `accessory` type from `Switcheroo` to `HTTP-SWITCH` then install the `homebridge-http-switch` plugin and reboot. The switch should continue to work (scenes & automations may need to be rebuilt but I am unsure. Sorry about this.
If you already had a `Switcheroo` accessory defined & wish to update, simply change the `accessory` type from `Switcheroo` to `HTTP-SWITCH` & change the `pollingInterval` config entry to `pullInterval`, then install the `homebridge-http-switch` plugin and reboot. The switch will continue to work just as before (scenes & automations will need to be rebuilt; sorry about this).

@@ -121,3 +121,3 @@

1. Install homebridge using: `npm install -g homebridge`
2. Install homebridge-http using: `npm install -g homebridge-multiswitcheroo`
2. Install homebridge-multiswitcheroo using: `npm install -g homebridge-multiswitcheroo`
* if in `hb-shell` environment use: `hb-service add homebridge-multiswitcheroo`

@@ -124,0 +124,0 @@ 4. Update your `config.json` file or add swithces using plugin settings in the Homebridge ConfigUI.

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc