Issues with latest update with 0.92.1

Hi,
seems you need to add a simple manifest.json like
{
"domain": "demo",
"name": "HASS-sonoff-ewelink",
"documentation": "https://github.com/peterbuga/HASS-sonoff-ewelink",
"dependencies": [],
"codeowners": [],
"requirements": []
}
to the sonoff folder.
But even when it seems to work, I got a few of those during startup
....
Apr 28 12:15:35 raspberrypi hass[19167]: Traceback (most recent call last):
Apr 28 12:15:35 raspberrypi hass[19167]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 12:15:35 raspberrypi hass[19167]:     result = coro.send(None)
Apr 28 12:15:35 raspberrypi hass[19167]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 12:15:35 raspberrypi hass[19167]:     raise HomeAssistantError(msg)
Apr 28 12:15:35 raspberrypi hass[19167]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10000ba9ee_power
Apr 28 12:15:46 raspberrypi hass[19167]: 2019-04-28 12:15:46 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to home/OpenMQTTGateway1/433toMQTT
Apr 28 12:15:46 raspberrypi hass[19167]: 2019-04-28 12:15:46 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to home/OpenMQTTGateway1/433toMQTT
,,,
Seems very similar to #16 and #19
Output of sonoff-debug.py looks OK. How can I delete all "old" entries? Are they stored in some file? I upgraded from 0.91 to latest version.
[
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "",
"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": "WWJG000894",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8",
"model": "PSC-B01-GL",
"modelInfo": "578df9d0cc81455a5831eaea",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u529f\u7387\u68c0\u6d4b\u5355\u901a\u9053\u63d2\u5ea7",
"uiid": 5
}
},
"group": "",
"groups": [
"5b812755fd6affeaa4fa3645"
],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"fwVersion": "2.6.1",
"hundredDaysKwh": "get",
"init": 1,
"power": "314",
"rssi": -73,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"startup": "off",
"switch": "on",
"timeZone": 1,
"uiActive": 60
},
"productModel": "Sonoff Pow",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 5
},
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "",
"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",
"chipid": "00956EC5",
"description": "",
"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",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u5f00\u5173\u6539\u88c5\u6a21\u5757",
"uiid": 14
}
},
"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.1",
"init": 1,
"pulse": "off",
"pulseWidth": 500,
"rssi": -56,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"startup": "off",
"switch": "off",
"version": 8
},
"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",
"brandLogoUrl": "",
"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": "WWJG000894",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8",
"model": "PSC-B01-GL",
"modelInfo": "578df9d0cc81455a5831eaea",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u529f\u7387\u68c0\u6d4b\u5355\u901a\u9053\u63d2\u5ea7",
"uiid": 5
}
},
"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.6.1",
"hundredDaysKwh": "get",
"init": 1,
"oneKwh": "get",
"power": "5",
"rssi": -45,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"startup": "off",
"switch": "on",
"timeZone": 1,
"uiActive": 60
},
"productModel": "Sonoff Pow",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 5
},
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "",
"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": "WWJG001140",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8",
"model": "PSC-B01-GL",
"modelInfo": "578df9d0cc81455a5831eaea",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u529f\u7387\u68c0\u6d4b\u5355\u901a\u9053\u63d2\u5ea7",
"uiid": 5
}
},
"group": "",
"groups": [
"5b812755fd6affeaa4fa3645"
],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"fwVersion": "2.6.1",
"init": 1,
"power": "248",
"rssi": -50,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"startup": "off",
"switch": "on",
"timeZone": 2,
"uiActive": 60
},
"productModel": "Sonoff Pow",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 5
},
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "https://eu-ota.coolkit.cc/logo/KRZ54OifuGmjoEMxT1YYM3Ybu2fj5K2C.png",
"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": "WWJG001283",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u677e\u8bfa\u6280\u672f\u6709\u9650\u516c\u53f8",
"model": "PSC-B01-GL",
"modelInfo": "5a2e1ae10cf772f92c342ef5",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u529f\u7387\u68c0\u6d4b\u5355\u901a\u9053\u63d2\u5ea7",
"uiid": 5
}
},
"group": "",
"groups": [
"5b812633fd6affeaa4fa3627"
],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"endTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"fwVersion": "2.6.1",
"hundredDaysKwh": "get",
"init": 1,
"oneKwh": "get",
"power": "117",
"rssi": -50,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"startTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"startup": "off",
"switch": "on",
"timeZone": 2,
"uiActive": 60
},
"productModel": "Pow",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 5
},
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "",
"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": "WWJG001122",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8",
"model": "PSF-A04-GL",
"modelInfo": "5852052a208cd1e919585313",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u56db\u901a\u9053\u63d2\u5ea7",
"uiid": 4
}
},
"group": "",
"groups": [],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"configure": [
{
"outlet": 0,
"startup": "off"
},
{
"outlet": 1,
"startup": "off"
},
{
"outlet": 2,
"startup": "off"
},
{
"outlet": 3,
"startup": "off"
}
],
"fwVersion": "2.7.1",
"init": 1,
"pulse": "off",
"pulseWidth": 0,
"rssi": -60,
"staMac": "xx:xx:xx:xx:xx:xx",
"switches": [
{
"outlet": 0,
"switch": "on"
},
{
"outlet": 1,
"switch": "on"
},
{
"outlet": 2,
"switch": "on"
},
{
"outlet": 3,
"switch": "on"
}
]
},
"productModel": "Sonoff 4CH",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"tags": {
"ck_channel_name": {
"0": "FreeNAS2",
"1": "FreeNAS3",
"2": "FreeNAS1",
"3": "Tevo"
}
},
"type": "10",
"uiid": 4
},
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "https://eu-ota.coolkit.cc/logo/KRZ54OifuGmjoEMxT1YYM3Ybu2fj5K2C.png",
"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": "WO18408",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u677e\u8bfa\u6280\u672f\u6709\u9650\u516c\u53f8",
"model": "PSC-B67-GL",
"modelInfo": "5a2e1ae50cf772f92c342ef6",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u529f\u7387\u68c0\u6d4b\u63d2\u5ea7\u8fc7\u8f7d\u544a\u8b66",
"uiid": 32
}
},
"group": "",
"groups": [],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"alarmCValue": [
-1,
-1
],
"alarmPValue": [
-1,
-1
],
"alarmType": "pcv",
"alarmVValue": [
-1,
-1
],
"current": "0.00",
"fwVersion": "2.8.0",
"init": 1,
"oneKwh": "stop",
"power": "0.00",
"rssi": -59,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"switch": "on",
"timeZone": 1,
"uiActive": 60,
"voltage": "230.97"
},
"productModel": "Pow_R2",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 32
},
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "https://eu-ota.coolkit.cc/logo/KRZ54OifuGmjoEMxT1YYM3Ybu2fj5K2C.png",
"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": "WO18408",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u677e\u8bfa\u6280\u672f\u6709\u9650\u516c\u53f8",
"model": "PSC-B67-GL",
"modelInfo": "5a2e1ae50cf772f92c342ef6",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u529f\u7387\u68c0\u6d4b\u63d2\u5ea7\u8fc7\u8f7d\u544a\u8b66",
"uiid": 32
}
},
"group": "",
"groups": [],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"alarmCValue": [
-1,
-1
],
"alarmPValue": [
-1,
-1
],
"alarmType": "pcv",
"alarmVValue": [
-1,
-1
],
"current": "1.17",
"fwVersion": "2.8.0",
"init": 1,
"oneKwh": "stop",
"power": "201.39",
"rssi": -44,
"sledOnline": "on",
"staMac": "xx:xx:xx:xx:xx:xx",
"switch": "on",
"timeZone": 1,
"uiActive": 60,
"voltage": "233.72"
},
"productModel": "Pow_R2",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"type": "10",
"uiid": 32
},
{
"__v": 0,
"_id": "[hidden]",
"apikey": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"brandLogoUrl": "",
"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": "WWJG000950",
"mac": "xx:xx:xx:xx:xx:xx",
"manufacturer": "\u6df1\u5733\u521b\u6613\u667a\u80fd\u7cfb\u7edf\u6709\u9650\u516c\u53f8",
"model": "PSF-A04-GL",
"modelInfo": "5852052a208cd1e919585313",
"staMac": "xx:xx:xx:xx:xx:xx",
"ui": "\u56db\u901a\u9053\u63d2\u5ea7",
"uiid": 4
}
},
"group": "",
"groups": [],
"ip": "[hidden]",
"location": "",
"name": "[hidden]",,
"offlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"online": true,
"onlineTime": "xxxx-xx-xxxxx:xx:xx.xxx",
"params": {
"configure": [
{
"outlet": 0,
"startup": "off"
},
{
"outlet": 1,
"startup": "off"
},
{
"outlet": 2,
"startup": "off"
},
{
"outlet": 3,
"startup": "off"
}
],
"fwVersion": "2.7.1",
"init": 1,
"pulse": "off",
"pulseWidth": 0,
"rssi": -50,
"staMac": "xx:xx:xx:xx:xx:xx",
"switches": [
{
"outlet": 0,
"switch": "off"
},
{
"outlet": 1,
"switch": "on"
},
{
"outlet": 2,
"switch": "off"
},
{
"outlet": 3,
"switch": "on"
}
]
},
"productModel": "Sonoff 4CH",
"settings": {
"alarmNotify": 1,
"opsHistory": 1,
"opsNotify": 0
},
"sharedTo": [],
"showBrand": true,
"tags": {
"ck_channel_name": {
"0": "PC Monitor",
"1": "PC Storage",
"2": "CH 3",
"3": "PC"
}
},
"type": "10",
"uiid": 4
}
]

