homey-api 3.6.7 → 3.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4555,6 +4555,9 @@
4555
4555
  "number",
4556
4556
  "string"
4557
4557
  ]
4558
+ },
4559
+ "transparent": {
4560
+ "type": "boolean"
4558
4561
  }
4559
4562
  },
4560
4563
  "x-realtime-bindings": {
@@ -4564,9 +4567,106 @@
4564
4567
  "delete": "appwidget.delete"
4565
4568
  }
4566
4569
  }
4570
+ },
4571
+ "WidgetStore": {
4572
+ "id": "widgetstore",
4573
+ "type": "id",
4574
+ "schema": {
4575
+ "type": "object",
4576
+ "additionalProperties": false,
4577
+ "properties": {
4578
+ "id": {
4579
+ "type": "string",
4580
+ "format": "uuid"
4581
+ },
4582
+ "ownerUri": {
4583
+ "type": "string"
4584
+ },
4585
+ "state": {
4586
+ "type": "object"
4587
+ }
4588
+ },
4589
+ "x-realtime-bindings": {
4590
+ "read": "getWidgetStore",
4591
+ "create": "widgetstore.create",
4592
+ "update": "widgetstore.update",
4593
+ "delete": "widgetstore.delete"
4594
+ }
4595
+ }
4567
4596
  }
4568
4597
  },
