Blinds with Tuya integration

Hi everyone. Relatively new to all this home automation. It is great fun but also gives me some headaches.

I bought a Smart Life compatible (Tuya) curtain / blind motor in China.

I’ve configured it and mounted. It works great from the Smart Life app. But I want to integrate and automate stuff. I gets found by the Tuya integration and I can control it from the card in Lovelace. It is found as a chain controller - which exactly what it is.

Here are my questions. Is there any way to get the status for the chain controller? Both for the card in Lovelace so I can set it to a certain position and so it can can it be integrated properly in Google home? Right it doesn’t work really well. I can open and close it - but not in my native language - only english.

From the Smart Life app that gets the percentage of how much it is closed.

Have you ever found a way? I am thinking of getting it as well (the zigbee version). But if it doesn’t work with HA I’ll need to find an alternative.

Not really… I can open, stop and close it from HA but only fully open or fully closed. I would like to be able to do so automation where it opens like 50%.

Hi, can u guide me how to make it work with HASS?

I have also just got this blind motor and set it up today, mine is branded Kogan SmartHome (Australia) but is definitely the same model, via Tuya, just rebranded for Australia.

I’m also having troubles with setting the position (e.g. open to 90%).
Tuya app: I can see and set the position to any percent
Google Assistant: I can say “open blinds to 50%” and it does it.
Home Assistant: I cannot see the position and I can’t use the cover.set_cover_position service (i.e. cannot set it to 50% in home assistant using cover.set_cover_position service).
HA + Google: I can use the Google Assistant Relay component in HA to send command to google to se the blind to x %. e.g. “open blinds to 90%” and that works! What I think I’ll do is set up an input_number slider and have the number sent to google when it’s changed.

@Viktor_N, To set this up in HASS you:

  1. Set the blind/curtain up in the Tuya, or Smart Life or Jinvoo Smart apps. (Tuya devices are often rebranded by other companies in different countries, you should try to set it up in one of the three apps above.
  2. Add the Tuya Integration if you haven’t already. It defaults to the Tuya App, so if you used SmartLife or Jinvoo, ensure you set that in the platform part of the configuration.
  3. Done!
  4. Optional extra, as I described in my post above, there are creative ways of getting the cover.set_cover_position to work.

If you are keen, you can flash them with tasmota and have local control
i din the same with my 3 kogan ones (rebranded zemismart/tuya blind driver)

check out the following template and write up by @blakadder

1 Like

Thanks for this. I installed the component and it seems to work. However, do you have an example of the input number in combination with the ‘open blindex to X percent’ ? Thanks!!

@leonkunst88, as requested, here is an example config for using input number to change the blind position. In my circumstance I am using one input_number to change two different blinds that are next to each other.

Note: it uses Google Assistant Relay component in HA
Note: if you change the blind position it will not update the input_number

input_number:
  living_room_blinds:
      name: Blinds
      mode: slider  # slider or box
      #initial: 30
      min: 0
      max: 100
      step: 5
      unit_of_measurement: '%'
      icon: mdi:blinds

automation:
- id: blinds_input_number
  alias: Blinds open to x percent
  trigger:
  - platform: state
    entity_id: input_number.living_room_blinds
  action:
  - data:
      command: "Open left blind to {{ trigger.to_state.state | int }}%" # change "left blind" to whatever you blind(s) are.
    service: rest_command.assistant_relay
  - data:
      command: "Open right blind to {{ trigger.to_state.state | int }}%" # change "right blind" to whatever you blind(s) are.
    service: rest_command.assistant_relay

Hey all,

Thought you might be interested in some massive progress I just made.
As @tbut7633 has pointed out, the native tuya integration doesn’t allow set_position.

But… Tuya Local does!

Setup was fairly painless, took a couple of goes to make sure the it was getting the correct parameter for set_position in the options but now its working like a champ.

Voice Assistants also let me set a percentage.

Setting position with the remote also updates HA UI and assistants.

Thinking its pretty perfect and now i’ve gotten my weekend back for now because I dont have to flash it :stuck_out_tongue:

3 Likes

Thank you so much for your screen. You helped me configure the blinds in the bedroom.

1 Like

Great news!

But I’m not sure I understand how to do that, You wrote “Tuya Local” how do I get my blinds motor to use Tuya Local, I can’t find the settings you show in your post. Do you mean Tasmota when you say Tuya Local?

Can you write some instruction how you did it?

Hey Mate,

Tuya Local is keeping the stock firmware and running an integration in HA to control it without the cloud services. It’s not tasmota but you can still cut off internet access after setup if you wish.

As mentioned, I’ve found this has expanded the control functionality without flashing.

I followed this video:

1 Like

Thanx for the info,

Just a last question, what kind of “platform” did you choose in Home Assistant for the curtains

Screenshot 2021-04-22 at 16.55.31

I’m sure you’ve figured it out by now, but you need to select the “cover” platform type.

What does the values at current position and set position mean? How do you know what to insert?

@Rosti4 I found that one needs to set the current position as “3” and the set position to “2”. It was hinted in the functions list in the link shared by @aidbish above. (Zemismart Blinds Controller Motor (YH002) Template for Tasmota)
Hope you can make it work.

Side note, as you can see, I had to check the option to invert the 0-100 position, but that will probably depend on your specific setup.

This is my first post on this forum, but I must have read a million entries. Thanks all for making the Home Assistant community so open and helpful!

2 Likes

I can’t get mine to work. Its not tasmota flashed and trying to use local tuya. I’ve been able to connect to other tuya devices (lights/switches) just not curtains. Screenshot of my setup below- I’ve tried a bunch of other settings but none of them appear to work. Seems like i have additional options compare to other peoples screenshots?

@tbut7633 Hey Tom, would you mind letting me know exactly how you paired you Kogan Smart Blinds with the Tuya app. I help the up & stop buttons, it flashed rapidly but Tuya app does not seem to see it. Any suggestions of help would be great.