hi @jkoenig72
i've just read about the manifest.json new requirement and according to docs it's not mandatory to a custom component, i might ignore it for now
Home Assistant 0.92 introduces a new manifest.json for integrations. This file, which is optional for custom components, is used by integrations to specify metadata: name, link to the documentation, dependencies, requirements and code owners.

as for your error Apr 28 12:15:35 raspberrypi hass[19167]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10000ba9ee_power unfortunately i cannot understand why or how this might happen. it's good that you've sent the debug log and i'll try to do some tests with it on my side, but i might need one dump without the removed device IDs if you are willing to share it in private. it's a bit weird, i have to admit.

How can I delete all "old" entries? Are they stored in some file? I upgraded from 0.91 to latest version.

i'm not sure exactly what you mean by this but if you think there are some sonoff entries pre-HA update that might that might mess up the current state i have to say that this is not the case, or at least I hope it is like this and there are no other HA changes that I'm not aware of :| all the sonoff entities are generated up HA startup nothing is saved

Thanks - I was hoping there is some file created with those IDs.

I did a fresh install - same

Was fine with 0.91

How can I provide you more debug info?
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 ERROR (Thread-22) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x69305b30>>: 'NoneType' object has no attribute 'attributes'
Apr 28 17:13:11 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/websocket/_app.py", line 343, in _callback
Apr 28 17:13:11 raspberrypi hass[22932]:     callback(*args)
Apr 28 17:13:11 raspberrypi hass[22932]:   File "/home/homeassistant/.homeassistant/custom_components/sonoff/init.py", line 311, in on_message
Apr 28 17:13:11 raspberrypi hass[22932]:     self.set_entity_state(data['deviceid'], data['params']['switch'])
Apr 28 17:13:11 raspberrypi hass[22932]:   File "/home/homeassistant/.homeassistant/custom_components/sonoff/init.py", line 337, in set_entity_state
Apr 28 17:13:11 raspberrypi hass[22932]:     attr = self._hass.states.get(entity_id).attributes
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to home/OpenMQTTGateway1/433toMQTT
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to milight/update/0x1/rgbw/2
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to milight/update/0x2/rgbw/2
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to milight/update/0x2/rgbw/3
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to milight/update/0x2/rgbw/4
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to milight/update/0x2/rgbw/1
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to milight/update/0x1/rgbw/1
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to milight/update/0x1/rgbw/4
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 DEBUG (MainThread) [homeassistant.components.mqtt] Subscribing to milight/update/0x1/rgbw/3
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10001044b6_3
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_1000241a10
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10004c6901
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10001044b6_2
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_1000201747_4
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10001044b6_4
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10003a2c78
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_1000201747_1
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10001044b6_1
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10000baa07
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_1000201747_3
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10000ba9ee
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10004c673c
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_1000201747_2
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_debug
Apr 28 17:13:13 raspberrypi hass[22932]: 2019-04-28 17:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:13 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:13 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:13 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:13 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:13 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: switch.sonoff_10000436f4
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10000ba9ee_power
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c673c_current
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10000baa07_power
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c6901_current
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_1000241a10_power
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c673c_power
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c6901_power
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c673c_voltage
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10003a2c78_power
Apr 28 17:13:15 raspberrypi hass[22932]: 2019-04-28 17:13:15 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Apr 28 17:13:15 raspberrypi hass[22932]: Traceback (most recent call last):
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
Apr 28 17:13:15 raspberrypi hass[22932]:     result = coro.send(None)
Apr 28 17:13:15 raspberrypi hass[22932]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
Apr 28 17:13:15 raspberrypi hass[22932]:     raise HomeAssistantError(msg)
Apr 28 17:13:15 raspberrypi hass[22932]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c6901_voltage

