@ray-js/lamp-schedule-core 1.0.2-beta-8 → 1.0.2-beta-10

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.
@@ -87,10 +87,10 @@ export default class RhythmFormatter {
87
87
  const {
88
88
  version,
89
89
  power,
90
- mode,
91
90
  weeks,
92
91
  rhythms
93
92
  } = data;
93
+ // 一直渐变:00; 到达节点15分钟内渐变:0f
94
94
  ScheduleLogger.debug('协议解析 rhythms formatter:', data);
95
95
  const weekStr = [...weeks].reverse().join('').padStart(8, '0');
96
96
  const number = rhythms.length;
@@ -98,7 +98,7 @@ export default class RhythmFormatter {
98
98
  // 兼容 matter 设备,需要获取 dpCodes 来判断是否支持色温
99
99
  const dpCodes = getDPByProtocol();
100
100
  const isSupportWhiteTemp = support.isSupportDp(dpCodes.TEMPERATURE);
101
- return `${to16(version)}${to16(Number(power))}${to16(mode)}${to16(weeksValue)}${to16(number)}${rhythms.map(_ref => {
101
+ return `${to16(version)}${to16(Number(power))}${to16(0)}${to16(weeksValue)}${to16(number)}${rhythms.map(_ref => {
102
102
  let {
103
103
  power,
104
104
  hour,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/lamp-schedule-core",
3
- "version": "1.0.2-beta-8",
3
+ "version": "1.0.2-beta-10",
4
4
  "description": "照明计划模块核心能力",
5
5
  "main": "./lib/index.js",
6
6
  "files": [