mirror of https://github.com/arendst/Tasmota.git
With the PoweronState Automation, the leading / in the topic causes it to fail. Also, the SetOption19 Automation to turn on Discovery only works if Discovery is OFF and the default topic is still cmnd/sonoffs/state. Setting Option 19 on automatically changes the topic to sonoffs/cmnd
parent
bce0666f1c
commit
bbaa9c92eb
|
@ -92,7 +92,7 @@ Note2: After changing `entity_id` Hass must be restarted, this will be fixed in
|
||||||
### Tip: Make all Tasmota devices be automatically discovered
|
### Tip: Make all Tasmota devices be automatically discovered
|
||||||
|
|
||||||
If you want all your devices to be found by Home Assistant, add an automation which will enable `SetOption19` for all devices.\
|
If you want all your devices to be found by Home Assistant, add an automation which will enable `SetOption19` for all devices.\
|
||||||
The automation below will be triggered each time Hass is (re)started and can also be triggered manually through the UI
|
The automation below will be triggered each time Hass is (re)started and can also be triggered manually through the UI (Note: if Discovery is already on, change the topic to "sonoffs/cmnd/SetOption19")
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
# Example automations.yaml entry
|
# Example automations.yaml entry
|
||||||
|
@ -122,6 +122,6 @@ Use this automation to get all your (auto discovered) devices in sync, including
|
||||||
action:
|
action:
|
||||||
- service: mqtt.publish
|
- service: mqtt.publish
|
||||||
data:
|
data:
|
||||||
topic: "/sonoffs/cmnd/state"
|
topic: "sonoffs/cmnd/state"
|
||||||
payload: ""
|
payload: ""
|
||||||
```
|
```
|
Loading…
Reference in New Issue