惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
爱范儿
爱范儿
V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
B
Blog
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
D
DataBreaches.Net
B
Blog RSS Feed
小众软件
小众软件
人人都是产品经理
人人都是产品经理
I
InfoQ
P
Proofpoint News Feed
博客园 - 聂微东
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
The GitHub Blog
The GitHub Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

garrit.xyz

ASCII art of a dolphin looking into a mirror You should be using a meta harness for agents Pac-Man, but you're the ghost Fixing corrupted Home Assistant energy statistics Don't trust large context windows n8n-nodes-open5e: n8n community node that lets you access D&D 5th edition SRD content On Seeking Order in Chaos A fix for long-pressing movement keys in VSCode with Vim-Mode The Scientific Method | Garrit's Notes The Cult of Done Manifesto Making family IT support effortless (and free) git diff --ignore-all-space makes code review way easier No matter what you do, always leave a breadcrumb
Custom Entities in Home Assistant
2025-12-11 · via garrit.xyz

My local gym has a gauge on their website that shows an approximation of how many people are currently there. Being an avid Home Assistant user, of course I had to pipe that data into my dashboard somehow. For that, I created a simple n8n workflow that scrapes the data off the gym's site and dumps it into a custom entity.

Because creating a custom entity was not quite so straight forward as I'd hoped, I wanted to share how I did it.

I ended up using the input_number integration (which seems to come with Home Assistant) and defined an entity that I could reference through the API:

# configuration.yaml
input_number:
  easyfitness_auslastung:
    name: EasyFitness Auslastung
    initial: 0
    min: 0
    max: 100
    step: 1

After reloading the configuration, the entity was ready to be written to.

As mentioned, I'm using a self-hosted instance of n8n on a Raspberry Pi to automate this. Using their Home Assistant Integration, you can simply address the new entity and update its state. And just like that, I was able to add a new Gauge to my dashboard!


Continue Reading