sfox38

sfox38 / whodunnit

Public

Whodunnit: A Sensor for Home Assistant which indicates the 'who' and 'how' behind every state change by linking real-time event contexts to their human or automated origins

128
1
100% credibility
Found Feb 11, 2026 at 50 stars 3x -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

Whodunnit is a Home Assistant integration that adds sensors to smart devices to detect and report whether changes were triggered by automations, scripts, scenes, dashboard users, or physical switches.

How It Works

1
🏠 Get curious about your smart home

You're wondering why your lights or switches turn on or off when you didn't touch them.

2
🔍 Discover Whodunnit

You find this friendly detective tool that reveals exactly what made your devices change.

3
📥 Add it to Home Assistant

Using your favorite add-on store, you easily bring Whodunnit into your smart home setup with a few clicks.

4
🔧 Choose a device to watch

Pick one of your smart lights, switches, or fans to start tracking who or what controls it.

5
🔄 Everything starts working

Your Home Assistant refreshes, and the new tracker sensor appears ready to go.

6
👀 See the magic happen

Whenever your device changes, glance at the sensor to learn if it was you, an automation, or a wall switch.

🎉 Mystery solved forever

Now your home feels smarter and more predictable, with full details on every change right at your fingertips.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 50 to 128 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is whodunnit?

Whodunnit is a Python integration for Home Assistant that adds sensors to your devices, revealing the human or automated origins behind every state change—like the plot twists in whodunit movies or whodunit Netflix series. It tracks events from automations, scripts, scenes, UI interactions, or physical switches, indicating contexts such as source type, ID, name, user, and timestamp. You select entities like lights or switches during setup, getting instant attributes to solve smart home mysteries.

Why is it gaining traction?

Unlike vague logs, it delivers user-friendly attributes right in dashboards or automations, linking changes to exact origins without digging through events—perfect for whodunnit lösung moments. The 2-minute cache handles network delays, boosting accuracy for laggy devices, while sample YAML cards and conditional triggers make it dead simple to visualize or act on manual vs automated changes. Home Assistant users dig the no-fuss HACS install and debugging edge.

Who should use this?

Home Assistant power users debugging lights flipping unexpectedly in multi-person homes, automation builders adding conditions like "skip if manual," or dashboard makers embedding trigger history. Targets roles tracking switches, fans, covers, or helpers where knowing physical vs whodunnit video origins prevents override chaos.

Verdict

Worth adding via HACS for targeted debugging—solid docs and use cases shine despite 46 stars and 1.0% credibility score marking it early-stage. Expect rare misses on restarts or lag; prototype on test devices first.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.