Skip to content

Instantly share code, notes, and snippets.

@sagilo
sagilo / gist:cb39b83be9d9405a968616514574d2ef
Created January 22, 2023 18:59
Home Assistant mobile view configuration yaml
type: vertical-stack
cards:
- type: conditional
conditions:
- entity: binary_sensor.should_show_media_devices_in_dashboard
state: 'on'
card:
type: custom:mod-card
card:
type: custom:swipe-card
@sagilo
sagilo / ha_blueprint_notify_entity_became_unavailable.yaml
Last active November 17, 2021 11:51
HomeAssistant blueprint for notifying when an entity becomes unavailable
blueprint:
name: Notify when an entity becomes unavailable
description: Notify via a selected service when an entity becomes unavailable (version 1.0)
source_url: https://gist.github.com/sagilo/9c5f85794fa8ee3427e7cdab27f573f5
domain: automation
input:
entities_filter_regex:
name: Entities filter
description: Optional, whitelist filter entities by regex, leave empty to include all entities. Can be a domain, an entity name or both, for example 'sensor.' for sensors or for example 'sensor|light.main_light' for all sensors and 'main_light' entity
default: ''