Sorry, was aware of that one. It works partly for this LED strip. I can control it, but cannot change the colors.
And the developer of the app made quite clear that is most likely not going to be added
I also often get annoyed that Tuya often has interesting devices that I cannot use with Homey. I often help myself to register the devices in Home Assistant via the Tuya Cloud. Then I import the whole thing via the Homey HA app. But this is not a practical solution for the normal user. Athom should urgently do something about this.
Yeah, this is bizarrely the way Iβm looking atβ¦ Thing is, once I start down the Home Assistant path I imagine itβll be non stop from there
Where can one put in a request for an app? I recon quite a lot of people have already done so?
Iβm using ha for a few devices but just donβt have enough time to invest into ha , so I disagree,
Thatβs a tall if not impossible order, a WiFi device could use any API etc, where as ZigBee is a defined protocol
I thought it would be similar.
And especially Tuya seems to be changing and updating their API every once in a while
Hallo @Rens_Brandwijk
Ik heb met succes een LSC Smart Plug toegevoegd op basis van het lokale IP, key en Device ID.
Het toegevoegde apparaat in Homey doet echter niets, weet jij hoe dit kan?
Alvast bedankt en groeten,
Michiel
Hi Rens, I have a little questionβ¦
I used your app to add my tuya smartplugs, but it keeps indicating βDit apparaat is tijdelijk onbereikbaar.β
FYI: itβs the device called βEU02-JX ε
¬ηβ (think I saw the same issue on nl.rebtor.tuya - githubmate)
the strange thing is that your app getβs it when I turn a device of (manually or with the tuya app), but I canβt control it using homey (the power consumption is working without a problem)
atribute log:
{βdpsβ:{β18β:53,β19β:62,β20β:2345},βtβ:1641746426}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:57,β19β:69},βtβ:1641746458}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:53,β19β:62,β20β:2337},βtβ:1641746490}
NEW DATA ATRIBUTE: {βdpsβ:{β19β:69},βtβ:1641746493}
NEW DATA ATRIBUTE: {βdpsβ:{β19β:62},βtβ:1641746533}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:56,β19β:69},βtβ:1641746589}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:53,β19β:61,β20β:2333},βtβ:1641746613}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:54,β19β:68,β20β:2337},βtβ:1641746623}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:53,β19β:61,β20β:2333},βtβ:1641747399}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:55,β19β:68,β20β:2325},βtβ:1641747418}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:54,β19β:61,β20β:2333},βtβ:1641747585}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:55,β19β:68},βtβ:1641747588}
NEW DATA ATRIBUTE: {βdpsβ:{β17β:4},βtβ:1641747750}
I turned it off and on remotely and than I get these:
{βdpsβ:{β18β:54,β19β:61},βtβ:1641750080}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:55,β19β:69},βtβ:1641750082}
NEW DATA ATRIBUTE: {βdpsβ:{β19β:61},βtβ:1641750091}
NEW DATA ATRIBUTE: {βdpsβ:{β19β:68},βtβ:1641750101}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:53,β19β:61,β20β:2345},βtβ:1641750126}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:55,β19β:68},βtβ:1641750135}
NEW DATA ATRIBUTE: {βdpsβ:{β1β:false},βtβ:1641750150}
NEW DATA ATRIBUTE: {βdpsβ:{β1β:true},βtβ:1641750154}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:4,β19β:66,β20β:2337},βtβ:1641750155}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:55,β19β:64},βtβ:1641750157}
NEW DATA ATRIBUTE: {βdpsβ:{β19β:74},βtβ:1641750160}
NEW DATA ATRIBUTE: {βdpsβ:{β18β:53,β19β:63,β20β:2345},βtβ:1641750167}
where the βdpsβ:{β17β:4}" came fromβ¦ I donβt know
but I found this on Function Definition-Documentation-Tuya Developer
- 17 Increase power add_ele Send and report value Value range: 0 to 50000, interval: 100
(maybe the interval of 100 is why sometimes it works for a while and stops after⦠time)
kind regards,
also finding
NEW DATA ATRIBUTE: {βdpsβ:{β9β:0},βtβ:1641751481}
NEW DATA ATRIBUTE: {βdpsβ:{β17β:3},βtβ:1641753150}
9 = Switch 1 countdown countdown_1 Send and report value Value range: 0 to 86400, interval: 1, multiple: 0, unit: s Required
maybe your script fails when it receives one of these values?
Try without IP
Well, the script indeed does not process these parameters (as homey does not have anywhere to store it) but i check the availability of every parameter before processing it. So i donβt see why the script would crash on this.
Best way to find the reason would be to have a log / connect a terminal and see whatβs crashing.
It should just read the line, find no data elements to process and move to the next line.
// onoff devices
// verwerk onoff
if (data.dps.hasOwnProperty('1') == true && type == 'onoff') {
device.setCapabilityValue('onoff', data.dps['1'])
.catch(err => {
console.error(err);
});
}
// verwerk parameter 18 current
if (data.dps.hasOwnProperty('18') == true && type == 'onoff') {
device.setCapabilityValue('measure_current', data.dps['18'] / 1000)
.catch(err => {
console.error(err);
});
}
// verwerk parameter 19 measure power
if (data.dps.hasOwnProperty('19') == true && type == 'onoff') {
device.setCapabilityValue('measure_power', data.dps['19'] / 10)
.catch(err => {
console.error(err);
});
}
// verwerk parameter 20 voltage
if (data.dps.hasOwnProperty('20') == true && type == 'onoff') {
device.setCapabilityValue('measure_voltage', data.dps['20'] / 10)
.catch(err => {
console.error(err);
});
}
Hi Rens, did some extra testingβ¦
so when homey is rebooting, you see the smartplugs working for some seconds (even indicating the power usage for a second)β¦
afterwards this is what is mentioned in the dps
NEW DATA ATRIBUTE: {βdpsβ:{β1β:null,β2β:null,β3β:null,β101β:null,β102β:null,β103β:null}}
the strange thing is that if I use the βweb appβ (browserversion)
with the standard view itβs indicated itβs unavailable (and canβt operate it)
but if I change the view to big items (or whatever itβs called), I can use the slider to turn the device on/offβ¦
maybe this helps to troubleshoot?
kind regards
I have same problem I think. This device has worked for a couple of weeks then suddenly it stopped working. Looking in logs gives the same response as above NEW DATA ATRIBUTE: {βdpsβ:{β1β:null,β2β:null,β3β:null,β101β:null,β102β:null,β103β:null}}.
I have now tried and re-add the device, and everything seems to be right except I cannot control the device. Device works through SmartLife app. The device is an Deltaco outdoor plug with powermeetering.
I have got some smart plugs from Kruidvat. Do they pair with this app?
I get an error as shown i attached picture when adding a device. I have tried both leaving Version-field empty and enteirng β3.1β. But always same error.
Joep, should alse work, because Kruidvat uses tuya
Are you sure they will work? Did anyone test this? There is a review of someone stating he was able to link directly to Google home. So maybe they are not even Zigbee but WiFiβ¦