solax-py-library 1.0.0.38__py3-none-any.whl → 1.0.0.40__py3-none-any.whl
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.
- solax_py_library/smart_scene/constant/message_entry.py +3 -6
- solax_py_library/smart_scene/types/smart_scene_content.py +5 -2
- {solax_py_library-1.0.0.38.dist-info → solax_py_library-1.0.0.40.dist-info}/METADATA +1 -1
- {solax_py_library-1.0.0.38.dist-info → solax_py_library-1.0.0.40.dist-info}/RECORD +5 -5
- {solax_py_library-1.0.0.38.dist-info → solax_py_library-1.0.0.40.dist-info}/WHEEL +0 -0
@@ -167,18 +167,15 @@ MESSAGE_ENTRY = {
|
|
167
167
|
"en_US": "Grid export power {} {}kW",
|
168
168
|
},
|
169
169
|
"cabinetSoc": {"zh_CN": "机柜SOC {} {}%", "en_US": "Cabinet SOC {} {}%"},
|
170
|
-
"EMERGENCY": {"zh_CN": "紧急告警", "en_US": "Emergency alarm"},
|
171
|
-
"TIPS": {"zh_CN": "状态提醒", "en_US": "State Tips"},
|
172
|
-
"NORMAL": {"zh_CN": "一般告警", "en_US": "Normal alarm"},
|
173
170
|
"cabinetAlarm": {
|
174
171
|
"zh_CN": "机柜下属({})设备发生{}",
|
175
172
|
"en_US": "The equipments({}) under the cabinet occurs {}",
|
176
173
|
},
|
177
174
|
"OR": {"zh_CN": "满足任一条件", "en_US": "Meet any of the conditions"},
|
178
175
|
"AND": {"zh_CN": "满足所有条件", "en_US": "Meet all conditions"},
|
179
|
-
"tips_alarm": {"zh_CN": "状态提醒", "en_US": "
|
180
|
-
"normal_alarm": {"zh_CN": "
|
181
|
-
"emergency_alarm": {"zh_CN": "紧急告警", "en_US": "
|
176
|
+
"tips_alarm": {"zh_CN": "状态提醒", "en_US": "notice"},
|
177
|
+
"normal_alarm": {"zh_CN": "一般告警", "en_US": "warning"},
|
178
|
+
"emergency_alarm": {"zh_CN": "紧急告警", "en_US": "failure"},
|
182
179
|
"pcs": {"zh_CN": "逆变器", "en_US": "Inverter"},
|
183
180
|
"bms": {"zh_CN": "电池", "en_US": "Battery"},
|
184
181
|
"elm": {
|
@@ -50,13 +50,16 @@ class SmartSceneContent(BaseModel):
|
|
50
50
|
thenActions: List[SmartSceneAction] = Field(alias="then")
|
51
51
|
elseThenActions: Optional[List[SmartSceneAction]] = Field(alias="elseThen")
|
52
52
|
|
53
|
-
def
|
53
|
+
def set_copy_name(self):
|
54
|
+
self.name = self.name + "-copy"
|
55
|
+
|
56
|
+
def build_smart_scene(self):
|
54
57
|
return {
|
55
58
|
"scene_id": str(uuid.uuid4()),
|
56
59
|
"switch": False,
|
57
60
|
"content": json.dumps(
|
58
61
|
{
|
59
|
-
"name": self.name
|
62
|
+
"name": self.name,
|
60
63
|
"repeatFunction": self.repeatFunction,
|
61
64
|
"weekList": self.weekList,
|
62
65
|
"if": self.conditions.dict(),
|
@@ -14,7 +14,7 @@ solax_py_library/device/types/modbus_point.py,sha256=YmXe92gWXL_voVXDJE5zzNzr6dp
|
|
14
14
|
solax_py_library/exception.py,sha256=ygAccdTqJctRrdt9bu6-vqZP5KadfKVS_1tjt4KcRn8,257
|
15
15
|
solax_py_library/smart_scene/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
solax_py_library/smart_scene/constant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
17
|
-
solax_py_library/smart_scene/constant/message_entry.py,sha256=
|
17
|
+
solax_py_library/smart_scene/constant/message_entry.py,sha256=Jlc2qabaU-p0YmGarIY9GeJYi6-69Q5Y45787odcD4k,9500
|
18
18
|
solax_py_library/smart_scene/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
solax_py_library/smart_scene/core/action/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
20
|
solax_py_library/smart_scene/core/action/base.py,sha256=GlZQTi7ub0fREV5BUZQUTARw3mleWWsKHOA7eFPVoJs,319
|
@@ -38,7 +38,7 @@ solax_py_library/smart_scene/types/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQe
|
|
38
38
|
solax_py_library/smart_scene/types/action.py,sha256=l2OITe3098-5zrYZSI64yL_YdSXn_FhbMh8h_8wRYBU,12934
|
39
39
|
solax_py_library/smart_scene/types/condition.py,sha256=FSI4JjL2TAeKeyMvTifWv9opha-gCraLhwj5h08vuUo,9714
|
40
40
|
solax_py_library/smart_scene/types/condition_value.py,sha256=CxeDRGWJWZQZTG8KegZBTA6a4ZOCu2CUWyUJBkj94II,1242
|
41
|
-
solax_py_library/smart_scene/types/smart_scene_content.py,sha256=
|
41
|
+
solax_py_library/smart_scene/types/smart_scene_content.py,sha256=m9ZYOdGqxfyeHB2dsxH3iI3-XmtyhTMJK6HbwWJ-k7w,6073
|
42
42
|
solax_py_library/snap_shot/__init__.py,sha256=Ex12q6BCkdU-3OP-f-ehGCetJJWnoZ7KxhEDd_lXh6M,81
|
43
43
|
solax_py_library/snap_shot/constant/__init__.py,sha256=UNfjAlx1wovXc1oH74af9oIe2TljwCCiTzNXzWgtUms,65
|
44
44
|
solax_py_library/snap_shot/constant/crc_table.py,sha256=D-pSxpf1XDzu7YR8LmbnzdLRvI8exDL2dyDh7RRc4Io,3566
|
@@ -79,6 +79,6 @@ solax_py_library/utils/cloud_client.py,sha256=5dZrc5fzrNFSXqTPZd7oHt-Y9Jj6RCigB7
|
|
79
79
|
solax_py_library/utils/common.py,sha256=bfnZcX9uM-PjJrYAFv1UMmZgt6bGR7MaOd7jRPNHGxw,1238
|
80
80
|
solax_py_library/utils/struct_util.py,sha256=pL6L80GXIHasy1ZDIj89-5BzXW1BWI3TPitH7thGGIE,1577
|
81
81
|
solax_py_library/utils/time_util.py,sha256=bY5kj9dmyOuLEQ6uYGQK7jU7y1RMiHZgevEKnkcQcSU,1461
|
82
|
-
solax_py_library-1.0.0.
|
83
|
-
solax_py_library-1.0.0.
|
84
|
-
solax_py_library-1.0.0.
|
82
|
+
solax_py_library-1.0.0.40.dist-info/METADATA,sha256=OYMYRMXwQEZc3i2g9s-3fVoyheJjJeAb6GZUL8RbOvA,1825
|
83
|
+
solax_py_library-1.0.0.40.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
84
|
+
solax_py_library-1.0.0.40.dist-info/RECORD,,
|
File without changes
|