Xenomes / Domoticz-TUYA-Plugin

Implements the special Tuya Home Assistant API.
22 stars 8 forks source link

Climate #1

Closed Cino2424 closed 1 year ago

Cino2424 commented 3 years ago

Got devices { 'header': {'code': 'SUCCESS', 'payloadVersion': 1}, 'payload': { 'devices': [ { 'data': { 'max_temper': 99, 'min_temper': 0, 'mode': 'hot', 'online': True, 'state': 'false', 'support_mode': [ 'cold', 'hot', 'wind', 'auto'], 'temp_unit': 'CELSIUS', 'temperature': 31}, 'dev_type': 'climate', 'ha_type': 'climate',

Xenomes commented 3 years ago

Which device do you have?

Cino2424 commented 3 years ago

Its a split climate. brand TCL

Xenomes commented 3 years ago

I put this one on my to-do list, i need to improve my programing skills. before i can add multiple devices in Domoticz to control a single Tuya-device. Because i don't have the device myself can't test/debug the new code.

ScIT-Raphael commented 3 years ago

@Cino2424 may I ask, on which app you added your TCL AC? There is a "SmartLife-SmartHome" app from ACSmart (where you need the TCL activation code for) which i currently use. But the app seems to have encrypted communication. Were you able to join your AC to the "default" tuya app? Or have you made additional changes to get that output?

@Xenomes thanks for the fork, I'll have a look, maybe I can help expand the AC part :).

Cino2424 commented 3 years ago

@Cino2424 may I ask, on which app you added your TCL AC? There is a "SmartLife-SmartHome" app from ACSmart (where you need the TCL activation code for) which i currently use. But the app seems to have encrypted communication. Were you able to join your AC to the "default" tuya app? Or have you made additional changes to get that output?

@Xenomes thanks for the fork, I'll have a look, maybe I can help expand the AC part :).

Ich benutze die normale Smart Life App. Mit dem Plugin habe ich die Klimageräte auch in Domoticz drin. Kann sie aber nur ein und ausschalten.

I use the standard Smart Life App without Activation Code. The Plugin adds the Climate in Domoticz, but only with Power off and on. No way to change running mode or Temp change.

ScIT-Raphael commented 3 years ago

Deutsch geht auch :). Also die nicht gebrandete, "offene" Variante (https://play.google.com/store/apps/details?id=com.tuya.smartlife)? Wie hast du da die Klima hinzugefügt? Ich hab bei mir 5 Stück im Einsatz, würde das sonst gleich mal testen. Bis jetzt hatte ich leider keinen Zugriff auf die Schnittstelle, da die Geschichte bei der TCL Variante scheinbar verschlüsselt läuft.

For all non german/swiss friends: So the unbranded, "open" variant (https://play.google.com/store/apps/details?id=com.tuya.smartlife)? How did you add the climate there? I have 5 of them in use, I would test them right away. Until now I had no access to the interface, because the story seems to be encrypted in the TCL version.

Cino2424 commented 3 years ago

Du ich hab die Klima in den Verbindungsmodus gesetzt und bei der Smart Life App Klima ausgewählt. Frag mich jetzt aber nicht welche, gibt da wohl unterschiedliche. Kann mit der App auch jeden Modus benutzen. Das einzige ist halt nur dann mit der Fernbedienung. Hab da eine mit LCD die weiß dann halt nicht was die Klima gerade macht. Muss dann manuell mit der Fernbedienung etwas auswählen, damit auf dem LCD das Richtige dann angezeigt wird.

ScIT-Raphael commented 3 years ago

Super, ich teste das Morgen, danke für die Infos! Hab im Moment die Modellreihe AX21, teils AX91 im Einsatz, die Fernbedienung ist jeweils mit Infrarot und LCD, so wie du dies beschreibst - bei mir ist die gar nicht im Betrieb, liegt auf der Klima. Das Ding ist halt einfach aufgrund von Infrarot "blöde", kann sich halt nicht mit dem Tuya/ESP Modul synchronisieren (one way). Ich gebe Morgen mal kurz Bescheid, wie und ob das geklappt hat - dann kann ich mich um die Integration kümmern, falls ich das hinkrieg.

Xenomes commented 3 years ago

@Xenomes thanks for the fork, I'll have a look, maybe I can help expand the AC part :).

That would be great 👍🏻

ScIT-Raphael commented 3 years ago

@Cino2424 Kurz zum bestätigen, du hattest recht. Die Klima in den Pair Modus schmeissen, Smart Life App öffnen und "Klimaanlage" auswählen - that's all :). Da ich jetzt auch Zugriff drauf habe, schaue ich, ob ich die Teile nun auch in Domoticz reinkrieg - also mehr als Ein/Aus.

Xenomes commented 3 years ago

@ScIT-Raphael and did you make some progress?

ScIT-Raphael commented 3 years ago

Small steps: I got a current overview and I'm able to reach the tuya device of the AC itself. Now adding to domoticz is a bit more complicated, because there doesnt exist a "AC-Device" which combines all features of the ac itself in one device. Option A would be to split this to multiple switched (don't like that), Option B would be to add a new device which contains all functions in one - which is what I would love to. Currently stuck in the "add a new device" process in domoticz, which could include all features.

Cino2424 commented 3 years ago

I would use 2 devices. One to set mode and one for temperature. Other Settings like fanspeed and windangle are not needed. It should not be a replacement for the whole remote, just an option for automation to make it cold or hot.

Else it would to be overpowered.

Xenomes commented 3 years ago

I did start a small experiment with the climate. https://github.com/Xenomes/Domoticz-TUYA-Plugin/tree/Climate_Test

ScIT-Raphael commented 3 years ago

Awesome, I still try to find some free time for development - but will have a look at your adjustment asap.

ScIT-Raphael commented 3 years ago

Hi Guys, I havnt forgotten you - still trying to find some free time :).

ScIT-Raphael commented 2 years ago

Hi Guys, me again. Just wanted to update that I switched from domoticz to home assistant. Needed some special modules which i wasnt able to find in domoticz. Noticed that they have air conditioners over tuya integrated and they are working properly. Sorry for the delay.

Xenomes commented 1 year ago

Hi, Climate is now available in a other plugin TinyTUYA