mirror of
https://github.com/fmtr/haco.git
synced 2026-10-26 19:01:51 -04:00
Make links absolute
This commit is contained in:
parent
872ecbad27
commit
54a090c6e8
1 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
|
@ -21,7 +21,7 @@ def ha(value) -> Tasmota[str, 'tasmota.cmd("restart 1")']:
|
|||
|
||||
A fully functional restart button will now appear associated with the device in Home Assistant:
|
||||
|
||||
<img alt="Restart Button" height=50% src="assets/restart_button.png" width=50%/>
|
||||
<img alt="Restart Button" height=50% src="https://github.com/fmtr/haco/tree/release/assets/restart_button.png" width=50%/>
|
||||
|
||||
Or, more practically, a cookbook pull-down menu, for a Tuya air fryer, might look like this:
|
||||
|
||||
|
|
@ -41,7 +41,7 @@ def tasmota(value: int):
|
|||
return OPTIONS[value]
|
||||
```
|
||||
|
||||
<img alt="Air Fryer Cookbook" height=50% src="assets/air_fryer_cookbook.png" width=50%/>
|
||||
<img alt="Air Fryer Cookbook" height=50% src="https://github.com/fmtr/haco/tree/release/assets/air_fryer_cookbook.png" width=50%/>
|
||||
|
||||
## Do I Need This? Can't I Do this with Native Tasmota?
|
||||
|
||||
|
|
@ -139,7 +139,7 @@ Device "Tasmota Test Device" successfully configured. Hostname: tasmota-test MAC
|
|||
In Home Assistant, find the device in [the Devices section](https://my.home-assistant.io/redirect/devices/). You should
|
||||
now see a test Select (pulldown) control called "Greeter".
|
||||
|
||||
<img alt="WebLog Select" height=50% src="assets/greeter_select.png" width=50%/>
|
||||
<img alt="WebLog Select" height=50% src="https://github.com/fmtr/haco/tree/release/assets/greeter_select.png" width=50%/>
|
||||
|
||||
Selecting the greetings from the pulldown, you should see them appear in your Tasmota Berry console, e.g.
|
||||
|
||||
|
|
@ -207,7 +207,7 @@ def tasmota(value: int):
|
|||
|
||||
```
|
||||
|
||||
<img alt="Memory Sensor" height=50% src="assets/memory_sensor.png" width=50%/>
|
||||
<img alt="Memory Sensor" height=50% src="https://github.com/fmtr/haco/tree/release/assets/memory_sensor.png" width=50%/>
|
||||
|
||||
Let's break this control definition down into the control object, the callback decorator, and the callback itself.
|
||||
|
||||
|
|
@ -320,7 +320,7 @@ as their corresponding number values (`WebLog 1`, `WebLog2`) used by Tasmota.
|
|||
The `tasmota` callback, naturally enough, does the exact opposite, returning the string names to Home Assistant whenever
|
||||
the `WebLog` command is used on the Tasmota side.
|
||||
|
||||
<img alt="WebLog Select" height=50% src="assets/weblog_select.png" width=50%/>
|
||||
<img alt="WebLog Select" height=50% src="https://github.com/fmtr/haco/tree/release/assets/weblog_select.png" width=50%/>
|
||||
|
||||
#### Debugging Your Configuration
|
||||
|
||||
|
|
@ -339,7 +339,7 @@ to include the name of the capability. So if you want to add callbacks around se
|
|||
a `Climate` control, you'd need to call your callbacks `target_humidity_tasmota` and `target_humidity_ha`, etc.
|
||||
|
||||
A full schema of these names will appear in subsequent documentation. But you can find example implementations for most
|
||||
controls in the [built-in `development` config](../../blob/release/haco/configs/development.py).
|
||||
controls in the [built-in `development` config](https://github.com/fmtr/haco/tree/release/haco/configs/development.py).
|
||||
|
||||
Anway, if you get the names wrong, you'll see an error like this in your Add-On logs:
|
||||
|
||||
|
|
@ -350,5 +350,5 @@ ValueError: Callback function name "set_mode_ha" is not valid for control "Clima
|
|||
#### Additional Resources
|
||||
|
||||
Beyond these examples, when creating your own configuration, you'll probably find
|
||||
the [built-in configurations](../../tree/release/haco/configs) (especially
|
||||
the [`development` config](../../blob/release/haco/configs/development.py)) useful.
|
||||
the [built-in configurations](https://github.com/fmtr/haco/tree/release/haco/configs) (especially
|
||||
the [`development` config](https://github.com/fmtr/haco/tree/release/haco/configs/development.py)) useful.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue