Dtdrnll
(Dsvid Darnell)
August 4, 2018, 4:57pm
1
Canbed apps (tuya) interrogate wall outlet status.
Dtdrnll
(Dsvid Darnell)
August 4, 2018, 5:00pm
2
I am frustrated with switch defices where Alexa cannot tell me if the switch is on or off. With a minimum of effort, how can I have that? Is it part of Tuya, for example? Is there a brand, standard, or class of devices that are interrogateable from Alexa?
illnesse
(illnesse)
August 4, 2018, 5:21pm
3
it’s relatively easy with tuyapi
this is how i do it, see line 37
'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: "hmdoor1",
description: "Line: "+__LINE__,
triggers: [
ItemCommandTrigger("SysStartup","ON")
This file has been truncated. show original