Skip to content

Instantly share code, notes, and snippets.

View theundefined's full-sized avatar

Andrzej Dopierała theundefined

View GitHub Profile
SNMPv2-SMI::enterprises.2435.2.3.9.4.2.1.5.5.52.21.1.3.1 = Counter32: total printed pages
SNMPv2-SMI::enterprises.2435.2.3.9.4.2.1.5.5.52.21.1.3.2 = Counter32: fax/list
SNMPv2-SMI::enterprises.2435.2.3.9.4.2.1.5.5.52.21.1.3.3 = Counter32: mono copy
SNMPv2-SMI::enterprises.2435.2.3.9.4.2.1.5.5.52.21.1.3.4 = Counter32: color copy
SNMPv2-SMI::enterprises.2435.2.3.9.4.2.1.5.5.52.21.1.3.5 = Counter32: media print
Getting Info from IoT-device
VTRUST-FLASH 1.5
(c) VTRUST GMBH https://www.vtrust.de/35c3/
READ FLASH: http://10.42.42.42/backup
ChipID: 4ddcbe
MAC: 24:62:AB:4D:DC:BE
BootVersion: 7
BootMode: normal
FlashMode: 1M DOUT @ 40MHz
FlashChipId: 144051
spi:
clk_pin: 18
mosi_pin: 23
font:
- file: "ArialTh.ttf"
id: font_arth
size: 16
display:
- platform: template
sensors:
energy_total:
value_template: "{{ ( states('sensor.shellyem3_XXX_0_energy') | float + states('sensor.shellyem3_XXX_1_energy') | float + states('sensor.shellyem3_XXX_2_energy') | float ) | round(2) }}"
unit_of_measurement: 'kWh'
power_total:
value_template: "{{ ( states('sensor.shellyem3_XXX_0_power') | float + states('sensor.shellyem3_XXX_1_power') | float + states('sensor.shellyem3_XXX_2_power') | float ) | round(2) }}"
unit_of_measurement: 'W'
energy_total:
value_template: "{{ ( states('sensor.shellyem3_XXX_0_energy') | float + states('sensor.shellyem3_XXX_1_energy') | float + states('se
nsor.shellyem3_XXX_2_energy') | float ) | round(2) }}"
unit_of_measurement: 'kWh'
availability_template: "{{ states('sensor.shellyem3_XXX_0_energy') | int != 0 and states('sensor.shellyem3_XXX_1_energy') | int != 0
and states('sensor.shellyem3_XXX_2_energy') | int != 0 }}"
custom:
power_l1:
key: '6100_40464000'
unit: W
power_l2:
key: '6100_40464100'
unit: W
power_l3:
key: '6100_40464200'
unit: W
@theundefined
theundefined / gist:224701e80de9b5d5a2521ada0e0f4379
Created January 14, 2021 16:21
Powiadomienie o otwartej bramie garażu
alias: Powiadom mnie jak drzwi do garazu są otwarte przez 15 minut
description: ''
trigger:
- platform: state
entity_id: binary_sensor.garaz_gate_open
from: 'off'
to: 'on'
condition: []
action:
- delay: '00:10'
- id: '1604785510049'
alias: Pralka - off
description: ''
trigger:
- entity_id: sensor.sp111_3_pralka_power
platform: numeric_state
for: 00:01
below: '2'
condition: []
action:
- platform: rest
scan_interval: 900
name: syngeos 605
resource: https://api.syngeos.pl/api/public/data/device/605
value_template: " {{ address }}"
json_attributes:
- sensors
rest_command:
pvmonitor:
url: 'http://dane.pvmonitor.pl/pv/get2.php?idl=IDL&p=HASLO{{pvm}}'
method: GET
automations:
- id: pvmonitorproduction
alias: PvMonitorProduction
description: PV_Production
trigger:
- minutes: /5