question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ZHA Tuya attribute missing in TS130F curtain module

See original GitHub issue

The problem

Not able to calibrate TS130F based Zigbee curtain module (e.g. https://zigbee.blakadder.com/Lonsonho_TS130F.html) in ZHA because the ZHA cluster and its attributes are missing. This attribute contains the calibration. This is Calibration (0xF001)

What is version of Home Assistant Core has the issue?

core-2021.2.0

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ZHA

Link to integration documentation on our website

https://www.home-assistant.io/integrations/zha/

Example YAML snippet

# Put your YAML below this line

Anything in the logs that might be useful for us?

# Put your logs below this line

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:12
  • Comments:82 (27 by maintainers)

github_iconTop GitHub Comments

8reactions
jrochatecommented, Aug 10, 2021

FOUND IT!!!

I was almost there by trying and error, but with this post I solved the problem! #https://github.com/Koenkk/zigbee2mqtt/issues/7128#issuecomment-895928027

The solution is to use the attribut 0xF003 but set it to t.uint16_t I had with enum8 and that doesn’t work.

So, here is a snippetf of my quirk for attribut customization:

`class TuyaCoveringCluster(CustomCluster, WindowCovering): “”“TuyaSmartCurtainWindowCoveringCluster: Allow to setup Window covering tuya devices.”“”

attributes = WindowCovering.attributes.copy()
attributes.update({0xF000: ("tuya_moving_state", t.enum8)})
attributes.update({0xF001: ("tuya_calibration", t.enum8)})
attributes.update({0xF002: ("motor_reversal", t.enum8)})
attributes.update({0xF003: ("calibration_time", t.uint16_t)})

`

and i attach is HA cluster interface.

As you can see I have set a 20 second time, and it just works. The percentage adjusts to that time interval.

2021-08-10_15-14-04

6reactions
moritancommented, Jun 30, 2021

I have same screen now but how can i calibrate? What do i have to send as command? Thanks

The good news is that all the action can be done from the same screen. The bad news ? No bad news.

So :

  • Open the clusters window
  • Select “TuyaCoveringCluster (Endpoint id: 1, Id: 0x0102, Type: in)”
  • Launch the “down_close (id: 0x0001)” command
  • Once closed launch the “stop (id: 0x0002)” command
  • Activate calibration mode by setting “0” to the zigbee attribute
  • Launch the “up_open (id: 0x0000)” command
  • Once opened, launch the “stop (id: 0x0002)” command
  • Launch the “down_close (id: 0x0001)” command
  • Once closed launch the “stop (id: 0x0002)” command
  • desactivate calibration mode by setting “1” to the zigbee attribute

It’s done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

(affordable) Zigbee in-wall switches specifically for shutters
Yes the attribute and the whole Tuya cluster is missing from ZHA. I opened an issue. As I seen Domoticz already covered the...
Read more >
Where to start writing Custom driver for TS130F smart ...
Is there a “Edge for dummies” guide for how to do simple/sample drivers ? Where would you start to get all device specific...
Read more >
TuYa TS130F control via MQTT
Integrate your TuYa TS130F via Zigbee2MQTT with whatever smart home ... Press the open button on the switch, wait until the curtains are...
Read more >
changelog.en
This is a workaround which will later on be fixed in firmware of ConBee II. Support Legrand DIN power consumption module 25604e 0d630f;...
Read more >
Untitled
Reluce by partex star group, Death note episode 40 english sub, Missing persons ... Musica beethoven 9a sinfonia, Zha wang, Under the bed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found