Skip to content

Commit

Permalink
fix: add occupancy class to motion entities
Browse files Browse the repository at this point in the history
  • Loading branch information
janwo committed Feb 14, 2024
1 parent e20d611 commit ecf245e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ enum PRESENCEMODE {
const MOTION_ENTITY: StatePayloadFilter = {
entity_id: (value: string) => /^binary_sensor\./.test(value),
attributes: {
device_class: 'motion'
device_class: (device_class) =>
['occupancy', 'motion'].includes(device_class as string)
}
}

Expand Down

0 comments on commit ecf245e

Please sign in to comment.