📘 Blueprint Update Notifications

FAQ - Do you have any other developers blueprint sensors?

Yes, I’ve created sensors for two blueprints while testing this automation.
If you’d like to track the version of a specific blueprint, you can either create your own sensor or ask the blueprint’s developer to provide one.

If you’re a blueprint developer and would like to share your sensors, feel free to post them here, I’ll link them in this FAQ.

Please note: I don’t plan to develop sensors for every blueprint, so I kindly ask that you don’t request them from me directly.

Cover Control Automation (CCA)
sensor:
  - platform: rest
    name: "Cover Control Blueprint Github Version Number"
    icon: mdi:cloud-tags
    resource: "https://raw.githubusercontent.com/hvorragend/ha-blueprints/main/blueprints/automation/cover_control_automation.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


command_line:
  - sensor:
      name: "Cover Control Blueprint Local Version Number"
      icon: mdi:code-not-equal-variant
      command: "grep -oE '[*][*]Version[*][*]: [0-9.]+' /config/blueprints/automation/hvorragend/cover_control_automation.yaml | grep -oE '[0-9.]+'"
      scan_interval: 86400
Sonoff NSPanel
sensor:
  - platform: rest
    name: "NSPanel Blueprint Github Version Number"
    icon: mdi:cloud-tags
    resource: "https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_blueprint.yaml"
    method: GET
    headers:
      accept: "text/plain"
    value_template: >
      {% set match = value | regex_findall('\\*\\*Version\\*\\*:\\s*(v?[0-9.]+)') %}
      {{ match[0] if match else 'unknown' }}
    scan_interval: 86400


command_line:
  - sensor:
      name: "NSPanel Blueprint Local Version Number"
      icon: mdi:code-not-equal-variant
      command: "grep -oE '[*][*]Version[*][*]: v?[0-9.]+' /config/blueprints/automation/Blackymas/nspanel_blueprint.yaml | grep -oE 'v?[0-9.]+'"
      scan_interval: 86400

Enjoy

Blacky :smiley:

Back to FAQ: Click Here

1 Like