Skip to content

Commit 43069bb

Browse files
authored
feat: Woolley BSD29/BSD59: expose power on behaviour (#12162)
1 parent 3e52faf commit 43069bb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/devices/woolley.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@ export const definitions: DefinitionWithExtend[] = [
3636
model: "BSD29/BSD59",
3737
vendor: "Woolley",
3838
description: "Zigbee 3.0 smart plug",
39-
fromZigbee: [fz.on_off_skip_duplicate_transaction, fzLocal.BSD29],
40-
toZigbee: [tz.on_off],
39+
fromZigbee: [fz.on_off_skip_duplicate_transaction, fzLocal.BSD29, fz.power_on_behavior],
40+
toZigbee: [tz.on_off, tz.power_on_behavior],
4141
configure: async (device, coordinatorEndpoint) => {
4242
const endpoint = device.getEndpoint(1);
4343
await reporting.bind(endpoint, coordinatorEndpoint, ["genOnOff"]);
4444
await reporting.onOff(endpoint);
4545
device.powerSource = "Mains (single phase)";
4646
device.save();
4747
},
48-
exposes: [e.power(), e.current(), e.voltage(), e.switch()],
48+
exposes: [e.power(), e.current(), e.voltage(), e.switch(), e.power_on_behavior()],
4949
onEvent: (event) => {
5050
if (event.type === "start") {
5151
event.data.device.customReadResponse = (frame) => {

0 commit comments

Comments
 (0)