Skip to content

Instantly share code, notes, and snippets.

View mathieucarbou's full-sized avatar
🏠
Working from home

Mathieu Carbou mathieucarbou

🏠
Working from home
View GitHub Profile
@mathieucarbou
mathieucarbou / README.md
Last active September 5, 2024 10:30
Home Assistant Solar Diverter (Router)
@mathieucarbou
mathieucarbou / README.md
Last active September 5, 2024 00:23
Shelly Solar Diverter (Router)
@mathieucarbou
mathieucarbou / signing-git-commits.md
Created September 1, 2024 20:31 — forked from phortuin/signing-git-commits.md
Set up a GPG key for signing Git commits on MacOS (M1)

Based on this blogpost.

To sign Git commits, you need a gpg key. GPG stands for GNU Privacy Guard and is the de facto implementation of the OpenPGP message format. PGP stands for ‘Pretty Good Privacy’ and is a standard to sign and encrypt messages.

Setting up

Install with Homebrew:

$ brew install gpg
@mathieucarbou
mathieucarbou / README.md
Last active May 15, 2024 08:39
ESPHome with Dallas Temperature Sensor

ESPHome with Dallas Temperature Sensor

Device Website

image

Home Assistant Integration

image

@mathieucarbou
mathieucarbou / weather.hourly.yaml
Created March 7, 2024 11:32
Home Assistant Hourly Weather with Met.no
# https://www.home-assistant.io/integrations/template
template:
- trigger:
- platform: homeassistant
event: start
- platform: time_pattern
minutes: /30
action:
service: weather.get_forecasts
data:
@mathieucarbou
mathieucarbou / LICENSE
Last active January 17, 2024 13:35
MycilaJSY - Arduino / ESP32 lib for JSY-MK-194
The MIT License (MIT)
---------------------
Copyright © 2023-2024, Mathieu Carbou
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT O
@mathieucarbou
mathieucarbou / README.md
Last active December 13, 2023 09:54
Home Assistant H&T (Hygrostat & Thermostat)

Home Assistant H&T (Hygrostat & Thermostat)

Hygrostat

View code:

type: humidifier
entity: humidifier.hygrostat_chambre_rdc
name: Chambre
@mathieucarbou
mathieucarbou / README.md
Last active February 19, 2024 14:28
Tempo colored icons with RTE

Tempo colored icons with RTE

image

Edit view:

image

Code:

@mathieucarbou
mathieucarbou / README.md
Last active December 6, 2023 10:32
Home Assistant: % autoconsommation temps réel

Home Assistant: % autoconsommation temps réel

  • sensor.inverters_energy: production solaire totale en kWh
  • sensor.grid_energy_returned: mon Shelly EM qu mesure l'injection en kWh
template:
  # https://www.home-assistant.io/integrations/sensor/
  - sensor:
@mathieucarbou
mathieucarbou / README.md
Created November 14, 2023 11:03
Example: config-template-card + bar-card