Update my links for iot standards (#24794)

This commit is contained in:
Bram Kragten 2022-11-02 22:18:07 +01:00 committed by GitHub
parent c43db7d88e
commit 7b230e2a62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 11 deletions

View File

@ -16,7 +16,7 @@ module Jekyll
#{args}
Valid syntax:
{% my <redirect> [title="Link name"] [badge] [icon[="icon-puzzle-piece"]] [addon="core_ssh"] [blueprint_url="http://example.com/blueprint.yaml"] [domain="hue"] [service="light.turn_on"] %}
{% my <redirect> [title="Link name"] [badge] [icon[="icon-puzzle-piece"]] [addon="core_ssh"] [blueprint_url="http://example.com/blueprint.yaml"] [domain="hue"] [brand="philips"] [service="light.turn_on"] %}
MSG
end
end
@ -33,6 +33,7 @@ module Jekyll
query += [["addon", options[:addon]]] if options.include? :addon
query += [["blueprint_url", options[:blueprint_url]]] if options.include? :blueprint_url
query += [["domain", options[:domain]]] if options.include? :domain
query += [["brand", options[:brand]]] if options.include? :brand
query += [["repository_url", options[:repository_url]]] if options.include? :repository_url
query += [["service", options[:service]]] if options.include? :service
unless query.empty?

View File

@ -12,17 +12,29 @@
{%- if page.ha_config_flow and domain -%}
{% my config_flow_start badge domain=domain %}
{%- elsif page.ha_iot_standard == "zigbee" -%}
{% my config_zha badge %}
{%- if page.ha_brand -%}
{% my add_zigbee_device badge brand=domain %}
{%- elsif domain -%}
{% my add_zigbee_device badge domain=domain %}
{%- else -%}
{% my add_zigbee_device badge %}
{%- endif -%}
{%- elsif page.ha_iot_standard == "zwave" -%}
{% my config_zwave_js badge %}
{%- if page.ha_brand -%}
{% my add_zwave_device badge brand=domain %}
{%- elsif domain -%}
{% my add_zwave_device badge domain=domain %}
{%- else -%}
{% my add_zwave_device badge %}
{%- endif -%}
{%- endif -%}
</div>
<div class='section'>
{%- if page.ha_brand -%}
The {{ page.name | default: page.title }} brand was introduced in Home Assistant {{ page.ha_release | default: "unknown" }}.
The {{ page.title | default: page.name }} brand was introduced in Home Assistant {{ page.ha_release | default: "unknown" }}.
{%- else -%}
The {{ page.name | default: page.title }} {{ page.ha_integration_type | default: "integration" }} was introduced in Home Assistant {{ page.ha_release | default: "unknown" }},
The {{ page.title | default: page.name }} {{ page.ha_integration_type | default: "integration" }} was introduced in Home Assistant {{ page.ha_release | default: "unknown" }},
and it's used by <a title="Open analytics.home-assistant.io" href="https://analytics.home-assistant.io/#integrations" target="_blank" rel="noopener">
{% if percentage < 1 %}

View File

@ -4,7 +4,6 @@ description: Connect and control your Leviton Z-Wave devices using the Z-Wave in
featured: true
ha_release: '2021.2'
ha_iot_class: Local Push
ha_config_flow: true
ha_codeowners:
- '@home-assistant/z-wave'
ha_category:
@ -43,15 +42,14 @@ ha_platforms:
- siren
- switch
- update
ha_supporting_domain: zwave_js
ha_supporting_integration: Z-Wave
ha_iot_standard: zwave
---
[Leviton](https://leviton.com) is a member of the Works with Home Assistant partner program for their Z-Wave products. Leviton is committed to making sure their products are up-to-date and ready to use in Home Assistant. [Leviton Z-Wave products](https://www.amazon.com/Leviton) make it easy to automate your lighting using any of their products including the DZ6HD dimmer, DZ15S switch, ZW4SF Fan Speed Controller, DZPD3 Plug-in Dimmer, DZPA1 Plug-in Switch, and ZW15R Outlet.
Leviton Z-Wave devices work locally and integrate seamlessly with the Z-Wave integration in Home Assistant (Z-Wave stick required). As all connectivity is happening locally, status updates and controlling your devices happen instantly in Home Assistant. Each device that is connected to power will also act as a Z-Wave router to extend your Z-Wave mesh network.
{% include integrations/config_flow.md domain=page.ha_supporting_domain %}
{% my add_zwave_device badge domain=page.ha_domain %}
<br><br>
To find more information, please use the [Z-Wave integration](/integrations/zwave_js) page.

View File

@ -29,6 +29,6 @@ Third Reality Zigbee devices work locally and integrate seamlessly with the Zigb
To add Third Reality products, pair them as Zigbee devices:
{% my config_zha badge %}
{% my add_zigbee_device badge brand=page.ha_domain %}
[Learn more about Zigbee in Home Assistant.](/integrations/zha/)

View File

@ -20,6 +20,6 @@ Ultraloq Z-Wave Series smart locks work locally and integrate seamlessly with th
To add Ultraloq Z-Wave products, pair them as Z-Wave devices:
{% my config_zwave_js badge %}
{% my add_zwave_device badge domain=page.ha_domain %}
[Learn more about Z-Wave in Home Assistant.](/integrations/zwave_js/)