From 9cca3448d7d4feab156f04321809618b84595c93 Mon Sep 17 00:00:00 2001 From: basbruss Date: Mon, 31 Jul 2023 08:07:35 +0000 Subject: [PATCH] Update docs --- docs/usage/custom_cards/custom_card_camera.md | 12 ++++++ .../custom_card_homeassistant_updates.md | 38 ++++++++++++------ .../custom_cards/custom_card_imswel_person.md | 39 +++++++++++++++---- 3 files changed, 70 insertions(+), 19 deletions(-) diff --git a/docs/usage/custom_cards/custom_card_camera.md b/docs/usage/custom_cards/custom_card_camera.md index c471889ec..f8d304bf5 100644 --- a/docs/usage/custom_cards/custom_card_camera.md +++ b/docs/usage/custom_cards/custom_card_camera.md @@ -19,6 +19,10 @@ Version: 1.0.0 ## Changelog +
+1.0.1 +Added variable to passthough aspect ratio to the picture entity card. Fix minor issues with title. +
1.0.0 Initial release. @@ -35,6 +39,7 @@ Initial release. ulm_custom_card_camera_title: true ulm_custom_card_camera_name: "name" ulm_custom_card_camera_label: "label" + ulm_custom_card_camera_aspect_ratio: '16:9' ``` ## Variables @@ -68,6 +73,13 @@ Initial release. Label of your choice + +ulm_custom_card_camera_aspect_ratio +'16:9' +no + +Aspect ratio of camera entity + ??? note "Template Code" diff --git a/docs/usage/custom_cards/custom_card_homeassistant_updates.md b/docs/usage/custom_cards/custom_card_homeassistant_updates.md index d2cc42912..6f94b53ca 100644 --- a/docs/usage/custom_cards/custom_card_homeassistant_updates.md +++ b/docs/usage/custom_cards/custom_card_homeassistant_updates.md @@ -81,6 +81,8 @@ This card needs additional template sensors and binary_sensor updaters to work, +<<<<<<< Updated upstream + ## Template code ```yaml @@ -263,44 +265,56 @@ icon_info_updates: ## Template sensors code ```yaml -- sensor: - name: supervisor updates - command: 'curl http://supervisor/supervisor/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"latest_version":.data.version_latest,"installed_version":.data.version,"update_available":.data.update_available}''' - value_template: "{{ value_json.update_available }}" +sensor: + - platform: command_line + name: core_updates + command: 'curl http://supervisor/core/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"latest_version":.data.version_latest,"installed_version":.data.version,"update_available":.data.update_available}''' + value_template: '{{ value_json.update_available }}' + scan_interval: 600 json_attributes: - update_available - latest_version - installed_version -- sensor: - name: core_updates - command: 'curl http://supervisor/core/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"latest_version":.data.version_latest,"installed_version":.data.version,"update_available":.data.update_available}''' - value_template: "{{ value_json.update_available }}" + - platform: command_line + name: supervisor_updates + command: 'curl http://supervisor/supervisor/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"latest_version":.data.version_latest,"installed_version":.data.version,"update_available":.data.update_available}''' + value_template: '{{ value_json.update_available }}' scan_interval: 600 json_attributes: - update_available - latest_version - installed_version -- sensor: + - platform: command_line name: os_updates command: 'curl http://supervisor/os/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"latest_version":.data.version_latest,"installed_version":.data.version,"update_available":.data.update_available}''' - value_template: "{{ value_json.update_available }}" + value_template: '{{ value_json.update_available }}' scan_interval: 600 json_attributes: - update_available - latest_version - installed_version -- sensor: + - platform: command_line name: addons_updates command: 'curl http://supervisor/addons -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"addons":[.data.addons[] | select(.update_available)]}''' - value_template: "{{ value_json.addons | length }}" + value_template: '{{ value_json.addons | length }}' scan_interval: 600 unit_of_measurement: pending update(s) json_attributes: - addons +binary_sensor: + - platform: template + sensors: + updater_core: + friendly_name: Core + device_class: problem + value_template: "{{ states('sensor.core_updates') }}" + attribute_templates: + installed_version: "{{ state_attr('sensor.core_updates', 'installed_version') }}" + latest_version: "{{ state_attr('sensor.core_updates', 'latest_version') }}" ======= ??? note "Template Code" >>>>>>> Stashed changes diff --git a/docs/usage/custom_cards/custom_card_imswel_person.md b/docs/usage/custom_cards/custom_card_imswel_person.md index dfdc2eac1..85f67666d 100644 --- a/docs/usage/custom_cards/custom_card_imswel_person.md +++ b/docs/usage/custom_cards/custom_card_imswel_person.md @@ -14,10 +14,14 @@ This is a `custom-card` that improves the original person card (`card_person`) b ## Credits Author: imswel - 2022 -Version: 1.0.1 +Version: 1.0.2 ## Changelog +
+ 1.0.2 + UI fix and improvement. +
1.0.1 Breaking change: removed variable for zones, instead load all zones automatically. @@ -52,9 +56,9 @@ This card needs the following to function correctly: template: custom_card_imswel_person variables: ulm_card_imswel_person_entity: person.john - ulm_card_imswel_person_wifi_tracker: device_tracker.wifi_oneplus_6t - ulm_card_imswel_person_gps_tracker: device_tracker.oneplus_6t - ulm_card_imswel_person_findmy_script: script.find_my_oneplus_6t + ulm_card_imswel_person_wifi_tracker: device_tracker.my_phone_wifi + ulm_card_imswel_person_gps_tracker: device_tracker.my_phone + ulm_card_imswel_person_findmy_script: script.find_my_phone ulm_card_imswel_person_use_entity_picture: true ``` @@ -75,19 +79,19 @@ This card needs the following to function correctly: ulm_card_imswel_person_wifi_tracker - device_tracker.wifi_oneplus_6t + device_tracker.my_phone_wifi yes A device_tracker entity of the person based on wifi ulm_card_imswel_person_gps_tracker - device_tracker.oneplus_6t + device_tracker.my_phone yes A device_tracker entity of the person based on location ulm_card_imswel_person_findmy_script - script.find_my_oneplus_6t + script.find_my_phone yes A script entity that make ring your phone @@ -99,6 +103,27 @@ This card needs the following to function correctly: +#### Phone finder script example + +```yaml +find_my_phone: + sequence: + - service: notify.mobile_app_my_android + data: + message: command_volume_level + data: + media_stream: alarm_stream + command: 20 + - service: notify.mobile_app_my_android + data: + message: Home Assistant is searching your phone ! + data: + ttl: 0 + priority: high + channel: alarm_stream + mode: single +``` + ??? note "Template Code" ```yaml title="custom_card_imswel_person.yaml"