Giter Site home page Giter Site logo

Comments (4)

stephanerosi avatar stephanerosi commented on May 26, 2024 2

You're right, sorry.
Btw I've switched on branch sonoff-bulb and my B1 works fine with it (v2.6.0)

from hass-sonoff-ewelink.

peterbuga avatar peterbuga commented on May 26, 2024

i have to assume you added/have a Sonoff bulb (or some other new device i haven't come across yet)in which case please update the component with the latest master/websocket branch.

otherwise please run this steps https://github.com/peterbuga/HASS-sonoff-ewelink/tree/master/sonoff-debug and attach the output

from hass-sonoff-ewelink.

stephanerosi avatar stephanerosi commented on May 26, 2024

I have a Sonoff B1
I'm on latest master branch
Here is the debug output :

[
  {
    "__v": 0, 
    "_id": "[hidden]", 
    "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "brandName": "Maker", 
    "createdAt": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "deviceStatus": "", 
    "deviceUrl": "", 
    "deviceid": "[hidden]", 
    "devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "extra": {
      "_id": "[hidden]", 
      "extra": {
        "apmac": "xx:xx:xx:xx:xx:xx", 
        "brandId": "5611402280a0e2630f7b102d", 
        "description": "WWJG001069", 
        "mac": "xx:xx:xx:xx:xx:xx", 
        "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", 
        "model": "ITA-GZ1-GL", 
        "modelInfo": "5655cb0c93991b740423d1ba", 
        "ui": "\u5f00\u5173\u6539\u88c5\u6a21\u5757", 
        "uiid": 14
      }
    }, 
    "group": "", 
    "groups": [
      "5a7b72b3e22090d758b3f825"
    ], 
    "ip": "[hidden]", 
    "location": "", 
    "name": "[hidden]",, 
    "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "online": true, 
    "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "params": {
      "bindInfos": {
        "gaction": [
          "fe2c6708-3cb7-4ed6-b7cd-6d1efe67ff2e_ewelink-google-home-v1"
        ]
      }, 
      "controlType": "7", 
      "fwVersion": "2.6.1", 
      "init": 1, 
      "partnerApikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
      "pulse": "off", 
      "pulseWidth": 500, 
      "rssi": -63, 
      "sledOnline": "off", 
      "staMac": "xx:xx:xx:xx:xx:xx", 
      "startup": "off", 
      "switch": "on"
    }, 
    "productModel": "Sonoff", 
    "settings": {
      "alarmNotify": 1, 
      "opsHistory": 1, 
      "opsNotify": 0
    }, 
    "sharedTo": [], 
    "showBrand": true, 
    "type": "10", 
    "uiid": 14
  }, 
  {
    "__v": 0, 
    "_id": "[hidden]", 
    "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "brandName": "ITEAD", 
    "createdAt": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "deviceStatus": "", 
    "deviceUrl": "", 
    "deviceid": "[hidden]", 
    "devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "extra": {
      "_id": "[hidden]", 
      "extra": {
        "apmac": "xx:xx:xx:xx:xx:xx", 
        "brandId": "55e00a982ed643527f31425d", 
        "description": "WWJG001126", 
        "mac": "xx:xx:xx:xx:xx:xx", 
        "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", 
        "model": "PSF-A01-GL", 
        "modelInfo": "57d005f3867348e427b2c791", 
        "ui": "\u5355\u901a\u9053\u5f00\u5173", 
        "uiid": 6
      }
    }, 
    "group": "", 
    "groups": [], 
    "ip": "[hidden]", 
    "location": "", 
    "name": "[hidden]",, 
    "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "online": true, 
    "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "params": {
      "bindInfos": {
        "gaction": [
          "fe2c6708-3cb7-4ed6-b7cd-6d1efe67ff2e_ewelink-google-home-v1"
        ]
      }, 
      "controlType": "7", 
      "fwVersion": "1.8.1", 
      "partnerApikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
      "rssi": -72, 
      "staMac": "xx:xx:xx:xx:xx:xx", 
      "startup": "off", 
      "switch": "off"
    }, 
    "productModel": "Sonoff Touch EUC1", 
    "settings": {
      "alarmNotify": 1, 
      "opsHistory": 1, 
      "opsNotify": 0
    }, 
    "sharedTo": [], 
    "showBrand": true, 
    "type": "10", 
    "uiid": 6
  }, 
  {
    "__v": 0, 
    "_id": "[hidden]", 
    "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "brandName": "ITEAD", 
    "createdAt": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "deviceStatus": "", 
    "deviceUrl": "", 
    "deviceid": "[hidden]", 
    "devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "extra": {
      "_id": "[hidden]", 
      "extra": {
        "apmac": "xx:xx:xx:xx:xx:xx", 
        "brandId": "55e00a982ed643527f31425d", 
        "description": "WWJG001126", 
        "mac": "xx:xx:xx:xx:xx:xx", 
        "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", 
        "model": "PSF-A01-GL", 
        "modelInfo": "57d005f3867348e427b2c791", 
        "ui": "\u5355\u901a\u9053\u5f00\u5173", 
        "uiid": 6
      }
    }, 
    "group": "", 
    "groups": [], 
    "ip": "[hidden]", 
    "location": "", 
    "name": "[hidden]",, 
    "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "online": true, 
    "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "params": {
      "bindInfos": {
        "gaction": [
          "fe2c6708-3cb7-4ed6-b7cd-6d1efe67ff2e_ewelink-google-home-v1"
        ]
      }, 
      "controlType": "7", 
      "fwVersion": "2.6.1", 
      "init": 1, 
      "partnerApikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
      "pulse": "off", 
      "pulseWidth": 500, 
      "rssi": -55, 
      "sledOnline": "off", 
      "staMac": "xx:xx:xx:xx:xx:xx", 
      "startup": "off", 
      "switch": "off"
    }, 
    "productModel": "Sonoff Touch EUC1", 
    "settings": {
      "alarmNotify": 1, 
      "opsHistory": 1, 
      "opsNotify": 1
    }, 
    "sharedTo": [], 
    "showBrand": true, 
    "type": "10", 
    "uiid": 6
  }, 
  {
    "__v": 0, 
    "_id": "[hidden]", 
    "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "brandName": "ITEAD", 
    "createdAt": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "deviceStatus": "", 
    "deviceUrl": "", 
    "deviceid": "[hidden]", 
    "devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "extra": {
      "_id": "[hidden]", 
      "extra": {
        "apmac": "xx:xx:xx:xx:xx:xx", 
        "brandId": "55e00a982ed643527f31425d", 
        "description": "WWJG001126", 
        "mac": "xx:xx:xx:xx:xx:xx", 
        "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", 
        "model": "PSF-A01-GL", 
        "modelInfo": "57d005f3867348e427b2c791", 
        "ui": "\u5355\u901a\u9053\u5f00\u5173", 
        "uiid": 6
      }
    }, 
    "group": "", 
    "groups": [], 
    "ip": "[hidden]", 
    "location": "", 
    "name": "[hidden]",, 
    "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "online": true, 
    "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "params": {
      "bindInfos": {
        "gaction": [
          "fe2c6708-3cb7-4ed6-b7cd-6d1efe67ff2e_ewelink-google-home-v1"
        ]
      }, 
      "controlType": "7", 
      "fwVersion": "2.6.1", 
      "init": 1, 
      "pulse": "off", 
      "pulseWidth": 500, 
      "rssi": -47, 
      "sledOnline": "off", 
      "staMac": "xx:xx:xx:xx:xx:xx", 
      "startup": "off", 
      "switch": "off"
    }, 
    "productModel": "Sonoff Touch EUC1", 
    "settings": {
      "alarmNotify": 1, 
      "opsHistory": 1, 
      "opsNotify": 0
    }, 
    "sharedTo": [], 
    "showBrand": true, 
    "type": "10", 
    "uiid": 6
  }, 
  {
    "__v": 0, 
    "_id": "[hidden]", 
    "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "brandName": "ITEAD", 
    "createdAt": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "deviceStatus": "", 
    "deviceUrl": "", 
    "deviceid": "[hidden]", 
    "devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "extra": {
      "_id": "[hidden]", 
      "extra": {
        "apmac": "xx:xx:xx:xx:xx:xx", 
        "brandId": "55e00a982ed643527f31425d", 
        "description": "WWJG001126", 
        "mac": "xx:xx:xx:xx:xx:xx", 
        "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", 
        "model": "PSF-A01-GL", 
        "modelInfo": "57d005f3867348e427b2c791", 
        "ui": "\u5355\u901a\u9053\u5f00\u5173", 
        "uiid": 6
      }
    }, 
    "group": "", 
    "groups": [
      "5a7b72b3e22090d758b3f825"
    ], 
    "ip": "[hidden]", 
    "location": "", 
    "name": "[hidden]",, 
    "online": true, 
    "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "params": {
      "bindInfos": {
        "gaction": [
          "fe2c6708-3cb7-4ed6-b7cd-6d1efe67ff2e_ewelink-google-home-v1"
        ]
      }, 
      "controlType": 8, 
      "fwVersion": "2.6.1", 
      "init": 1, 
      "partnerApikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
      "pulse": "off", 
      "pulseWidth": 500, 
      "rssi": -45, 
      "sledOnline": "off", 
      "staMac": "xx:xx:xx:xx:xx:xx", 
      "startup": "off", 
      "switch": "on"
    }, 
    "productModel": "Sonoff Touch EUC1", 
    "settings": {
      "alarmNotify": 1, 
      "opsHistory": 1, 
      "opsNotify": 0
    }, 
    "sharedTo": [], 
    "showBrand": true, 
    "type": "10", 
    "uiid": 6
  }, 
  {
    "__v": 0, 
    "_id": "[hidden]", 
    "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "brandName": "Sonoff", 
    "createdAt": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "deviceStatus": "", 
    "deviceUrl": "", 
    "deviceid": "[hidden]", 
    "devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
    "extra": {
      "_id": "[hidden]", 
      "extra": {
        "apmac": "xx:xx:xx:xx:xx:xx", 
        "brandId": "58e5f344baeb368720e25469", 
        "description": "WWJG001266", 
        "mac": "xx:xx:xx:xx:xx:xx", 
        "manufacturer": "\u6df1\u5733\u677e\u8bfa\u6280\u672f\u6709\u9650\u516c\u53f8", 
        "model": "PSF-BLB-GL", 
        "modelInfo": "5a2e1aff0cf772f92c342efc", 
        "ui": "RGB\u4e94\u8272\u7403\u6ce1\u706f", 
        "uiid": 22
      }
    }, 
    "group": "", 
    "groups": [
      "5a7b72b3e22090d758b3f825"
    ], 
    "ip": "[hidden]", 
    "location": "", 
    "name": "[hidden]",, 
    "online": true, 
    "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", 
    "params": {
      "bindInfos": {
        "gaction": [
          "fe2c6708-3cb7-4ed6-b7cd-6d1efe67ff2e_ewelink-google-home-v1"
        ]
      }, 
      "channel0": "0", 
      "channel1": "255", 
      "channel2": "0", 
      "channel3": "0", 
      "channel4": "0", 
      "controlType": 8, 
      "fwVersion": "2.6.0", 
      "partnerApikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 
      "rssi": -50, 
      "staMac": "xx:xx:xx:xx:xx:xx", 
      "state": "on"
    }, 
    "productModel": "B1_R2", 
    "settings": {
      "alarmNotify": 1, 
      "opsHistory": 1, 
      "opsNotify": 0
    }, 
    "sharedTo": [], 
    "showBrand": true, 
    "type": "10", 
    "uiid": 22
  }
]

from hass-sonoff-ewelink.

peterbuga avatar peterbuga commented on May 26, 2024

I took a better look at the 1st post with the error and I can tell 100% that you are not using the latest code! please remove all the sonoff.py and use the latest code from master, websocket or even v0.3.1 and your problem should be fixed 😉

from hass-sonoff-ewelink.

Related Issues (20)

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.