mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-11-12 12:31:14 +00:00
✏️ The great integration migration - part 2 (#9760)
* ✏️ The great integration migration - part 2 * ✏️ Tweak
This commit is contained in:
committed by
Franck Nijhof
parent
9ae34605af
commit
b1ef4996eb
@@ -11,10 +11,10 @@ ha_category: Custom Python Component Examples
|
||||
---
|
||||
|
||||
<p class='note'>
|
||||
This example requires you to have the [MQTT component](/components/mqtt/) up and running.
|
||||
This example requires you to have the [MQTT integration](/components/mqtt/) up and running.
|
||||
</p>
|
||||
|
||||
This is a simple hello world example to show the basics of using MQTT in a custom component. To use this example, create the file `<config dir>/custom_components/hello_mqtt.py` and copy the below example code.
|
||||
This is a simple hello world example to show the basics of using MQTT in a custom integration. To use this example, create the file `<config dir>/custom_components/hello_mqtt.py` and copy the below example code.
|
||||
|
||||
This example follows a topic on MQTT and updates the state of an entity to the last message received on that topic. It will also register a service 'set_state' that will publish a message to the MQTT topic that we're listening to.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user