diff --git a/internal/linux/power/screenLock.go b/internal/linux/power/screenLock.go index 1b7ab0f89..b57f0a939 100644 --- a/internal/linux/power/screenLock.go +++ b/internal/linux/power/screenLock.go @@ -33,7 +33,7 @@ func newScreenlockSensor(value bool) sensor.Entity { ID: "screen_lock", Icon: screenLockIcon(value), EntityType: types.BinarySensor, - Value: value, + Value: !value, // For device class BinarySensorDeviceClassLock: On means open (unlocked), Off means closed (locked). Attributes: map[string]any{ "data_source": linux.DataSrcDbus, },