Skip to content

Instantly share code, notes, and snippets.

@AMajland
AMajland / energy-price-table-card.js
Created November 2, 2026 12:34
HA Elpris data table inspired by Kaj Munk Wen (https://elpris.wen.dk/) using Energi Data s
class EnergyPriceTableCard extends HTMLElement {
constructor() {
super();
this._config = null;
this._hass = null;
this._history = null;
this._historyKey = null;
this._loading = false;
this._error = null;
}
# Automations.yaml
alias: PV to EV Dynamic
trigger:
- platform: time_pattern
seconds: /20
condition: []
action:
- choose:
- conditions:
- condition: state
@AMajland
AMajland / d1-em340-heatpump.yaml
Created February 5, 2023 20:06
ESPhome for d1-em340-heatpump.yaml
esphome:
name: d1-em340-heatpump
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API