Skip to content

Commit 4b077b4

Browse files
craigjmidwinterfrenck
authored andcommitted
Dominos Pizza Docs (home-assistant#3899)
* add dominos * more doc fixes * change schema * update documentation * add info for custom panel * Updated as per notes * fix configuration variables * fix version * update configuration variables * fix yaml
1 parent 5a12452 commit 4b077b4

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed

source/_components/dominos.markdown

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
---
2+
layout: page
3+
title: "Dominos Pizza"
4+
description: "Instructions on how to setup Dominos Pizza ordering within Home Assistant."
5+
date: 2017-11-05 17:30
6+
sidebar: true
7+
comments: false
8+
sharing: true
9+
footer: true
10+
logo: dominos.png
11+
ha_category: Other
12+
ha_version: 0.59
13+
---
14+
15+
The `Dominos` component allows you to order Dominos Pizza from within your Home Assistant scripts and automations.
16+
17+
At present, this component only supports ordering within Canada and the US.
18+
19+
To enable the component, you need to set up your customer information and define some orders.
20+
21+
Orders are a group of product codes. You can get these product codes by inspecting an order request from the Dominos web app, or you can [add this custom panel by following this readme](https://github.com/wardcraigj/hass-dominos-panel) to see the available product codes in a separate panel in your install.
22+
23+
Currently, there is no support in this component for toppings, coupons or order tracking.
24+
25+
```yaml
26+
dominos:
27+
country_code: ca
28+
first_name: Justin
29+
last_name: Trudeau
30+
email: justin.trudeau@parl.gc.ca
31+
phone: 6139950253
32+
address: 24 Sussex Dr, Ottawa, ON, K1M1M4
33+
orders:
34+
- name: Medium Pan
35+
codes:
36+
- P12IPAZA
37+
```
38+
39+
Now you can use the Dominos service to order pizza within your automations:
40+
41+
```yaml
42+
- service: dominos.order
43+
data:
44+
order_entity_id: dominos.medium_pan
45+
```
46+
47+
{% configuration %}
48+
country_code:
49+
required: true
50+
description: \'ca\' or \'us\', depending on your location
51+
type: string
52+
first_name:
53+
required: true
54+
description: Your first name
55+
type: string
56+
last_name:
57+
required: true
58+
description: Your last name
59+
type: string
60+
email:
61+
required: true
62+
description: Your email address
63+
type: string
64+
phone:
65+
required: true
66+
description: Your phone number
67+
type: string
68+
address:
69+
required: true
70+
description: Your delivery address
71+
type: string
72+
show_menu:
73+
required: false
74+
description: Dumps product codes from your nearest store into your log (for use in with the custom panel)
75+
type: integer
76+
orders:
77+
required: false
78+
description: Sets of product codes to use for ordering
79+
type: list
80+
{% endconfiguration %}
3.48 MB
Loading

0 commit comments

Comments
 (0)