Closed jose1711 closed 4 months ago
have you tested or checked your JSON with the online checker? https://house-of-abbey.github.io/GarminHomeAssistant/web/
have you tested or checked your JSON with the online checker? https://house-of-abbey.github.io/GarminHomeAssistant/web/
Thank you for a hint. The checker is saying:
Incorrect type. Expected "number".
It looks like it does not like the quotes around the rendered template result. But then the issue is that template values must be quoted - no idea how to make it happy.
it expects a number like it says. i think you cant use this :
volume_level: "{{ state_attr('media_player.ht_a5000', 'volume_level') - 0.05 }}"
according to the examples you could set volume to say 50% by doing this:
volume_level: 0.5
you could create 1 automation and 2buttons and call those buttons
As I am wrote in the original post, I know I can write a script for instance and put the logic there. But I did not want to hide it from menu json. Bottom line I guess is that template can only be used inside "content" tag.
@JosephAbbey Can you advise here please?
Incorrect type. Expected "number".
The execution for services in the app does not currently support templates, the editor reflects this.
You would need to create a script on ha for this to work.
It would not be a good option to add this feature as it would require multiple API calls for one action which would make it slow.
My item definition is as follows:
This is modeled after https://community.home-assistant.io/t/media-player-volume-up-steps/17677/7 and I can confirm that the following YAML works in developer tool - service call:
The problem is that Garmin HA reports an issue that no JSON has returned from an HTTP request. While I could write a wrapper script I would like to understand why this is not working out of the box. Thanks!