Comments (3)
Do you have the latest https://github.com/AlexxIT/SonoffLAN/tree/master installed?
If so, run eWeLink.py
again with the -D
(debug) option, and post the output here.
I have a feeling that the app ID and secret do not have permission to access the get_homes
api, which is why you are seeing this.
from ewelink-mqtt.
Yes it is the latest. It seems the error comes from here
eWeLink-mqtt/custom_components/sonoff/core/ewelink/cloud.py
{'error': 407, 'msg': 'the path of request is not allowed with appid:4s1FXKC9FaGfoqXhmXSJneb3qcm1gOak', 'data': {}}
I added a # in like 41 now it works as expected.
BTW do you have a hint for me, how one can turn on off each switch for a 4CH pro device?I mean how to send a comand that e.g switch1 goes on and at the same time all other off?
"mosquitto_pub -t "/ewelink_command/1000861ac4/switch" -m off"?
from ewelink-mqtt.
Yes, the app ID does not have permission to access the homes api. Not sure why this is, but I should probably take a look at it.
as far as I remember, (and it’s been a long time), it would be:
mosquitto_pub -t /ewelink_command/1000861ac4/switches -m “0 off”
mosquitto_pub -t /ewelink_command/1000861ac4/switches -m “0 on 1 off 2 off 3 off”
mosquitto_pub -t /ewelink_command/1000861ac4/switches -m “3 on”
And so on. The second example is what you asked for. Switches are numbered from 0.
from ewelink-mqtt.
Related Issues (9)
- [D Main.EwelinkClient ] received response status: 200 HOT 10
- [D Main.EwelinkClient ] WS connection closed while sending json string HOT 10
- Set receive interval HOT 11
- Sonoff status after command execute
- Integration with home assistant? HOT 1
- Cannot start (custom_components?) HOT 1
- Lan Mode connection
- KeyError: 'familyList' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ewelink-mqtt.