Skip to content

Instantly share code, notes, and snippets.

@HarvsG
Created June 11, 2025 17:35
Show Gist options
  • Save HarvsG/6fff58238fa7b2f8217d9326f6bc997f to your computer and use it in GitHub Desktop.
Save HarvsG/6fff58238fa7b2f8217d9326f6bc997f to your computer and use it in GitHub Desktop.
#/config/blueprints/template/bayesian_probability_sensor.yaml
blueprint:
name: Numeric probability from a Bayesian sensor
description: Creates a sensor which holds the probability of a Bayesian binary sensor
domain: template
source_url: https://gist.github.com/HarvsG/6fff58238fa7b2f8217d9326f6bc997f # used for updates
input:
original_entity:
name: Bayesian binary sensor
description: The Bayesian binary sensor to read the probability from
selector:
entity:
domain: bayesian
variables:
original_entity: !input original_entity
sensor:
state: "{{ state_attr(original_entity,'probability') }}"
availability: "{{ states(original_entity) not in ('unknown', 'unavailable') }}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment