mirror of https://github.com/arendst/Tasmota.git
redid autodiscovery tip since it seems the automation itself could cause problems with the new lovelace ui and tasmoadmin running
parent
f1b0c76206
commit
47ffd9b78e
|
@ -88,23 +88,6 @@ Note1: Lights currently show up under "Entities without devices", this will be f
|
||||||
Note2: After changing `entity_id` Hass must be restarted, this will be fixed in Hass 0.85 [#19414](https://github.com/home-assistant/home-assistant/pull/19414)
|
Note2: After changing `entity_id` Hass must be restarted, this will be fixed in Hass 0.85 [#19414](https://github.com/home-assistant/home-assistant/pull/19414)
|
||||||
|
|
||||||
## Tips
|
## Tips
|
||||||
### 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.\
|
|
||||||
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
|
|
||||||
# Example automations.yaml entry
|
|
||||||
- alias: "Enable MQTT discovery for all devices"
|
|
||||||
trigger:
|
|
||||||
platform: homeassistant
|
|
||||||
event: start
|
|
||||||
action:
|
|
||||||
- service: mqtt.publish
|
|
||||||
data:
|
|
||||||
topic: "cmnd/sonoffs/SetOption19"
|
|
||||||
payload: "1"
|
|
||||||
```
|
|
||||||
|
|
||||||
### Tip: Sync power state
|
### Tip: Sync power state
|
||||||
|
|
||||||
|
@ -124,3 +107,22 @@ Use this automation to get all your (auto discovered) devices in sync, including
|
||||||
topic: "sonoffs/cmnd/state"
|
topic: "sonoffs/cmnd/state"
|
||||||
payload: ""
|
payload: ""
|
||||||
```
|
```
|
||||||
|
### 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.\
|
||||||
|
The automation will be triggered each time Home Assistant is (re)started although it is necessary to run it only if you have a device that doesn't have `SetOption19` enabled. After all your devices are setup with autodiscovery its advisable to turn off or delete this automation.
|
||||||
|
|
||||||
|
This can also be done manually in Home Assistant UI through Developer tools - ![](https://cdn.pbrd.co/images/HY47i1b.jpg) (MQTT) by posting to topic `cmnd/sonoffs/SetOption19` with payload `1`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example automations.yaml entry
|
||||||
|
- alias: "Enable MQTT discovery for all devices"
|
||||||
|
trigger:
|
||||||
|
platform: homeassistant
|
||||||
|
event: start
|
||||||
|
action:
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: "cmnd/sonoffs/SetOption19"
|
||||||
|
payload: "1"
|
||||||
|
```
|
Loading…
Reference in New Issue