Revert wrong change - if the HomeAssistant Discovery was not enabled, the topic goes cmnd/sonoffs/

Adrian Scillato 2019-05-29 17:35:34 -03:00
parent da089c724a
commit 609e7019ab
1 changed files with 19 additions and 1 deletions

@ -125,9 +125,27 @@ This can also be done manually in Home Assistant UI through Developer tools - ![
action:
- service: mqtt.publish
data:
topic: "sonoffs/cmnd/SetOption19"
topic: "cmnd/sonoffs/SetOption19"
payload: "1"
```
#### Note: For disabling the Discovery, the automation is:
```yaml
# Example automations.yaml entry
- alias: "Disable MQTT discovery for all devices"
trigger:
platform: homeassistant
event: start
action:
- service: mqtt.publish
data:
topic: "sonoffs/cmnd/SetOption19"
payload: "0"
```
### Tip: Make all Tasmota devices report their firmware version
```yaml