PaulAnnekov / tuyaha

Implements the special Tuya Home Assistant API.
Other
141 stars 106 forks source link

sensor for tuya smart meters #75

Closed Quellweg22 closed 3 years ago

Quellweg22 commented 3 years ago

hello, are there any integrations (sensors for HA) for Tuya smart meters via the Tuya-cloud-api (direct IP connection works fine). use case: check energy consumption of remote objects (mobile home, ...)

https://de.aliexpress.com/i/33045341249.html

thx!

Uwe

mathep34 commented 3 years ago

hello, I have same issue. Do you have a roadmap for support this item? thx pierre

PaulAnnekov commented 3 years ago

Currently this lib knows nothing about energy metrics. The only way to try to support this device is to buy it, make API calls and check the output. Do you have such device? Can you test API calls?

mathep34 commented 3 years ago

yes I have this material which is operational. I am not a development expert but I can try an API and give logs

PaulAnnekov commented 3 years ago

Start with this manual https://github.com/PaulAnnekov/tuyaha#how-to-check-whether-the-api-this-library-using-can-control-your-device and give me the output.

mathep34 commented 3 years ago

Hello Paul for information a device name is "Compteur Piscine" and is not view in this export but is present on my Smartlife application (see screenshot) Thank you Pierre

this is export. ..... Getting devices Got devices { 'header': {'code': 'SUCCESS', 'payloadVersion': 1}, 'payload': { 'devices': [ { 'data': {'online': True, 'state': False}, 'dev_type': 'switch', 'ha_type': 'switch', 'icon': ' https://images.tuyaeu.com/smart/icon/1553220447w51qc6eyig_0.jpg', 'id': '25064247c4dd5728f793', 'name': 'Pompe Piscine'}, { 'data': {'online': True, 'state': False}, 'dev_type': 'switch', 'ha_type': 'switch', 'icon': ' https://images.tuyaeu.com/smart/solution/136001/b8bb0466b861046d_cover.png', 'id': 'bfee06128e8c6549b25sag', 'name': 'comptoir cuisine'}, { 'data': {'online': False, 'state': False}, 'dev_type': 'switch', 'ha_type': 'switch', 'icon': ' https://images.tuyaeu.com/smart/solution/160001/4772fad51dca8c64_cover.png', 'id': 'bfce45a3b66979b73allcw', 'name': 'lumiere comptoir'}, { 'data': {'online': True, 'state': False}, 'dev_type': 'switch', 'ha_type': 'switch', 'icon': ' https://images.tuyaeu.com/smart/solution/136001/b8bb0466b861046d_cover.png', 'id': 'bfb3d806f0d34192e3dq5r', 'name': 'Entrée'}, { 'data': {'online': False, 'state': False}, 'dev_type': 'switch', 'ha_type': 'switch', 'icon': ' https://images.tuyaeu.com/smart/icon/1553220447w51qc6eyig_0.jpg', 'id': '25064247c4dd571b425e', 'name': 'prise test'}, { 'data': {}, 'dev_type': 'scene', 'ha_type': 'scene', 'id': 'pCIdQ0rf5JBbmNMK', 'name': 'Si Restinclières ' 'Température:Inférieur ' 'à-2℃,\"Pompe ' 'Piscine\"Switch:ON'}], 'scenes': []}}

Le lun. 7 juin 2021 à 21:07, Paul Annekov @.***> a écrit :

Start with this manual https://github.com/PaulAnnekov/tuyaha#how-to-check-whether-the-api-this-library-using-can-control-your-device and give me the output.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/PaulAnnekov/tuyaha/issues/75#issuecomment-856186924, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASZS7RU3HQTS45JTGU45ALTTRUKG5ANCNFSM4YMQK3WA .

--


Pierre Mathe (@ @) --o00-(_)-00o--


mathep34 commented 3 years ago

for your information Pierre

---------- Forwarded message --------- De : Pierre Mathe @.> Date: lun. 8 mars 2021 à 12:14 Subject: Roadmap for support product To: @.>, @.***>

Hello Tuya support team,

Do you have a roadmap to support "eMylo Wifi Smart Meter" model EAI-90 with Homeassistant ? Tuyapy library and https://px1.tuyaeu.com API endpoint My device is not listed in Tuya API response, what should I do?

Thank for your help

ref : https://www.amazon.fr/Monophas%C3%A9-Num%C3%A9rique-Intelligent-Consommation-Electrique/dp/B083BFGHPQ/ref=sr_1_13?dchild=1&keywords=eMylo&qid=1615202046&sr=8-13

Pierre (from France)

--


Pierre Mathe (@ @) --o00-(_)-00o--


--


Pierre Mathe (@ @) --o00-(_)-00o--


PaulAnnekov commented 3 years ago

Looks like the API doesn't support energy metrics. This is your way: https://github.com/PaulAnnekov/tuyaha#my-device-is-not-listed-in-tuya-api-response-or-contains-incomplete-state-what-should-i-do