nitaybz / homebridge-electra-smart Goto Github PK
View Code? Open in Web Editor NEWHomebridge plugin for Electra Smart A/C
License: MIT License
Homebridge plugin for Electra Smart A/C
License: MIT License
Hi,
I'm trying to run 'electra-extract' command in hoobs version 4 terminal (to obtain token & imei) and get unknown command.
How do I run this command properly?
Thanks.
Great initiative, good to see the API used for a homebridge client.
Looks like credit is due to the electrasmart project where the original research came from.
Beyond the common decency of giving credit for hard work being reused, it would also be helpful for future developers to know that there are other implementations to use as reference. For example, Jafar Atili’s python implementation.
I would be happy to send a PR if that helps.
Hi,
I have a problem where after few commands, the accessory stops responding on the home app and homebridge.
Here are the logs that was shown at the moment it stopped respond:
[4/19/2023, 5:51:43 PM] [homebridge-electra-smart] Characteristic 'Rotation Speed': SET handler returned write response value, though the characteristic doesn't support write response. See https://homebridge.io/w/JtMGR for more info.
[4/19/2023, 5:51:43 PM] [homebridge-electra-smart] Error:
at RotationSpeed.Characteristic.characteristicWarning (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3011:105)
at RotationSpeed.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2557:18)
at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:125:57)
at fulfilled (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:115:62)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[4/19/2023, 5:51:43 PM] [homebridge-electra-smart] Characteristic 'Active': SET handler returned write response value, though the characteristic doesn't support write response. See https://homebridge.io/w/JtMGR for more info.
[4/19/2023, 5:51:43 PM] [homebridge-electra-smart] Error:
at Active.Characteristic.characteristicWarning (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3011:105)
at Active.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2557:18)
at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:125:57)
at fulfilled (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:115:62)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[4/19/2023, 5:51:43 PM] [ElectraSmart] Living Room AC -> Setting Fan Rotation Speed: 70%
[4/19/2023, 5:51:43 PM] [ElectraSmart] Living Room AC -> Setting Mode to: FAN
[4/19/2023, 5:51:44 PM] [ElectraSmart] Living Room AC -> Setting New State:
[4/19/2023, 5:51:44 PM] [ElectraSmart] {
"TURN_ON_OFF": "ON",
"SPT": "25",
"AC_MODE": "FAN",
"CLEAR_FILT": "OFF",
"FANSPD": "HIGH",
"HSWING": "OFF",
"IDU_PN": "",
"IFEEL": "OFF",
"MSGTYPE": "OPER",
"OP_VAL_ERR": "OK",
"SHABAT": "OFF",
"SLEEP": "OFF",
"TIMER": "OFF",
"TURBO": "OFF",
"VSWING": "OFF"
}
[4/19/2023, 5:51:44 PM] [ElectraSmart] Found valid ssid in cache 13b786d6cbd149bcb32e1067d3a38f73
[4/19/2023, 5:51:44 PM] [ElectraSmart] Creating request to Electra API --->
[4/19/2023, 5:51:44 PM] [ElectraSmart] body: {"pvdid":1,"id":99,"cmd":"SEND_COMMAND","sid":"13b786d6cbd149bcb32e1067d3a38f73","data":{"id":166348,"commandJson":"{\"OPER\":{\"TURN_ON_OFF\":\"ON\",\"SPT\":\"25\",\"AC_MODE\":\"FAN\",\"CLEAR_FILT\":\"OFF\",\"FANSPD\":\"HIGH\",\"HSWING\":\"OFF\",\"IDU_PN\":\"\",\"IFEEL\":\"OFF\",\"MSGTYPE\":\"OPER\",\"OP_VAL_ERR\":\"OK\",\"SHABAT\":\"OFF\",\"SLEEP\":\"OFF\",\"TIMER\":\"OFF\",\"TURBO\":\"OFF\",\"VSWING\":\"OFF\"}}"}}
[4/19/2023, 5:51:44 PM] [ElectraSmart] Successful response:
[4/19/2023, 5:51:44 PM] [ElectraSmart] {"res":0,"res_desc":null}
[4/19/2023, 5:51:44 PM] [ElectraSmart] Living Room - Updated 'RotationSpeed' for FanService with NEW VALUE: 70
[4/19/2023, 5:51:44 PM] [homebridge-electra-smart] Characteristic 'Rotation Speed': SET handler returned write response value, though the characteristic doesn't support write response. See https://homebridge.io/w/JtMGR for more info.
[4/19/2023, 5:51:44 PM] [homebridge-electra-smart] Error:
at RotationSpeed.Characteristic.characteristicWarning (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:3011:105)
at RotationSpeed.<anonymous> (/var/lib/homebridge/node_modules/homebridge/node_modules/hap-nodejs/src/lib/Characteristic.ts:2557:18)
at step (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:144:27)
at Object.next (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:125:57)
at fulfilled (/var/lib/homebridge/node_modules/homebridge/node_modules/tslib/tslib.js:115:62)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
[4/19/2023, 5:51:44 PM] [ElectraSmart] Living Room AC -> Setting Fan Rotation Speed: 39%
[4/19/2023, 5:51:44 PM] [ElectraSmart] Living Room AC -> Setting Mode to: FAN
[4/19/2023, 5:51:44 PM] [homebridge-electra-smart] This plugin threw an error from the characteristic 'Rotation Speed': Unhandled error thrown inside write handler for characteristic: Can't set empty state. See https://homebridge.io/w/JtMGR for more info.
[4/19/2023, 5:51:44 PM] [homebridge-electra-smart] Error: Can't set empty state
at Timeout._onTimeout (/var/lib/homebridge/node_modules/homebridge-electra-smart/homekit/StateManager.js:50:14)
at listOnTimeout (node:internal/timers:564:17)
at processTimers (node:internal/timers:507:7)
[4/19/2023, 5:51:44 PM] [ElectraSmart] Living Room AC -> Setting Fan Rotation Speed: 38%
[4/19/2023, 5:51:44 PM] [ElectraSmart] Living Room AC -> Setting Mode to: FAN
[4/19/2023, 5:51:44 PM] [homebridge-electra-smart] This plugin threw an error from the characteristic 'Rotation Speed': Unhandled error thrown inside write handler for characteristic: Can't set empty state. See https://homebridge.io/w/JtMGR for more info.
[4/19/2023, 5:51:44 PM] [homebridge-electra-smart] Error: Can't set empty state
at Timeout._onTimeout (/var/lib/homebridge/node_modules/homebridge-electra-smart/homekit/StateManager.js:50:14)
at listOnTimeout (node:internal/timers:564:17)
at processTimers (node:internal/timers:507:7)
From that moment the only solution is to restart homebridge, and reinstall the accessory.
Discord channel in readme.md points to sensibo-ac channel
While using the plugin, after registration with phone and setting polling interval to 300- still getting the “Intruder Lockout” error message.
After setting “debug mode” to true- i see there are two tries of doing operation but in the first time “Session ID: null” message appears, and in second try, the intruder error message appears.
Hi,
I installed the plugin and got imei and token using electra-extract.
After updating the configuration, I can't see new device in homekit.
I'm getting this error in the log:
[ElectraSmart] ERR: Could NOT get Session ID: Token not found
Thanks
I have successfully put completed the token retreival via the homebridge UI, and then I get this on the log:
[9/24/2022, 11:48:54 AM] [ElectraSmart] {"devices":null,"res":0,"res_desc":null}
[9/24/2022, 11:48:54 AM] [ElectraSmart] ERR: Can't get devices from Electra API
[9/24/2022, 11:51:54 AM] [ElectraSmart] Found valid ssid in cache a5b*************97f
[9/24/2022, 11:51:54 AM] [ElectraSmart] Creating request to Electra API --->
[9/24/2022, 11:51:54 AM] [ElectraSmart] body: {"pvdid":1,"id":99,"cmd":"GET_DEVICES","sid":"a5b***********97f"}
[9/24/2022, 11:51:54 AM] [ElectraSmart] Successful response:
[9/24/2022, 11:51:54 AM] [ElectraSmart] {"devices":null,"res":0,"res_desc":null}
[9/24/2022, 11:51:54 AM] [ElectraSmart] <<<< ---- Refresh State FAILED! ---- >>>>
[9/24/2022, 11:51:54 AM] [ElectraSmart] Can't get devices from Electra API
[9/24/2022, 11:51:54 AM] [ElectraSmart] Will try again in 90 seconds...
Any idea what's wrong? The app on my phone is working curretnly of course.
Hi,
I set the low temp value to 21.
Each time that I turn on the air conditioner by clicking on COOL, it’s start working with the lower temp that was preconfigured. If, for example I changed the temp during it is on to 24 temp, after I shut it down, it’s reset to 21.
there is any workaround to fix this?
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.