Joe_Saiko
(Joe Saiko)
July 22, 2020, 3:17pm
1
I followed the doc. Debug messages show that its sent but nothing shows up. Any ideas?
2020-07-22 11:15:21 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1635799344] Received {'type': 'call_service', 'domain': 'notify', 'service': 'homeassistant', 'service_data': {'message': 'hello world'}, 'id': 27}
2020-07-22 11:15:21 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=notify, service=homeassistant, service_data=message=hello world>
2020-07-22 11:15:21 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1635799344] Sending {'id': 27, 'type': 'result', 'success': True, 'result': {'context': Context(user_id='***********', parent_id=None, id='**************')}}
tmjpugh
(Tmjpugh)
July 22, 2020, 4:41pm
2
Need to post automation you using to send.
From what I see there looking like you using wrong service “homeassistant” but can’t tell since you post no config or other info
1 Like
Joe_Saiko
(Joe Saiko)
July 22, 2020, 5:20pm
3
I am using the services tab in developer tools to send the test message. No automation yet.
{"message":"hello world"}
notify:
- platform: html5
name: HomeAssistant
vapid_pub_key: #######
vapid_prv_key: ######
vapid_email: [email protected]
KTibow
(Kendell R)
July 22, 2020, 5:47pm
4
In developer tools, what are you using?
Joe_Saiko
(Joe Saiko)
July 23, 2020, 12:19am
5
notify.homeassistant
{"message":"hello world"}
KTibow
(Kendell R)
July 23, 2020, 1:14am
6
Look at how to get your email: https://www.home-assistant.io/integrations/html5#configuring-the-platform Also don’t use JSON, use:
message: hello world
And usually homeassistant
is a reserved keyword, try naming it html5
instead.
Joe_Saiko
(Joe Saiko)
July 23, 2020, 1:55am
7
Thank you. I have done everything you said and no change.
Service
notify.html5
Service Data (YAML, optional)
message: hello world
KTibow
(Kendell R)
July 23, 2020, 1:56am
8
Hmm… Have you turned on the HTML5 notifications under profile config? Also make sure your email has two @s in it.
tmjpugh
(Tmjpugh)
July 23, 2020, 2:06am
9
In automations the service data is not message
Not sure format for dev tools
service_data:
data:
message: hello world
tmjpugh
(Tmjpugh)
July 23, 2020, 2:10am
10
I checked and json worked but I could not get to work without json
Service
notify.html5
Service Data:
{ message: hello world}
I also test the message you send above and it success so maybe look at link and use some troubleshooting steps in chrome browser to verify if devices are event connecting to service.
Also check in config folder to verify html5_push_regristrations.conf exist and shows devices registered
https://community.home-assistant.io/t/html5-notification-vapid-migration-not-working
KTibow
(Kendell R)
July 24, 2020, 2:18am
11
Devtools auto-inserts the message, just use
message: hello world
Joe_Saiko
(Joe Saiko)
July 26, 2020, 10:06pm
12
Still no luck. I have moved on at this point to send tts notifications to my google home mini and its working. HTML5 push would be nice though for when I am on the go.