peterbuga / HASS-sonoff-ewelink

Home Assistant component to control Sonoff/eWeLink devices with original firmware
MIT License
797 stars 294 forks source link

New device WiFi Smart Circuit Breaker + Sonoff Hum #78

Open kuradi opened 5 years ago

kuradi commented 5 years ago

https://www.aliexpress.com/item/3P-WiFi-Smart-Circuit-Breaker-Automatic-Switch-overload-short-circuit-protection-for-Amazon-Alexa-and-Google/32954500280.html?spm=a2g0s.9042311.0.0.27424c4d2e8iCD

[
  {
    "__v": 0,
    "_id": "[hidden]",
    "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "brandLogoUrl": "",
    "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": "",
        "mac": "xx:xx:xx:xx:xx:xx",
        "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8",
        "model": "PSA-BTA-GL",
        "modelInfo": "57e4e659ae0f76857b1603ae",
        "ui": "\u4e09\u6863\u52a0\u6e7f\u5668",
        "uiid": 19
      }
    },
    "group": "",
    "groups": [],
    "ip": "[hidden]",
    "location": "",
    "name": "[hidden]",
    "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
    "online": false,
    "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
    "params": {
      "fwVersion": "2.0.2",
      "mode": "normal",
      "password": "",
      "rssi": -60,
      "ssid": "",
      "staMac": "xx:xx:xx:xx:xx:xx",
      "state": 0,
      "switch": "off",
      "water": 1
    },
    "productModel": "Sonoff Hum",
    "settings": {
      "alarmNotify": 1,
      "opsHistory": 1,
      "opsNotify": 0
    },
    "sharedTo": [],
    "showBrand": true,
    "type": "10",
    "uiid": 19
  },
  {
    "__v": 0,
    "_id": "[hidden]",
    "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "brandLogoUrl": "",
    "brandName": "WDYK",
    "createdAt": "xxxx-xx-xxxxx:xx:xx.xxx",
    "deviceUrl": "",
    "deviceid": "[hidden]",
    "devicekey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "extra": {
      "_id": "[hidden]",
      "extra": {
        "apmac": "xx:xx:xx:xx:xx:xx",
        "brandId": "5b97ab4db4f633024aa10e4f",
        "chipid": "00C1F9C5",
        "description": "20181226006",
        "mac": "xx:xx:xx:xx:xx:xx",
        "manufacturer": "\u6d59\u6c5f\u601d\u521b\u7535\u529b\u79d1\u6280\u80a1\u4efd\u6709\u9650\u516c\u53f8",
        "model": "PSF-B01-GL",
        "modelInfo": "5b99ce654854868a31c35364",
        "staMac": "xx:xx:xx:xx:xx:xx",
        "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": {
      "fwVersion": "3.0.0",
      "init": 1,
      "pulse": "off",
      "pulseWidth": 500,
      "rssi": -55,
      "sledOnline": "on",
      "staMac": "xx:xx:xx:xx:xx:xx",
      "startup": "stay",
      "switch": "on",
      "version": 8
    },
    "productModel": "ZJSB9-80",
    "settings": {
      "alarmNotify": 1,
      "opsHistory": 1,
      "opsNotify": 0
    },
    "sharedTo": [],
    "showBrand": true,
    "type": "10",
    "uiid": 6
  }
]
peterbuga commented 5 years ago

Hi, thanks for posting the output!

From what I see you actually have 2 new devices here: a Sonoff Hum and the one you posted in the link description.

The Sonoff Hum has not been tested/added yet, but it looks like the on/off feature should work just fine. Do you use this device? Would you be kind enough to offer a few more details about it, because it has new settings that I would like to get ahold of?

The WiFi Smart Circuit Breaker should work just fine right now, as it offers just on/off capabilities. Can you please go a bit into details and let me know exactly what model you have and what you would like to see implemented about it ? (or you just want to add it to the compatibility list?? I assume it might be 1P

kuradi commented 5 years ago

yeah, i saw it afterwards that i posted 2 items :) hum is this one https://www.aliexpress.com/item/Sonoff-Hum-Ultra-Quite-3-0-L-Wifi-Control-Humidifier-IOS-Android-Remote-ON-OFF-Timing/32821552902.html?spm=a2g0s.9042311.0.0.27424c4dijssYB 3 operation modes, on/off, low water alert

circuit breaker - i have this same model i linked, 3 phases. basically im looking on/off (and maybe wifi signal sensor) options

peterbuga commented 5 years ago

just to be clear for the circuit breaker in the ewelink app you have on/off for all 3 phases at once, right? if so, by the look of the dump it's more or less like a sonoff basic (and others alike) with the wifi signal data already available as attribute and it should work just fine with HA. otherwise please send me a screenshot of the device from the app.

for the humidifier, please send me a couple of other dumps:

  1. create a dump for each (intensity) mode and rename them accordingly
  2. create a dump when the water is ok and another with water alert

thanks.

kuradi commented 5 years ago