The funny thing:  it still seems to work. Switches show up

NIce work btw - love it, I know I could flash all those devices but this way its soooo convenient :-)
That line seems to cause it....
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 ERROR (Thread-22) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x69305b30>>: 'NoneType' object has no attribute 'attributes'

NIce work btw - love it, I know I could flash all those devices but this way its soooo convenient :-)
That line seems to cause it....
Apr 28 17:13:11 raspberrypi hass[22932]: 2019-04-28 17:13:11 ERROR (Thread-22) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x69305b30>>: 'NoneType' object has no attribute 'attributes'

exactly same here with sonoff RF / HASS 92.1, but I think is only happening with sonoff-bulb lib and is random a bit. At the moment, last 10 minutes sonoff-bulb is working without errors/warnings.
Maybe ITEAD servers issues? But only with sonoff-bulb lib?

nonetype error showing when hass is restarted, after that, mappingproxy showing instead
2019-05-01 23:29:42 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722fc2f0>>: 'NoneType' object has no attribute 'attributes'
....
2019-05-01 23:30:42 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722fc2f0>>: 'mappingproxy' object has no attribute 'attributes'

@neomvll

2019-05-01 23:30:42 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722fc2f0>>: 'mappingproxy' object has no attribute 'attributes'

this error message got me intrigued, if possible try to enable the debug level (in configuration.yaml) and capture further details because i literally have no idea from where the mappingproxy is showing up from :|

@neomvll

2019-05-01 23:30:42 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x722fc2f0>>: 'mappingproxy' object has no attribute 'attributes'

this error message got me intrigued, if possible try to enable the debug level (in configuration.yaml) and capture further details because i literally have no idea from where the mappingproxy is showing up from :|

Early today(7hours ago) I was changed to sonoff lib, until now no errors.
When I back to home later, I'll change again to sonoff-bulb and try get some debug log

