Hi all, I’m brand-new to home assistant and to MQTT devices. I have got a pair of Pimoroni Enviro Indoor boards. I have set up an MQTT broker. Both of the boards can be heard by the broker. You can see an example of their output below. I don’t think auto-discovery is working or if that is a thing.
How do I go from here to having these devices show up as senses on a dashboard? I think I need to create entities and fill in their topics for each property on each board
ok it doesn’t have the Discovery Message. So I have manually defined MQTT sensors. Does look correct to you? The RPi has been rebooted after the yaml was updated.
When I go to add a card to the dashboard I can’t find any cards or entities that match those sensors
No that is not correct. Perform a Configuration check in Developer Tools → YAML before restarting. Very likely it will tell you that you have issues with your config. Sometimes only in the persistent notification area and logs. Look at the examples in the documentation again. You need to end up with this sort of structure. The indentation is important.
mqtt:
sensor:
- name: 'Temperature'
unit_of_measurement: '°C'
state_topic: 'enviro/bikeroom'
value_template: '{{ value_json.temperature }}'
device_class: temperature
state_class: measurement # only include this if you want long term statistics
- name: 'Humidity'
unit_of_measurement: '%'
state_topic: 'enviro/bikeroom'
value_template: '{{ value_json.humidity }}'
device_class: humidity
state_class: measurement # only include this if you want long term statistics
- name: 'Luminance'
unit_of_measurement: 'lx'
state_topic: 'enviro/bikeroom'
value_template: '{{ value_json.luminance }}'
device_class: illuminance
state_class: measurement # only include this if you want long term statistics