1- # Rooms Integration for Home Assistant
1+ # Custom Areas Integration for Home Assistant
22
3- A custom integration for Home Assistant that creates composite "Room " sensors with UI configuration.
3+ A custom integration for Home Assistant that creates composite "Area " sensors with UI configuration.
44
55## Features
66
7- - ** UI Configuration** : Add rooms through Home Assistant's UI with an intuitive config flow
8- - ** Composite Sensors** : Each room creates a summary sensor that combines multiple entity states
7+ - ** UI Configuration** : Add areas through Home Assistant's UI with an intuitive config flow
8+ - ** Composite Sensors** : Each area creates a summary sensor that combines multiple entity states
99- ** Real-time Updates** : Uses event-driven updates instead of polling for instant state changes
1010- ** Device Registry** : Creates proper devices in Home Assistant's device registry
1111
1212## Documentation
1313
1414📖 ** Complete Documentation** : [ docs/] ( docs/ )
1515
16- - ** [ Design Rationale] ( docs/rationale.md ) ** - Why this exists and how it pairs with CFHAC /Area-like UX
16+ - ** [ Design Rationale] ( docs/rationale.md ) ** - Why this exists and how it pairs with Custom Features for Home Assistant Cards /Area-like UX
1717- ** [ API Reference] ( docs/api.md ) ** - Entity states, attributes, and configuration schema
1818- ** [ Configuration Examples] ( docs/examples.md ) ** - Real-world setup examples and use cases
1919- ** [ Developer Guide] ( docs/developer.md ) ** - Architecture overview and development setup
@@ -43,40 +43,40 @@ Not affiliated with Home Assistant — just vibing on top of it.
4343 - Select "Custom repositories"
4444 - Add: ` https://github.com/DefinitelyADev/room-entity `
4545 - Category: Integration
46- 3 . Search for "Rooms " in HACS and install it
46+ 3 . Search for "Areas " in HACS and install it
47474 . Restart Home Assistant
4848
4949### Manual Installation
5050
51- 1 . Download the ` custom_components/rooms / ` folder from this repository
51+ 1 . Download the ` custom_components/areas / ` folder from this repository
52522 . Copy it to your Home Assistant's ` custom_components/ ` directory
53533 . Restart Home Assistant
5454
5555## Configuration
5656
57- ### Adding a Room
57+ ### Adding an Area
5858
59591 . Go to ** Settings** → ** Devices & Services** → ** Add Integration**
60- 2 . Search for "Rooms " and select it
61- 3 . Configure your room :
62- - ** Room Name** : Display name for the room
60+ 2 . Search for "Areas " and select it
61+ 3 . Configure your area :
62+ - ** Area Name** : Display name for the area
6363 - ** Power Sensor** : Optional sensor for power consumption
6464 - ** Energy Sensor** : Optional sensor for energy consumption
6565 - ** Temperature Sensor** : Optional temperature sensor
6666 - ** Humidity Sensor** : Optional humidity sensor
6767 - ** Motion Sensor** : Optional motion detection sensor
6868 - ** Window Sensor** : Optional window/door sensor
6969 - ** Climate Entity** : Optional climate control entity
70- - ** Active Power Threshold** : Power level (in watts) above which the room is considered "active"
70+ - ** Active Power Threshold** : Power level (in watts) above which the area is considered "active"
7171
7272## Usage
7373
7474### Summary Sensor
7575
76- Each room creates a summary sensor with these states:
77- - ** active** : Room is currently active (motion detected OR power above threshold)
78- - ** idle** : Room has configured entities but is not active
79- - ** unknown** : No entities configured for the room
76+ Each area creates a summary sensor with these states:
77+ - ** active** : Area is currently active (motion detected OR power above threshold)
78+ - ** idle** : Area has configured entities but is not active
79+ - ** unknown** : No entities configured for the area
8080
8181The summary sensor includes these attributes:
8282- ` power_w ` (numeric) and ` power ` (string with unit, e.g. "28.6 W")
@@ -88,39 +88,39 @@ The summary sensor includes these attributes:
8888- ` climate_mode ` : Current climate mode
8989 - ` climate_target_c ` (numeric) and ` climate_target ` (string with unit)
9090
91- ### Area vs Tile (with CFHAC )
91+ ### Area vs Tile (with Custom Features for Home Assistant Cards )
9292
93- If you want to mimic the Area card using a Tile card with CFHAC features and the room summary sensor:
93+ If you want to mimic the Area card using a Tile card with Custom Features for Home Assistant Cards features and the area summary sensor:
9494
95- ![ Area card vs Tile card with CFHAC ] ( docs/images/area-vs-tile.png )
95+ ![ Area card vs Tile card with Custom Features for Home Assistant Cards ] ( docs/images/area-vs-tile.png )
9696
9797## State Logic
9898
99- The room state is determined by this priority:
99+ The area state is determined by this priority:
1001001 . If motion sensor is ON → ** active**
1011012 . If power consumption > active threshold → ** active**
1021023 . If any core entities exist but conditions 1-2 are false → ** idle**
1031034 . If no entities configured → ** unknown**
104104
105105## Icons
106106
107- The summary sensor icon changes based on room status:
107+ The summary sensor icon changes based on area status:
108108- Window open: ` mdi:window-open-variant `
109109- Motion detected: ` mdi:motion-sensor `
110110- Default: ` mdi:home `
111111
112112## Device Registry
113113
114- Each room creates a device in Home Assistant's device registry, allowing you to:
115- - Group all room sensors together
114+ Each area creates a device in Home Assistant's device registry, allowing you to:
115+ - Group all area sensors together
116116- View device information
117117- Manage device settings
118118
119119## Requirements
120120
121121- Home Assistant 2024.1.0 or later
122122- Python 3.10 or later
123- - Entities must exist before configuring the room
123+ - Entities must exist before configuring the area
124124
125125## Troubleshooting
126126
@@ -137,7 +137,7 @@ Add this to your `configuration.yaml` to enable debug logging:
137137logger :
138138 default : info
139139 logs :
140- custom_components.rooms : debug
140+ custom_components.areas : debug
141141` ` `
142142
143143## Contributing
@@ -182,9 +182,9 @@ Or run individual checks:
182182python validate.py # Custom validation
183183python run_tests.py # Unit tests
184184pyright # Type checking
185- black --check custom_components/rooms / # Code formatting
186- isort --check-only custom_components/rooms / # Import sorting
187- flake8 custom_components/rooms / # Linting
185+ black --check custom_components/areas / # Code formatting
186+ isort --check-only custom_components/areas / # Import sorting
187+ flake8 custom_components/areas / # Linting
188188` ` `
189189
190190# ## Pre-commit Setup
0 commit comments