Closed nagyrobi closed 2 years ago
Very funny... Discovery info:
{'topic': 'hasp/discovery', 'payload': '{"node":"plate_4","mdl":"Lanbon L8","mf":"openHASP","hwid":"xxxxxxxxxxxxx","pages":12,"sw":"0.6.2","input":{},"power":[],"light":[12,14,27],"dim":[]}', 'qos': 0, 'retain': 0, 'subscribed_topic': 'hasp/discovery', 'timestamp': datetime.datetime(2021, 8, 5, 12, 48, 30, 819614, tzinfo=datetime.timezone.utc)}
https://jsonlint.com/ , https://jsonformatter.org/ say this is not valid json.
openHASP sends this discovery payload:
{
"node": "plate_4",
"mdl": "Lanbon L8",
"mf": "openHASP",
"hwid": "xxxxxxxxxxxxx",
"pages": 12,
"sw": "0.6.2",
"input": {},
"power": [],
"light": [12, 14, 27],
"dim": []
}
That is a valid json object. HA makes it into a larger JSON object, adding topic
, payload
and timestamp
keys that is not valid anymore...
Yes, single quotes around '{}'
invalidates it.
Version of the custom_component
0.6 - current
Configuration
Describe the bug
Since release of HA 2021.8.1, log gets filled continuously with the errors below.
Debug log