1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

feat(MQTT): Add enable, disable and enable_on_boot (#7716)

This commit is contained in:
Rodrigo Martín
2024-11-06 01:56:48 +01:00
committed by GitHub
parent 5bb4d042e4
commit 80b4c26481
4 changed files with 90 additions and 5 deletions

View File

@@ -10,6 +10,7 @@ mqtt:
port: 1883
username: debug
password: debug
enable_on_boot: false
clean_session: True
client_id: someclient
use_abbreviations: false
@@ -87,6 +88,8 @@ button:
state_topic: some/topic/button
qos: 2
on_press:
- mqtt.disable
- mqtt.enable
- mqtt.publish:
topic: some/topic/button
payload: Hello