It will compare the two version numbers and if it is not the same the the blueprint will be triggered. If you have a beta version it will be a different file. I will add your sensors to my blueprint post as well click here, glade you like it and your kind words.
@Blacky For Sensor Light blueprint, you provided blueprint sensor code:
sensor:
- platform: rest
name: "Sensor Light Blueprint Gist Version Number"
icon: mdi:cloud-tags
resource: "https://gist.githubusercontent.com/Blackshome/6edfec0ff6a25c5da0d07b88dc908238/raw/sensor-light.yaml"
method: GET
headers:
accept: "text/plain"
value_template: >
{% set match = value | regex_findall('\\*\\*Version:\\s*([0-9.]+)\\*\\*') %}
{{ match[0] if match else 'unknown' }}
scan_interval: 86400
In HA system log it keeps logging (I truncated log entry):
Logger: homeassistant.core
Source: core.py:2358
First occurred: 14:49:45 (87 occurrences)
Last logged: 15:11:14
State blueprint: name: Sensor Light description: > # ๐ก Sensor Light **Version: 8.5** Your lighting experience, your way - take control and customize it to perfection! ๐กโจ **If you like my blueprints, and would like to show your support or just say thank you?** [Click Here](https://www.paypal.com/donate/?hosted_button_id=WAZS3QSDTPGA8) ๐ <details> <summary><b>The Automation Process:</b> ๐</summary> - **Trigger:** - You can choose any [binary sensors](https://www.home-assistant.io/integrations/binary_sensor/) or [schedules](https://www.home-assistant.io/integrations/schedule) to trigger the automation. - A trigger sensor, such as a Motion Sensor, will activate lights, switches, scenes, and scripts when the automation is triggered. - A time delay begins the turning OFF process after all triggers are clear. See [grouping](https://community.home-assistant.io/t/481048/34) sensors for more information. - If triggers are activated again before the time delay ends, the automation resets for continuous lighting. - **Scene and Script Integration:** - Scenes or scripts offer additional customization for your spaces. - **Light Control Options:** -
...
The sensor value is the full sensor-light.yaml file. This is larger than 255 characters and HA does not allow this for a sensor value.
Seamly the Version string part from the yaml failed to be extracted and results into the full file content.
How to solve this?