• 12 Posts
  • 616 Comments
Joined 9 个月前
cake
Cake day: 2025年8月14日

help-circle





  • This might be a little overkill, but Home Assistant can do this.

    1. Add the calendar to Home Assistant. You don’t have to manage it there, but it’ll have access.
    2. Under Settings - > Devices & services -> Helpers add a helper of the type History Stats.
    3. For the Entity, select the calendar you want to track, and the Type would be Time.
    4. Next it’ll ask you which State to track. Depending on the specifics, you’ll probably want to track if the calendar is On, meaning there’s something on the calendar. You can track multiple States, but you probably only need On.
    5. On the last page of the wizard you’ll put start and end times. If you want to track from Midnight until Now, here’s what it would look like:

    Start: {{ now().replace(hour=0, minute=0, second=0) }}
    End: {{ now() }}

    You can probably adjust the end time to 23:59 if you want to see what’s in store for the day looking ahead, but I haven’t tried it.













  • You didn’t ask me, but as someone who has fiddled with these things my favorite sensor is the BME680, specifically the board that Adafruit sells. It costs more than other sensors, but that’s because it’s the best. It also does temperature, atmospheric pressure, and measures VOC. I think you can even use it to detect when someone takes a poo, but I haven’t tried.

    I connect mine to LOLIN D1 Minies running Tasmota.