Skip to content

Commit 1dfc659

Browse files
andersonshatchfabaff
authored andcommitted
Document notify.webostv icon configuration (home-assistant#2188)
* Document notify.webos icon configuration * Add full automation example with overridden icon * Grammar fix
1 parent f0503a3 commit 1dfc659

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/_components/notify.webostv.markdown

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Configuration variables:
3333
- **host** (*Required*): The IP of the LG WebOS Smart TV, e.g. 192.168.0.10
3434
- **name** (*Required*): The name you would like to give to the LG WebOS Smart TV.
3535
- **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`.
36+
- **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.
3637

3738
A possible automation could be:
3839

@@ -49,3 +50,20 @@ automation:
4950
data:
5051
message: "You should open a window! (Livingroom Co2: {{ states.sensor.netatmo_livingroom_co2.state }}ppm)"
5152
```
53+
54+
The icon can be overridden for individual notifications by providing a path to an alternative icon image to use:
55+
56+
```yaml
57+
automation:
58+
- alias: Front door motion
59+
trigger:
60+
platform: state
61+
entity_id: binary_sensor.front_door_motion
62+
state: 'on'
63+
action:
64+
service: notify.livingroom_tv
65+
data:
66+
message: "Movement detected: Front Door"
67+
data:
68+
icon: "/home/homeassistant/images/doorbell.png"
69+
```

0 commit comments

Comments
 (0)