Understanding room occupancy and activity tracking in Linus Dashboard
Activity Detection is a core feature of Linus Dashboard that automatically monitors and displays room occupancy and activity status using your existing sensors and media players.
- Automatic sensor discovery - No manual configuration needed
- Real-time activity tracking - See which rooms are occupied
- Multiple sensor types - Combine motion, occupancy, presence, and media player data
- Visual history - 24-hour activity graphs (with Linus Brain)
- Smart automation foundation - Use activity data to trigger automations
Without Linus Brain:
- Displays all compatible sensors in each area
- Shows current sensor states and last changed time
- Provides brightness status (dark/bright based on sun position)
With Linus Brain (Optional):
- Advanced activity state calculation (Occupied, Movement, Inactive, Empty)
- 24-hour activity history graphs
- Presence sensor aggregation
- Activity duration tracking
- Time-in-state statistics
- Navigate to any area view in Linus Dashboard
- Look for the activity badge on the area card
- Click the badge to open the Activity Detection popup
- The Activity Detection popup shows comprehensive information about all sensors tracking activity in that specific area
The Activity Detection popup is organized into several sections:
Quick overview of current conditions:
- Brightness: Dark/Bright indicator
- Activity: Current activity state (Linus Brain only)
- Presence: Presence sensor status (Linus Brain only)
- Duration: Time in current state (Linus Brain only)
- 24-hour graphs showing activity and presence over time
- Helps identify patterns and unusual activity
This is where your sensors appear automatically!
Entities shown here include:
- Binary sensors with
device_class= motion, occupancy, or presence - Media players assigned to the area
- Members of Linus Brain presence detection groups (if installed)
Sensors are sorted by:
- Active sensors first (on/playing state)
- Most recently changed within each group
Information about auto-detection criteria and how to add more sensors.
Opens Home Assistant entity settings to assign sensors to the area.
Time spent in each activity state:
- Occupied
- Movement
- Inactive
- Empty
Entities appear in the Activity Detection popup if they meet ALL of these conditions:
- Assigned to the area in Home Assistant
- Match one of these criteria:
- Binary sensor with
device_class=motion - Binary sensor with
device_class=occupancy - Binary sensor with
device_class=presence - Media player entity
- Member of Linus Brain presence detection group
- Binary sensor with
Will appear:
binary_sensor.living_room_motion:
device_class: motion
area_id: living_room
state: "on"
binary_sensor.desk_occupancy:
device_class: occupancy
area_id: office
state: "off"
media_player.tv:
area_id: living_room
state: "playing"Will NOT appear:
binary_sensor.door_sensor:
device_class: door # ❌ Wrong device_class
area_id: living_room
binary_sensor.motion_sensor:
# ❌ No area assigned
device_class: motion
binary_sensor.excluded_sensor:
device_class: motion
area_id: living_room
# ❌ Domain/device_class excluded in Linus Dashboard configCheck 1: Entity Area Assignment
- Go to Settings → Devices & Services → Entities
- Find your sensor entity
- Verify it's assigned to the correct area
- If not, click the entity → Settings → Area → Select the correct area
Check 2: Device Class Attribute
- Go to Developer Tools → States
- Search for your entity (e.g.,
binary_sensor.motion_sensor) - Check the
device_classattribute - Should be
motion,occupancy, orpresence
If missing, add it via customize.yaml:
homeassistant:
customize:
binary_sensor.my_sensor:
device_class: motionCheck 3: Linus Dashboard Exclusions ⭐ IMPORTANT
- Go to Settings → Devices & Services
- Find "Linus Dashboard" → Click Configure
- Check these settings:
- Excluded domains: Should NOT include
binary_sensorormedia_player - Excluded device classes: Should NOT include
motion,occupancy, orpresence - Excluded integrations: Should NOT block your sensor's integration (e.g., Zigbee2MQTT, ESPHome)
- Excluded domains: Should NOT include
Check 4: UNDISCLOSED Area
- Entities in the special "UNDISCLOSED" area are hidden by design
- Move entities out of UNDISCLOSED to make them visible
Check 5: Refresh Dashboard Cache 🔄 After making changes:
- Look for the blue circular arrow icon (🔄) at the top of the Activity Detection popup
- Click it to reload the dashboard cache
- Your newly added/modified sensors should now appear
Solution 1: Check Entity State
- Go to Developer Tools → States
- Verify the entity is changing state correctly
- Test by triggering the sensor physically
Solution 2: Refresh Browser Cache
- Press
Ctrl+F5(Windows/Linux) orCmd+Shift+R(Mac) - This clears cached frontend files
Solution 3: Restart Home Assistant
- Sometimes entity registry changes require a restart
- Settings → System → Restart
Solution:
- Verify Linus Brain integration is installed
- Check that Linus Brain area state entities exist (e.g.,
sensor.linus_brain_activity_[area]) - Ensure Linus Brain is properly configured for your areas
1. Click "Add Sensors" Button
- Located at the bottom of the Activity Detection popup
- Opens Home Assistant entity settings filtered by the current area
2. Assign Entity to Area In Home Assistant:
- Settings → Devices & Services → Entities
- Find your sensor
- Click the entity → Settings tab
- Area: Select the correct area
3. Configure Device Class
Option A: Via Entity Settings (Recommended)
- Not all integrations support changing device_class via UI
Option B: Via customize.yaml
homeassistant:
customize:
binary_sensor.my_sensor:
device_class: motion # or occupancy, or presence4. Refresh Dashboard Cache 🔄
- CRITICAL STEP: Click the refresh badge (🔄 blue arrow icon) at the top of the Activity Detection popup
- This reloads the sensor list without requiring a full page refresh
5. Verify
- Your sensor should now appear in the list
- Check it's sorted correctly (active sensors first)
The refresh badge is a blue circular arrow icon (🔄) located at the top-right of the Activity Detection popup.
Always click the refresh badge after:
- ✅ Adding new sensors
- ✅ Removing sensors
- ✅ Changing entity area assignments
- ✅ Modifying
device_classattributes - ✅ Updating Linus Dashboard exclusion settings
- ✅ Making any entity registry changes
- Reloads the dashboard cache
- Refreshes entity lists
- Updates area configurations
- No full page reload required - much faster!
- Make changes in Home Assistant (assign area, set device_class, etc.)
- Return to the Activity Detection popup
- Click the 🔄 icon at the top
- Wait 1-2 seconds for cache to refresh
- Your changes should now be visible
- The activity badge appears on area cards in the home view
- Shows current activity state with color coding
- Red: Occupied (active presence detected)
- Orange: Movement (recent activity, no continuous presence)
- Blue: Inactive (presence detected but no movement)
- Grey: Empty (no presence)
- Click the activity badge on any area card
- Opens the same Activity Detection popup
- Shows all sensors for that specific area
Linus Brain is an optional Home Assistant integration that adds advanced AI-powered activity detection and automation features.
The Activity Detection popup shows:
- ✅ List of all compatible sensors
- ✅ Current sensor states
- ✅ Last changed timestamps
- ✅ Brightness status (dark/bright)
- ✅ "Add sensors" functionality
"Coming Soon" teaser is shown for advanced features.
Additional features unlocked:
- Activity state calculation: Occupied, Movement, Inactive, Empty
- 24-hour history graphs: Visual timeline of activity and presence
- Presence sensor aggregation: Combines multiple sensors intelligently
- Activity duration tracking: Time spent in current state
- Statistics: Time-in-state breakdown (Occupied, Movement, Inactive, Empty)
- Linus Brain is a separate integration
- Visit: https://thankyou-linus.com/
- Subscription-based service with advanced automation capabilities
Motion Sensors:
- Place at room entry points
- Cover main movement paths
- Avoid pointing at windows (false triggers from sun/movement outside)
Occupancy Sensors:
- Ideal for desks, beds, sofas
- Detect stationary presence (e.g., mmWave radar)
- Less prone to false negatives than motion sensors
Presence Sensors:
- High-end sensors with advanced detection
- Combine motion + occupancy detection
- Best for critical areas (bedroom, home office)
Media Players:
- Automatically track entertainment activity
- TV playing = room occupied
- Works great combined with motion/occupancy sensors
Recommended combinations:
- Living Room: Motion sensor (entry) + Media player (TV)
- Bedroom: Occupancy sensor (bed) + Motion sensor (door)
- Office: Occupancy sensor (desk) + Motion sensor (entry)
- Kitchen: Multiple motion sensors (high traffic, multiple zones)
- Start with 1-2 sensors per room
- Add more only if you notice missed detections
- Too many sensors can create conflicting data
- Quick Start Guide - Get Linus Dashboard running in 5 minutes
- Embedded Dashboards - Integrate custom Lovelace views
- Manual Ordering - HA 2025.1+ room ordering
- Main README - Full project documentation
- Discord: Join our community
- GitHub Discussions: Ask questions
- GitHub Issues: Report bugs
Please include:
- Home Assistant version
- Linus Dashboard version
- Sensor integration (Zigbee2MQTT, ESPHome, etc.)
- Entity details (from Developer Tools → States)
- Screenshots of the issue
- Whether you're using Linus Brain
🎉 Happy activity tracking!
For questions or improvements to this guide, please open an issue on GitHub.