diff --git a/homeassistant/components/html5/const.py b/homeassistant/components/html5/const.py
new file mode 100644
index 00000000000..1d0689511b2
--- /dev/null
+++ b/homeassistant/components/html5/const.py
@@ -0,0 +1,3 @@
+"""Constants for the HTML5 component."""
+DOMAIN = "html5"
+SERVICE_DISMISS = "dismiss"
diff --git a/homeassistant/components/html5/notify.py b/homeassistant/components/html5/notify.py
index 18b7ff27ab4..481a00e96e1 100644
--- a/homeassistant/components/html5/notify.py
+++ b/homeassistant/components/html5/notify.py
@@ -34,17 +34,16 @@ from homeassistant.components.notify import (
ATTR_TARGET,
ATTR_TITLE,
ATTR_TITLE_DEFAULT,
- DOMAIN,
PLATFORM_SCHEMA,
BaseNotificationService,
)
+from .const import DOMAIN, SERVICE_DISMISS
+
_LOGGER = logging.getLogger(__name__)
REGISTRATIONS_FILE = "html5_push_registrations.conf"
-SERVICE_DISMISS = "html5_dismiss"
-
ATTR_GCM_SENDER_ID = "gcm_sender_id"
ATTR_GCM_API_KEY = "gcm_api_key"
ATTR_VAPID_PUB_KEY = "vapid_pub_key"
diff --git a/homeassistant/components/html5/services.yaml b/homeassistant/components/html5/services.yaml
index e69de29bb2d..5fd068a64dc 100644
--- a/homeassistant/components/html5/services.yaml
+++ b/homeassistant/components/html5/services.yaml
@@ -0,0 +1,9 @@
+dismiss:
+ description: Dismiss a html5 notification.
+ fields:
+ target:
+ description: An array of targets. Optional.
+ example: ['my_phone', 'my_tablet']
+ data:
+ description: Extended information of notification. Supports tag. Optional.
+ example: '{ "tag": "tagname" }'
diff --git a/homeassistant/components/notify/services.yaml b/homeassistant/components/notify/services.yaml
index 1b7944cc7da..23b1c968c4a 100644
--- a/homeassistant/components/notify/services.yaml
+++ b/homeassistant/components/notify/services.yaml
@@ -16,16 +16,6 @@ notify:
description: Extended information for notification. Optional depending on the platform.
example: platform specific
-html5_dismiss:
- description: Dismiss a html5 notification.
- fields:
- target:
- description: An array of targets. Optional.
- example: ['my_phone', 'my_tablet']
- data:
- description: Extended information of notification. Supports tag. Optional.
- example: '{ "tag": "tagname" }'
-
apns_register:
description: Registers a device to receive push notifications.
fields: