From 47ffd9b78e2876a7458d2e717637edd130c6ea68 Mon Sep 17 00:00:00 2001 From: blakadder Date: Fri, 25 Jan 2019 11:32:33 +0100 Subject: [PATCH] redid autodiscovery tip since it seems the automation itself could cause problems with the new lovelace ui and tasmoadmin running --- Home-Assistant.md | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/Home-Assistant.md b/Home-Assistant.md index 381dc359..b423bd7a 100644 --- a/Home-Assistant.md +++ b/Home-Assistant.md @@ -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) ## 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 @@ -123,4 +106,23 @@ Use this automation to get all your (auto discovered) devices in sync, including data: topic: "sonoffs/cmnd/state" 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" ``` \ No newline at end of file