4569
4598
  "operations": {
4599
+ "setWidgetStoreState": {
4600
+ "method": "POST",
4601
+ "path": "/widgetstore/:id/state",
4602
+ "private": false,
4603
+ "scopes": [
4604
+ "homey.dashboard.readonly"
4605
+ ],
4606
+ "parameters": {
4607
+ "id": {
4608
+ "in": "path",
4609
+ "required": true,
4610
+ "type": "string"
4611
+ },
4612
+ "replace": {
4613
+ "in": "body",
4614
+ "type": "boolean"
4615
+ },
4616
+ "state": {
4617
+ "in": "body",
4618
+ "type": "object",
4619
+ "required": true
4620
+ }
4621
+ }
4622
+ },
4623
+ "getWidgetStoreState": {
4624
+ "method": "GET",
4625
+ "path": "/widgetstore/:id/state",
4626
+ "private": false,
4627
+ "scopes": [
4628
+ "homey.dashboard.readonly"
4629
+ ],
4630
+ "parameters": {
4631
+ "id": {
4632
+ "in": "path",
4633
+ "required": true,
4634
+ "type": "string"
4635
+ }
4636
+ }
4637
+ },
4638
+ "getWidgetStore": {
4639
+ "method": "GET",
4640
+ "path": "/widgetstore/:id",
4641
+ "private": false,
4642
+ "scopes": [
4643
+ "homey.dashboard.readonly"
4644
+ ],
4645
+ "crud": {
4646
+ "type": "getOne",
4647
+ "item": "WidgetStore"
4648
+ },
4649
+ "parameters": {
4650
+ "id": {
4651
+ "in": "path",
4652
+ "required": true,
4653
+ "type": "string"
4654
+ }
4655
+ }
4656
+ },
4657
+ "getWidgetStores": {
4658
+ "method": "GET",
4659
+ "path": "/widgetstore",
4660
+ "private": false,
4661
+ "scopes": [
4662
+ "homey.dashboard.readonly"
4663
+ ],
4664
+ "crud": {
4665
+ "type": "getAll",
4666
+ "item": "WidgetStore"
4667
+ },
4668
+ "parameters": {}
4669
+ },
4570
4670
  "getAppWidgetAutocomplete": {
4571
4671
  "method": "GET",
4572
4672
  "path": "/appwidget/:id/autocomplete",
@@ -442,6 +442,7 @@
442
442
  "id": "dashboard",
443
443
  "schema": {
444
444
  "type": "object",
445
+ "additionalProperties": false,
445
446
  "properties": {
446
447
  "id": {
447
448
  "type": "string",
@@ -450,56 +451,28 @@
450
451
  "name": {
451
452
  "type": "string"
452
453
  },
453
- "widgets": {
454
- "type": "object",
455
- "additionalProperties": false,
456
- "patternProperties": {
457
- "^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$": {
458
- "type": "object",
459
- "properties": {
460
- "type": {
461
- "type": "string"
462
- },
463
- "x": {
464
- "type": "number"
465
- },
466
- "y": {
467
- "type": "number"
468
- },
469
- "width": {
470
- "type": "number"
471
- },
472
- "height": {
473
- "type": "number"
474
- },
475
- "settings": {
476
- "type": "object"
477
- }
478
- }
479
- }
480
- }
481
- },
482
- "lines": {
483
- "type": "object",
484
- "additionalProperties": false,
485
- "patternProperties": {
486
- "^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[089ab][0-9a-f]{3}-[0-9a-f]{12}$": {
487
- "type": "object",
488
- "properties": {
489
- "x1": {
490
- "type": "number"
491
- },
492
- "x2": {
493
- "type": "number"
494
- },
495
- "y1": {
496
- "type": "number"
497
- },
498
- "y2": {
499
- "type": "number"
500
- },
501
- "settings": {
502
- "type": "object"
454
+ "columns": {
455
+ "type": "array",
456
+ "items": {
457
+ "type": "object",
458
+ "properties": {
459
+ "id": {
460
+ "type": "string",
461
+ "format": "uuid"
462
+ },
463
+ "widgets": {
464
+ "type": "array",
465
+ "items": {
466
+ "type": "object",
467
+ "required": [
468
+ "id"
469
+ ],
470
+ "properties": {
471
+ "id": {
472
+ "type": "string",
473
+ "format": "uuid"
474
+ }
475
+ }
503
476
  }
504
477
  }
505
478
  }
@@ -507,6 +480,28 @@
507
480
  }
508
481
  }
509
482
  }
483
+ },
484
+ "AppWidget": {
485
+ "id": "appwidget",
486
+ "schema": {
487
+ "type": "object",
488
+ "properties": {
489
+ "id": {
490
+ "type": "string"
491
+ }
492
+ }
493
+ }
494
+ },
495
+ "WidgetStore": {
496
+ "id": "widgetstore",
497
+ "schema": {
498
+ "type": "object",
499
+ "properties": {
500
+ "id": {
501
+ "type": "string"
502
+ }
503
+ }
504
+ }
510
505
  }
511
506
  },
512
507
  "operations": {
@@ -573,12 +568,8 @@
573
568
  "type": "string",
574
569
  "required": true
575
570
  },
576
- "widgets": {
577
- "type": "object",
578
- "required": true
579
- },
580
- "lines": {
581
- "type": "object",
571
+ "columns": {
572
+ "type": "array",
582
573
  "required": true
583
574
  }
584
575
  }
@@ -611,11 +602,8 @@
611
602
  "name": {
612
603
  "type": "string"
613
604
  },
614
- "widgets": {
615
- "type": "object"
616
- },
617
- "lines": {
618
- "type": "object"
605
+ "columns": {
606
+ "type": "array"
619
607
  }
620
608
  }
621
609
  }
@@ -639,6 +627,138 @@
639
627
  "required": true
640
628
  }
641
629
  }
630
+ },
631
+ "getAppWidgets": {
632
+ "method": "get",
633
+ "path": "/appwidget",
634
+ "private": false,
635
+ "scopes": [
636
+ "homey.dashboard.readonly"
637
+ ],
638
+ "crud": {
639
+ "type": "getAll",
640
+ "item": "AppWidget"
641
+ },
642
+ "parameters": {}
643
+ },
644
+ "getAppWidget": {
645
+ "method": "get",
646
+ "path": "/appwidget/:id",
647
+ "private": false,
648
+ "scopes": [
649
+ "homey.dashboard.readonly"
650
+ ],
651
+ "crud": {
652
+ "type": "getOne",
653
+ "item": "AppWidget"
654
+ },
655
+ "parameters": {
656
+ "id": {
657
+ "in": "path",
658
+ "type": "string",
659
+ "required": true
660
+ }
661
+ }
662
+ },
663
+ "getAppWidgetAutocomplete": {
664
+ "method": "get",
665
+ "path": "/appwidget/:id/autocomplete",
666
+ "private": false,
667
+ "scopes": [
668
+ "homey.dashboard.readonly"
669
+ ],
670
+ "parameters": {
671
+ "id": {
672
+ "in": "path",
673
+ "type": "string",
674
+ "required": true
675
+ },
676
+ "settingId": {
677
+ "in": "query",
678
+ "type": "string",
679
+ "required": true
680
+ },
681
+ "query": {
682
+ "in": "query",
683
+ "type": "string",
684
+ "required": true
685
+ },
686
+ "settings": {
687
+ "in": "query",
688
+ "type": "object"
689
+ }
690
+ }
691
+ },
692
+ "getWidgetStores": {
693
+ "method": "get",
694
+ "path": "/widgetstore",
695
+ "private": false,
696
+ "scopes": [
697
+ "homey.dashboard.readonly"
698
+ ],
699
+ "crud": {
700
+ "type": "getAll",
701
+ "item": "WidgetStore"
702
+ },
703
+ "parameters": {}
704
+ },
705
+ "getWidgetStore": {
706
+ "method": "get",
707
+ "path": "/widgetstore/:id",
708
+ "private": false,
709
+ "scopes": [
710
+ "homey.dashboard.readonly"
711
+ ],
712
+ "crud": {
713
+ "type": "getOne",
714
+ "item": "WidgetStore"
715
+ },
716
+ "parameters": {
717
+ "id": {
718
+ "in": "path",
719
+ "type": "string",
720
+ "required": true
721
+ }
722
+ }
723
+ },
724
+ "getWidgetStoreState": {
725
+ "method": "get",
726
+ "path": "/widgetstore/:id/state",
727
+ "private": false,
728
+ "scopes": [
729
+ "homey.dashboard.readonly"
730
+ ],
731
+ "parameters": {
732
+ "id": {
733
+ "in": "path",
734
+ "type": "string",
735
+ "required": true
736
+ }
737
+ }
738
+ },
739
+ "setWidgetStoreState": {
740
+ "method": "post",
741
+ "path": "/widgetstore/:id/state",
742
+ "private": false,
743
+ "scopes": [
744
+ "homey.dashboard.readonly"
745
+ ],
746
+ "parameters": {
747
+ "id": {
748
+ "in": "path",
749
+ "type": "string",
750
+ "required": true
751
+ },
752
+ "state": {
753
+ "in": "body",
754
+ "type": "object",
755
+ "required": true
756
+ },
757
+ "replace": {
758
+ "in": "body",
759
+ "type": "boolean"
760
+ }
761
+ }
642
762
  }
643
763
  }
644
764
  },
@@ -1220,6 +1340,235 @@
1220
1340
  }
