You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Changed to ordered list.
* Add information for HASSIO domain verifying
HASSIO Users need to place the domain verification file from google to a
specific location.
Add information about the "www" directory and how to open it in he
browser.
Copy file name to clipboardExpand all lines: source/_components/notify.html5.markdown
+16-6Lines changed: 16 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -33,24 +33,33 @@ Configuration variables:
33
33
34
34
### {% linkable_title Getting ready for Chrome %}
35
35
36
-
- Create new project at [https://console.cloud.google.com/home/dashboard](https://console.cloud.google.com/home/dashboard).
37
-
- Go to [https://console.cloud.google.com/apis/credentials/domainverification](https://console.cloud.google.com/apis/credentials/domainverification) and verify your domain.
38
-
- After that, go to [https://console.firebase.google.com](https://console.firebase.google.com) and select import Google project, select the project you created.
39
-
- Then, click the cogwheel on top left and select "Project settings".
40
-
- Select 'Cloud Messaging' tab, listed beneath Project Credentials will be your 152 character 'Server Key' and 12 digit ID 'Sender ID'.
36
+
1. Create new project at [https://console.cloud.google.com/home/dashboard](https://console.cloud.google.com/home/dashboard).
37
+
2. Go to [https://console.cloud.google.com/apis/credentials/domainverification](https://console.cloud.google.com/apis/credentials/domainverification) and verify your domain.
38
+
3. After that, go to [https://console.firebase.google.com](https://console.firebase.google.com) and select import Google project, select the project you created.
39
+
4. Then, click the cogwheel on top left and select "Project settings".
40
+
5. Select 'Cloud Messaging' tab, listed beneath Project Credentials will be your 152 character 'Server Key' and 12 digit ID 'Sender ID'.
41
+
42
+
#### {% linkable_title Verify your domain with Hass.io %}
43
+
44
+
1. For verifying your domain you need to download a file in step 2.
45
+
2. Create a dictionary named "www" in you Hass.io configuration dictionary.
46
+
3. Place the file (something like this: google*.html) in the "www" directory.
47
+
4. You can open it by going to **https://yourdomain/local/exact_file_name.html**
48
+
5. Proceed with step 3.
41
49
42
50
### {% linkable_title Requirements %}
43
51
44
52
The `html5` platform can only function if all of the following requirements are met:
45
53
(On Hass.io these requirements are already met.)
46
54
47
-
* You are using Chrome and/or Firefox on any desktop platform, ChromeOS, or Android.
55
+
* You are using Chrome and/or Firefox on any desktop platform, ChromeOS or Android.
48
56
* Your Home Assistant instance is exposed to the world.
49
57
* If using a proxy, HTTP basic authentication must be off for registering or unregistering for push notifications. It can be re-enabled afterwards.
50
58
* `pywebpush` must be installed. `libffi-dev`, `libpython-dev`, and `libssl-dev` must be installed prior to `pywebpush` (i.e. `pywebpush` probably won't automatically install).
51
59
* You have configured SSL for your Home Assistant. It doesn't need to be configured in Home Assistant though, i.e. you can be running [NGINX](/ecosystem/nginx/) in front of Home Assistant and this will still work. The certificate must be trustworthy (i.e. not self signed).
52
60
* You are willing to accept the notification permission in your browser.
53
61
62
+
54
63
### {% linkable_title Setting up %}
55
64
56
65
Assuming you have already added the platform to your configuration:
@@ -62,6 +71,7 @@ Assuming you have already added the platform to your configuration:
62
71
5. Assuming you accept, that's all there is to it!
63
72
6. (Optional, but highly recommended!) Open the `html5_push_registrations.conf` file in your configuration directory. You will see a new entry for the browser you just added. Rename it from `unnamed device` to a name of your choice, which will make it easier to identify later. _Do not change anything else in this file!_ You need to restart Home Assistant after making any changes to the file.
64
73
74
+
65
75
### {% linkable_title Usage %}
66
76
67
77
The `html5` platform accepts a standard notify payload. However, there are also some special features built in which you can control in the payload.
0 commit comments