Tuya not sending events to Apilio or Apilio not receiving them today

Hi Philipp,

As with others this morning, still nothing here.
If Tuya have removed the integration facility, that is very short-sighted of them. I already have non-Tuya units which I shall be installing in part of my system today, and the rest of my Tuya system will follow that into the dustbin if the Apilio-Tuya integration cannot be revived in a stable fashion.
Automation, to be worthwhile, needs to work all the time.
Thanks for your work on this - we understand it’s not your fault!

Hi All,

Yes l agree with Johnmann fully. I have taken the decision to switch back to Ewelink (sonoff) controlled devices as a result of this termination of data by Tuya to Apilio .. they work faultless with ifttt for example. if more expensive.

I too appreciate the effort put in by Philipp.

Hi Philipp,

We seem to have integration! Just a couple of minutes ago, I checked again. I had to re-authenticate again, but it was then instantly clear that the Tuya data was flowing!

Ji @johnmann ,

Yes, I can confirm that. I just got an operational message to check the message queue and saw that Tuya is sending data again for an hour or so.
I switched back to the normal message queue, so everyone should see data updates again. If you re-authenticated to Tuya since yesterday, do this again to establish the authorisation with the normal setup.

I will follow up later with more info.

Hi @Aqua ,

we considered an integration with Ewelink for quite a while, and probably this event is a good trigger to tackle this project!

I have just checked and it has started sending data without re-authenticated this morning (last time l re- Authenticed was last night).

Thank you Philipp,

After reauthentication, it is working again. Let’s hope Tuya does not break it again!

Hi @pebneter ,

Thanks for sorting this out - I know it’s not easy! It would be good to know if Tuya are fully committed to permitting Apilio integration, and will bear us in mind when changing their system - as clearly happened on Sunday night.

To give context, I have two systems - house and boat. In the house, the main heating control is the only Tuya part of the system; I’ll be changing that today for Shelly devices and, after the problems of the past couple of days, I’ve shelved ideas of installing more Tuya devices in the house. My wife is not impressed when we can’t turn the heating on (“Why can’t we just have a simple switch?”)!

On the other hand, the boat is fully Tuya-controlled, with temperature sensors and heaters. When I first installed it, I used Tuya’s Smart Life app for control, finding it often lagged too much to be effective. However, once integrated with Apilio, it performed extremely well - but, of course, I can’t accept any long period of down-time as we’ve just experienced.

Thanks, again, for your work on this - it must be most frustrating! I very much look forward to your follow-up comments.

It would appear to be down again on my side, stopped logging data at 8:43, l re-authenticated but nothing?

Mine’s still working. After you re-authenticate, presumably you re-synchronise all devices (top right of Devices page)?

No l didn’t..thanks will do ..but it worked for an hour ..but will do now

Working again after re-synchronising, Thanks Johnmann.
it was strange it worked for an hour and stopped until l re-authenticated and followed by re-synchronising.

Strange things happen in the wire between here and China!

Thanks Philipp, after reauthenticating its also working for me too.
I didn’t need to do a device resync it seems.

@joe.ferris , yes, it worked for me a couple of times without clicking the re-sync button, but there have also been times when it wouldn’t work without a re-sync. Better, perhaps, to do that than just assuming all must be working after a re-authorisation.

1 Like

Thanks, so performing a resync won’t affect device IDs? As I am using these in logic. e.g. {{nv-9329}}

@joe.ferris It doesn’t seem to affect IDs. It simply seems to connect to each device and update it in Apilio to the last known state.

By the way, I again lost contact about 20 mins ago, and I’ve had to re-authorise again. Pity, but maybe the Chinese are hard at work stabilising our Tuya integration - if so, they’re excused!

1 Like

@joe.ferris A resync does not change existing devices (the primary id is the devices unique ID). It just creates new ones that aren’t at Apilio yet, and market devices for deletion if they are not present on Tuya anymore.

@johnmann We don’t know the inner workings of Tuya for sure, but I think repeated re-syncs won’t help with missing data. Once your account is authorised with the right queue, it “should” work.

2 Likes

@pebneter I think the sync updates the Apilio data to be the current Tuya state, otherwise it will stay in Apilio’s last known state until there’s a real-time update from the Tuya device. For example: Tuya&Apilio temp 12C - auth lost - Tuya 10C, Apilio 12C - Tuya 9C, Apilio 12C - re-auth - Tuya 9C, Apilio12C - sync - Tuya 9C, Apilio 9C.
I think!

I’m still needing to Reauthenticate my TUYA integration at times today.
Is anyone else having this issue.

I don’t see a pattern to it but I’m just checking the integration in Apilio from time to time today and noticing that the connection needs to be reauthenticated occasionally.
When I do reauthenticate the devices are in sync and receiving data again.
This won’t be a workable solution going forward so I’m just wondering if TUYA are doing work on their services that could be causing this and maybe it’s temporary?
@pebneter Is there a way you could find out?

Thanks