tmjpugh
(Tmjpugh)
1
Please add image support to HTML5 component
I add “image” into line 97 and image are able to be added to notification
BEFORE
HTML5_SHOWNOTIFICATION_PARAMETERS = (
'actions', 'badge', 'body', 'dir', 'icon', 'lang', 'renotify',
'requireInteraction', 'tag', 'timestamp', 'vibrate')
AFTER
HTML5_SHOWNOTIFICATION_PARAMETERS = (
'actions', 'badge', 'body', 'dir', 'icon', 'image', 'lang', 'renotify',
'requireInteraction', 'tag', 'timestamp', 'vibrate')
Bieniu
(Maciek)
2
Can you give an example of HA automation using notification with image?
tmjpugh
(Tmjpugh)
3
- alias: 'Notify Gate Closed'
trigger:
- platform: state
entity_id: binary_sensor.south_gate
from: 'on'
to: 'off'
action:
- service: notify.notify
data:
title: 'GATE'
message: 'Closed'
target:
- 'PHONE_MyPhone'
data:
tag: alert
url: 'https://mysite.com/kiosk/group.garage' #onclick go to this site
image: "https://My.HAServer.com/api/camera_proxy/camera.MyCamera?api_password=MyHAPassword"
vibrate: #vibrate300,pause100,vibrate300
- 300
- 100
- 300
renotify: 0
1 Like
Bieniu
(Maciek)
4
cgarwood
(Charles Garwood)
5
1 Like