illnesse
(illnesse)
August 3, 2018, 5:14pm
8
Tuya is pretty awesome and absolutely compatible with a little scripting, see
and
'use strict';
load('/etc/openhab2/automation/jsr223/00_jslib/JSRule.js');
var tuyaScript = "node /etc/openhab2/scripts/nodejs/njstuya.js "
var TuyaSocket1Config = "-type outlet -ip 192.168.178.35 -id XXXXXXX -key XXXXXXX "
var TuyaSocket2Config = "-type outlet -ip 192.168.178.34 -id XXXXXXX -key XXXXXXX "
var TuyaSocket3Config = "-type outlet -ip 192.168.178.40 -id XXXXXXX -key XXXXXXX "
var TuyaSocket4Config = "-type outlet -ip 192.168.178.39 -id XXXXXXX -key XXXXXXX "
var TuyaSocket5Config = "-type outlet -ip 192.168.178.41 -id XXXXXXX -key XXXXXXX "
var TuyaSocket6Config = "-type outlet -ip 192.168.178.38 -id XXXXXXX -key XXXXXXX "
var tuyaLEDScript = "node /etc/openhab2/scripts/nodejs/njstuya.js "
var TuyaLED1Config = "-type light -ip 192.168.178.43 -id XXXXXXX -key XXXXXXX "
var TuyaLED2Config = "-type light -ip 192.168.178.44 -id XXXXXXX -key XXXXXXX "
JSRule({
name: "SysStartup_Tyua",
description: "Line: "+__LINE__,
triggers: [
ItemCommandTrigger("SysStartup",2)
This file has been truncated. show original
I got like 8 tuya wifi power sockets for 11€ each, 3 RGB LED strips for 20€ and am going to buy 20 RGB LED GU10 bulbs on alibaba for ~7-9 € soon, those prices are hard to beat, all compatible with the tuya api, completely controllable over node js, c#, python and more.
1 Like