@@ -97,9 +97,9 @@ class Cover(MIoTServiceEntity, CoverEntity):
97
97
_prop_motor_value_close : Optional [int ]
98
98
_prop_motor_value_pause : Optional [int ]
99
99
_prop_status : Optional [MIoTSpecProperty ]
100
- _prop_status_opening : Optional [bool ]
101
- _prop_status_closing : Optional [bool ]
102
- _prop_status_stop : Optional [bool ]
100
+ _prop_status_opening : Optional [int ]
101
+ _prop_status_closing : Optional [int ]
102
+ _prop_status_stop : Optional [int ]
103
103
_prop_current_position : Optional [MIoTSpecProperty ]
104
104
_prop_target_position : Optional [MIoTSpecProperty ]
105
105
_prop_position_value_min : Optional [int ]
@@ -120,6 +120,9 @@ def __init__(
120
120
self ._prop_motor_value_close = None
121
121
self ._prop_motor_value_pause = None
122
122
self ._prop_status = None
123
+ self ._prop_status_opening = None
124
+ self ._prop_status_closing = None
125
+ self ._prop_status_stop = None
123
126
self ._prop_current_position = None
124
127
self ._prop_target_position = None
125
128
self ._prop_position_value_min = None
@@ -159,11 +162,11 @@ def __init__(
159
162
'status value_list is None, %s' , self .entity_id )
160
163
continue
161
164
for item in prop .value_list :
162
- if item ['name' ].lower () in ['opening' ]:
165
+ if item ['name' ].lower () in ['opening' , 'open' ]:
163
166
self ._prop_status_opening = item ['value' ]
164
- elif item ['name' ].lower () in ['closing' ]:
167
+ elif item ['name' ].lower () in ['closing' , 'close' ]:
165
168
self ._prop_status_closing = item ['value' ]
166
- elif item ['name' ].lower () in ['stop' ]:
169
+ elif item ['name' ].lower () in ['stop' , 'pause' ]:
167
170
self ._prop_status_stop = item ['value' ]
168
171
self ._prop_status = prop
169
172
elif prop .name == 'current-position' :
0 commit comments