zigbee-herdsman-converters 19.73.1 → 19.75.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/converters/fromZigbee.d.ts.map +1 -1
  3. package/converters/fromZigbee.js +0 -37
  4. package/converters/fromZigbee.js.map +1 -1
  5. package/converters/toZigbee.d.ts +0 -79
  6. package/converters/toZigbee.d.ts.map +1 -1
  7. package/converters/toZigbee.js +2 -94
  8. package/converters/toZigbee.js.map +1 -1
  9. package/devices/aeotec.js +1 -1
  10. package/devices/aeotec.js.map +1 -1
  11. package/devices/alecto.d.ts.map +1 -1
  12. package/devices/alecto.js +11 -9
  13. package/devices/alecto.js.map +1 -1
  14. package/devices/ctm.d.ts.map +1 -1
  15. package/devices/ctm.js +0 -41
  16. package/devices/ctm.js.map +1 -1
  17. package/devices/datek.js +2 -2
  18. package/devices/datek.js.map +1 -1
  19. package/devices/develco.js +2 -2
  20. package/devices/develco.js.map +1 -1
  21. package/devices/elko.d.ts.map +1 -1
  22. package/devices/elko.js +106 -124
  23. package/devices/elko.js.map +1 -1
  24. package/devices/lixee.d.ts.map +1 -1
  25. package/devices/lixee.js +2 -0
  26. package/devices/lixee.js.map +1 -1
  27. package/devices/lupus.js +2 -2
  28. package/devices/lupus.js.map +1 -1
  29. package/devices/moes.js +2 -2
  30. package/devices/moes.js.map +1 -1
  31. package/devices/qa.js +1 -1
  32. package/devices/qa.js.map +1 -1
  33. package/devices/sonoff.js +1 -1
  34. package/devices/sonoff.js.map +1 -1
  35. package/devices/tuya.d.ts.map +1 -1
  36. package/devices/tuya.js +29 -3
  37. package/devices/tuya.js.map +1 -1
  38. package/lib/color.d.ts.map +1 -1
  39. package/lib/color.js +20 -7
  40. package/lib/color.js.map +1 -1
  41. package/lib/tuya.d.ts +0 -1
  42. package/lib/tuya.d.ts.map +1 -1
  43. package/lib/tuya.js +0 -212
  44. package/lib/tuya.js.map +1 -1
  45. package/lib/types.d.ts +1 -1
  46. package/lib/types.d.ts.map +1 -1
  47. package/package.json +10 -10
@@ -621,15 +621,6 @@ declare const converters: {
621
621
  key: string[];
622
622
  convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
623
623
  };
624
- elko_load: {
625
- key: string[];
626
- convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
627
- state: {
628
- load: unknown;
629
- };
630
- }>;
631
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
632
- };
633
624
  elko_display_text: {
634
625
  key: string[];
635
626
  convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
@@ -648,71 +639,10 @@ declare const converters: {
648
639
  }>;
649
640
  convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
650
641
  };
651
- elko_external_temp: {
652
- key: string[];
653
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
654
- };
655
- elko_mean_power: {
656
- key: string[];
657
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
658
- };
659
- elko_child_lock: {
660
- key: string[];
661
- convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
662
- state: {
663
- child_lock: unknown;
664
- };
665
- }>;
666
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
667
- };
668
- elko_frost_guard: {
669
- key: string[];
670
- convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
671
- state: {
672
- frost_guard: unknown;
673
- };
674
- }>;
675
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
676
- };
677
- elko_night_switching: {
678
- key: string[];
679
- convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
680
- state: {
681
- night_switching: unknown;
682
- };
683
- }>;
684
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
685
- };
686
642
  elko_relay_state: {
687
643
  key: string[];
688
644
  convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
689
645
  };
690
- elko_sensor_mode: {
691
- key: string[];
692
- convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
693
- state: {
694
- sensor: unknown;
695
- };
696
- }>;
697
- };
698
- elko_regulator_time: {
699
- key: string[];
700
- convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
701
- state: {
702
- sensor: unknown;
703
- };
704
- }>;
705
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
706
- };
707
- elko_regulator_mode: {
708
- key: string[];
709
- convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
710
- state: {
711
- regulator_mode: unknown;
712
- };
713
- }>;
714
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
715
- };
716
646
  elko_local_temperature_calibration: {
717
647
  key: string[];
718
648
  convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
@@ -722,15 +652,6 @@ declare const converters: {
722
652
  }>;
723
653
  convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
724
654
  };
