Created
June 11, 2025 17:35
-
-
Save HarvsG/6fff58238fa7b2f8217d9326f6bc997f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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