|
@@ -590,7 +590,7 @@ class deviceStatus(TemplateView):
|
|
}
|
|
}
|
|
]
|
|
]
|
|
if online is not None:
|
|
if online is not None:
|
|
- endpoint_health_value = 'OK' if online == '1' else 'NOT_FOUND'
|
|
|
|
|
|
+ endpoint_health_value = "OK" if online == '1' else "NOT_FOUND"
|
|
properties.append(
|
|
properties.append(
|
|
{
|
|
{
|
|
"namespace": "Alexa.EndpointHealth",
|
|
"namespace": "Alexa.EndpointHealth",
|
|
@@ -602,7 +602,7 @@ class deviceStatus(TemplateView):
|
|
"uncertaintyInMilliseconds": 0
|
|
"uncertaintyInMilliseconds": 0
|
|
}
|
|
}
|
|
)
|
|
)
|
|
-
|
|
|
|
|
|
+ logger.info('插座ChangeReport properties:{}'.format(properties))
|
|
payload = {
|
|
payload = {
|
|
"event": {
|
|
"event": {
|
|
"header": {
|
|
"header": {
|