1221
1341
  }
1222
1342
  },
1343
+ "ManagerEnergyDongle": {
1344
+ "id": "energydongle",
1345
+ "idCamelCase": "energydongle",
1346
+ "items": {},
1347
+ "operations": {
1348
+ "getOptionPhaseLoadNotificationSettings": {
1349
+ "method": "GET",
1350
+ "path": "/option/phaseLoadNotificationSettings",
1351
+ "scopes": [
1352
+ "homey.system.readonly"
1353
+ ]
1354
+ },
1355
+ "setOptionPhaseLoadNotificationSettings": {
1356
+ "method": "PUT",
1357
+ "path": "/option/phaseLoadNotificationSettings",
1358
+ "scopes": [
1359
+ "homey.system"
1360
+ ],
1361
+ "parameters": {
1362
+ "value": {
1363
+ "in": "body",
1364
+ "required": true
1365
+ }
1366
+ }
1367
+ },
1368
+ "unsetOptionPhaseLoadNotificationSettings": {
1369
+ "method": "DELETE",
1370
+ "path": "/option/phaseLoadNotificationSettings",
1371
+ "scopes": [
1372
+ "homey.system"
1373
+ ]
1374
+ },
1375
+ "createAndUploadDiagnosticReport": {
1376
+ "method": "post",
1377
+ "path": "/:deviceId/diagnostic-report",
1378
+ "private": true,
1379
+ "scopes": [
1380
+ "homey.system.readonly"
1381
+ ],
1382
+ "parameters": {
1383
+ "deviceId": {
1384
+ "in": "path",
1385
+ "type": "string",
1386
+ "required": true
1387
+ },
1388
+ "timeout": {
1389
+ "in": "body",
1390
+ "type": "number"
1391
+ }
1392
+ }
1393
+ },
1394
+ "getNextFrame": {
1395
+ "method": "get",
1396
+ "path": "/:deviceId/next-frame",
1397
+ "private": true,
1398
+ "scopes": [
1399
+ "homey.system.readonly"
1400
+ ],
1401
+ "parameters": {
1402
+ "deviceId": {
1403
+ "in": "path",
1404
+ "type": "string",
1405
+ "required": true
1406
+ },
1407
+ "timeout": {
1408
+ "in": "query",
1409
+ "type": "string"
1410
+ }
1411
+ }
1412
+ },
1413
+ "restartSettingsDiscovery": {
1414
+ "method": "post",
1415
+ "path": "/:deviceId/restart-settings-discovery",
1416
+ "private": true,
1417
+ "scopes": [
1418
+ "homey.system"
1419
+ ],
1420
+ "parameters": {
1421
+ "deviceId": {
1422
+ "in": "path",
1423
+ "type": "string",
1424
+ "required": true
1425
+ }
1426
+ }
1427
+ },
1428
+ "getUartConfig": {
1429
+ "method": "get",
1430
+ "path": "/:deviceId/uart-config",
1431
+ "private": true,
1432
+ "scopes": [
1433
+ "homey.system.readonly"
1434
+ ],
1435
+ "parameters": {
1436
+ "deviceId": {
1437
+ "in": "path",
1438
+ "type": "string",
1439
+ "required": true
1440
+ }
1441
+ }
1442
+ },
1443
+ "setUartConfig": {
1444
+ "method": "post",
1445
+ "path": "/:deviceId/uart-config",
1446
+ "private": true,
1447
+ "scopes": [
1448
+ "homey.system"
1449
+ ],
1450
+ "parameters": {
1451
+ "deviceId": {
1452
+ "in": "path",
1453
+ "type": "string"
1454
+ },
1455
+ "baudRate": {
1456
+ "in": "body",
1457
+ "type": "number"
1458
+ },
1459
+ "dataBits": {
1460
+ "in": "body",
1461
+ "type": "number"
1462
+ },
1463
+ "stopBits": {
1464
+ "in": "body",
1465
+ "type": "number"
1466
+ },
1467
+ "parity": {
1468
+ "in": "body",
1469
+ "type": "string"
1470
+ },
1471
+ "inverseRx": {
1472
+ "in": "body",
1473
+ "type": "boolean"
1474
+ },
1475
+ "dataTimeoutMs": {
1476
+ "in": "body",
1477
+ "type": "number"
1478
+ },
1479
+ "persistent": {
1480
+ "in": "body",
1481
+ "type": "boolean"
1482
+ }
1483
+ }
1484
+ },
1485
+ "checkFirmwareUpdateAvailable": {
1486
+ "method": "get",
1487
+ "path": "/:deviceId/firmware-update",
1488
+ "private": true,
1489
+ "scopes": [
1490
+ "homey.system.readonly"
1491
+ ],
1492
+ "parameters": {
1493
+ "deviceId": {
1494
+ "in": "path",
1495
+ "type": "string",
1496
+ "required": true
1497
+ }
1498
+ }
1499
+ },
1500
+ "installFirmwareUpdate": {
1501
+ "method": "post",
1502
+ "path": "/:deviceId/firmware-update",
1503
+ "private": true,
1504
+ "scopes": [
1505
+ "homey.system"
1506
+ ],
1507
+ "parameters": {
1508
+ "deviceId": {
1509
+ "in": "path",
1510
+ "type": "string",
1511
+ "required": true
1512
+ },
1513
+ "updateThroughReboot": {
1514
+ "in": "body",
1515
+ "type": "boolean"
1516
+ }
1517
+ }
1518
+ },
1519
+ "reboot": {
1520
+ "method": "post",
1521
+ "path": "/:deviceId/reboot",
1522
+ "private": true,
1523
+ "scopes": [
1524
+ "homey.system"
1525
+ ],
1526
+ "parameters": {
1527
+ "deviceId": {
1528
+ "in": "path",
1529
+ "type": "string",
1530
+ "required": true
1531
+ }
1532
+ }
1533
+ },
1534
+ "setPhaseLoadLimits": {
1535
+ "method": "put",
1536
+ "path": "/:deviceId/phase-load",
1537
+ "private": true,
1538
+ "scopes": [],
1539
+ "parameters": {
1540
+ "deviceId": {
1541
+ "in": "path",
1542
+ "type": "string",
1543
+ "required": true
1544
+ },
1545
+ "phasesConfigured": {
1546
+ "in": "body",
1547
+ "type": "number",
1548
+ "required": true
1549
+ },
1550
+ "capacity": {
1551
+ "in": "body",
1552
+ "type": "number",
1553
+ "required": true
1554
+ }
1555
+ }
1556
+ },
1557
+ "getPhaseLoadLimits": {
1558
+ "method": "get",
1559
+ "path": "/:deviceId/phase-load",
1560
+ "private": true,
1561
+ "scopes": [],
1562
+ "parameters": {
1563
+ "deviceId": {
1564
+ "in": "path",
1565
+ "type": "string",
1566
+ "required": true
1567
+ }
1568
+ }
1569
+ }
1570
+ }
1571
+ },
1223
1572
  "ManagerFlow": {
1224
1573
  "id": "flow",
1225
1574
  "idCamelCase": "flow",
@@ -2612,6 +2961,12 @@
2612
2961
  "name": {
2613
2962
  "type": "string"
2614
2963
  },
2964
+ "preset": {
2965
+ "type": [
2966
+ "string",
2967
+ "null"
2968
+ ]
2969
+ },
2615
2970
  "zone": {
2616
2971
  "type": "string"
2617
2972
  },
@@ -2718,6 +3073,9 @@
2718
3073
  "devices": {
2719
3074
  "type": "object",
2720
3075
  "required": true
3076
+ },
3077
+ "preset": {
3078
+ "type": "string"
2721
3079
  }
2722
3080
  }
