1

Hi, I have few zigbee temp sensors with tuya ecosystem (not connected to HA) and I have DIY smart screen based on ESP8266. I would like to fetch temp data from those sensors but I do not know where to start. I do have iot.tuya.com account and I can get it to fetch in API explorer and postman but can't do it with ESP. Getting token and adding sign headers is a bit tricky to do. I did not find any similar project around. Does anyone done something similar and can put me in a right tracks? :)

request looks like this for example:

curl --request GET "https://openapi.tuyaeu.com/v1.0/devices/XXXXXXX" --header "sign_method: HMAC-SHA256" --header "client_id: XXXXX" --header "t: XXXXX" --header "mode: cors" --header "Content-Type: application/json" --header "sign: XXXXX" --header "access_token: XXXXXX"

and I know that before that I need to request a token (or refresh it).

no comments (yet)
sorted by: hot top new old
there doesn't seem to be anything here
this post was submitted on 30 Nov 2023
1 points (100.0% liked)

Home Automation

100 readers
2 users here now

Home automation is the residential extension of building automation.

It is automation of the home, housework or household activity.

Home automation may include centralized control of lighting, HVAC (heating, ventilation and air conditioning), appliances, security locks of gates and doors and other systems, to provide improved convenience, comfort, energy efficiency and security.

Warning: Working with electricity can result in injury, property damage, or even death if it is not done properly. Please keep this in mind while assisting others. If you are not sure about what you are doing, hire a licensed professional.

Rules

founded 2 years ago
MODERATORS