hum -> you need to help me a little bit. how to create dump? is it still same json file? circuit -> 3phases at once yes. screenshot added Screenshot_2019-04-02-02-01-35-419_com coolkit

kuradi commented 5 years ago

ah ok. take a look. is that what you wanted?

////////////////////////////// water shortage, switch off ////////////////////////////// { "__v": 0, "_id": "[hidden]", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "brandLogoUrl": "", "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": "", "mac": "xx:xx:xx:xx:xx:xx", "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", "model": "PSA-BTA-GL", "modelInfo": "57e4e659ae0f76857b1603ae", "staMac": "xx:xx:xx:xx:xx:xx", "ui": "\u4e09\u6863\u52a0\u6e7f\u5668", "uiid": 19 } }, "group": "", "groups": [], "ip": "[hidden]", "location": "", "name": "[hidden]",, "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "online": true, "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "params": { "fwVersion": "2.7.0", "mode": "normal", "password": "", "rssi": -47, "sledOnline": "on", "ssid": "", "staMac": "xx:xx:xx:xx:xx:xx", "state": 3, "switch": "off", "timers": [], "water": 0 }, "productModel": "Sonoff Hum", "settings": { "alarmNotify": 1, "opsHistory": 1, "opsNotify": 0 }, "sharedTo": [], "showBrand": true, "type": "10", "uiid": 19 }

////////////////////////////// water shortage, switch on, position 1 ////////////////////////////// { "__v": 0, "_id": "[hidden]", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "brandLogoUrl": "", "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": "", "mac": "xx:xx:xx:xx:xx:xx", "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\ u9650\u516c\u53f8", "model": "PSA-BTA-GL", "modelInfo": "57e4e659ae0f76857b1603ae", "staMac": "xx:xx:xx:xx:xx:xx", "ui": "\u4e09\u6863\u52a0\u6e7f\u5668", "uiid": 19 } }, "group": "", "groups": [], "ip": "[hidden]", "location": "", "name": "[hidden]",, "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "online": true, "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "params": { "fwVersion": "2.7.0", "mode": "normal", "password": "", "rssi": -47, "sledOnline": "on", "ssid": "", "staMac": "xx:xx:xx:xx:xx:xx", "state": 1, "switch": "on", "timers": [], "water": 0 }, "productModel": "Sonoff Hum", "settings": { "alarmNotify": 1, "opsHistory": 1, "opsNotify": 0 }, "sharedTo": [], "showBrand": true, "type": "10", "uiid": 19 }

////////////////////////////// water shortage, switch on, position 2 ////////////////////////////// { "__v": 0, "_id": "[hidden]", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "brandLogoUrl": "", "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": "", "mac": "xx:xx:xx:xx:xx:xx", "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", "model": "PSA-BTA-GL", "modelInfo": "57e4e659ae0f76857b1603ae", "staMac": "xx:xx:xx:xx:xx:xx", "ui": "\u4e09\u6863\u52a0\u6e7f\u5668", "uiid": 19 } }, "group": "", "groups": [], "ip": "[hidden]", "location": "", "name": "[hidden]",, "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "online": true, "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "params": { "fwVersion": "2.7.0", "mode": "normal", "password": "", "rssi": -47, "sledOnline": "on", "ssid": "", "staMac": "xx:xx:xx:xx:xx:xx", "state": 2, "switch": "on", "timers": [], "water": 0 }, "productModel": "Sonoff Hum", "settings": { "alarmNotify": 1, "opsHistory": 1, "opsNotify": 0 }, "sharedTo": [], "showBrand": true, "type": "10", "uiid": 19 }

////////////////////////////// water shortage, switch on, position 3 //////////////////////////////

{ "__v": 0, "_id": "[hidden]", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "brandLogoUrl": "", "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": "", "mac": "xx:xx:xx:xx:xx:xx", "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", "model": "PSA-BTA-GL", "modelInfo": "57e4e659ae0f76857b1603ae", "staMac": "xx:xx:xx:xx:xx:xx", "ui": "\u4e09\u6863\u52a0\u6e7f\u5668", "uiid": 19 } }, "group": "", "groups": [], "ip": "[hidden]", "location": "", "name": "[hidden]",, "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "online": true, "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "params": { "fwVersion": "2.7.0", "mode": "normal", "password": "", "rssi": -47, "sledOnline": "on", "ssid": "", "staMac": "xx:xx:xx:xx:xx:xx", "state": 3, "switch": "on", "timers": [], "water": 0 }, "productModel": "Sonoff Hum", "settings": { "alarmNotify": 1, "opsHistory": 1, "opsNotify": 0 }, "sharedTo": [], "showBrand": true, "type": "10", "uiid": 19 }

