Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

realtime Cloud-MQTT data no longer stored by influxdb adapter #618

Open
crazy-ahmet opened this issue Jan 16, 2025 · 5 comments
Open

realtime Cloud-MQTT data no longer stored by influxdb adapter #618

crazy-ahmet opened this issue Jan 16, 2025 · 5 comments

Comments

@crazy-ahmet
Copy link

crazy-ahmet commented Jan 16, 2025

I´ve set up an account at tuya IOT platform and have Cloud-MQTT with real time updates of the values now.
I can see the values change every few seconds in iobroker.

Image

Only problem is that the data is no longer stored by the influxdb adapter.
In the past i pulled the data from cloud every 60s by the adapter. the datapoints got a timestamp and influxdb adapter worte the values to the db

Now since i have realtime update iobroker shows no more timestamp, just the changing values for the objects but they should be stored by influxb.

I think i need to change some settings but don´t know what.
Can you help?

@Apollon77
Copy link
Owner

This is more a InfluxDB question ... maybe debounce times or such set higher then the data updat intervals? Check the influxdb settings

@crazy-ahmet
Copy link
Author

crazy-ahmet commented Jan 17, 2025

I haven´t set any debounce or block times in the adapter:
Image

Also for the datapoint i don´t see the problem:
Image

It seems there is no time stamp after each update when pulling realtime data from the cloud and maybe this is the reason why influxdb doesn´t log the data but why?

@Apollon77
Copy link
Owner

Please enable tuya debug log and show log from receiving such data

@Apollon77 Apollon77 reopened this Jan 17, 2025
@crazy-ahmet
Copy link
Author

crazy-ahmet commented Jan 17, 2025

Looks like this:
Image

For example when heatpump fan speed of fan1 is changed which is datapoint 116 these are the debug messages for it:
tuya.0
2025-01-17 12:51:18.245 debug stateChange tuya.0.xxxf29d4f41b20959ehxxx.116 {"val":619,"ack":true,"ts":null,"q":0,"from":"system.adapter.tuya.0","user":"system.user.admin","lc":null}

tuya.0
2025-01-17 12:51:18.233 debug TuyaOpenMQ onMessage: topic = cloud/token/in/new143fxxx1fb551235b81cc0878d91axxx, message = {"protocol":4,"data":{"devId":"xxxf29d4f41b20959ehxxx","dataId":"fe5c0933-7a3f-4db4-b654-47e002a39e3e","productKey":"gdf0ibjcnkv7swf8","status":[{"116":619}]},"t":1737114678,"pv":"2.0","sign":"379e2c0315401b4da65aa1542f0dfbea"}

As soon as i put in my credentials for Cloud MQTT the tuya adapter pulls the live data and then no more data is written to the influxdb. when a value is updated timestamps are missing:

Image

@Apollon77
Copy link
Owner

Ok I see ... they are not providing a timestamp ... grmppff I fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants