Skip to content

Instantly share code, notes, and snippets.

View danielolsson100's full-sized avatar

Daniel Olsson danielolsson100

View GitHub Profile
@danielolsson100
danielolsson100 / automation.yaml
Created October 25, 2025 14:21
automation.yaml
alias: Battery - FMB - Define Export Threshold
description: ""
triggers:
- entity_id:
- sensor.easee_status
trigger: state
- minutes: /15
trigger: time_pattern
- trigger: state
entity_id:
@danielolsson100
danielolsson100 / configuration.yaml
Last active August 20, 2025 05:17
Ferroamp Modbus TCP
Home Asssistant Ferroamp Modbus TCP
Ferroamp support needs to enable Modbus TCP for this to work
# Cred: Robin Östlund for the mapping
# Ref: https://ferroamp.com/wp-content/uploads/2023/04/Ferroamp-Modbus-TCP-Specification-RevD-2.pdf
configuration.yaml
-------------------------------------
modbus:
- name: ferroamp_modbus
@danielolsson100
danielolsson100 / configuration.yaml
Last active October 23, 2025 16:19
ferroamp - charge or discharge battery sensor with home assistant and nordpool
binary_sensor:
- platform: template
sensors:
bs_charge_ferroamp_battery:
friendly_name: Charge Ferroamp Battery
unique_id: bs_charge_ferroamp_battery
value_template: >-
{# Optimized Nordpool price check - True if current price is in lowest 6 hours (24 quarters) #}
{% set sensor = 'sensor.nordpool_kwh_se4_sek_2_10_025' %}
{% set today = state_attr(sensor, 'today') | default([]) %}
alias: Ferroamp > HA > Easee => Grid Equlizer
description: ""
trigger:
- platform: state
entity_id:
- sensor.ferroamp_grid_current
condition:
- condition: and
conditions:
- condition: numeric_state
@danielolsson100
danielolsson100 / Ferroamp and Easee.txt
Last active September 2, 2022 11:13
update easee charger threshold from ferroamp data
This is instructions to dynamic update Easee charger circuit limit with dynamic data from ferroamp without adding additional load to ACE.
Reguired components:
Home Assistant with an Easee charger and Ferroamp Energyhub
Integrations:
https://github.com/henricm/ha-ferroamp
https://github.com/fondberg/easee_hass
You need to know or find your circuit id of your Easee charger and that is displayed in various places in the HA / Easee integration.
@danielolsson100
danielolsson100 / disable_leds_rpi3.sh
Last active March 27, 2022 10:44 — forked from andrewssobral/disable_leds_rpi3.sh
Disable leds on Raspberry Pi 3 Model B Rev 1.2
# https://raspberrypi.stackexchange.com/questions/117632/turn-off-external-leds-on-raspberry-pi-3
# check model
cat /sys/firmware/devicetree/base/model
# Raspberry Pi 3 Model B Rev 1.2
# Disable Power (red) and Activity (yellow) leds
sudo nano /etc/rc.local
# Add the following lines before `exit 0`:
sudo sh -c 'echo none > /sys/class/leds/led0/trigger'