So, sonoff-bulb back and  debug below enabled:
"sonoff:
debug: true"
Same msg in logs, nothing more.
sometimes, when sonoff is turned on, after a few seconds returns the "unavaible" status(
 ) when the 'mappingproxy' msg appears in the log. Then after a few minutes, sonoff back with the right status(

Is there another debug to enable?
"2019-05-02 18:15:33 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x723377f0>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-02 18:17:32 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x723377f0>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-02 18:17:32 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x723377f0>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-02 18:23:06 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x723377f0>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-02 18:29:22 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x723377f0>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-02 18:35:06 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x723377f0>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-02 18:40:06 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x723377f0>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-02 18:42:06 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x723377f0>>: 'mappingproxy' object has no attribute 'attributes'
"

in very a few times this sequence happens:

sonoff turned on manually
msg 'mappingproxy' appears
sonoff turned state unavailable
sonoff turned state off automatically (this is bad)

happened 2 times when I'm testing today

Is there another debug to enable?

add this to configuration.yaml and restart HA
logger:
  default: warning
  logs:
    custom_components.sonoff: debug
    custom_components.sonoff.switch: debug
    custom_components.sonoff.light: debug
    custom_components.sonoff.sensor: debug

ps: the last 3 entries might not work, remove them if they throw further errors, i haven't test them yet :upside_down_face:

my startup output with those logger setting...
May 03 10:40:14 raspberrypi hass[24732]: 2019-05-03 10:40:14 WARNING (MainThread) [homeassistant.components.device_tracker] Updating device list from fritz took longer than the scheduled scan interval 0:00:10
May 03 10:40:18 raspberrypi hass[24732]: 2019-05-03 10:40:18 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10000baa07","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"355"},"from":"device"}
May 03 10:40:18 raspberrypi hass[24732]: 2019-05-03 10:40:18 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10000baa07","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"355"},"from":"device"}
May 03 10:40:18 raspberrypi hass[24732]: 2019-05-03 10:40:18 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10003a2c78","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"162"},"from":"device"}
May 03 10:40:18 raspberrypi hass[24732]: 2019-05-03 10:40:18 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10003a2c78","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"162"},"from":"device"}
May 03 10:40:19 raspberrypi hass[24732]: 2019-05-03 10:40:19 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10000ba9ee","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"4"},"from":"device"}
May 03 10:40:19 raspberrypi hass[24732]: 2019-05-03 10:40:19 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10000ba9ee","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"4"},"from":"device"}
May 03 10:40:21 raspberrypi hass[24732]: 2019-05-03 10:40:21 WARNING (MainThread) [homeassistant.components.mqtt.binary_sensor] No matching payload found for entity: Cellar Door with state_topic: home/OpenMQTTGateway2/433toMQTT
May 03 10:40:21 raspberrypi hass[24732]: 2019-05-03 10:40:21 WARNING (MainThread) [homeassistant.components.mqtt.binary_sensor] No matching payload found for entity: Cellar PIR with state_topic: home/OpenMQTTGateway2/433toMQTT
May 03 10:40:21 raspberrypi hass[24732]: 2019-05-03 10:40:21 WARNING (MainThread) [homeassistant.components.mqtt.binary_sensor] No matching payload found for entity: Cellar Door with state_topic: home/OpenMQTTGateway2/433toMQTT
May 03 10:40:21 raspberrypi hass[24732]: 2019-05-03 10:40:21 WARNING (MainThread) [homeassistant.components.mqtt.binary_sensor] No matching payload found for entity: Cellar PIR with state_topic: home/OpenMQTTGateway2/433toMQTT
May 03 10:40:26 raspberrypi hass[24732]: 2019-05-03 10:40:26 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"1000241a10","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"480"},"from":"device"}
May 03 10:40:26 raspberrypi hass[24732]: 2019-05-03 10:40:26 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"1000241a10","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"480"},"from":"device"}
May 03 10:40:28 raspberrypi hass[24732]: 2019-05-03 10:40:28 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10003a2c78","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"164"},"from":"device"}
May 03 10:40:28 raspberrypi hass[24732]: 2019-05-03 10:40:28 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10003a2c78","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"164"},"from":"device"}
May 03 10:40:29 raspberrypi hass[24732]: 2019-05-03 10:40:29 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004c6901","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"212.61","switch":"on"},"from":"device"}
May 03 10:40:29 raspberrypi hass[24732]: 2019-05-03 10:40:29 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004c6901","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"212.61","switch":"on"},"from":"device"}
May 03 10:40:34 raspberrypi hass[24732]: 2019-05-03 10:40:34 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"1000241a10","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"483"},"from":"device"}
May 03 10:40:34 raspberrypi hass[24732]: 2019-05-03 10:40:34 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"1000241a10","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"483"},"from":"device"}
May 03 10:40:36 raspberrypi hass[24732]: 2019-05-03 10:40:36 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10000baa07","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"356"},"from":"device"}
May 03 10:40:36 raspberrypi hass[24732]: 2019-05-03 10:40:36 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10000baa07","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"356"},"from":"device"}
May 03 10:40:49 raspberrypi hass[24732]: 2019-05-03 10:40:49 INFO (Thread-5) [homeassistant.loader] Loaded jkzone from custom_components.sonoff
May 03 10:40:49 raspberrypi hass[24732]: 2019-05-03 10:40:49 INFO (Thread-8) [homeassistant.loader] Loaded logger from homeassistant.components.logger
May 03 10:40:49 raspberrypi hass[24732]: 2019-05-03 10:40:49 INFO (Thread-11) [homeassistant.loader] Loaded history from homeassistant.components.history
May 03 10:40:49 raspberrypi hass[24732]: 2019-05-03 10:40:49 INFO (Thread-2) [homeassistant.loader] Loaded weather from homeassistant.components.weather
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:49 INFO (Thread-11) [homeassistant.loader] Loaded binary_sensor from homeassistant.components.binary_sensor
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:49 INFO (Thread-21) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:49 INFO (Thread-10) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-19) [homeassistant.loader] Loaded script from homeassistant.components.script
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-16) [homeassistant.loader] Loaded map from homeassistant.components.map
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-12) [homeassistant.loader] Loaded automation from homeassistant.components.automation
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-9) [homeassistant.loader] Loaded camera from homeassistant.components.camera
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-2) [homeassistant.loader] Loaded mqtt from homeassistant.components.mqtt
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-4) [homeassistant.loader] Loaded system_health from homeassistant.components.system_health
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-7) [homeassistant.loader] Loaded sun from homeassistant.components.sun
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-17) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-17) [homeassistant.loader] Loaded homeassistant from homeassistant.components.homeassistant
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-18) [homeassistant.loader] Loaded telegram_bot from homeassistant.components.telegram_bot
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-14) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-6) [homeassistant.loader] Loaded config from homeassistant.components.config
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-15) [homeassistant.loader] Loaded mysensors from homeassistant.components.mysensors
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-8) [homeassistant.loader] Loaded cloud from homeassistant.components.cloud
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-5) [homeassistant.loader] Loaded zoneminder from homeassistant.components.zoneminder
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-3) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-11) [homeassistant.loader] Loaded device_tracker from homeassistant.components.device_tracker
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-21) [homeassistant.loader] Loaded shell_command from homeassistant.components.shell_command
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-20) [homeassistant.loader] Loaded switch from homeassistant.components.switch
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-19) [homeassistant.loader] Loaded updater from homeassistant.components.updater
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-16) [homeassistant.loader] Loaded notify from homeassistant.components.notify
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-12) [homeassistant.loader] Loaded rest_command from homeassistant.components.rest_command
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-10) [homeassistant.loader] Loaded group from homeassistant.components.group
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-9) [homeassistant.loader] Loaded tts from homeassistant.components.tts
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-2) [homeassistant.loader] Loaded tuya from homeassistant.components.tuya
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-7) [homeassistant.loader] Loaded persistent_notification from homeassistant.components.persistent_notification
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-13) [homeassistant.loader] Loaded light from homeassistant.components.light
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (MainThread) [homeassistant.setup] Setting up homeassistant
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (MainThread) [homeassistant.setup] Setup of domain homeassistant took 0.0 seconds.
May 03 10:40:50 raspberrypi hass[24732]: 2019-05-03 10:40:50 INFO (Thread-18) [homeassistant.loader] Loaded http from homeassistant.components.http
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (MainThread) [homeassistant.setup] Setting up persistent_notification
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (MainThread) [homeassistant.setup] Setup of domain persistent_notification took 0.0 seconds.
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-5) [homeassistant.loader] Loaded webhook from homeassistant.components.webhook
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-3) [homeassistant.loader] Loaded zone from homeassistant.components.zone
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-15) [homeassistant.loader] Loaded api from homeassistant.components.api
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-11) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-20) [homeassistant.loader] Loaded auth from homeassistant.components.auth
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-16) [homeassistant.loader] Loaded lovelace from homeassistant.components.lovelace
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-17) [homeassistant.loader] Loaded onboarding from homeassistant.components.onboarding
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-9) [homeassistant.loader] Loaded system_log from homeassistant.components.system_log
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (Thread-7) [homeassistant.loader] Loaded websocket_api from homeassistant.components.websocket_api
May 03 10:40:51 raspberrypi hass[24732]: 2019-05-03 10:40:51 INFO (MainThread) [homeassistant.setup] Setting up logger
May 03 10:40:54 raspberrypi hass[24732]: 2019-05-03 10:40:54 DEBUG (MainThread) [custom_components.sonoff] Create the main object
May 03 10:40:55 raspberrypi hass[24732]: 2019-05-03 10:40:55 INFO (MainThread) [custom_components.sonoff] Found websocket address: eu-pconnect5.coolkit.cc
May 03 10:40:55 raspberrypi hass[24732]: 2019-05-03 10:40:55 DEBUG (Thread-22) [custom_components.sonoff] (re)init websocket
May 03 10:40:56 raspberrypi hass[24732]: 2019-05-03 10:40:56 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"error":0,"apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","config":{"hb":1,"hbInterval":145},"sequence":"15568800559542694"}
May 03 10:41:05 raspberrypi hass[24732]: 2019-05-03 10:41:05 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004c6901","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"210.13","voltage":"233.72","current":"1.20","switch":"on"},"from":"device"}
May 03 10:41:05 raspberrypi hass[24732]: 2019-05-03 10:41:05 ERROR (Thread-22) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x691c33f0>>: 'NoneType' object has no attribute 'attributes'
May 03 10:41:06 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/websocket/_app.py", line 343, in _callback
May 03 10:41:06 raspberrypi hass[24732]:     callback(*args)
May 03 10:41:06 raspberrypi hass[24732]:   File "/home/homeassistant/.homeassistant/custom_components/sonoff/init.py", line 311, in on_message
May 03 10:41:06 raspberrypi hass[24732]:     self.set_entity_state(data['deviceid'], data['params']['switch'])
May 03 10:41:06 raspberrypi hass[24732]:   File "/home/homeassistant/.homeassistant/custom_components/sonoff/init.py", line 337, in set_entity_state
May 03 10:41:06 raspberrypi hass[24732]:     attr = self._hass.states.get(entity_id).attributes
May 03 10:41:06 raspberrypi hass[24732]: 2019-05-03 10:41:06 DEBUG (Thread-22) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10003a2c78","apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","userAgent":"device","ts":0,"params":{"power":"164"},"from":"device"}
May 03 10:41:07 raspberrypi hass[24732]: 2019-05-03 10:41:07 ERROR (Thread-19) [homeassistant.util.yaml] YAML file /home/homeassistant/.homeassistant/known_devices.yaml contains duplicate key "joergs_iphone". Check lines 281 and 506.
May 03 10:41:08 raspberrypi hass[24732]: 2019-05-03 10:41:08 DEBUG (MainThread) [custom_components.sonoff] Create the main object
May 03 10:41:09 raspberrypi hass[24732]: 2019-05-03 10:41:09 INFO (MainThread) [custom_components.sonoff] Found websocket address: eu-pconnect1.coolkit.cc
May 03 10:41:09 raspberrypi hass[24732]: 2019-05-03 10:41:09 DEBUG (Thread-26) [custom_components.sonoff] (re)init websocket
May 03 10:41:09 raspberrypi hass[24732]: 2019-05-03 10:41:09 DEBUG (Thread-26) [custom_components.sonoff] websocket msg: {"error":0,"apikey":"09f49f84-9bdc-433f-9b6e-b80ab75ac997","config":{"hb":1,"hbInterval":145},"sequence":"1556880069538567"}
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c6901_current
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c6901_power
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10003a2c78_power
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c6901_voltage
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10000ba9ee_power
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c673c_voltage
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c673c_current
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10004c673c_power
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_1000241a10_power
May 03 10:41:10 raspberrypi hass[24732]: 2019-05-03 10:41:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
May 03 10:41:10 raspberrypi hass[24732]: Traceback (most recent call last):
May 03 10:41:10 raspberrypi hass[24732]:   File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
May 03 10:41:10 raspberrypi hass[24732]:     result = coro.send(None)
May 03 10:41:10 raspberrypi hass[24732]:   File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity_platform.py", line 357, in _async_add_entity
May 03 10:41:10 raspberrypi hass[24732]:     raise HomeAssistantError(msg)
May 03 10:41:10 raspberrypi hass[24732]: homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.sonoff_10000baa07_power