2723
3081
  }
@@ -2751,6 +3109,9 @@
2751
3109
  },
2752
3110
  "devices": {
2753
3111
  "type": "object"
3112
+ },
3113
+ "preset": {
3114
+ "type": "string"
2754
3115
  }
2755
3116
  }
2756
3117
  }
@@ -3316,7 +3677,12 @@
3316
3677
  "path": "/ping",
3317
3678
  "private": false,
3318
3679
  "scopes": [],
3319
- "parameters": {}
3680
+ "parameters": {
3681
+ "id": {
3682
+ "in": "query",
3683
+ "type": "string"
3684
+ }
3685
+ }
3320
3686
  },
3321
3687
  "getInfo": {
3322
3688
  "method": "get",
@@ -3762,6 +4128,28 @@
3762
4128
  }
3763
4129
  }
3764
4130
  }
4131
+ },
4132
+ "VirtualDriverEnergyDongle": {
4133
+ "id": "virtualdriverenergydongle",
4134
+ "schema": {
4135
+ "type": "object",
4136
+ "properties": {
4137
+ "id": {
4138
+ "type": "string"
4139
+ }
4140
+ }
4141
+ }
4142
+ },
4143
+ "VirtualDeviceEnergyDongle": {
4144
+ "id": "virtualdeviceenergydongle",
4145
+ "schema": {
4146
+ "type": "object",
4147
+ "properties": {
4148
+ "id": {
4149
+ "type": "string"
4150
+ }
4151
+ }
4152
+ }
3765
4153
  }
3766
4154
  },
3767
4155
  "operations": {