mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Document notify.webostv icon configuration (#2188)
* Document notify.webos icon configuration * Add full automation example with overridden icon * Grammar fix
This commit is contained in:
parent
f0503a3088
commit
1dfc659fa6
@ -33,6 +33,7 @@ Configuration variables:
|
|||||||
- **host** (*Required*): The IP of the LG WebOS Smart TV, e.g. 192.168.0.10
|
- **host** (*Required*): The IP of the LG WebOS Smart TV, e.g. 192.168.0.10
|
||||||
- **name** (*Required*): The name you would like to give to the LG WebOS Smart TV.
|
- **name** (*Required*): The name you would like to give to the LG WebOS Smart TV.
|
||||||
- **filename** (*Optional*): The filename where the pairing key with the TV should be stored. This path is relative to Home Assistant's config directory. It defaults to `webostv.conf`.
|
- **filename** (*Optional*): The filename where the pairing key with the TV should be stored. This path is relative to Home Assistant's config directory. It defaults to `webostv.conf`.
|
||||||
|
- **icon** (*Optional*): The path to an image file to use as the icon in notifications. If provided, this image will override the Home Assistant logo.
|
||||||
|
|
||||||
A possible automation could be:
|
A possible automation could be:
|
||||||
|
|
||||||
@ -49,3 +50,20 @@ automation:
|
|||||||
data:
|
data:
|
||||||
message: "You should open a window! (Livingroom Co2: {{ states.sensor.netatmo_livingroom_co2.state }}ppm)"
|
message: "You should open a window! (Livingroom Co2: {{ states.sensor.netatmo_livingroom_co2.state }}ppm)"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
The icon can be overridden for individual notifications by providing a path to an alternative icon image to use:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
automation:
|
||||||
|
- alias: Front door motion
|
||||||
|
trigger:
|
||||||
|
platform: state
|
||||||
|
entity_id: binary_sensor.front_door_motion
|
||||||
|
state: 'on'
|
||||||
|
action:
|
||||||
|
service: notify.livingroom_tv
|
||||||
|
data:
|
||||||
|
message: "Movement detected: Front Door"
|
||||||
|
data:
|
||||||
|
icon: "/home/homeassistant/images/doorbell.png"
|
||||||
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user