725
- elko_max_floor_temp: {
726
- key: string[];
727
- convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
728
- state: {
729
- max_floor_temp: unknown[];
730
- };
731
- }>;
732
- convertGet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, meta: Tz.Meta) => Promise<void>;
733
- };
734
655
  livolo_socket_switch_on_off: {
735
656
  key: string[];
736
657
  convertSet: (entity: import("zigbee-herdsman/dist/controller/model").Group | import("zigbee-herdsman/dist/controller/model").Endpoint, key: string, value: unknown, meta: Tz.Meta) => Promise<{
@@ -1 +1 @@
1
- {"version":3,"file":"toZigbee.d.ts","sourceRoot":"","sources":["../src/converters/toZigbee.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAK1C,OAAO,EAAC,EAAE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mKAquEoC,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAm9BS,CAAC;AAEpE,eAAe,UAAU,CAAC"}
@@ -1788,16 +1788,6 @@ const converters2 = {
1788
1788
  },
1789
1789
  // #endregion
1790
1790
  // #region Non-generic converters
1791
- elko_load: {
1792
- key: ['load'],
1793
- convertSet: async (entity, key, value, meta) => {
1794
- await entity.write('hvacThermostat', { elkoLoad: value });
1795
- return { state: { load: value } };
1796
- },
1797
- convertGet: async (entity, key, meta) => {
1798
- await entity.read('hvacThermostat', ['elkoLoad']);
1799
- },
1800
- },
1801
1791
  elko_display_text: {
1802
1792
  key: ['display_text'],
1803
1793
  convertSet: async (entity, key, value, meta) => {
@@ -1824,81 +1814,12 @@ const converters2 = {
1824
1814
  await entity.read('hvacThermostat', ['elkoPowerStatus']);
1825
1815
  },
1826
1816
  },
1827
- elko_external_temp: {
1828
- key: ['floor_temp'],
1829
- convertGet: async (entity, key, meta) => {
1830
- await entity.read('hvacThermostat', ['elkoExternalTemp']);
1831
- },
1832
- },
1833
- elko_mean_power: {
1834
- key: ['mean_power'],
1835
- convertGet: async (entity, key, meta) => {
1836
- await entity.read('hvacThermostat', ['elkoMeanPower']);
1837
- },
1838
- },
1839
- elko_child_lock: {
1840
- key: ['child_lock'],
1841
- convertSet: async (entity, key, value, meta) => {
1842
- await entity.write('hvacThermostat', { elkoChildLock: value === 'lock' });
1843
- return { state: { child_lock: value } };
1844
- },
1845
- convertGet: async (entity, key, meta) => {
1846
- await entity.read('hvacThermostat', ['elkoChildLock']);
1847
- },
1848
- },
1849
- elko_frost_guard: {
1850
- key: ['frost_guard'],
1851
- convertSet: async (entity, key, value, meta) => {
1852
- await entity.write('hvacThermostat', { elkoFrostGuard: value === 'on' });
1853
- return { state: { frost_guard: value } };
1854
- },
1855
- convertGet: async (entity, key, meta) => {
1856
- await entity.read('hvacThermostat', ['elkoFrostGuard']);
1857
- },
1858
- },
1859
- elko_night_switching: {
1860
- key: ['night_switching'],
1861
- convertSet: async (entity, key, value, meta) => {
1862
- await entity.write('hvacThermostat', { elkoNightSwitching: value === 'on' });
1863
- return { state: { night_switching: value } };
1864
- },
1865
- convertGet: async (entity, key, meta) => {
1866
- await entity.read('hvacThermostat', ['elkoNightSwitching']);
1867
- },
1868
- },
1869
1817
  elko_relay_state: {
1870
1818
  key: ['running_state'],
1871
1819
  convertGet: async (entity, key, meta) => {
1872
1820
  await entity.read('hvacThermostat', ['elkoRelayState']);
1873
1821
  },
1874
1822
  },
1875
- elko_sensor_mode: {
1876
- key: ['sensor'],
1877
- convertSet: async (entity, key, value, meta) => {
1878
- await entity.write('hvacThermostat', { elkoSensor: utils.getFromLookup(value, { air: '0', floor: '1', supervisor_floor: '3' }) });
1879
- return { state: { sensor: value } };
1880
- },
1881
- },
1882
- elko_regulator_time: {
1883
- key: ['regulator_time'],
1884
- convertSet: async (entity, key, value, meta) => {
1885
- await entity.write('hvacThermostat', { elkoRegulatorTime: value });
1886
- return { state: { sensor: value } };
1887
- },
1888
- convertGet: async (entity, key, meta) => {
1889
- await entity.read('hvacThermostat', ['elkoRegulatorTime']);
1890
- },
1891
- },
1892
- elko_regulator_mode: {
1893
- key: ['regulator_mode'],
1894
- convertSet: async (entity, key, value, meta) => {
1895
- await entity.write('hvacThermostat', { elkoRegulatorMode: value === 'regulator' });
1896
- return { state: { regulator_mode: value } };
1897
- },
1898
- convertGet: async (entity, key, meta) => {
1899
- await entity.read('hvacThermostat', ['elkoRegulatorMode']);
1900
- },
1901
- },
1902
1823
  elko_local_temperature_calibration: {
1903
1824
  key: ['local_temperature_calibration'],
1904
1825
  convertSet: async (entity, key, value, meta) => {
@@ -1910,19 +1831,6 @@ const converters2 = {
1910
1831
  await entity.read('hvacThermostat', ['elkoCalibration']);
1911
1832
  },
1912
1833
  },
1913
- elko_max_floor_temp: {
1914
- key: ['max_floor_temp'],
1915
- convertSet: async (entity, key, value, meta) => {
1916
- utils.assertArray(value);
1917
- if (value.length <= 14) {
1918
- await entity.write('hvacThermostat', { elkoMaxFloorTemp: value });
1919
- return { state: { max_floor_temp: value } };
1920
- }
1921
- },
1922
- convertGet: async (entity, key, meta) => {
1923
- await entity.read('hvacThermostat', ['elkoMaxFloorTemp']);
1924
- },
1925
- },
1926
1834
  livolo_socket_switch_on_off: {
1927
1835
  key: ['state'],
1928
1836
  convertSet: async (entity, key, value, meta) => {
@@ -3667,8 +3575,8 @@ const converters2 = {
3667
3575
  try {
3668
3576
  val = JSON.parse(val);
3669
3577
  }
3670
- catch (e) {
3671
- e;
3578
+ catch {
3579
+ /* empty */
3672
3580
  }
3673
3581
  const newColor = libColor.Color.fromConverterArg(val);
3674
3582
  if (newColor.isXY()) {