Skip to content

Instantly share code, notes, and snippets.

lrybak

Block or report user

Report or block lrybak

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lrybak
lrybak / automation.yaml
Created Jun 18, 2019
SDM630 automation.yaml
View automation.yaml
# Tariff switch
- alias: "Peak"
initial_state: true
trigger:
platform: time
at: '06:00'
condition:
- condition: time
weekday:
@lrybak
lrybak / configuration.yaml
Created Jun 18, 2019
SDM630 configuration.yaml
View configuration.yaml
utility_meter:
hourly_energy:
source: sensor.energy_total
cycle: hourly
daily_energy:
source: sensor.energy_total
cycle: daily
tariffs:
- peak
- offpeak
@lrybak
lrybak / ui-lovelace.yaml
Created Jun 18, 2019
SDM530 ui-lovelace.yaml
View ui-lovelace.yaml
- type: vertical-stack
cards:
- type: entities
title: 'Licznik energii'
show_header_toggle: false
entities:
- entity: sensor.energy_daily_g11
- entity: sensor.energy_daily_g12w
- entity: sensor.energy_monthly_g11
- entity: sensor.energy_monthly_g12w
@lrybak
lrybak / sensors.yaml
Last active Jun 18, 2019
SDM630 sensors.yaml
View sensors.yaml
- platform: mqtt
name: "energy_total"
state_topic: "tele/sdm630/SENSOR"
unit_of_measurement: 'kWh'
value_template: "{{ value_json.ENERGY.Total }}"
availability_topic: "tele/sdm630/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
@lrybak
lrybak / docker-compose.yaml
Last active Jan 11, 2019
docker tech stack
View docker-compose.yaml
version: '2.4'
services:
# Home assistant
hass:
container_name: hass
image: homeassistant/home-assistant
privileged: true
volumes:
- /home/docker/app-data/hass:/config
- /etc/localtime:/etc/localtime:ro
View gist:ed8cad90f14736fbf65f33d231cd2508
def getToken():
r = requests.get(API_TOKEN % MODEM_IP)
if r.status_code == 200:
root=ET.fromstring(r.text)
childs = root.getchildren()
for child in childs:
if child.tag == 'token':
return child.text
raise e.Exception("Token not found")
View gist:35890ae6b6eb9c3df5888921e60b46ac
2018-02-27 13:10:55 INFO (Thread-12) [mysensors.gateway_tcp] Trying to connect to ('192.168.1.121', 4500)
2018-02-27 13:10:55 INFO (Thread-12) [mysensors.gateway_tcp] Connected to ('192.168.1.121', 4500)
2018-02-27 13:10:55 DEBUG (Thread-12) [mysensors.gateway_tcp] Received 0;1;1;0;2;0
2018-02-27 13:10:55 WARNING (Thread-12) [mysensors] Child 1 is unknown
2018-02-27 13:10:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event system_log_event[L]: level=WARNING, source=/home/hass/homeassistant/lib/python3.5/site-packages/mysensors/__init__.py, message=Child 1 is unknown, timestamp=1519733455.9931657, exception=>
2018-02-27 13:10:55 INFO (Thread-12) [mysensors] Requesting new presentation for node 0
2018-02-27 13:10:55 DEBUG (Thread-12) [mysensors.gateway_tcp] Sending 0;255;3;0;19;
2018-02-27 13:10:56 DEBUG (Thread-12) [mysensors.gateway_tcp] Received 0;255;0;0;17;2.2.0
2018-02-27 13:10:56 DEBUG (Thread-12) [homeassistant.components.mysensors] Node update: node 0 child 255
2018-02-27 13:10:56 DEBUG (Thre
View another segfault
Segmentation fault
*** Segmentation fault
Register dump:
R0: 00000000 R1: 00000000 R2: 00000001 R3: 00000000
R4: 010e4440 R5: 00f65e38 R6: 00000001 R7: 010ec440
R8: 0064f980 R9: 00f7333c SL: 00000881 FP: 00000000
IP: 00a5c460 SP: 755162f0 LR: 00669d88 PC: 76c263fc
CPSR: 60000010
View domoticz segfault
2017-12-15 10:34:19.632 SQLQ query : UPDATE Hardware SET Name='Czarnochowice', Enabled=1, Type=94, Address='', Port=0, SerialPort='', Username='', Password='', Extra='AIRLY', Mode1='824f8c9e96254671a19d3ca392461df2', Mode2='423', Mode3='15', Mode4='', Mode5='', Mode6='Normal', DataTimeout=0 WHERE (ID == '16')
2017-12-15 10:34:19.633 (Czarnochowice) Started.
2017-12-15 10:34:19.648 WEBH : Host:192.168.1.121 Uri;/json.htm?type=hardware
2017-12-15 10:34:19.651 SQLQ query : SELECT ID, Name, Enabled, Type, Address, Port, SerialPort, Username, Password, Extra, Mode1, Mode2, Mode3, Mode4, Mode5, Mode6, DataTimeout FROM Hardware ORDER BY ID ASC
2017-12-15 10:34:19.652 SQLR result: 1;Domoticz Internal;1;67;;1;;;;;0;0;0;0;0;0;0;
2017-12-15 10:34:19.653 SQLR result: 2;Motherboard sensors;1;23;;0;;;;;0;0;0;0;0;0;300;
2017-12-15 10:34:19.653 SQLR result: 3;Domoticz remote (*.40);0;3;192.168.1.40;6144;6144;admin;21232f297a57a5a743894a0e4a801fc3;;0;0;0;0;0;0;0;
2017-12-15 10:34:19.654 SQLR result: 4;Ping checker;1;5
You can’t perform that action at this time.