Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Andrea Donno adonno

🏠
Working from home
View GitHub Profile
View expose-counter.yaml
knx:
expose:
- type: 'percent'
entity_id: counter.diaper_counter
address: '4/2/30'
View diaper-counter-reset.yaml
automation:
- id: '1579629681167'
alias: Reset diaper counter
description: ''
trigger:
- device_id: 98bb594b8fff4e4ca78656d95a266519
domain: deconz
platform: device
subtype: turn_on
type: remote_button_short_press
View diaper-counter.yaml
---
counter:
diaper_counter:
initial: 0
step: 1
icon: mdi:emoticon-poop
View mailman.json
[
{
"id": "875e408b.39af2",
"type": "tab",
"label": "Flow 3",
"disabled": false,
"info": ""
},
{
"id": "9742586f.2cd018",
View mailman.yaml
- id: '1568440451615'
alias: Mailman passed
trigger:
- entity_id: binary_sensor.openclose_8
from: 'on'
platform: state
to: 'off'
condition: []
action:
- service: notify.ios_iphoneadonno
View saltlevel_lovelace.yaml
icon: 'mdi:wrench'
badges: []
cards:
- entity: sensor.saltlevel_in_percen
max: 100
min: 0
name: Salt Level
severity:
green: 40
View salt_level_sensor.yaml
---
esphome:
name: salt_level_sensor
platform: ESP8266
board: d1_mini
# WiFi connection, replace these with values for your WiFi.
wifi:
ssid: !secret Wifi_SSID
password: !secret Wifi_PWD
View car_view_lovelace.yaml
---
url: /community_plugin/lovelace-card-mod/card-mod.js
type: js
icon: 'mdi:floor-plan'
id: 0
title: Floorplan
cards:
- type: vertical-stack
cards:
View multiple_state_carpresence.yaml
---
sensor:
- platform: template
sensors:
car_front:
value_template: >-
{% if states('sensor.car_position_front')|float > 1.60 and states('sensor.car_position_centerf')|float > 0.80 and states('sensor.car_position_centerf')|float < 0.85 %}
greencar_north
{% elif states('sensor.car_position_front')|float > 0.80 and states('sensor.car_position_front')|float < 0.85 and states('sensor.car_position_centerf')|float > 1.60 %}
greencar_south
View car_presence_sensor.yaml
---
sensor:
- platform: template
sensors:
car_back:
value_template: >-
{% if states('sensor.car_position_back')|float > 0.50 and states('sensor.car_position_centerb')|float > 0.50 %}
on
{% else %}
off