mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-16 05:46:52 +00:00
2022.4: Zone now have a state
This commit is contained in:
parent
a73c2c1d67
commit
479b477b46
@ -270,22 +270,24 @@ using that information.
|
|||||||
|
|
||||||
## Zones now have a state!
|
## Zones now have a state!
|
||||||
|
|
||||||
TODO:
|
If you ever looked at the state of a `zone` entity, you would have noticed
|
||||||
- Needs better story
|
it always said: _"Zoning"_. Not really helpful 🙃
|
||||||
- Needs screenshot
|
|
||||||
- Could use some example automation/script/condition.
|
|
||||||
|
|
||||||
If you have looked at a `zone` entity, you would have noticed it always said:
|
|
||||||
_"Zoning"_. Not really helpful 🙃
|
|
||||||
|
|
||||||
So, to improve on that, we changed that behavior. The state of a `zone` entity
|
So, to improve on that, we changed that behavior. The state of a `zone` entity
|
||||||
will now show the number of persons that are in that zone; that is helpful!
|
will now show the number of [persons] currently in that zone; that is more
|
||||||
|
helpful!
|
||||||
|
|
||||||
This will greatly simplify automations and scripts that, for example, trigger
|
This will greatly simplify automations and scripts that, for example, trigger
|
||||||
on: Nobody is home, everybody is home, someone left home (or any other zone
|
on: Nobody is home, everybody is home, someone left home (or any other zone
|
||||||
for that matter). But it can also be used in conditions for other automations.
|
for that matter). Or use it as a condition to prevent an automation
|
||||||
|
from running when nobody is home.
|
||||||
|
|
||||||
For example, don't run a certain automation when nobody is home anyways.
|
<p class='img'>
|
||||||
|
<img class="no-shadow" src='/images/blog/2022-04/zone-condition.png' alt='Screenshot showing how to use zone with in a numeric condition'>
|
||||||
|
The condition ensure this automation will only trigger if someone is home.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
[persons]: /integrations/person
|
||||||
|
|
||||||
## Adjusting unit of measurements for sensors
|
## Adjusting unit of measurements for sensors
|
||||||
|
|
||||||
|
BIN
source/images/blog/2022-04/zone-condition.png
Normal file
BIN
source/images/blog/2022-04/zone-condition.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
Loading…
x
Reference in New Issue
Block a user