1+ {
2+ "config" : {
3+ "step" : {
4+ "user" : {
5+ "description" : " If you need help with the configuration have a look here: https://andrew-codechimp.github.io/HA-Battery-Notes/" ,
6+ "data" : {
7+ "association_type" : " Association type"
8+ },
9+ "menu_options" : {
10+ "device" : " Device (recommended)" ,
11+ "entity" : " Entity"
12+ },
13+ "title" : " Choose your association type"
14+ },
15+ "device" : {
16+ "data" : {
17+ "device_id" : " Device" ,
18+ "name" : " Name"
19+ },
20+ "data_description" : {
21+ "name" : " Leaving blank will take the name from the source device"
22+ }
23+ },
24+ "entity" : {
25+ "data" : {
26+ "source_entity_id" : " Entity" ,
27+ "name" : " Name"
28+ },
29+ "data_description" : {
30+ "name" : " Leaving blank will take the name from the source entity"
31+ }
32+ },
33+ "battery" : {
34+ "data" : {
35+ "battery_type" : " Battery type" ,
36+ "battery_quantity" : " Battery quantity" ,
37+ "battery_low_threshold" : " Battery low threshold" ,
38+ "battery_low_template" : " Battery low template"
39+ },
40+ "data_description" : {
41+ "battery_low_threshold" : " 0 will use the global default threshold" ,
42+ "battery_low_template" : " Template to determine a battery is low, should return true if low\n Only needed for non-standard battery levels"
43+ }
44+ }
45+ },
46+ "abort" : {
47+ "already_configured" : " Device is already configured"
48+ },
49+ "error" : {
50+ "unknown" : " Unknown error occurred."
51+ }
52+ },
53+ "options" : {
54+ "step" : {
55+ "init" : {
56+ "description" : " If you need help with the configuration have a look here: https://andrew-codechimp.github.io/HA-Battery-Notes/" ,
57+ "data" : {
58+ "name" : " Name" ,
59+ "battery_type" : " Battery type" ,
60+ "battery_quantity" : " Battery quantity" ,
61+ "battery_low_threshold" : " Battery low threshold" ,
62+ "battery_low_template" : " Battery low template"
63+ },
64+ "data_description" : {
65+ "name" : " Leaving blank will take the name from the source device" ,
66+ "battery_low_threshold" : " 0 will use the global default threshold" ,
67+ "battery_low_template" : " Template to determine a battery is low, should return true if low\n Only needed for non-standard battery levels"
68+ }
69+ }
70+ },
71+ "error" : {
72+ "unknown" : " Unknown error occurred."
73+ }
74+ },
75+ "entity" : {
76+ "binary_sensor" : {
77+ "battery_low" : {
78+ "name" : " {device_name}Battery low" ,
79+ "state_attributes" : {
80+ "battery_low_threshold" : {
81+ "name" : " Battery low threshold"
82+ }
83+ }
84+ }
85+ },
86+ "button" : {
87+ "battery_replaced" : {
88+ "name" : " {device_name}Battery replaced"
89+ }
90+ },
91+ "sensor" : {
92+ "battery_plus" : {
93+ "name" : " {device_name}Battery+" ,
94+ "state_attributes" : {
95+ "battery_type" : {
96+ "name" : " Battery type"
97+ },
98+ "battery_quantity" : {
99+ "name" : " Battery quantity"
100+ },
101+ "battery_type_and_quantity" : {
102+ "name" : " Battery type and quantity"
103+ },
104+ "battery_last_replaced" : {
105+ "name" : " Battery last replaced"
106+ },
107+ "battery_low" : {
108+ "name" : " Battery low"
109+ },
110+ "battery_low_threshold" : {
111+ "name" : " Battery low threshold"
112+ },
113+ "battery_last_reported" : {
114+ "name" : " Battery last reported"
115+ },
116+ "battery_last_reported_level" : {
117+ "name" : " Battery last reported level"
118+ },
119+ "source_entity_id" : {
120+ "name" : " Source Entity Id"
121+ },
122+ "device_id" : {
123+ "name" : " Device Id"
124+ },
125+ "device_name" : {
126+ "name" : " Device name"
127+ }
128+ }
129+ },
130+ "battery_type" : {
131+ "name" : " {device_name}Battery type" ,
132+ "state_attributes" : {
133+ "battery_type" : {
134+ "name" : " Battery type"
135+ },
136+ "battery_quantity" : {
137+ "name" : " Battery quantity"
138+ }
139+ }
140+ },
141+ "battery_last_replaced" : {
142+ "name" : " {device_name}Battery last replaced"
143+ }
144+ }
145+ },
146+ "services" : {
147+ "set_battery_replaced" : {
148+ "description" : " Set the battery last replaced." ,
149+ "fields" : {
150+ "device_id" : {
151+ "description" : " Device that has had its battery replaced." ,
152+ "name" : " Device"
153+ },
154+ "entity_id" : {
155+ "description" : " Entity that has had its battery replaced." ,
156+ "name" : " Entity"
157+ },
158+ "datetime_replaced" : {
159+ "description" : " Date replaced." ,
160+ "name" : " Date"
161+ }
162+ },
163+ "name" : " Set battery replaced"
164+ },
165+ "check_battery_last_reported" : {
166+ "description" : " Raise events for devices that haven't reported their battery level." ,
167+ "fields" : {
168+ "days_last_reported" : {
169+ "description" : " Number of days since a device last reported its battery level." ,
170+ "name" : " Days"
171+ }
172+ },
173+ "name" : " Check battery last reported"
174+ },
175+ "check_battery_low" : {
176+ "description" : " Raise events for devices that have a low battery." ,
177+ "name" : " Check battery low"
178+ }
179+ }
180+ }
0 commit comments