debug level enabled:
2019-05-03 21:56:59 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2019-05-03 21:57:00 WARNING (MainThread) [homeassistant.components.http] Configuring api_password via the http component has been deprecated. Use the legacy api password auth provider instead. For instructions, see https://www.home-assistant.io/docs/authentication/providers/#legacy-api-password
2019-05-03 21:57:00 WARNING (MainThread) [homeassistant.components.http] Configuring trusted_networks via the http component has been deprecated. Use the trusted networks auth provider instead. For instructions, see https://www.home-assistant.io/docs/authentication/providers/#trusted-networks
2019-05-03 21:57:00 WARNING (MainThread) [homeassistant.components.http.auth] legacy_api_password support has been enabled.
2019-05-03 21:57:01 DEBUG (MainThread) [custom_components.sonoff] Create the main object
2019-05-03 21:57:04 INFO (MainThread) [custom_components.sonoff] Found websocket address: us-pconnect1.coolkit.cc
2019-05-03 21:57:04 DEBUG (Thread-2) [custom_components.sonoff] (re)init websocket
2019-05-03 21:57:05 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"apikey":"72975abc-efab-48ce-9fa5-f4dab287c980","config":{"hb":1,"hbInterval":145},"sequence":"1556931425374821"}
2019-05-03 21:57:09 WARNING (MainThread) [.] Wanted UPnP/IGD device with UDN "uuid:fbaf6d6a-f1f1-4679-b028-953e98b552aa" not found, aborting
2019-05-03 21:57:22 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"rssi":-79},"from":"device"}
2019-05-03 21:57:22 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 21:59:22 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"rssi":-74},"from":"device"}
2019-05-03 21:59:22 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:08:43 DEBUG (MainThread) [custom_components.sonoff] Device 10004118f9 change to: {"switch": "on"}
2019-05-03 22:08:44 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569321238499217"}
2019-05-03 22:13:44 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"switch":"off"},"from":"device"}
2019-05-03 22:13:44 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:22:02 DEBUG (MainThread) [custom_components.sonoff] Device 10004118f9 change to: {"switch": "on"}
2019-05-03 22:22:02 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569329221111584"}
2019-05-03 22:22:05 DEBUG (MainThread) [custom_components.sonoff] Device 10004118f9 change to: {"switch": "off"}
2019-05-03 22:22:06 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569329257973309"}
2019-05-03 22:22:15 DEBUG (MainThread) [custom_components.sonoff] Device 10004118f9 change to: {"switch": "on"}
2019-05-03 22:22:16 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"1556932935752676"}
2019-05-03 22:22:19 DEBUG (MainThread) [custom_components.sonoff] Device 10004118f9 change to: {"switch": "off"}
2019-05-03 22:22:20 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569329393818774"}
2019-05-03 22:22:23 DEBUG (MainThread) [custom_components.sonoff] Device 10004118f9 change to: {"switch": "on"}
2019-05-03 22:22:24 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569329439638946"}
2019-05-03 22:24:22 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"rssi":-80},"from":"device"}
2019-05-03 22:24:22 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:24:39 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"sysmsg","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","ts":0,"params":{"online":false}}
2019-05-03 22:24:39 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:24:52 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"sysmsg","deviceid":"10004118f9","apikey":"5aa9d6ec-4cdf-4ff1-8730-155b5475a598","ts":0,"params":{"online":true}}
2019-05-03 22:24:52 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:24:52 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"switch":"on","fwVersion":"2.6.0","rssi":-80,"staMac":"B4:E6:2D:3A:60:82","startup":"off"},"from":"device"}
2019-05-03 22:24:52 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:25:22 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"rssi":-73},"from":"device"}
2019-05-03 22:25:22 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:27:24 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"switch":"off"},"from":"device"}
2019-05-03 22:27:24 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:29:42 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004116ce","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"rssi":-61},"from":"device"}
2019-05-03 22:29:42 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:40:11 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"sysmsg","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","ts":0,"params":{"online":false}}
2019-05-03 22:40:11 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:40:17 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"sysmsg","deviceid":"10004118f9","apikey":"5aa9d6ec-4cdf-4ff1-8730-155b5475a598","ts":0,"params":{"online":true}}
2019-05-03 22:40:17 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:40:18 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"switch":"off","fwVersion":"2.6.0","rssi":-73,"staMac":"B4:E6:2D:3A:60:82","startup":"off"},"from":"device"}
2019-05-03 22:40:18 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'

