HI, trying to template to the date of release on a latest_release_tag url of a GitHub sensor, I dont know how to do this, so seek help in the community:
say I have this repo release tag:
inspecting:
show this to be the goal to find:
my goal is to add this date timestamp to all GitHub sensors, which I now have listed with this:
- type: custom:auto-entities
card:
type: entities
# title: Github repos
show_header_toggle: false
header:
type: picture
image: /local/images/github_owler.png
entities:
- entity: automation.github_repo_update
secondary_info: last-triggered
filter:
include:
- entity_id: sensor.github*
options:
type: custom:template-entity-row
state: >
{% if state_attr(config.entity,'latest_release_url') %}
{{ state_attr(config.entity,'latest_release_url').split('tag/')[1]}}
{% else %} {{state_attr(config.entity,'latest_commit_sha')[0:7]}}
{% endif %}
secondary: >
fake--> {{timestamp}} {{ state_attr(config.entity,'latest_commit_message')}}
so need to create sensors (scrape maybe?) for each sensor.github_repo…
Anyone know how to do this please? thanks for having a look!