tuya-local icon indicating copy to clipboard operation
tuya-local copied to clipboard

Himox H05 support (see comments further down)

Open gschmidl opened this issue 3 years ago • 13 comments
trafficstars

I have a Himox H06 and it's only detected as a simple_switch - anything I can do about this?

(I also have a H05 that is detected correctly in localtuya - does it make any sense to try to set it up in tuya-local?)

I've removed the integration from localtuya before setting it up in tuya-local.

gschmidl avatar Mar 03 '22 18:03 gschmidl

Additional information - my H06 payload looks like this:

"1": True,
"4": "high",
"5": 92,
"8": True,
"11": False,
"18": "cancel",
"19": 0,
"22": "severe",
"101": 2

and the H05 payload:

"1": False,
"2": 21,
"4": "auto",
"5": 92,
"7": False,
"11": False,
"18": "cancel",
"21": "good"

gschmidl avatar Mar 03 '22 21:03 gschmidl

Himox H06 support was added to the source recently. It is not yet in a release. To try it if using HACS, you need to select "Redownload" from the tuya-local menu inside the HACS Integrations screen, and select "main" as the version to install.

Himox H13 is not yet supported. As long as you do not have the same device configured in both, localtuya and tuya-local can co-exist side by side.

make-all avatar Mar 04 '22 06:03 make-all

I blithely assumed its presence in the documentation meant it was already released. Apologies and thanks for the help!

gschmidl avatar Mar 04 '22 06:03 gschmidl

The documentation you see on github is taken from main. I have not made a release for some time because there are major changes in the next release (vacuum and RGBW lighting support) which still need some debugging. And also I have not had time for the past month due to other life events.

make-all avatar Mar 04 '22 06:03 make-all

Understood. If there's anything I can do to help add support for the H05 - if you're interested - please let me know. No hurry, of course.

gschmidl avatar Mar 04 '22 06:03 gschmidl

It seems to me like the dps that match have the same meaning. dp 2 is new, and looks like it is in the right range to be a current temperature sensor. dp 21 looks like it may have just moved from dp 22 (air quality indicator). dp 7 is a new switch or indication, or maybe it has also simply moved from dp 8. I guess figuring out those three (and whether my speculation about them having simply moved is correct) is all that is needed.

make-all avatar Mar 04 '22 07:03 make-all

I went back and checked and it's the H05, not H13 - I've updated the comments.

The H05 does not have a light on/off switch but it does have a child lock. The other buttons are a timer (1/2/4/8h), on/off, reset filter, and speed (night/low/high/auto).

gschmidl avatar Mar 04 '22 07:03 gschmidl

Reopening for the H05

make-all avatar Mar 27 '22 09:03 make-all

Support for H05 is in 0.16.0

make-all avatar Apr 03 '22 08:04 make-all

Tried this out and it connects and turns on and off, but I think it's not 100% right:

Temperature displays at 108°C Timer offers 1/2/4/8 hours on the device, but only 4 and 8 in the config.

Thanks for adding it!

gschmidl avatar Apr 03 '22 10:04 gschmidl

The timer values were copied straight from H06, which does apparently only support 4 and 8 hours. As for the temperature, it is strange, as there are no transformations applied to it, and the value you first posted was 21, which looks like a reasonable temperature. Unless the original was when it was 4 degrees and there is actually a 5x multiplier on that...

make-all avatar Apr 03 '22 19:04 make-all

No, it was approximately the same temperature then. But it's also not changed by even 0.1° since I commented:

image

gschmidl avatar Apr 03 '22 19:04 gschmidl

Are you sure the entity is correctly configured in the UI? As there is no transformation on the temperature value, I cannot see how this could go wrong like this.

make-all avatar Jul 12 '22 09:07 make-all

Closing due to no feedback

make-all avatar Nov 27 '22 06:11 make-all