Skip to content

Commit

Permalink
feat(add): FanBee device
Browse files Browse the repository at this point in the history
This is a custom self-built device for ventilating spaces. It contains a
valve and a speed-controlled fan, the valve is automatically opened when
the fan runs. The Zigbee standard fan cluster is unsuitable for this
type of device, so instead a level-controlled device type is used,
allowing for fine speed control over the fan.

I'll publish the design files and firmware for this eventually, but we
need one device to test the speed-controlled fan device model in Z2M so
we need it in there already.
  • Loading branch information
lorenz committed Jan 2, 2025
1 parent 988cc28 commit 13ed0d8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/converters/toZigbee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,7 @@ const converters2 = {
{level: value.toString(), transtime: 0},
utils.getOptions(meta.mapped, entity),
);
return {state: {fan_speed: value}, readAfterWriteTime: 0};
return {state: {fan_speed: value}};
},
convertGet: async (entity, key, meta) => {
await entity.read('genLevelCtrl', ['currentLevel']);
Expand Down
11 changes: 11 additions & 0 deletions src/devices/custom_devices_diy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,17 @@ const definitions: DefinitionWithExtend[] = [
}),
],
},
{
zigbeeModel: ['FanBee1', 'Fanbox2'],
model: 'FanBee',
vendor: 'Lorenz Brun',
description: 'Fan with valve',
fromZigbee: [fz.on_off, fz.fan_speed],
toZigbee: [tz.on_off, tz.fan_speed],
exposes: [
e.fan().withSpeed(),
],
},
];

export default definitions;
Expand Down

0 comments on commit 13ed0d8

Please sign in to comment.