Skip to content

Commit 871dca0

Browse files
committed
Merge branch 'main' of https://github.com/dinki/View-Assist
2 parents d607c2c + 04b8eb1 commit 871dca0

8 files changed

Lines changed: 25 additions & 13 deletions

File tree

View_Assist_custom_sentences/community_contributions/Ask_Wolfram/blueprint-askwolfram.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ blueprint:
1717
selector:
1818
entity:
1919
filter:
20-
- domain: group
21-
default: "group.viewassist_satellites"
20+
- domain:
21+
- group
22+
- sensor
23+
default: "sensor.viewassist_satellites"
2224
trigger:
2325
- platform: conversation
2426
command:
@@ -34,7 +36,7 @@ action:
3436
{{ sat.entity_id }}
3537
{% endif %}
3638
{% endfor %}
37-
target_display_device: "{{ device_id(state_attr(target_satellite_device, 'display_device')) }}"
39+
target_display_device: "{{ state_attr(target_satellite_device, 'display_device') }}"
3840
target_mediaplayer_device: "{{ state_attr(target_satellite_device, 'mediaplayer_device') }}"
3941
target_satellite_device_type: "{{ state_attr(target_satellite_device, 'type') }}"
4042
- service: pyscript.viewassist_wolfram_short_answer

View_Assist_custom_sentences/community_contributions/Ask_Wolfram/viewassist-get_wolfram_short_answer.py renamed to View_Assist_custom_sentences/community_contributions/Ask_Wolfram/viewassist_wolfram_short_answer.py

File renamed without changes.

View_Assist_custom_sentences/community_contributions/Calculations/blueprint-calculations.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ blueprint:
1313
selector:
1414
entity:
1515
filter:
16-
- domain: group
17-
default: "group.viewassist_satellites"
16+
- domain:
17+
- group
18+
- sensor
19+
default: "sensor.viewassist_satellites"
1820
trigger:
1921
- platform: conversation
2022
command:
@@ -30,7 +32,7 @@ action:
3032
{{ sat.entity_id }}
3133
{% endif %}
3234
{% endfor %}
33-
target_display_device: "{{ device_id(state_attr(target_satellite_device, 'display_device')) }}"
35+
target_display_device: "{{ state_attr(target_satellite_device, 'display_device') }}"
3436
target_mediaplayer_device: "{{ state_attr(target_satellite_device, 'mediaplayer_device') }}"
3537
target_satellite_device_type: "{{ state_attr(target_satellite_device, 'type') }}"
3638
- service: pyscript.viewassist_wolfram_short_answer

View_Assist_custom_sentences/community_contributions/Conversions/blueprint-conversions.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ blueprint:
1313
selector:
1414
entity:
1515
filter:
16-
- domain: group
17-
default: "group.viewassist_satellites"
16+
- domain:
17+
- group
18+
- sensor
19+
default: "sensor.viewassist_satellites"
1820
trigger:
1921
- platform: conversation
2022
command:
@@ -31,7 +33,7 @@ action:
3133
{{ sat.entity_id }}
3234
{% endif %}
3335
{% endfor %}
34-
target_display_device: "{{ device_id(state_attr(target_satellite_device, 'display_device')) }}"
36+
target_display_device: "{{ state_attr(target_satellite_device, 'display_device') }}"
3537
target_mediaplayer_device: "{{ state_attr(target_satellite_device, 'mediaplayer_device') }}"
3638
target_satellite_device_type: "{{ state_attr(target_satellite_device, 'type') }}"
3739
- service: pyscript.viewassist_wolfram_short_answer

wiki/docs/community-contributions/cc-sentences/ask-wolfram.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ This blueprint allows you to directly query Wolfram Alpha's Short Answers API. T
99
## Prerequisites
1010

