Skip to content

Instantly share code, notes, and snippets.

@IngmarStein
IngmarStein / automation.yml
Created August 2, 2025 20:30
Dynamically control River 3 Plus based on solar surplus and grid import with Home Assistant
alias: EcoFlow River 3 Plus - Dynamic Control
description: Dynamically control River 3 Plus based on solar surplus and grid import.
triggers:
- value_template: >-
{{ states('sensor.solaredge_m1_ac_power') | float(0) >
(states('number.ef_r30187_ac_charging_speed') | float(0) + 50) }}
for:
minutes: 3
id: solar_surplus
trigger: template
@IngmarStein
IngmarStein / ECSDynamicHostPort.go
Last active January 21, 2020 14:32
Get dynamically mapped host port from within ECS container
package main
import (
"encoding/json"
"io/ioutil"
"log"
"net/http"
"os"
"bufio"

Keybase proof

I hereby claim:

  • I am ingmarstein on github.
  • I am ingmarstein (https://keybase.io/ingmarstein) on keybase.
  • I have a public key whose fingerprint is F82B 557A C869 EE79 E00E F9B7 CDBC 8902 E711 5525

To claim this, I am signing this object: