configuration.yamlalexa:
smart_home:
Logger: aiohttp.server
First occured: 11:44:58 (3 occurences)
Last logged: 11:52:04
Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 39, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 72, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 135, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 123, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/alexa/smart_home_http.py", line 120, in post
hass, self.smart_home_config, message, context=core.Context(user_id=user.id)
File "/usr/src/homeassistant/homeassistant/components/alexa/smart_home.py", line 41, in async_handle_message
response = await funct_ref(hass, config, directive, context)
File "/usr/src/homeassistant/homeassistant/components/alexa/handlers.py", line 82, in async_api_discovery
for alexa_entity in async_get_entities(hass, config)
File "/usr/src/homeassistant/homeassistant/components/alexa/handlers.py", line 83, in <listcomp>
if config.should_expose(alexa_entity.entity_id)
File "/usr/src/homeassistant/homeassistant/components/alexa/entities.py", line 282, in serialize_discovery
capabilities.append(i.serialize_discovery())
File "/usr/src/homeassistant/homeassistant/components/alexa/capabilities.py", line 199, in serialize_discovery
capability_resources = self.capability_resources()
File "/usr/src/homeassistant/homeassistant/components/alexa/capabilities.py", line 1471, in capability_resources
min_value = float(self.entity.attributes[input_number.ATTR_MIN])
KeyError: 'min'
Hey there @home-assistant/cloud, @ochlocracy, mind taking a look at this issue as its been labeled with a integration (alexa) you are listed as a codeowner for? Thanks!
I have downgraded the core version to 0.100.1 (ha core update --version 0.100.1) and seems to work but many on my integration not... :-(
The last version that work is 0.103.6 from 0.104.0 give me the error...
Please provide your configuration for input_number: section.
I suspect you're missing the required min property for one of the input_number entities.
Really thansk a lot for your answer and your help!! :-D
where i can find the input_number section? because i don't have in my configuration.yaml.
I have seen also that if i downgrade to core version 0.103.6 works without problem.
i attach my configuration.yaml:
https://hastebin.com/suzuhucera.shell
I have also tried with this filter but the problem persist...
filter:
exclude_domains:
- automation
- script
- input boolean
- alarm_control_panel
- remote
- binary_sensor
- climate
- cover
- device_tracker
- fan
- light
- lock
- media_player
- sensor
- switch
Thanks to your help probably i have solved part of my issue.
i have added in the exclude_domains the input_number: and now seems to work very well!! but where i can find the input_number entity? i don't have in the config this entry..
Regards
Stefano
Support for adjusting an input_number via Alexa was added in version 0.104. That's why downgrading to 0.103.6 doesn't have the error.
Can you search your entities for anything in the input_number domain, and post the attributes. Maybe another integration is adding it without the min property. Developer Tools -> States will list all the attributes.
Support for adjusting an
input_numbervia Alexa was added in version 0.104. That's why downgrading to 0.103.6 doesn't have the error.Can you search your entities for anything in the
input_numberdomain, and post the attributes. Maybe another integration is adding it without theminproperty. Developer Tools -> States will list all the attributes.
Thanks a lot,
i have found the entity, is old and not used from me and deleted.
now all seems to work fine.
the only thing is that for testing i have configured the hue hub before your solution and now after i have remove the hue in config and all devices in alexa and searched again from the skill some devices still Royal Philips Electronics smart device but for now is not a problem :-D
But is duplicated i have two lamp one from HA light.xxxx and one from royal philips etc..
really thanks a lot
Also just had this issue - confirmed as fixed via removing the input_number entities without the min value, or adding a min value.
Note: You might remove the entry from the config but you might need to purge them from home assistant's history via the entities menu in the configuration.
Most helpful comment
Support for adjusting an
input_numbervia Alexa was added in version 0.104. That's why downgrading to 0.103.6 doesn't have the error.Can you search your entities for anything in the
input_numberdomain, and post the attributes. Maybe another integration is adding it without theminproperty. Developer Tools -> States will list all the attributes.