1111
- You must have Pyscript installed [See installation video](https://www.youtube.com/watch?v=jpJxZaisbGQ)
12+
- You must have python_script enabled [See documentation](https://www.home-assistant.io/integrations/python_script)
13+
- You must have browser_mod installed [See documentation](https://github.com/thomasloven/hass-browser_mod)
1214
- You must set up an account and create an API key for Wolfram Alpha's [Short Answers](https://products.wolframalpha.com/short-answers-api/documentation) API. Free API keys are alloted 2,000 calls per month.
13-
- You must download the [required pyscript](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Frefs%2Fheads%2Fmain%2FView_Assist_custom_sentences%2Fcommunity_contributions%2FAsk_Wolfram%2Fviewassist-get_wolfram_short_answer.py), add your appid to the `appid` parameter, and place this file in your 'pyscripts' directory on your Home Assistant Server. Note that if you have multiple custom sentences using this script, this only needs to be performed once.
15+
- You must download the [required pyscript](https://raw.githubusercontent.com/dinki/View-Assist/refs/heads/main/View_Assist_custom_sentences/community_contributions/Ask_Wolfram/viewassist_wolfram_short_answer.py), add your appid to the `appid` parameter, and place this file in your 'pyscripts' directory on your Home Assistant Server. Note that if you have multiple custom sentences using this script, this only needs to be performed once.
1416

1517
## Changelog
1618

wiki/docs/community-contributions/cc-sentences/calculations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ This blueprint allows you to calculate the result of a mathematical expression u
99
## Prerequisites
1010

1111
- You must have Pyscript installed [See installation video](https://www.youtube.com/watch?v=jpJxZaisbGQ)
12+
- You must have python_script enabled [See documentation](https://www.home-assistant.io/integrations/python_script)
13+
- You must have browser_mod installed [See documentation](https://github.com/thomasloven/hass-browser_mod)
1214
- You must set up an account and create an API key for Wolfram Alpha's [Short Answers](https://products.wolframalpha.com/short-answers-api/documentation) API. Free API keys are alloted 2,000 calls per month.
13-
- You must download the [required pyscript](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Frefs%2Fheads%2Fmain%2FView_Assist_custom_sentences%2Fcommunity_contributions%2FAsk_Wolfram%2Fviewassist-get_wolfram_short_answer.py), add your appid to the `appid` parameter, and place this file in your 'pyscripts' directory on your Home Assistant Server. Note that if you have multiple custom sentences using this script, this only needs to be performed once.
15+
- You must download the [required pyscript](https://raw.githubusercontent.com/dinki/View-Assist/refs/heads/main/View_Assist_custom_sentences/community_contributions/Ask_Wolfram/viewassist_wolfram_short_answer.py), add your appid to the `appid` parameter, and place this file in your 'pyscripts' directory on your Home Assistant Server. Note that if you have multiple custom sentences using this script, this only needs to be performed once.
1416

1517
## Changelog
1618

wiki/docs/community-contributions/cc-sentences/conversions.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ This blueprint allows you to measurements from one unit to another using Wolfram
99
## Prerequisites
1010

1111
- You must have Pyscript installed [See installation video](https://www.youtube.com/watch?v=jpJxZaisbGQ)
12+
- You must have python_script enabled [See documentation](https://www.home-assistant.io/integrations/python_script)
13+
- You must have browser_mod installed [See documentation](https://github.com/thomasloven/hass-browser_mod)
1214
- You must set up an account and create an API key for Wolfram Alpha's [Short Answers](https://products.wolframalpha.com/short-answers-api/documentation) API. Free API keys are alloted 2,000 calls per month.
13-
- You must download the [required pyscript](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fraw.githubusercontent.com%2Fdinki%2FView-Assist%2Frefs%2Fheads%2Fmain%2FView_Assist_custom_sentences%2Fcommunity_contributions%2FAsk_Wolfram%2Fviewassist-get_wolfram_short_answer.py), add your appid to the `appid` parameter, and place this file in your 'pyscripts' directory on your Home Assistant Server. Note that if you have multiple custom sentences using this script, this only needs to be performed once.
15+
- You must download the [required pyscript](https://raw.githubusercontent.com/dinki/View-Assist/refs/heads/main/View_Assist_custom_sentences/community_contributions/Ask_Wolfram/viewassist_wolfram_short_answer.py), add your appid to the `appid` parameter, and place this file in your 'pyscripts' directory on your Home Assistant Server. Note that if you have multiple custom sentences using this script, this only needs to be performed once.
1416

1517
## Changelog
1618

wiki/docs/developer-resources/general-information.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ target_satellite_device is set by looking through all of the View Assist instanc
5858

5959
## How are VA status and launch icons defined?
6060

61-
VA provides a method for providing both status and launch icons in the top right side of the view area. These icons are custom button elements that can be defined in the [icon template](https://github.com/dinki/View-Assist/blob/main/View%20Assist%20dashboard%20and%20views/dashboard/dashboard.yaml#L512) portion of the dashboard. These custom button icons follow the same flexibility for adding actions based on single and double tape as well as long press. Aside from the built in VA functionality, the user is free to create these to fire services based on the type of press. Here is an example for creating a weather icon that when single pressed will change views to the `weather` view using the `navigate` service:
61+
VA provides a method for providing both status and launch icons in the top right side of the view area. These icons are custom button elements that can be defined in the [icon template](https://github.com/dinki/View-Assist/blob/main/View%20Assist%20dashboard%20and%20views/dashboard/dashboard.yaml#L512) portion of the dashboard. These custom button icons follow the same flexibility for adding actions based on single and double tap as well as long press. Aside from the built in VA functionality, the user is free to create these to fire services based on the type of press. Here is an example for creating a weather icon that when single pressed will change views to the `weather` view using the `navigate` service:
6262

6363
```
6464
weather:

0 commit comments

Comments
 (0)