Skip to content

Instantly share code, notes, and snippets.

@JonahKr
JonahKr / climate.yaml
Last active April 18, 2023 08:33
Automation Template for managing Homeassistant Climate entities through events (Rhasspy)
# Manging Rhasspy calls for the climate entity
# A climate entity controls temperature, humidity, or fans, such as A/C systems and humidifiers.
# --> https://developers.home-assistant.io/docs/core/entity/climate/
automation:
#Changing the Temperature
- alias: Rhasspy Set Temperature
description: Set new target temperature
trigger:
- event_data: {}
@JonahKr
JonahKr / switch.yaml
Created May 26, 2020 10:43
Automation Template for managing Homeassistant Switch entities through events (Rhasspy)
# Manging Rhasspy calls for the switch entity
# A switch entity turns on or off something, for example a relay.
# --> https://developers.home-assistant.io/docs/core/entity/switch
automation:
#Turn On
- alias: Rhasspy Turn on
description: Turn on the switch
trigger:
- event_data: {}
@JonahKr
JonahKr / EntitiesRowEditor.ts
Created December 1, 2020 23:26
HASS - Entities Row Editor using sortablejs
import { fireEvent, HomeAssistant, LovelaceCardEditor } from 'custom-card-helpers';
import { css, CSSResult, html, internalProperty, LitElement, property, TemplateResult } from 'lit-element';
import { guard } from 'lit-html/directives/guard';
import Sortable, { AutoScroll, OnSpill, SortableEvent } from 'sortablejs/modular/sortable.core.esm';
interface EREConfig {
wonderfullsetting?: string;
}
/**
* Entities Row Editor