Giter Site home page Giter Site logo

KeyError: 'familyList' about ewelink-mqtt HOT 3 CLOSED

FhemiR avatar FhemiR commented on August 14, 2024
KeyError: 'familyList'

from ewelink-mqtt.

Comments (3)

NickWaterton avatar NickWaterton commented on August 14, 2024

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.

FhemiR avatar FhemiR commented on August 14, 2024

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.

NickWaterton avatar NickWaterton commented on August 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.