My B1 installed 1 hour ago, started to show the errors too:
2019-05-03 22:51:22 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004118f9","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"rssi":-76},"from":"device"}
2019-05-03 22:51:22 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:53:42 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10004116ce","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"rssi":-58},"from":"device"}
2019-05-03 22:53:42 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:56:02 DEBUG (SyncWorker_0) [custom_components.sonoff.light] Light ON: {}
2019-05-03 22:56:02 DEBUG (SyncWorker_0) [custom_components.sonoff.light] Light params: {"state": "on"}
2019-05-03 22:56:02 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"state": "on"}
2019-05-03 22:56:03 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569349629674957"}
2019-05-03 22:56:16 DEBUG (SyncWorker_12) [custom_components.sonoff.light] Light OFF: {}
2019-05-03 22:56:16 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"state": "off"}
2019-05-03 22:56:16 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569349762682602"}
2019-05-03 22:56:18 DEBUG (SyncWorker_15) [custom_components.sonoff.light] Light ON: {"brightness": 81}
2019-05-03 22:56:18 DEBUG (SyncWorker_15) [custom_components.sonoff.light] Light params: {"channel0": "81", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:18 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "81", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:19 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"1556934978481055"}
2019-05-03 22:56:20 DEBUG (SyncWorker_7) [custom_components.sonoff.light] Light ON: {"brightness": 130}
2019-05-03 22:56:20 DEBUG (SyncWorker_7) [custom_components.sonoff.light] Light params: {"channel0": "130", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:20 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "130", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:21 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569349809955773"}
2019-05-03 22:56:31 DEBUG (SyncWorker_10) [custom_components.sonoff.light] Light OFF: {}
2019-05-03 22:56:31 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"state": "off"}
2019-05-03 22:56:32 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569349917961385"}
2019-05-03 22:56:33 DEBUG (SyncWorker_12) [custom_components.sonoff.light] Light ON: {"brightness": 81}
2019-05-03 22:56:33 DEBUG (SyncWorker_12) [custom_components.sonoff.light] Light params: {"channel0": "81", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:33 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "81", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:34 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569349938267424"}
2019-05-03 22:56:36 DEBUG (SyncWorker_2) [custom_components.sonoff.light] Light ON: {"brightness": 17}
2019-05-03 22:56:36 DEBUG (SyncWorker_2) [custom_components.sonoff.light] Light params: {"channel0": "17", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:36 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "17", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:37 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569349969115334"}
2019-05-03 22:56:44 DEBUG (SyncWorker_8) [custom_components.sonoff.light] Light ON: {"color_temp": 293}
2019-05-03 22:56:44 DEBUG (SyncWorker_8) [custom_components.sonoff.light] Light params: {"channel0": "3", "channel1": "13", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:44 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "3", "channel1": "13", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:44 DEBUG (SyncWorker_17) [custom_components.sonoff.light] Light ON: {"color_temp": 293}
2019-05-03 22:56:44 DEBUG (SyncWorker_17) [custom_components.sonoff.light] Light params: {"channel0": "3", "channel1": "13", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:44 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "3", "channel1": "13", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:45 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569350049825387"}
2019-05-03 22:56:46 DEBUG (SyncWorker_12) [custom_components.sonoff.light] Light ON: {"color_temp": 500}
2019-05-03 22:56:46 DEBUG (SyncWorker_12) [custom_components.sonoff.light] Light params: {"channel0": "0", "channel1": "17", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:46 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "0", "channel1": "17", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:47 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"1556935006862606"}
2019-05-03 22:56:50 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":504,"reason":"Request Timeout","deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"1556935004921116"}
2019-05-03 22:56:50 DEBUG (SyncWorker_17) [custom_components.sonoff.light] Light ON: {"brightness": 137}
2019-05-03 22:56:50 DEBUG (SyncWorker_17) [custom_components.sonoff.light] Light params: {"channel0": "0", "channel1": "137", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:50 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "0", "channel1": "137", "channel2": "0", "channel3": "0", "channel4": "0", "state": "on"}
2019-05-03 22:56:51 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569350106188846"}
2019-05-03 22:56:56 DEBUG (SyncWorker_0) [custom_components.sonoff.light] Light ON: {"effect": "color"}
2019-05-03 22:56:56 DEBUG (SyncWorker_0) [custom_components.sonoff.light] Light params: {"channel0": "0", "channel1": "0", "channel2": "137", "channel3": "137", "channel4": "137", "state": "on"}
2019-05-03 22:56:56 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "0", "channel1": "0", "channel2": "137", "channel3": "137", "channel4": "137", "state": "on"}
2019-05-03 22:56:56 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569350161440525"}
2019-05-03 22:57:02 DEBUG (SyncWorker_17) [custom_components.sonoff.light] Light ON: {"hs_color": [240.0, 100.0]}
2019-05-03 22:57:02 DEBUG (SyncWorker_17) [custom_components.sonoff.light] Light params: {"channel0": "0", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "137", "state": "on"}
2019-05-03 22:57:02 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "0", "channel1": "0", "channel2": "0", "channel3": "0", "channel4": "137", "state": "on"}
2019-05-03 22:57:02 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569350221933806"}
2019-05-03 22:57:03 DEBUG (SyncWorker_3) [custom_components.sonoff.light] Light ON: {"hs_color": [345.0, 85.71428571428571]}
2019-05-03 22:57:03 DEBUG (SyncWorker_3) [custom_components.sonoff.light] Light params: {"channel0": "0", "channel1": "0", "channel2": "137", "channel3": "19", "channel4": "48", "state": "on"}
2019-05-03 22:57:03 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"channel0": "0", "channel1": "0", "channel2": "137", "channel3": "19", "channel4": "48", "state": "on"}
2019-05-03 22:57:04 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":0,"deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"15569350236714177"}
2019-05-03 22:57:36 WARNING (MainThread) [homeassistant.components.switch] Updating command_line switch took longer than the scheduled update interval 0:00:05
2019-05-03 22:57:55 DEBUG (SyncWorker_15) [custom_components.sonoff.light] Light OFF: {}
2019-05-03 22:57:55 DEBUG (MainThread) [custom_components.sonoff] Device 10005c4911 change to: {"state": "off"}
2019-05-03 22:57:56 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"sysmsg","deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","ts":0,"params":{"online":false}}
2019-05-03 22:57:56 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:58:00 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"error":504,"reason":"Request Timeout","deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","sequence":"1556935075722513"}
2019-05-03 22:59:57 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"sysmsg","deviceid":"10005c4911","apikey":"aa859769-8fb5-4a1f-8e8a-9498723f953c","ts":0,"params":{"online":true}}
2019-05-03 22:59:57 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'
2019-05-03 22:59:58 DEBUG (Thread-2) [custom_components.sonoff] websocket msg: {"action":"update","deviceid":"10005c4911","apikey":"aa7f92be-2d9b-4fc1-9726-b34178e23df5","userAgent":"device","ts":0,"params":{"fwVersion":"2.6.0","rssi":-50,"staMac":"DC:4F:22:E0:F6:E4","channel0":"0","channel1":"0","channel2":"137","channel3":"19","channel4":"48","state":"on"},"from":"device"}
2019-05-03 22:59:58 ERROR (Thread-2) [websocket] error from callback <bound method Sonoff.on_message of <custom_components.sonoff.Sonoff object at 0x72351230>>: 'mappingproxy' object has no attribute 'attributes'

