Skip to content

Instantly share code, notes, and snippets.

View danielolsson100's full-sized avatar

Daniel Olsson danielolsson100

View GitHub Profile
@danielolsson100
danielolsson100 / configuration.yaml
Created November 11, 2024 18:55
Ferroamp Modbus TCP
# Cred: Robin Östlund for the mapping
# Ref: https://ferroamp.com/wp-content/uploads/2023/04/Ferroamp-Modbus-TCP-Specification-RevD-2.pdf
---
modbus:
- name: ferroamp_modbus
type: tcp
host: 192.168.0.XXX
port: 502
delay: 5
@danielolsson100
danielolsson100 / automation.yaml
Last active July 13, 2024 08:24
Control Import / Export with Ferroamp portal access
This automation uses https://github.com/jonasbkarlsson/ferroamp_operation_settings/ to control Ferroamp Export/Import thresholds with HA
alias: Ferroamp - Cloud API
description: ""
trigger:
- platform: state
entity_id:
- binary_sensor.bs_ep_low
- platform: state
entity_id:
@danielolsson100
danielolsson100 / automations.yaml
Created July 19, 2023 07:52
Ferroamp cloudAPI for Home Assistant to get Sensor data and control export limit
- id: '1689579754727'
alias: Ferroamp - Set Limit Export
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.limit_export
condition: []
action:
- service: shell_command.set_limit_export
@danielolsson100
danielolsson100 / configuration.yaml
Created April 15, 2023 07:47
Home Assistant / Ferroamp / Tibber Pulse / Easee / EV - Calculated month price with Tibber price guarantee
# PoC code to calculate estimated Tibber month cost with Tibber EV charge price guarantee
# Requires Home Assistant and integration to Easee / Ferroamp / Tibber Pulse / Nordpool and some utility meters
# By adding these example entires to configuration.yaml
sensor:
- platform: template
sensors:
charge_cost_with_price_guarantee:
value_template: >-
{% set easee_cost_month = states('sensor.easee_cost_month') | float %}
@danielolsson100
danielolsson100 / automations.yaml
Last active April 13, 2023 09:00
ferroamp Read and set Import threshold from HA
- id: '1665917079136'
alias: Ferroamp - Set Import threshold = -1000
description: ''
trigger: []
condition: []
action:
- service: shell_command.set_import_threshold
data:
threshold: -1000
mode: single
@danielolsson100
danielolsson100 / configuration.yaml
Last active December 2, 2023 23:40
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
value_template: >-
{% set today=state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','today') %}
{% if ((state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','tomorrow') | count) == 0) or (state_attr('sensor.nordpool_kwh_se4_sek_2_10_025','tomorrow')[0] == None) %}
{% set array = today %}
{% else %}
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 / automations.yaml
Last active August 23, 2022 18:05
cookie based ferroamp cloudAPI request for Home Assistant
- id: '1657117435589'
alias: Set Export Threshold
description: ''
trigger:
- platform: state
entity_id:
- input_number.export_threshold
condition: []
action:
- service: shell_command.set_export_threshold
@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'