mirror of
https://github.com/Koenkk/zigbee2mqtt.git
synced 2026-08-23 02:59:53 +00:00
fix: Home Assistant: fix motor_state not exposed for SONOFF MINI-ZBRBS (#32702)
This commit is contained in:
@@ -961,7 +961,7 @@ export class HomeAssistant extends Extension {
|
||||
?.features.find((f) => f.name === "tilt");
|
||||
const motorState = allExposes
|
||||
?.filter(isEnumExpose)
|
||||
.find((e) => ["motor_state", "moving"].includes(e.name) && e.access === ACCESS_STATE);
|
||||
.find((e) => ["motor_state", "moving"].includes(e.name) && e.access & ACCESS_STATE);
|
||||
const running = allExposes?.filter(isBinaryExpose)?.find((e) => e.name === "running");
|
||||
|
||||
const discoveryEntry: DiscoveryEntry = {
|
||||
|
||||
Reference in New Issue
Block a user