Skip to content

Instantly share code, notes, and snippets.

{
"names": {
"zeger": "npub1ypv50qy9k6ha6csygt9pzzywqmj9ndqp90mdpw3neggawu22adkszsye9j"
}
}
'use strict';
/**
* There is no remote configuration file available for the Resol Deltatherm FK this
* is a WIP to retrieve data from the device through the tooling of Daniel Wippermann
* at https://github.com/danielwippermann/resol-vbus
*/
var rawConfiguration = {
@zegerk
zegerk / tuyaEuromHomeAssistant.js
Created April 15, 2022 10:48
Connect Tuya based Eurom Drybest dehumidifier to home assistant via MQTT
/**
* Control the Eurom Drybest dehumidifiers using a rest interface
*
* Data collected from the device can be send to an MQTT server
*/
const TuyAPI = require('tuyapi');
const mqtt = require('mqtt');
const commandLineArgs = require('command-line-args');
@zegerk
zegerk / docker-compose.yml
Created December 20, 2021 09:27
Home assistant docker compose
version: '3'
services:
homeassistant:
container_name: homeassistant
restart: always
image: ghcr.io/home-assistant/home-assistant
devices:
# Link serial and usb devices to HA
- /dev/ttyUSB0:/dev/ttyUSB0
- /dev/ttyACM0:/dev/ttyACM0
@zegerk
zegerk / fibaro_events_to_home_assistant.lua
Created December 5, 2021 16:26
Send events from Fibaro home center to Home Assistant
--[[
%% properties
%% events
* CentralSceneEvent
%% globals
--]]
-- @reference: https://forum.fibaro.com/topic/42701-capture-all-event-to-send-to-log-server/
-- @reference: https://forum.fibaro.com/topic/28094-solved-how-to-get-scene-id-within-its-code/
@zegerk
zegerk / docker-compose.yml
Created October 22, 2021 17:26
Docker compose for InfluxDB with Kibana
ersion: "3.7"
# https://github.com/nicolargo/docker-influxdb-grafana
services:
influxdb:
image: influxdb:latest
restart: always
container_name: influxdb
ports:
- "8083:8083"
- "8086:8086"
/**
* Send the Eurom Drybest data to an MQTT server
*
* Requires key / secret as described here: https://github.com/codetheweb/tuyapi/blob/master/docs/SETUP.md
*/
const TuyAPI = require('tuyapi');
const mqtt = require('mqtt');
const commandLineArgs = require('command-line-args');
@zegerk
zegerk / index.html
Last active November 18, 2020 21:30
SVG heating buffer
<html>
<!--
License: https://opensource.org/licenses/MIT
Author Zeger Knops - zeger@zeger.nl
-->
<head>
<script src="https://code.jquery.com/jquery-git.slim.min.js"></script>
<script>
--[[
%% properties
93 value
95 value
100 value
102 value
%% weather
%% events
%% globals
--]]
@zegerk
zegerk / temperature_calibrate.lua
Last active June 14, 2019 18:49
Calibrate Fibaro temperture sensor in Home Center 2
-- Add this code to a virtual device button and make sure all the
-- sensors you want to calibrate all have the same temperature
--
-- If labels with the name "tempLabelT" + deviceId have been made
-- their value will be set to the temperature and the corresponding
-- offset
VD = Net.FHttp("127.0.0.1", 11111)
-- Update this list with your own device ids
devices = {161, 162, 163, 164}