|
28 | 28 | "actions": ["start", "stop"]
|
29 | 29 | },
|
30 | 30 |
|
31 |
| - "analog": { |
32 |
| - "properties": ["readtimems", "hysteresis", "pin", "reference", "mapinmin", "mapinmax", "mapoutmin", "mapoutmax"], |
| 31 | + "sensor": { |
| 32 | + "properties": ["warmuptime", "readtime", "resendtime", "restart"] |
| 33 | + }, |
| 34 | + |
| 35 | + "analog": { "extends": "sensor", |
| 36 | + "properties": ["pin", "hysteresis", "reference", "mapinmin", "mapinmax", "mapoutmin", "mapoutmax"], |
33 | 37 | "events": ["onvalue", "onreference", "onhigh", "onlow"]
|
34 | 38 | },
|
35 | 39 |
|
|
179 | 183 |
|
180 | 184 | "display":{
|
181 | 185 | "ui": "display",
|
182 |
| - "properties": ["color", "background", "address", "spimosi", "spimiso", "spiclk", "spics", "spidc", "invert", "resetpin", "lightpin", "width", "height", "rotation"], |
| 186 | + "properties": ["width", "height", "rotation", "busmode", "address", "spimosi", "spimiso", "spiclk", "cspin", "dcpin", "color", "background", "border", "invert", "resetpin", "lightpin"], |
183 | 187 | "actions" : ["brightness", "page", "addpage", "clear"],
|
184 | 188 | "events": ["onpage"]
|
185 | 189 | },
|
|
189 | 193 | "displayst7735": { "extends": "display", "ui": "display" },
|
190 | 194 | "displayst7789": { "extends": "display", "ui": "display" },
|
191 | 195 | "displayst7796": { "extends": "display", "ui": "display" },
|
| 196 | + "displaygc9a01": { "extends": "display", "ui": "display" }, |
| 197 | + |
| 198 | + "displaytouchcst816": { "icon": "default", "sys": "true", |
| 199 | + "properties": ["address", "width", "height", "rotation", "interruptpin", "resetpin"], |
| 200 | + "events": ["ontouch"] |
| 201 | + }, |
192 | 202 |
|
193 | 203 | "displaytouchgt911": { "icon": "default",
|
194 |
| - "properties": ["address", "width", "height", "rotation", "interruptpin", "resetpin"] |
| 204 | + "properties": ["address", "width", "height", "rotation", "interruptpin", "resetpin"], |
| 205 | + "events": ["ontouch"] |
195 | 206 | },
|
196 | 207 |
|
197 | 208 | "displaytouchft6336": { "icon": "default",
|
|
215 | 226 | "events": ["onvoltage", "oncurrent", "onpower"]
|
216 | 227 | },
|
217 | 228 |
|
218 |
| - "ina219": { |
219 |
| - "ui": "ina2xx", |
220 |
| - "properties": ["address", "readtime", "warmuptime", "resendtime", "restart", |
221 |
| - "gain", "mode", "samples", "range"], |
| 229 | + "ina219": { "extends": "sensor", "ui": "ina2xx", |
| 230 | + "properties": ["address", "gain", "mode", "samples", "range"], |
222 | 231 | "events": ["onvoltage", "oncurrent", "onpower"]
|
223 | 232 | },
|
224 | 233 |
|
225 |
| - "ina226": { |
226 |
| - "ui": "ina2xx", |
227 |
| - "properties": ["address", "readtime", "warmuptime", "resendtime", "restart", |
228 |
| - "gain", "mode", "samples", "range"], |
| 234 | + "ina226": { "extends": "sensor", "ui": "ina2xx", |
| 235 | + "properties": ["address", "gain", "mode", "samples", "range"], |
229 | 236 | "events": ["onvoltage", "oncurrent", "onpower"]
|
230 | 237 | },
|
231 | 238 |
|
232 |
| - "dht": { |
233 |
| - "ui": "air", |
234 |
| - "properties": ["pin", "readtime", "warmuptime", "resendtime", "restart"], |
| 239 | + "dht": { "extends": "sensor", "ui": "air", |
| 240 | + "properties": ["pin"], |
235 | 241 | "events": ["ontemperature", "onhumidity"]
|
236 | 242 | },
|
237 | 243 |
|
238 |
| - "aht20": { |
239 |
| - "icon": "dht", "ui": "air", |
240 |
| - "properties": ["address", "readtime", "warmuptime", "resendtime", "restart"], |
| 244 | + "aht20": { "extends": "sensor", "icon": "dht", "ui": "air", |
| 245 | + "properties": ["address"], |
241 | 246 | "events": ["ontemperature", "onhumidity"]
|
242 | 247 | },
|
243 | 248 |
|
244 |
| - "am2320": { |
245 |
| - "icon": "dht", "ui": "air", |
246 |
| - "properties": ["address", "readtime", "warmuptime", "resendtime", "restart"], |
| 249 | + "am2320": { "extends": "sensor", "icon": "dht", "ui": "air", |
| 250 | + "properties": ["address"], |
247 | 251 | "events": ["ontemperature", "onhumidity"]
|
248 | 252 | },
|
249 | 253 |
|
250 |
| - "sht20": { |
251 |
| - "icon": "dht", "ui": "air", |
252 |
| - "properties": ["address", "readtime", "warmuptime", "resendtime", "restart"], |
| 254 | + "sht20": { "extends": "sensor", "icon": "dht", "ui": "air", |
| 255 | + "properties": ["address"], |
253 | 256 | "events": ["ontemperature", "onhumidity"]
|
254 | 257 | },
|
255 | 258 |
|
256 |
| - "dallas": { |
257 |
| - "properties": ["pin", "readtime", "warmuptime", "resendtime", "restart"], |
| 259 | + "dallas": { "extends": "sensor", |
| 260 | + "properties": ["pin"], |
258 | 261 | "events": ["ontemperature"]
|
259 | 262 | },
|
260 | 263 |
|
261 |
| - "bme680": { |
262 |
| - "icon": "dht", "ui": "air", |
263 |
| - "properties": ["address", "readtime", "warmuptime", "resendtime", "restart"], |
| 264 | + "bme680": { "extends": "sensor", "icon": "dht", "ui": "air", |
| 265 | + "properties": ["address"], |
264 | 266 | "events": ["ontemperature", "onhumidity", "onpressure", "ongas"]
|
265 | 267 | },
|
266 | 268 |
|
267 |
| - "bmp280": { |
268 |
| - "icon": "dht", "ui": "air", |
269 |
| - "properties": ["address", "readtime", "warmuptime", "resendtime", "restart"], |
| 269 | + "bmp280": { "extends": "sensor", "icon": "dht", "ui": "air", |
| 270 | + "properties": ["address"], |
270 | 271 | "events": ["ontemperature", "onpressure"]
|
271 | 272 | },
|
272 | 273 |
|
273 |
| - "scd4x": { |
274 |
| - "icon": "dht", "ui": "air", |
275 |
| - "properties": ["address", "readtime", "warmuptime", "resendtime", "restart"], |
| 274 | + "scd4x": { "extends": "sensor", "icon": "dht", "ui": "air", |
| 275 | + "properties": ["address"], |
276 | 276 | "events": ["ontemperature", "onhumidity", "onco2"]
|
277 | 277 | },
|
278 | 278 |
|
279 |
| - "bh1750": { |
280 |
| - "properties": ["address", "mode", "factor", "readtime", "warmuptime", "resendtime", "restart"], |
| 279 | + "bh1750": { "extends": "sensor", |
| 280 | + "properties": ["address", "mode", "factor"], |
281 | 281 | "events": ["onvalue"]
|
282 | 282 | },
|
283 | 283 |
|
284 |
| - "pms": { |
285 |
| - "properties": ["pinrx", "pintx", "readtime", "warmuptime", "resendtime", "restart"], |
| 284 | + "pms": { "extends": "sensor", |
| 285 | + "properties": ["pinrx", "pintx"], |
286 | 286 | "events": ["onvalue"]
|
287 | 287 | },
|
288 | 288 |
|
|
359 | 359 | },
|
360 | 360 |
|
361 | 361 | "timer": {
|
362 |
| - "properties": ["type", "waittime", "pulsetime", "cycletime"], |
363 |
| - "actions": ["next"], |
| 362 | + "properties": ["mode", "waittime", "pulsetime", "cycletime", "restart"], |
| 363 | + "actions": ["start", "stop", "next"], |
364 | 364 | "events": ["onon", "onoff", "onvalue"]
|
365 | 365 | },
|
366 | 366 |
|
|
0 commit comments