I tried a new router, different dns and ISP, no changes. But even with mappingproxy error, sonoff work well, with a bit delay sometimes, but work.
I think the big problem is the comunication of my sonoffs and chinese servers, but this is another issue.

I think that sometimes ewelink server want another api and create a websocket error so we have the same message of yours. Sometimes in some phone in fact, I have read that app show server offline for 2/3 seconds, so it will be common error

might be related to this https://github.com/peterbuga/HASS-sonoff-ewelink/issues/100
@neomvll i pushed some basic fixes lately you should update and see if the problems goes away

might be related to this #100
@neomvll i pushed some basic fixes lately you should update and see if the problems goes away

OK, bulb is updated 30 min ago and no errors or warnings, all sonoffs is working, when china servers want ofc :) .
Thanks Peter!

most likely fixed in https://github.com/peterbuga/HASS-sonoff-ewelink/releases/tag/v0.3.3


Cop idea: Prevent using expect in let.

I've noticed that some people use let as an escape from the before hook to avoid RSpec/ExpectInHook.
so..
  let(:expect_let) do
    expect(Module).to receive(:call)
  end

  before do
    expect_let
  end

will not trigger RSpec/ExpectInHook.
There is no good reason to put expect inside let in the first place, so I think it would be better to disallow it.

https://github.com/betterspecs/betterspecs/issues/233 Maybe related this issue.

I will make pr part of RSpec/ExpectInHook as a let containing expect is called in before.

If those people deliberately put expectations inside let’s to escape a cop, what would prevent them from defining a method like ‘def expect_foo’ and using it inside a ‘before’ hook?
I don’t think that our goal is to follow and attempt to flag all those nonsensical usages. We’re more like to enforce the style guide plus help enforce a given styling if several equally acceptable styles exist plus help people avoiding common mistakes.
Making an effort against deliberate abuse seems overkill.

BetterSpecs is dead, long live rspec-style-guide that absorbed all good things from betterspecs.


Add pullHeaders to houdini.config.js

I´m using supabase graphql as my backend and every request needs an apikey header, even for pulling the schema.
In my case the apikey is set in an .env file and this is my current solution:
{
  "pull-and-gen": "houdini generate --pull-schema -ph apikey=$(grep \"^VITE_SUPABASE_ANON_KEY=\" .env | cut -d \"=\" -f2)",
}

It would be nice to have access to the environment variables in the houdini config while houdini is pulling the schema. Since the config is also send to the browser where process.env is undefined a function can be used:
/** @type {import('houdini').ConfigFile} */
const config = {
  ...

  pullHeaders() {
    return {
      apikey: process.env.VITE_SUPABASE_ANON_KEY
      // or maybe use 'import.meta.env' instead
    }
  }
};

Edit:
Same with the apiUrl, that is also defined as an env variable.

Just a heads up, support for this will be added as part of the upcoming work to support the new KitQL api 👍

