Moes Thermostat

I tried a different question and got no reply, which was probably my fault. I cannot get this thermostat to report the correct temperature. It is a factor of 5 out. I have found the code that I want to change to correct this in the debug log, but I am dammed if I can find the actual code to edit it. Can anyone assist, please?

The code is:

  "temp_set": {
    "type": "Integer",
    "value": {
      "unit": "\u2103",
      "min": 10,
      "max": 70,
      "scale": 1,
      "step": 5

It has been integrated via Tuya, but there is no Tuya custom component…

Moes Thermostat (IAYz2WK1th0cMLmL)

From Tuya:

From tuya-local

As a relative newcomer to HA I can’t honestly say I understand your reply, however I am sure it contains the answer and I will do my best to follow it through.

[edit] But having followed it through I get it, I will try it v soon…

Thank you

Sadly I have installed the integration and can choose the thermostat in setup but it cannot find the IP so I enter it manually (I know it is correct) but it still says “Unable to connect to your device with those details. It could be an intermittent issue, or they may be incorrect.”

Any thoughts?

Static IP address

/


/
Try a few times

I keep trying, if I use auto for IP address it comes back with ‘Unknown error’ all the time.

Using actual IP address it returns ‘Unable to connect’

See attached

local_key

The key has a strange number, special characters. Check it again.

Example:

38e402522f4b6aa1
29217c7d74c88b42
992aece2ee6e03db

Sorry should have asked for local_key not device id…now edited to ask the right question…

So how do I find the local_key? It auto populates with the screen grab I shared but if this is wrong where is the proper key?


/

/

FYI I have tried many times to log into the Tuya iot platform as you suggest, it either says I don’t have an account (clearly I do as I have many Tuya devices) or my credentials are wrong, I try to add a new account cannot as it never sends the verification code…

so for now I give up.

Thanks for your help…

I finally managed to get the local key:

  "lat": "51.9211",
  "local_key": "3E'o?:OCd7SD15?)",
  "lon": "-3.5466",

However Tuya-local still cannot find the device (a MOES thermostat).

Any ideas?

The correct local_key for Tuya devices should be 16 alphanumeric characters (letters and numbers only, no special characters).

Example of a valid key:
local_key: "a1b2c3d4e5f6g7h8"

So why am I getting what I am in the Tuya IoT platform?

Try this:
1


2

3

4

I tried this with the strange local_key I get but still nothing I’m afraid.

I really appreciate your ongoing help with this.

I also tried another device (a light) in the Tuya IoT platform and that returns a strange result as well

” local_key": "'#`tH)HrHv^1F!*e”

:thinking:

How to extend the validity of the Tuya API?

  1. Go to the Tuya IoT Platform.
  2. Log in to your account.
  3. Navigate to Cloud → Projects and select your project.
  4. Click on the API Services tab.
  5. Find the “Smart Home API” service and click Extend.

So I get as far as selecting my project. There is no ‘API Services Tab’, but there is a ‘Service API’ - I assume the same thing? So I select this.

Then what I see is:

Then no ‘Smarthome API’?

Sorry, am I being a muppet?

But if I select the ‘Smarthome Basic services’ option it says it is ‘Permanent’ and no extend option.