new pipeline version handling

This commit is contained in:
2024-01-30 11:32:43 +01:00
parent cfc0d14fc3
commit d0c2256bbb
2 changed files with 22 additions and 9 deletions

View File

@@ -19,7 +19,8 @@ export const addDimmerableLightDevice: AddHaDeviceToBridge = (
const device = new DimmableLightDevice(
{ onOff: haEntity.state === 'on' },
{
currentLevel: Number(haEntity.attributes['brightness']) || null,
currentLevel:
Number(haEntity.attributes['brightness']) / 255 || null,
onLevel: 0.1,
options: { coupleColorTempToLevel: false, executeIfOff: false },
}