I have been able to Publish to my MQTT broker from an Automation.
But…
How do I Subscribe? I want a Sensor that I can display in an Entity Card without a slider or input box.
Regards,
Martin
I have been able to Publish to my MQTT broker from an Automation.
But…
How do I Subscribe? I want a Sensor that I can display in an Entity Card without a slider or input box.
Regards,
Martin
No, you can set up the integration in the UI by clicking the “Add Integration” button in the Integration dashboard then select MQTT.
If you have already set up the MQTT Integration, you go into it’s integration settings and click “Add MQTT Device”
Other non-UI options include:
Like this?
How can I access my old devices to see how I did it last time?
None of these fields look familiar?
M.
It’s quite possible you’ve never seen them before because the devices were discovered automatically. If that is the case, I’m not sure you can see the config flow.
Haa… Haaa… I’ve found ou how I did it! in the good old /homeassistant/configuation.yaml
mqtt:
sensor:
- name: mobo_tx_quota
unique_id: "tx_quota"
unit_of_measurement: "bit"
state_topic: "quota/tx"
- name: mobo_rx_quota
unique_id: "rx_quota"
unit_of_measurement: "bit"
state_topic: "quota/rx"
Thank for the help,
M.
I had not explored this UI option before. Looks like you can’t add attributes, which is probably okay since you are creating a device and can add multiple entities to a single device instead.
I think I might try converting some of my yaml based MQTT sensors over to see how it works out.
Thanks for pointing this out.