For anybody stumbling upon this (like I did):
This is supported as the schemaPollHeaders key in houdini.config.js, like so:
const config = {
    ...
    apiUrl: "https://your.supabase.co/graphql/v1",
    schemaPollHeaders: {
        apiKey: "you-key",
    },
}


Recommend ros-dev-tools to users.

Signed-off-by: Chris Lalancette<EMAIL_ADDRESS>Note that there was a bit of scope creep in here, as I lightly edited the installation instructions while I was looking at it.  But I don't think I went too crazy, so please take a look.

Given that there are no blocking issues here, I'm going to go ahead and merge this and backport to all distributions.  For Foxy and Galactic, I'll make sure to add back in the bit about the ROS1 <-> ROS 2 bridging, since it still makes sense there.  Thanks for the review!

This pull request has been mentioned on ROS Discourse. There might be relevant details there:
https://discourse.ros.org/t/ros-developer-tools-now-in-binary-form/29802/1


Revert "Avoiding last commit info in master builds "

Reverts hubblestack/hubble#646
@yassingh After chatting with @fossam he thinks it's harder to work with the last_commit field in splunk when it's a special string like this.
I also did some testing, and if you're on a tag, git describe just returns the tag itself:
basepi@mustafar:~/src/work/hubble$ git checkout v3.0.1
Note: checking out 'v3.0.1'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 39c7491 Rev to v3.0.1
basepi@mustafar:~/src/work/hubble$ git describe
v3.0.1

I think we should leave the git describe in all cases. More info is better, and it's still very clean on the tag itself.
Thoughts?

I have no problem with this. I was also somewhat inclined towards using 'git describe' as it adds more info. Please feel free to use 'git describe'
@basepi  is it possible to make this change is "debian9" Dockerfile as well in this PR ?? It would be nice to have similar behaviour for all linux OS. ( I changed debian9's Dockerfile in an older PR, so it is not showing up in this reverted PR ).

I'll make a separate PR with the Debian 9 change, since this was generated by Github.


Exception: 'NoneType' object has no attribute 'crop'

I am trying to implement FastSAM in a for loop. I have a couple of bboxes in a list like below:
bbox[4:7] [[58.925381, 31.177402, 58.940381, 31.167402],
[58.940381, 31.167402, 58.955381, 31.157402],
[58.955381, 31.157402, 58.970381, 31.147402]]
in each loop I want to have a segmentation. every things is OK until the sixth loop which I get the Exception: 'NoneType' object has no attribute 'crop' error message for the tms_to_geotiff function. how can I solve this issue?
BTW here is my for loop code:
for j in range(len(bbox)):
  tms_to_geotiff(output='Image.tif', bbox=bbox[j], zoom=19, source="Satellite", overwrite=True)
  sam.set_image('Image.tif')
  output_mask_name = 'mask_'+str(j)+'.tif'
  sam.everything_prompt(output=output_mask_name)
  output_geojson_name = 'mask_'+str(j)+'.geojson'
  sam.raster_to_vector(output_mask_name, output_geojson_name)

In addition to the for loop, sometimes when I want to segment objects according to the FastSAM notebook, I get this error.

Please provide complete source code for debugging.

Please provide complete source code for debugging.

%pip install segment-geospatial segment-anything-fast
import leafmap
from samgeo import tms_to_geotiff
from samgeo.fast_sam import SamGeo

m = leafmap.Map(center=[27.371051, 62.359569], zoom=16, height="800px")
m.add_basemap("SATELLITE")
m

import numpy as np
x_range = np.arange(58.865381, 63.425381, 0.015)
y_range = np.arange(31.217403, 24.967403, -0.01)
x = x_range.tolist()
y = y_range.tolist()
bbox = []
for i in range(len(x)-1):
  for j in range(len(y)-1):
    box = [x[i], y[i], x[i+1], y[i+1]]
    bbox.append(box)

from samgeo.fast_sam import SamGeo
sam = SamGeo(model="FastSAM-x.pt")

for k in range(len(bbox)):
  tms_to_geotiff(output='Image.tif', bbox=bbox[k], zoom=16, source="Satellite", overwrite=True)
  sam.set_image('Image.tif')
  output_mask_name = 'mask_'+str(k)+'.tif'
  sam.everything_prompt(output=output_mask_name)
  output_geojson_name = 'mask_'+str(k)+'.geojson'
  sam.raster_to_vector(output_mask_name, output_geojson_name)

I got the same issue. Did you manage to fix it?

unfortunately not!

You guys found any solution ?

It's because the bounding box needed is not in the same form as expected. The x and y need to be switched!


added option to limit maximum connected clients.

Added option to limit the maximum number of connected clients.
I pretty much copied your code from WatsonTCP to enable this.

Thanks @mvelayati - just added to NuGet as v2.6.1 - https://www.nuget.org/packages/SuperSimpleTcp/2.6.1
Commit: https://github.com/jchristn/SuperSimpleTcp/commit/9919bc5203551c9a85ef5a211879b57a759f3c4f


adding cluster reconfiguration tests for 9143

With CASSANDRA-13257 committed, we can easily validate that all repaired data is in sync, so I've added some tests that verify everything looks ok after cluster reconfigurations.

+1


Allow global and custom button text for the new-tabbed variants of the JupyterLite, NotebookLite, and the Voici directives

Description
This PR implements three global configuration options: jupyterlite_button_text, notebooklite_button_text, and voici_button_text; to customise the buttons for the tabbed variants of these directives – which were introduced via #165 and #223. This is similar to the TryExamples button text options, which have a similar pathway through a global value and per-directive overrides.
This allows users to make use of the extended ability to customise the button text as per their liking, say, "Run notebook"
in comparison to being restricted to the current "Open as a notebook".
Please note that this is valid only when :new_tab: is set – i.e., when we have a button present in the first place, because all three directives also have a :prompt: option for this purpose when they are displayed as iframes and not as buttons.
Additional context
This has been implemented in continuation from https://github.com/jupyterlite/jupyterlite-sphinx/pull/223#discussion_r1883687821.

This option does not exist for the Replite directive because we don't have a new-tabbed version of it yet; I am on the fence about whether we need that or not? It would be relatively easy to implement.