Skip to content

Commit

Permalink
Getting the motor state result in wrong data. (Koenkk#3805)
Browse files Browse the repository at this point in the history
  • Loading branch information
invis-z authored Feb 3, 2022
1 parent cc28e6d commit 47e5c91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions converters/toZigbee.js
Original file line number Diff line number Diff line change
Expand Up @@ -2417,12 +2417,6 @@ const converters = {
await entity.read('genAnalogOutput', [0x0055]);
},
},
xiaomi_curtain_acn002_status: {
key: ['motor_state'],
convertGet: async (entity, key, meta) => {
await entity.read('genMultistateOutput', [0x0055]);
},
},
ledvance_commands: {
/* deprectated osram_*/
key: ['set_transition', 'remember_state', 'osram_set_transition', 'osram_remember_state'],
Expand Down
4 changes: 2 additions & 2 deletions devices/xiaomi.js
Original file line number Diff line number Diff line change
Expand Up @@ -1272,9 +1272,9 @@ module.exports = [
vendor: 'Xiaomi',
fromZigbee: [fz.xiaomi_curtain_acn002_position, fz.xiaomi_curtain_acn002_status, fz.cover_position_tilt, fz.ignore_basic_report,
fz.aqara_opple],
toZigbee: [tz.xiaomi_curtain_position_state, tz.xiaomi_curtain_acn002_status],
toZigbee: [tz.xiaomi_curtain_position_state],
exposes: [e.cover_position().setAccess('state', ea.ALL), e.battery(),
exposes.enum('motor_state', ea.STATE_GET, ['declining', 'rising', 'pause', 'blocked'])
exposes.enum('motor_state', ea.STATE, ['declining', 'rising', 'pause', 'blocked'])
.withDescription('The current state of the motor.'),
exposes.binary('running', ea.STATE, true, false)
.withDescription('Whether the motor is moving or not.')],
Expand Down

0 comments on commit 47e5c91

Please sign in to comment.