////////////////////////////// water normal, switch off ////////////////////////////// { "__v": 0, "_id": "[hidden]", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "brandLogoUrl": "", "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": "", "mac": "xx:xx:xx:xx:xx:xx", "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", "model": "PSA-BTA-GL", "modelInfo": "57e4e659ae0f76857b1603ae", "staMac": "xx:xx:xx:xx:xx:xx", "ui": "\u4e09\u6863\u52a0\u6e7f\u5668", "uiid": 19 } }, "group": "", "groups": [], "ip": "[hidden]", "location": "", "name": "[hidden]",, "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "online": true, "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "params": { "fwVersion": "2.7.0", "mode": "normal", "password": "", "rssi": -47, "sledOnline": "on", "ssid": "", "staMac": "xx:xx:xx:xx:xx:xx", "state": 3, "switch": "off", "timers": [], "water": 1 }, "productModel": "Sonoff Hum", "settings": { "alarmNotify": 1, "opsHistory": 1, "opsNotify": 0 }, "sharedTo": [], "showBrand": true, "type": "10", "uiid": 19 }

////////////////////////////// water normal, switch on, position 1 ////////////////////////////// { "__v": 0, "_id": "[hidden]", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "brandLogoUrl": "", "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": "", "mac": "xx:xx:xx:xx:xx:xx", "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", "model": "PSA-BTA-GL", "modelInfo": "57e4e659ae0f76857b1603ae", "staMac": "xx:xx:xx:xx:xx:xx", "ui": "\u4e09\u6863\u52a0\u6e7f\u5668", "uiid": 19 } }, "group": "", "groups": [], "ip": "[hidden]", "location": "", "name": "[hidden]",, "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "online": true, "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "params": { "fwVersion": "2.7.0", "mode": "normal", "password": "", "rssi": -47, "sledOnline": "on", "ssid": "", "staMac": "xx:xx:xx:xx:xx:xx", "state": 1, "switch": "on", "timers": [], "water": 1 }, "productModel": "Sonoff Hum", "settings": { "alarmNotify": 1, "opsHistory": 1, "opsNotify": 0 }, "sharedTo": [], "showBrand": true, "type": "10", "uiid": 19 }

////////////////////////////// water normal, switch on, position 2 ////////////////////////////// { "__v": 0, "_id": "[hidden]", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "brandLogoUrl": "", "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": "", "mac": "xx:xx:xx:xx:xx:xx", "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", "model": "PSA-BTA-GL", "modelInfo": "57e4e659ae0f76857b1603ae", "staMac": "xx:xx:xx:xx:xx:xx", "ui": "\u4e09\u6863\u52a0\u6e7f\u5668", "uiid": 19 } }, "group": "", "groups": [], "ip": "[hidden]", "location": "", "name": "[hidden]",, "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "online": true, "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "params": { "fwVersion": "2.7.0", "mode": "normal", "password": "", "rssi": -47, "sledOnline": "on", "ssid": "", "staMac": "xx:xx:xx:xx:xx:xx", "state": 2, "switch": "on", "timers": [], "water": 1 }, "productModel": "Sonoff Hum", "settings": { "alarmNotify": 1, "opsHistory": 1, "opsNotify": 0 }, "sharedTo": [], "showBrand": true, "type": "10", "uiid": 19 }

////////////////////////////// water normal, switch on, position 3 ////////////////////////////// { "__v": 0, "_id": "[hidden]", "apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "brandLogoUrl": "", "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": "", "mac": "xx:xx:xx:xx:xx:xx", "manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8", "model": "PSA-BTA-GL", "modelInfo": "57e4e659ae0f76857b1603ae", "staMac": "xx:xx:xx:xx:xx:xx", "ui": "\u4e09\u6863\u52a0\u6e7f\u5668", "uiid": 19 } }, "group": "", "groups": [], "ip": "[hidden]", "location": "", "name": "[hidden]",, "offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "online": true, "onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx", "params": { "fwVersion": "2.7.0", "mode": "normal", "password": "", "rssi": -47, "sledOnline": "on", "ssid": "", "staMac": "xx:xx:xx:xx:xx:xx", "state": 3, "switch": "on", "timers": [], "water": 1 }, "productModel": "Sonoff Hum", "settings": { "alarmNotify": 1, "opsHistory": 1, "opsNotify": 0 }, "sharedTo": [], "showBrand": true, "type": "10", "uiid": 19 } Screenshot_2019-04-02-02-30-24-215_com coolkit

peterbuga commented 5 years ago

thanks! it's perfect!

kuradi commented 5 years ago

thanks! it's perfect!

any news here maybe?

peterbuga commented 5 years ago

unfortunately no. this week's easter for me too and i started rewriting the whole component to make it more versatile to adding new devices, next major update maybe in a month or so

kuradi commented 5 years ago

unfortunately no. this week's easter for me too and i started rewriting the whole component to make it more versatile to adding new devices, next major update maybe in a month or so

maybe now some updates?

kuradi commented 5 years ago

@peterbuga how about now? :)

kuradi commented 5 years ago

@peterbuga master, are there any news? :)

kuradi commented 4 years ago

@peterbuga i understand there is no updates coming, so this issue may be closed.