Skip to content

Instantly share code, notes, and snippets.

View hmoffatt's full-sized avatar

Hamish Moffatt hmoffatt

View GitHub Profile
@hmoffatt
hmoffatt / solar.yaml
Created July 27, 2021 23:11
Fronius meter configuration for Home Assistant
sensor:
- platform: fronius
resource: http://solar
monitored_conditions:
- sensor_type: power_flow
- platform: template
sensors:
# The raw Fronius photovoltaic state goes to unknown after dark, so force it to zero
photovoltaics_power:
@hmoffatt
hmoffatt / keycloak.conf
Last active May 14, 2019 00:23
fail2ban filter for Keycloak
# Fail2Ban filter for Keycloak
# Detecting unauthorized access to Keycloak-protected services
# typically logged in /opt/keycloak-x.y.z/standalone/logs/server.log
#
# Installation instructions:
# 1. Copy this file to /etc/fail2ban/filter.d/keycloak.conf
# 2. Enable by adding to jail.local:
# [keycloak]
# enabled = true
# logpath = /opt/keycloak-5.0.0/standalone/log/server.log