Hi.
I have used DHT22 and ESP8266 connected whit mqtt. In my home assistant i see temperature and humidity but in alexa i can’t see nothing.
the id entities is : sensor.temperatura_camera_t
i used this configuration :
api:
alexa:
smart_home:
filter:
include_entities:
- sensor.temperatura_camera_t
include_domains:
- temperature_sensor
exclude_entities:
- switch.outside
entity_config:
sensor:
name: Custom Name for Alexa
description: Sensore camera
switch.stairs:
display_categories: sensor
But when i restart the HA i receive this notification
Logger: homeassistant.util.logging
Source: util/logging.py:108
First occurred: 22:28:07 (1 occurrences)
Last logged: 22:28:07
Exception in async_discover_sensor when dispatching ‘mqtt_discovery_new_sensor_mqtt’: ({‘name’: ‘Temperatura camera HI’, ‘device_class’: ‘heat index’, ‘unit_of_measurement’: ‘%’, ‘state_topic’: ‘Temperatura camera/ack’, ‘value_template’: ‘{{value_json.HI}}’, ‘availability_topic’: ‘c82b960891c4’, ‘payload_available’: ‘online’, ‘payload_not_available’: ‘offline’, ‘unique_id’: ‘c82b960891c4_TER0HI’, ‘device’: {‘identifiers’: [‘c82b960891c4_TER0’], ‘name’: ‘Temperatura camera’, ‘model’: ‘nodo Termostato’, ‘sw_version’: ‘SmartHome V7.0beta6’, ‘manufacturer’: ‘SmartHome’}, ‘platform’: ‘mqtt’},) Traceback (most recent call last): File “/usr/src/homeassistant/homeassistant/components/mqtt/sensor.py”, line 84, in async_discover_sensor config = PLATFORM_SCHEMA(discovery_payload) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 272, in call return self._compiled([], data) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 594, in validate_dict return base_validate(path, iteritems(data), out) File “/usr/local/lib/python3.8/site-packages/voluptuous/schema_builder.py”, line 432, in validate_mapping raise er.MultipleInvalid(errors) voluptuous.error.MultipleInvalid: value must be one of [‘battery’, ‘current’, ‘energy’, ‘humidity’, ‘illuminance’, ‘power’, ‘power_factor’, ‘pressure’, ‘signal_strength’, ‘temperature’, ‘timestamp’, ‘voltage’] for dictionary value @ data[‘device_class’]
Logger: homeassistant.setup
Source: setup.py:138
First occurred: 22:27:58 (3 occurrences)
Last logged: 22:28:05
- Setup failed for alexa: Invalid config.
- Setup failed for cloud: Could not set up all dependencies.
- Setup failed for default_config: Could not set up all dependencies.
Logger: homeassistant.setup
Source: setup.py:118
First occurred: 22:27:58 (2 occurrences)
Last logged: 22:28:05
- Unable to set up dependencies of cloud. Setup failed for dependencies: alexa
- Unable to set up dependencies of default_config. Setup failed for dependencies: cloud
Logger: homeassistant.config
Source: config.py:415
First occurred: 22:27:58 (1 occurrences)
Last logged: 22:27:58
Invalid config for [alexa]: [sensor] is an invalid option for [alexa]. Check: alexa->alexa->smart_home->entity_config->sensor. (See /config/configuration.yaml, line 17). Please check the docs at https://www.home-assistant.io/integrations/alexa
Can you help me?
Thanks