Skip to content

Instantly share code, notes, and snippets.

Avatar

Martin Maciaszek fastjack

View GitHub Profile
View automations.yaml
- id: washingmachine_switchedoff
alias: 'Waschmaschine - Zustandswechsel zu Ausgeschaltet'
trigger:
- platform: state
entity_id: switch.espurna_2b13ca
to: 'off'
action:
- service: input_select.select_option
data:
entity_id: input_select.state_washingmachine
View unifi integration
device_tracker:
- platform: unifi
host: unifi.home.maciaszek.net
username: !secret unifi_username
password: !secret unifi_password
verify_ssl: false
track_new_devices: no
consider_home: 300
interval_seconds: 30
View pi-time
pi@time:~ $ ntpq -p
remote refid st t when poll reach delay offset jitter
=======================================================================================================
*SHM(1) .PPS. 0 l 20 64 377 0.0000 -0.1530 0.0183
xSHM(0) .GPS. 0 l 60 64 377 0.0000 -108.973 1.8303
View config.gateway.json
"openvpn": {
"vtun0": {
"encryption": "aes256",
"hash": "sha256",
"mode": "server",
"openvpn-option": [
"--keepalive 8 30",
"--comp-lzo",
"--duplicate-cn",
"--user nobody --group nogroup",
View HA update
19-11-04 07:49:04 INFO (MainThread) [hassio.homeassistant] Update Home Assistant to version 0.101.2
19-11-04 07:49:04 INFO (SyncWorker_0) [hassio.docker.interface] Update image homeassistant/qemux86-64-homeassistant:0.100.2 to homeassistant/qemux86-64-homeassistant:0.101.2
19-11-04 07:49:04 INFO (SyncWorker_0) [hassio.docker.interface] Pull image homeassistant/qemux86-64-homeassistant tag 0.101.2.
19-11-04 07:50:21 INFO (SyncWorker_0) [hassio.docker.interface] Stop homeassistant application
19-11-04 07:51:23 INFO (SyncWorker_0) [hassio.docker.interface] Clean homeassistant application
19-11-04 07:51:25 INFO (SyncWorker_4) [hassio.docker.homeassistant] Start homeassistant homeassistant/qemux86-64-homeassistant with version 0.101.2
19-11-04 07:51:40 INFO (MainThread) [hassio.homeassistant] Home Assistant pip installation in progress
19-11-04 07:51:55 INFO (MainThread) [hassio.homeassistant] Home Assistant pip installation done
19-11-04 08:00:44 INFO (MainThread) [hassio.host.info] Update local host information
View docker-compose
unifi:
image: fastjack/unifi:unstable
container_name: unifi
restart: unless-stopped
volumes:
- unifi_config:/config
environment:
PUID: '1001'
PGID: '1001'
ports:
@fastjack
fastjack / c128-mmu-vr.asm
Created May 4, 2019
Test for correct MMU's correct version register
View c128-mmu-vr.asm
BORDERCOLOR = $d020
SCREENCOLOR = $d021
DEBUGREG = $d7ff
* = $1c01
!word eol,0
!byte $9e, $37,$31,$38,$31, 0 ; SYS 7181
eol: !word 0
start:
View dns-sd -B
Browsing for _arduino._tcp
DATE: ---Sun 01 Jul 2018---
20:42:43.160 ...STARTING...
Timestamp A/R Flags if Domain Service Type Instance Name
20:42:43.315 Add 3 5 local. _arduino._tcp. H801_9954D7
20:42:43.315 Add 2 5 local. _arduino._tcp. ESPURNA-2B13CA
View configuration.yaml
sensor:
- platform: template
sensors:
nzbget_download_paused:
friendly_name: "Downloads angehalten"
icon_template: >-
{% if is_state('sensor.nzbget_download_paused', 'False') %}
mdi:play
{% else %}
mdi:pause
View customize.yaml
sensor.nzbget_download_paused:
homebridge_hidden: true
emulated_hue_hidden: true
icon_template: "{% if is_state('sensor.nzbget_download_paused', 'False') %}mdi:play{% else %}mdi:pause{% endif %}"