Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
homebridge-electra-smart
Advanced tools
Homebridge plugin for Electra A/C that works with Electra Smart app.
check with: node -v
& homebridge -V
and update if needed
This plugin is Homebridge verified and HOOBS certified and can be easily installed and configured through their UI.
To use this plugin you must provide token
and imei
which can be obtain in 2 different ways:
Using the latest Homebridge config UI version (v4.32.0), you can obtain token
and imei
easily through the plugin settings and fill all the needed configuration.
After installing the plugin, open the terminal and run the command: electra-extract
. follow the instructions to get the token & imei.
* All methods require to have your phone (the one that was signed in to Electra Smart)
sudo npm install -g homebridge --unsafe-perm
sudo npm install -g homebridge-electra-smart
electra-extract
in terminal and follow instructions to extract token and imei.config-sample.json
in this repository for a sample.* install from git: sudo npm install -g git+https://github.com/nitaybz/homebridge-electra-smart.git
"platforms": [
{
"platform": "ElectraSmart",
"imei": "2b950000*************",
"token": "**************************"
}
]
"platforms": [
{
"platform": "ElectraSmart",
"imei": "2b950000*************",
"token": "**************************",
"disableFan": false,
"disableDry": false,
"minTemperature": 16,
"maxTemperature": 30,
"swingDirection": "both",
"statePollingInterval": 90,
"debug": false
}
]
Parameter | Description | Required | Default | type |
---|---|---|---|---|
platform | always "ElectraSmart" | ✓ | - | String |
imei | Generated IMEI: obtain from terminal command - electra-extract | ✓ | - | String |
token | Access Token: obtain from terminal command - electra-extract | ✓ | - | String |
disableFan | When set to true , it will disable the FAN accessory | false | Boolean | |
disableDry | When set to true , it will disable the DRY accessory | false | Boolean | |
statePollingInterval | Time in seconds between each status polling of the Electra devices (set to 0 for no polling) | 90 | Integer | |
swingDirection | Choose what kind of swing you would like to control in HomeKit. can be "vertical" , "horizontal" or "both" | "both" | Boolean | |
minTemperature | Minimum Temperature to show in HomeKit Control | 16 | Integer | |
maxTemperature | Maximum Temperature to show in HomeKit Control | 30 | Integer | |
debug | When set to true , the plugin will produce extra logs for debugging purposes | false | Boolean |
Since HomeKit control over fan speed is with a slider between 0-100, the plugin converts the steps you have in the Electra app to values between 1 to 100, when 100 is highest and 1 is lowest. Setting the fan speed to 0, should actually set it to "AUTO" speed.
Available fan speeds: AUTO, LOW, MED, HIGH
Swing support is added automatically if supported. Since HomeKit only have one control for swing, you can choose which swing type you would like HomeKit to control: vertical, horizontal or both (default).
Check the internet connection and that you can control the device from Electra Smart app. If that doesn't help, turn on debug logs in the plugin settings and look for errors.
Electra detected that the plugin is spamming the api and consider it as intruder. To fix this issue immediately you can refresh the token and imei by deleting them in the config UI and clicking on the button to fetch them back. You can potentially prevent this error by setting polling interval to a very high number or 0.
If you experience any issues with the plugins please refer to the Issues tab or electra-smart Discord channel and check if your issue is already described there, if it doesn't, please create a new issue with as much detailed information as you can give (logs are crucial).
if you want to even speed up the process, you can add "debug": true
to your config, which will give me more details on the logs and speed up fixing the issue.
homebridge-electra-smart is a free plugin under the GNU license. it was developed as a contribution to the homebridge/hoobs community with lots of love and thoughts. Creating and maintaining Homebridge plugins consume a lot of time and effort and if you would like to share your appreciation, feel free to "Star" or donate.
FAQs
Homebridge plugin for Electra Smart A/C
The npm package homebridge-electra-smart receives a total of 7 weekly downloads. As such, homebridge-electra-smart popularity was classified as not popular.
We found that homebridge-electra-smart demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.