Skip to content

Instantly share code, notes, and snippets.

View blakadder's full-sized avatar

blakadder blakadder

View GitHub Profile
2015-11-04 09:50:43 ERROR POSTPROCESSER :: Exception generated in thread POSTPROCESSER: ascii : /i-data/md0/shows/Agents_of_Shield/Marvels.Agents.of.S.H.I.E.L.D.S03E06.Among.Us.Hide….720p_HDTV.FLEET.mkv : error 85 : error 86 : ordinal not in range(128)
2015-11-04 09:50:43 DEBUG POSTPROCESSER :: Moving file from /i-data/3b7d53b0/torrents/shows/Marvels.Agents.of.S.H.I.E.L.D.S03E06.720p.HDTV.x264-FLEET[rarbg]/Marvels.Agents.of.S.H.I.E.L.D.S03E06.720p.HDTV.x264-FLEET.mkv to /i-data/md0/shows/Agents_of_Shield/Marvels.Agents.of.S.H.I.E.L.D.S03E06.Among.Us.Hide….720p_HDTV.FLEET.mkv
2015-11-04 09:50:43 DEBUG POSTPROCESSER :: Found the following associated files: [u'/i-data/3b7d53b0/torrents/shows/Marvels.Agents.of.S.H.I.E.L.D.S03E06.720p.HDTV.x264-FLEET[rarbg]/marvels.agents.of.s.h.i.e.l.d.s03e06.720p.hdtv.x264-fleet.nfo']
2015-11-04 09:50:42 DEBUG POSTPROCESSER :: Checking if the path /i-data/md0/shows/Agents_of_Shield already exists
2015-11-04 09:50:42 DEBUG POSTPROCESSER :: Destination folder for th
value_template: >
{% set time = states('sensor.nasbox_uptime')|int %}
{% set minutes = ((time % 3600) / 60) | int %}
{% set hours = ((time % 86400) / 3600) | int %}
{% set days = (time / 86400) | int %}
{%- if time < 60 -%}
Less than a minute
{%- else -%}
{%- if days > 0 -%}
{"NAME":"RGB Smart Plug","GPIO":[37,0,39,0,38,134,0,0,131,17,132,21,0],"FLAG":0,"BASE":45}
{"NAME":"RGB Smart Plug","GPIO":[37,0,39,0,38,134,0,0,131,17,132,21,0],"FLAG":0,"BASE":45}
{"NAME":"RGB Smart Plug","GPIO":[37,0,39,0,38,134,0,0,131,17,132,21,0],"FLAG":0,"BASE":45}
Be sure to calibrate the power meter with this guide https://github.com/arendst/Sonoff-Tasmota/wiki/Sonoff-Pow-and-Pow-R2#calibration
@blakadder
blakadder / powcalscript
Last active April 30, 2020 12:13
User script for automatic power calibration
// ==UserScript==
// @name tasmota-calibration
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the world!
// @author yu_ya45
// @match http://*/
// @grant none
// ==/UserScript==
@blakadder
blakadder / diffuserinha.yaml
Created May 6, 2019 08:58
Home Assistant configuration for the Oil Diffuser 550ML
fan:
- platform: mqtt
name: "Diffuser"
availability_topic: "tele/diffuser/LWT"
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "stat/diffuser/POWER1"
command_topic: "cmnd/diffuser/POWER1"
speed_state_topic: "stat/diffuser/FAN"
payload_low_speed: low
@blakadder
blakadder / gist:581d7964d93cd3fe85c8f1ee393b9f8d
Last active October 27, 2019 21:16
GD-30W configuration.yaml entry
fan:
- platform: mqtt
name: "Diffuser"
availability_topic: "tele/GD-30W/LWT"
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/GD-30W/STATE"
state_value_template: "{{ value_json.POWER1 }}"
command_topic: "cmnd/GD-30W/POWER1"
payload_on: "ON"
@blakadder
blakadder / gist:2d112b50edd8f75f2d7fb0dddd9310c4
Created October 27, 2019 00:41
GD-30W Tasmota commands
Backlog SetOption66 1; TuyaMCU 21,111; TuyaMCU 11,1; TuyaMCU 12,11; TuyaMCU 13,103; TuyaMCU 14,12; TuyaMCU 15,110; DimmerRange 1,255; SetOption59 1
Rule1 on TuyaReceived#data=55AA000700056E040001007E do publish2 stat/GD-30W/EFFECT rgb_cycle endon on TuyaReceived#data=55AA000700056E040001017F do publish2 stat/GD-30W/EFFECT color endon on event#rgb_cycle do tuyasend4 110,0 endon on event#color do tuyasend4 110,1 endon on event#ON do backlog tuyasend4 110,1; tuyasend 11,1 endon on event#off do tuyasend1 11,0 endon on power3#state=1 do tuyasend4 103,1 endon on power3#state=0 do tuyasend4 103,0 endon
Rule1 1
Rule3 on TuyaReceived#data=55AA000700050D040001011E do tuyasend4 13,0 endon on TuyaReceived#data=55AA000700050D040001021F do tuyasend4 13,0 endon on mqtt#connected do serialsend5 55aa0001000000 endon
Rule3 1
@blakadder
blakadder / gist:4569e16fd9cec36d0bc2a8dac6439d42
Created October 30, 2019 20:38
Tasmota web UI default colors for <v7
backlog webcolor1 #000; webcolor2 #fff; webcolor3 #f2f2f2; webcolor4 #000; webcolor5 #fff; webcolor6 #000; webcolor7 #fff