Skip to content

Possible to specify which entities to monitor? #36

Closed Pinned Answered by jazzyisj
suneworld asked this question in Q&A
Discussion options

You must be logged in to vote

You want a sensor that ONLY monitors entities in a group?

template:
  - sensor:
      - name: "Unavailable Entities"
        unique_id: unavailable_entities
        icon: "{{ iif(states(this.entity_id)|int(-1) > 0,'mdi:alert-circle','mdi:check-circle') }}"
        state_class: measurement
        unit_of_measurement: entities
        state: >
          {% set entities = state_attr(this.entity_id,'entity_id') %}
          {{ entities|count if entities != none else none }}
        attributes:
          entity_id: >
            {% set ignore_seconds = 60 %}
            {% set ignore_ts = (now().timestamp() - ignore_seconds)|as_datetime %}
            {% set entities = expand('group.monitored…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@suneworld
Comment options

Answer selected by suneworld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants