devicedata=json.loads(response['Body'].read())
MY_APPLIANCES=[]
for eachdevice in devicedata["Devices"]:
for singledevice in eachdevice["device_list"]:
MY_APPLIANCES.append(singledevice)
return MY_APPLIANCES
MY_APPLIANCES = [
]
def lambda_handler(request, context):
try:
logger.info("Directive:")
logger.info(json.dumps(request, indent=4, sort_keys=True))
#user_id=get_usersub(request['directive']['payload']['scope']['token'])
version = get_directive_version(request)
if version == "3":
logger.info("Received v3 directive!")
if request["directive"]["header"]["name"] == "Discover":
response = handle_discovery_v3(request)
else:
response = handle_non_discovery_v3(request)
else:
logger.info("Received v2 directive!")
if request["header"]["namespace"] == "Alexa.ConnectedHome.Discovery":
response = handle_discovery()
else:
response = handle_non_discovery(request)
logger.info("Response:")
logger.info(json.dumps(response, indent=4, sort_keys=True))
if version == "3":
logger.info("Validate v3 response")
return response
except ValueError as error:
logger.error(error)
raise
def get_appliance_by_appliance_id(appliance_id):
for appliance in MY_APPLIANCES:
if appliance["applianceId"] == appliance_id:
return appliance
return None
My smarthome skill suddenly stopped discovering devices but it's controlling already added devices .
this is my lambda function
` import logging import time import json import uuid import boto3
logger = logging.getLogger() logger.setLevel(logging.INFO)
client = boto3.client('iot-data')
user=boto3.client('cognito-idp')
s3 = boto3.client('s3') bucket = 'aur*****' def get_usersub(access_token): response=user.get_user(AccessToken=access_token) return response["UserAttributes"][0]["Value"]
def get_devices(user_id): response = s3.get_object(Bucket=bucket, Key=user_id+"/alexa.json")
print(response['Body'].read())
MY_APPLIANCES = [ ]
def lambda_handler(request, context):
def handle_discovery(): header = { "namespace": "Alexa.ConnectedHome.Discovery", "name": "DiscoverAppliancesResponse", "payloadVersion": "2", "messageId": get_uuid() } payload = { "discoveredAppliances": MY_APPLIANCES } response = { "header": header, "payload": payload } return response
def handle_non_discovery(request): device_id = request['payload']['appliance']['applianceId'] request_name = request["header"]["name"]
def get_appliance_by_appliance_id(appliance_id): for appliance in MY_APPLIANCES: if appliance["applianceId"] == appliance_id: return appliance return None
def get_utc_timestamp(seconds=None): return time.strftime("%Y-%m-%dT%H:%M:%S.00Z", time.gmtime(seconds))
def get_uuid(): return str(uuid.uuid4())
def handle_discovery_v3(request): endpoints = [] user_id=get_usersub(request['directive']['payload']['scope']['token']) MY_APPLIANCES=get_devices(user_id) for appliance in MY_APPLIANCES: endpoints.append(get_endpoint_from_v2_appliance(appliance))
def handle_non_discovery_v3(request): request_namespace = request["directive"]["header"]["namespace"] request_name = request["directive"]["header"]["name"] device_id = request["directive"]["endpoint"]["endpointId"] user_id=get_usersub(request['directive']['endpoint']['scope']['token']) if request_namespace == "Alexa.PowerController": if request_name == "TurnOn": value = "ON" light = True elif request_name == "TurnOff": value = "OFF" light = False
} } return response
v3 utility functions
def get_endpoint_from_v2_appliance(appliance): endpoint = { "endpointId": appliance["applianceId"], "manufacturerName": appliance["manufacturerName"], "friendlyName": appliance["friendlyName"], "description": appliance["friendlyDescription"], "displayCategories": [], "cookie": appliance["additionalApplianceDetails"], "capabilities": [] } endpoint["displayCategories"] = get_display_categories_from_v2_appliance(appliance) endpoint["capabilities"] = get_capabilities_from_v2_appliance(appliance) return endpoint
def get_directive_version(request): try: return request["directive"]["header"]["payloadVersion"] except: try: return request["header"]["payloadVersion"] except: return "-1"
def get_endpoint_by_endpoint_id(endpoint_id): appliance = get_appliance_by_appliance_id(endpoint_id) if appliance: return get_endpoint_from_v2_appliance(appliance) return None
def get_display_categories_from_v2_appliance(appliance): model_name = appliance["modelName"] if model_name == "Smart Switch": displayCategories = ["SWITCH"] elif model_name == "Smart Light": displayCategories = ["LIGHT"] elif model_name == "Smart White Light": displayCategories = ["LIGHT"] elif model_name == "Smart Thermostat": displayCategories = ["THERMOSTAT"] elif model_name == "Smart Lock": displayCategories = ["SMARTLOCK"] elif model_name == "Smart Scene": displayCategories = ["SCENE_TRIGGER"] elif model_name == "Smart Activity": displayCategories = ["ACTIVITY_TRIGGER"] elif model_name == "Smart Camera": displayCategories = ["CAMERA"] else: displayCategories = ["OTHER"] return displayCategories
def get_capabilities_from_v2_appliance(appliance): model_name = appliance["modelName"] if model_name == 'Smart Switch': capabilities = [ { "type": "AlexaInterface", "interface": "Alexa.PowerController", "version": "3", "properties": { "supported": [ { "name": "powerState" } ], "proactivelyReported": True, "retrievable": True } } ] elif model_name == "Smart Light": capabilities = [ { "type": "AlexaInterface", "interface": "Alexa.PowerController", "version": "3", "properties": { "supported": [ { "name": "powerState" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.ColorController", "version": "3", "properties": { "supported": [ { "name": "color" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.ColorTemperatureController", "version": "3", "properties": { "supported": [ { "name": "colorTemperatureInKelvin" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.BrightnessController", "version": "3", "properties": { "supported": [ { "name": "brightness" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.PowerLevelController", "version": "3", "properties": { "supported": [ { "name": "powerLevel" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.PercentageController", "version": "3", "properties": { "supported": [ { "name": "percentage" } ], "proactivelyReported": True, "retrievable": True } } ] elif model_name == "Smart White Light": capabilities = [ { "type": "AlexaInterface", "interface": "Alexa.PowerController", "version": "3", "properties": { "supported": [ { "name": "powerState" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.ColorTemperatureController", "version": "3", "properties": { "supported": [ { "name": "colorTemperatureInKelvin" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.BrightnessController", "version": "3", "properties": { "supported": [ { "name": "brightness" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.PowerLevelController", "version": "3", "properties": { "supported": [ { "name": "powerLevel" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.PercentageController", "version": "3", "properties": { "supported": [ { "name": "percentage" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.ThermostatController", "version": "3", "properties": { "supported":[ { "name": "lowerSetpoint" }, { "name": "targetSetpoint" }, { "name": "upperSetpoint" }, { "name": "thermostatMode" } ], "proactivelyReported": True, "retrievable": True } }, { "type": "AlexaInterface", "interface": "Alexa.PercentageController", "version": "3", "properties": { "supported": [ { "name": "percentage" } ], "proactivelyReported": True, "retrievable": True } }, { "type":"AlexaInterface", "interface":"Alexa.TemperatureSensor", "version":"3", "properties":{ "supported":[ { "name":"temperature" } ], "proactivelyReported":False, "retrievable":True } }
`
this is discovery request test response i got
`Response: { "event": { "header": { "payloadVersion": "3", "namespace": "Alexa.Discovery", "name": "Discover.Response", "messageId": "684bad02-6f88-4915-9c50-9df11680903e" }, "payload": { "endpoints": [ { "endpointId": "b8:27:eb:35:95:cf-1", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.ColorController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "color" } ], "proactivelyReported": true } }, { "interface": "Alexa.ColorTemperatureController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "colorTemperatureInKelvin" } ], "proactivelyReported": true } }, { "interface": "Alexa.BrightnessController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "brightness" } ], "proactivelyReported": true } }, { "interface": "Alexa.PowerLevelController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerLevel" } ], "proactivelyReported": true } }, { "interface": "Alexa.PercentageController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "percentage" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Office Room Cove Light", "displayCategories": [ "LIGHT" ], "description": "" }, { "endpointId": "b8:27:eb:35:95:cf-2", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Office Room Hanging Light", "displayCategories": [ "SWITCH" ], "description": "" }, { "endpointId": "b8:27:eb:35:95:cf-3", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.PercentageController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "percentage" } ], "proactivelyReported": true } }, { "interface": "Alexa.ThermostatController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "lowerSetpoint" }, { "name": "targetSetpoint" }, { "name": "upperSetpoint" }, { "name": "thermostatMode" } ], "proactivelyReported": true } }, { "interface": "Alexa.TemperatureSensor", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "temperature" } ], "proactivelyReported": false } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Office Room AC", "displayCategories": [ "THERMOSTAT" ], "description": "" }, { "endpointId": "b8:27:eb:35:95:cf-4", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.PercentageController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "percentage" } ], "proactivelyReported": true } }, { "interface": "Alexa.ThermostatController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "lowerSetpoint" }, { "name": "targetSetpoint" }, { "name": "upperSetpoint" }, { "name": "thermostatMode" } ], "proactivelyReported": true } }, { "interface": "Alexa.TemperatureSensor", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "temperature" } ], "proactivelyReported": false } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Meeting Room AC", "displayCategories": [ "THERMOSTAT" ], "description": "" }, { "endpointId": "b8:27:eb:35:95:cf-5", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.Speaker", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "volume" }, { "name": "muted" } ], "proactivelyReported": true } }, { "interface": "Alexa.ChannelController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "channel" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Meeting Room TV", "displayCategories": [ "ACTIVITY_TRIGGER" ], "description": "" }, { "endpointId": "b8:27:eb:35:95:cf-6", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.PercentageController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "percentage" } ], "proactivelyReported": true } }, { "interface": "Alexa.ThermostatController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "lowerSetpoint" }, { "name": "targetSetpoint" }, { "name": "upperSetpoint" }, { "name": "thermostatMode" } ], "proactivelyReported": true } }, { "interface": "Alexa.TemperatureSensor", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "temperature" } ], "proactivelyReported": false } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Cellar AC", "displayCategories": [ "THERMOSTAT" ], "description": "" }, { "endpointId": "b8:27:eb:35:95:cf-Good Night", "capabilities": [ { "interface": "Alexa.SceneController", "supportsDeactivation": false, "version": "3", "type": "AlexaInterface", "proactivelyReported": true }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Good Night", "displayCategories": [ "SCENE_TRIGGER" ], "description": "" }, { "endpointId": "b8:27:eb:35:95:cf-Good Morning", "capabilities": [ { "interface": "Alexa.SceneController", "supportsDeactivation": false, "version": "3", "type": "AlexaInterface", "proactivelyReported": true }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Good Morning", "displayCategories": [ "SCENE_TRIGGER" ], "description": "" }, { "endpointId": "b8:27:eb:60:c0:9a-3", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.Speaker", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "volume" }, { "name": "muted" } ], "proactivelyReported": true } }, { "interface": "Alexa.ChannelController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "channel" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Attic HomeTheatre", "displayCategories": [ "ACTIVITY_TRIGGER" ], "description": "" }, { "endpointId": "b8:27:eb:60:c0:9a-4", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.ColorController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "color" } ], "proactivelyReported": true } }, { "interface": "Alexa.ColorTemperatureController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "colorTemperatureInKelvin" } ], "proactivelyReported": true } }, { "interface": "Alexa.BrightnessController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "brightness" } ], "proactivelyReported": true } }, { "interface": "Alexa.PowerLevelController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerLevel" } ], "proactivelyReported": true } }, { "interface": "Alexa.PercentageController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "percentage" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Aura Attic Cove Light", "displayCategories": [ "LIGHT" ], "description": "" }, { "endpointId": "b8:27:eb:b4:f8:06-2", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.ColorController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "color" } ], "proactivelyReported": true } }, { "interface": "Alexa.ColorTemperatureController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "colorTemperatureInKelvin" } ], "proactivelyReported": true } }, { "interface": "Alexa.BrightnessController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "brightness" } ], "proactivelyReported": true } }, { "interface": "Alexa.PowerLevelController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerLevel" } ], "proactivelyReported": true } }, { "interface": "Alexa.PercentageController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "percentage" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Room1 Hall Temperature", "displayCategories": [ "LIGHT" ], "description": "" }, { "endpointId": "b8:27:eb:b4:f8:06-3", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.Speaker", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "volume" }, { "name": "muted" } ], "proactivelyReported": true } }, { "interface": "Alexa.ChannelController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "channel" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Room1 Dining HomeTheatre", "displayCategories": [ "ACTIVITY_TRIGGER" ], "description": "" }, { "endpointId": "b8:27:eb:b4:f8:06-4", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.ColorController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "color" } ], "proactivelyReported": true } }, { "interface": "Alexa.ColorTemperatureController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "colorTemperatureInKelvin" } ], "proactivelyReported": true } }, { "interface": "Alexa.BrightnessController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "brightness" } ], "proactivelyReported": true } }, { "interface": "Alexa.PowerLevelController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerLevel" } ], "proactivelyReported": true } }, { "interface": "Alexa.PercentageController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "percentage" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Room1 Dining Wall Light", "displayCategories": [ "LIGHT" ], "description": "" }, { "endpointId": "b8:27:eb:b4:f8:06-5", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Room1 Hall Kettel", "displayCategories": [ "SWITCH" ], "description": "" }, { "endpointId": "b8:27:eb:b4:f8:06-6", "capabilities": [ { "interface": "Alexa.PowerController", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "powerState" } ], "proactivelyReported": true } }, { "interface": "Alexa.EndpointHealth", "version": "3", "type": "AlexaInterface", "properties": { "retrievable": true, "supported": [ { "name": "connectivity" } ], "proactivelyReported": true } }, { "interface": "Alexa", "version": "3", "type": "AlexaInterface" } ], "cookie": {}, "manufacturerName": "Latigid Engineering pvt.ltd.", "friendlyName": "Room1 Hall Geyser", "displayCategories": [ "SWITCH" ], "description": "" } ] } } }
Request ID: "be61b8d7-480a-4690-a7d0-fb96a513dc6d"
Function Logs: { "interface": "Alexa.PowerController", "properties": { "proactivelyReported": true, "retrievable": true, "supported": [ { "name": "powerState" } ] }, "type": "AlexaInterface", "version": "3" }, { "interface": "Alexa.EndpointHealth", "properties": { "proactivelyReported": true, "retrievable": true, "supported": [ { "name": "connectivity" } ] }, "type": "AlexaInterface", "version": "3" }, { "interface": "Alexa", "type": "AlexaInterface", "version": "3" } ], "cookie": {}, "description": "", "displayCategories": [ "SWITCH" ], "endpointId": "b8:27:eb:b4:f8:06-5", "friendlyName": "Room1 Hall Kettel", "manufacturerName": "Latigid Engineering pvt.ltd." }, { "capabilities": [ { "interface": "Alexa.PowerController", "properties": { "proactivelyReported": true, "retrievable": true, "supported": [ { "name": "powerState" } ] }, "type": "AlexaInterface", "version": "3" }, { "interface": "Alexa.EndpointHealth", "properties": { "proactivelyReported": true, "retrievable": true, "supported": [ { "name": "connectivity" } ] }, "type": "AlexaInterface", "version": "3" }, { "interface": "Alexa", "type": "AlexaInterface", "version": "3" } ], "cookie": {}, "description": "", "displayCategories": [ "SWITCH" ], "endpointId": "b8:27:eb:b4:f8:06-6", "friendlyName": "Room1 Hall Geyser", "manufacturerName": "Latigid Engineering pvt.ltd." } ] } } } [INFO] 2019-04-23T20:32:08.167Z be61b8d7-480a-4690-a7d0-fb96a513dc6d Validate v3 response END RequestId: be61b8d7-480a-4690-a7d0-fb96a513dc6d REPORT RequestId: be61b8d7-480a-4690-a7d0-fb96a513dc6d Duration: 848.22 ms Billed Duration: 900 ms Memory Size: 128 MB Max Memory Used: 66 MB
`
it seems fine but i dont understand why it stopped discovering devices suddenly.