Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New template tests and filters #24340

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
205e6c3
Add device class moisture to sensors (#23972)
Ernst79 Sep 1, 2022
7b3d2bf
Update documentation for ISS (#23863)
DurgNomis-drol Sep 3, 2022
9a45d28
Add BlueMaestro integration (#23994)
bdraco Sep 6, 2022
53bccb4
Update LED-BLE brands and names (#24012)
bdraco Sep 6, 2022
cf3798a
Rename BThome to BTHome (#24006)
Ernst79 Sep 6, 2022
266e32f
Add Feasycom FSC-BP119 (#24011)
bdraco Sep 6, 2022
8f56812
Update lacrosse_view HA version to 2022.9 (#23985)
IceBotYT Sep 6, 2022
5033339
Update litterrobot documentation for Feeder-Robot switch (#23948)
natekspencer Sep 6, 2022
8bbc86f
Refactor volvooncall to use ConfigFlow (#23743)
y34hbuddy Sep 6, 2022
5a4917e
Add lifx.set_hev_cycle_state documentation (#23984)
Djelibeybi Sep 6, 2022
7ceb26d
Add sensor platform to Melnor Bluetooth docs (#24000)
vanstinator Sep 6, 2022
9608ac9
Add Nobø Ecohub integration (#17915)
oyvindwe Sep 6, 2022
1aac247
Document default_config loading hardware (#24008)
emontnemery Sep 6, 2022
cdc1fa2
Fix details block in Bravia TV (#23966)
Drafteed Sep 6, 2022
c4d8a88
Update Bluetooth links since documentation has moved (#24023)
bdraco Sep 6, 2022
eb36927
Add docs for tilt_ble integration (#23967)
apt-itude Sep 7, 2022
1b7802f
Fix ha_release for bluemaestro (#24031)
bdraco Sep 7, 2022
8900e82
Update universal.markdown (#23925)
holysoles Sep 10, 2022
2a37dfe
Zigstar zeroconf (#24105)
mercenaruss Sep 12, 2022
695a2de
Update supported lutron_caseta models (#24111)
bdraco Sep 13, 2022
c75fe72
Remove supported sensors (#24072)
Ernst79 Sep 13, 2022
124acce
Remove Ambee integration (#24125)
frenck Sep 14, 2022
7e358bc
Remove U.S. Citizenship and Immigration Services (USCIS) integration …
frenck Sep 14, 2022
98b1058
Document number selector step size 'any' (#24099)
emontnemery Sep 15, 2022
c9ca6f4
Add docs for lifx infrared brightness entity (#24028)
Djelibeybi Sep 15, 2022
245b047
Add documentation for version in templates (#24131)
ludeeus Sep 15, 2022
56add2d
Switchbee docs (#24019)
jafar-atili Sep 16, 2022
4396011
Update litterrobot to cloud push (#24075)
natekspencer Sep 17, 2022
f603318
Add litter level sensor to Litter-Robot documentation (#24153)
natekspencer Sep 17, 2022
5b514aa
Add docs for Guardian migration of certain services to a switch (#23374)
bachya Sep 17, 2022
c8fa5c2
Add docs for migration of SimpliSafe service to a button (#23670)
bachya Sep 18, 2022
4202e1d
Merge branch 'current' into next
frenck Sep 19, 2022
91453cb
Add number platform to Melnor Bluetooth docs (#24162)
vanstinator Sep 19, 2022
ed4f6ab
Add iBeacon integration (#24178)
bdraco Sep 20, 2022
839f693
Remove docs for deprecated Flu Near You integration (#24170)
bachya Sep 21, 2022
b236034
Add Kegtron documentation (#24172)
Ernst79 Sep 22, 2022
97682d4
Added button platform to SwitchBee docs (#24149)
jafar-atili Sep 22, 2022
9394413
Docs about Bravia TV Button platform (#24059)
Drafteed Sep 24, 2022
cf5b2de
Document how homekit_controller can use thread networks (#24225)
Jc2k Sep 25, 2022
a07ff02
Update netatmo.markdown (#23109)
cgtobi Sep 26, 2022
dc97894
Add intro and example to iBeacon Tracker (#24228)
bdraco Sep 26, 2022
1754e10
Add Google Sheets docs (#24013)
tkdrob Sep 26, 2022
94e673f
Add documentation for Lidarr integration (#21625)
tkdrob Sep 26, 2022
41e2b96
Add range to min-max integration (#24102)
jsherman256 Sep 26, 2022
1585c06
Add netgear switch discription (#22815)
starkillerOG Sep 26, 2022
d14ccaa
Add docs to radarr config flow (#20550)
tkdrob Sep 26, 2022
a0a8828
Add keymitt ble documentation (#23839)
spycle Sep 26, 2022
8e75108
Intellifire fan (#23237)
jeeftor Sep 26, 2022
593406e
Add documentation for the lifx.effect_move service (#24231)
Djelibeybi Sep 26, 2022
556000c
Update for Plugwise Core PR #76610 (#24251)
bouwew Sep 26, 2022
28f37d5
Add binary sensor docs for Radarr (#24250)
tkdrob Sep 26, 2022
d3e782e
Update dsmr_reader config flow and autodiscovery (#23939)
Glodenox Sep 26, 2022
dfaf2d0
Docs about PSK auth and SSDP discovery in Bravia TV (#23996)
Drafteed Sep 26, 2022
5d6ba44
Clarify access vs master code (#24045)
pergolafabio Sep 26, 2022
c71fce9
Merge branch 'current' into next
frenck Sep 26, 2022
0416b5c
Add generic distance device_class (#24065)
epenet Sep 27, 2022
2420c81
Add generic speed device_class (#24066)
epenet Sep 28, 2022
560f205
Add units to speed device class (#24265)
epenet Sep 28, 2022
19fa007
Add generic volume device_class (#24067)
epenet Sep 28, 2022
533ada6
Update apcupsd docs to reflect support for config flow. (#24255)
yuxincs Sep 28, 2022
c8a1ee7
Add generic weight device class (#24248)
epenet Sep 28, 2022
8878ea6
Merge branch 'current' into next
frenck Sep 28, 2022
f006f23
Added SwitchBee Light platform docs (#24159)
jafar-atili Sep 28, 2022
a69305b
Merge branch 'current' into next
frenck Sep 28, 2022
1cc4df5
Add additional known working iBeacon devices (#24284)
krazos Sep 29, 2022
9f5e5c5
Add subview documentation (#24277)
piitaya Sep 29, 2022
6633507
Switcher - update support for Switcher Breeze (#24150)
thecode Oct 1, 2022
17dbcfd
for-pr-79473
Petro31 Oct 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ source/_integrations/alert.markdown @home-assistant/core
source/_integrations/alexa.markdown @home-assistant/cloud @ochlocracy
source/_integrations/alexa.smart_home.markdown @home-assistant/cloud @ochlocracy
source/_integrations/almond.markdown @gcampax @balloob
source/_integrations/ambee.markdown @frenck
source/_integrations/amberelectric.markdown @madpilot
source/_integrations/ambiclimate.markdown @danielhiversen
source/_integrations/ambient_station.markdown @bachya
Expand Down Expand Up @@ -201,7 +200,6 @@ source/_integrations/flick_electric.markdown @ZephireNZ
source/_integrations/flipr.markdown @cnico
source/_integrations/flo.markdown @dmulcahey
source/_integrations/flume.markdown @ChrisMandich @bdraco @jeeftor
source/_integrations/flunearyou.markdown @bachya
source/_integrations/flux_led.markdown @icemanch @bdraco
source/_integrations/forecast_solar.markdown @klaasnicolaas @frenck
source/_integrations/forked_daapd.markdown @uvjustin
Expand Down Expand Up @@ -417,6 +415,7 @@ source/_integrations/nina.markdown @DeerMaximum
source/_integrations/nissan_leaf.markdown @filcole
source/_integrations/nmbs.markdown @thibmaek
source/_integrations/noaa_tides.markdown @jdelaney72
source/_integrations/nobo_hub.markdown @echoromeo @oyvindwe
source/_integrations/notify.markdown @home-assistant/core
source/_integrations/notify_events.markdown @matrozov @papajojo
source/_integrations/notion.markdown @bachya
Expand Down
4 changes: 2 additions & 2 deletions source/_docs/blueprint/selectors.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,8 @@ max:
type: [integer, float]
required: true
step:
description: The step value of the number value.
type: [integer, float]
description: The step size of the number value. Set to `"any"` to allow any number.
type: [integer, float, "any"]
required: false
default: 1
unit_of_measurement:
Expand Down
51 changes: 51 additions & 0 deletions source/_docs/configuration/templating.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ Print out a list of all the sensor states:

{% endraw %}

Entities that are on

{% raw %}

```
{{ ['light.kitchen', 'light.dinig_room'] | select('is_state', 'on') | list }}
```

{% endraw% }

Other state examples:
{% raw %}

Expand Down Expand Up @@ -141,6 +151,9 @@ Other state examples:
{{ as_local(states.sensor.time.last_changed) }}

{{ states('sensor.expires') | as_datetime }}

#make a list of states
{{ ['light.kitchen', 'light.dinig_room'] | map('states') | list }}
```

{% endraw %}
Expand Down Expand Up @@ -181,6 +194,26 @@ With strings:

{% endraw %}

List of friendly names

{% raw %}

```
{{ ['binary_sensor.garage_door', 'binary_sensor.front_door'] | map('state_attr', 'friendly_name') | list }}
```

{% endraw% }

List of lights that are on with a brightness of 255

{% raw %}

```
{{ ['light.kitchen', 'light.dinig_room'] | select('is_state', 'on') | select('is_state_attr', 'brightness', 255) | list }}
```

{% endraw% }

### Working with Groups

Not supported in [limited templates](#limited-templates).
Expand Down Expand Up @@ -548,6 +581,23 @@ Example using `is_defined` to parse a JSON payload:

This will throw an error `UndefinedError: 'value_json' is undefined` if the JSON payload has no `val` attribute.

### Version

- `version()` Returns a [AwesomeVersion object](https://github.com/ludeeus/awesomeversion) for the value given inside the brackets.
- This is also available as a filter (`| version`).

Examples:

{% raw %}

- `{{ version("2099.9.9") > "2000.0.0" }}` Will return `True`
- `{{ version("2099.9.9") < "2099.10" }}` Will return `True`
- `{{ "2099.9.9" | version < "2099.10" }}` Will return `True`
- `{{ (version("2099.9.9") - "2100.9.10").major }}` Will return `True`
- `{{ (version("2099.9.9") - "2099.10.9").minor }}` Will return `True`
- `{{ (version("2099.9.9") - "2099.9.10").patch }}` Will return `True`

{% endraw %}

### Distance

Expand All @@ -556,6 +606,7 @@ Not supported in [limited templates](#limited-templates).
- `distance()` will measure the distance in kilometers between home, entity, coordinates.
- `closest()` will find the closest entity.


#### Distance examples

If only one location is passed in, Home Assistant will measure the distance from home.
Expand Down
4 changes: 2 additions & 2 deletions source/_includes/integrations/config_flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ interface, by using this My button:

{% my config_flow_start badge domain=domain %}

{% if include.discovery or page.ha_dhcp or page.ha_homekit or page.ha_ssdp or page.ha_zeroconf %}
{% if include.discovery or page.ha_dhcp or page.ha_homekit or page.ha_ssdp or page.ha_zeroconf or page.ha_mqtt %}
{{ name }} can be auto-discovered by Home Assistant. If an instance was found,
it will be shown as _"Discovered"_, which you can select to set it up right
away.
{% endif %}

{% details "Manual configuration steps" %}
{% if include.discovery or page.ha_dhcp or page.ha_homekit or page.ha_ssdp or page.ha_zeroconf %}
{% if include.discovery or page.ha_dhcp or page.ha_homekit or page.ha_ssdp or page.ha_zeroconf or page.ha_mqtt %}
If there wasn't any discovered automatically, don't worry! You can set up a
manual integration entry:
{% else %}
Expand Down
95 changes: 0 additions & 95 deletions source/_integrations/ambee.markdown

This file was deleted.

Loading