This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
HTML5 Push Messaging notification service. | |
For more details about this platform, please refer to the documentation at | |
https://home-assistant.io/components/notify.html5/ | |
""" | |
import datetime | |
import json | |
import logging | |
from functools import partial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{'dayOfWeek': 'Mo', 'setpoint': 'high', 'time': 300}, | |
{'dayOfWeek': 'Mo', 'setpoint': 'off', 'time': 720}, | |
{'dayOfWeek': 'Mo', 'setpoint': 'high', 'time': 900}, | |
{'dayOfWeek': 'Mo', 'setpoint': 'off', 'time': 1380}, | |
{'dayOfWeek': 'Tu', 'setpoint': 'high', 'time': 300}, | |
{'dayOfWeek': 'Tu', 'setpoint': 'off', 'time': 720}, | |
{'dayOfWeek': 'Tu', 'setpoint': 'high', 'time': 930}, | |
{'dayOfWeek': 'Tu', 'setpoint': 'off', 'time': 1380}, | |
{'dayOfWeek': 'We', 'setpoint': 'high', 'time': 300}, | |
{'dayOfWeek': 'We', 'setpoint': 'off', 'time': 720}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
import os | |
from multiprocessing import Process | |
def init_shutter_mode(host, openduration, closeduration): | |
import time | |
url="http://{0}/cm".format(host) | |
print("Starting shutter mode for {0}".format(host)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"id": "/dhwCircuits", | |
"type": "refEnum", | |
"references": [{ | |
"id": "/dhwCircuits/dhw1", | |
"uri": "http://{IP}/dhwCircuits/dhw1" | |
}] | |
}, | |
{ | |
"id": "/dhwCircuits/dhw1", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.9 | |
EXPOSE 8123:8555 | |
RUN apk add --no-cache git python3 py3-virtualenv openssh python3-dev gcc musl-dev libffi-dev openssl-dev | |
WORKDIR /usr/src/app | |
RUN git clone -b bosch_thermostat --single-branch https://github.com/pszafer/home-assistant | |
RUN git clone -b upnp_buderus_discovery https://github.com/moustic999/netdisco | |
RUN git clone https://github.com/moustic999/bosch-thermostat-http-client-python | |
RUN python3 -m venv home-assistant/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
'id': '/heatingCircuits/hc1/currentRoomSetpoint', | |
'type': 'floatValue', | |
'writeable': 0, | |
'recordable': 0, | |
'value': 22.0, | |
'unitOfMeasure': 'C', | |
'state': [{ | |
'off': 0.0 | |
}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
USER="root" | |
PASSWORD="" | |
DEST="/pictures/backup" | |
TYPE=$1 | |
case "$1" in | |
weekly) | |
OUTPUT="$DEST/weekly" | |
rm -rf $DEST/daily/*.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Support for MQTT cover devices. | |
For more details about this platform, please refer to the documentation at | |
https://home-assistant.io/components/cover.mqtt/ | |
""" | |
import logging | |
from typing import Optional | |
import voluptuous as vol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import serial_asyncio | |
class Output(asyncio.Protocol): | |
def connection_made(self, transport): | |
self.transport = transport | |
print('port opened', transport) | |
transport.serial.rts = False | |
transport.write(b'PWR?\r') |
NewerOlder