ZS06 can't learn codes from Ir remote(s)

Hi there,

I wanted to try to integrate an IR remote in HA, so I bought this TuYa ZS06 device witch is supposed to be supported by Z2M.

Now, trying to learn Ir codes with Z2M (using the HA graphic interface), I get different codes at each try, tried with multiple remotes from multiples manufacturer, same strange result.

Do I miss something ? Is my ZS06 broken ? What’s up doc ?

Thanks for your help

Diego

Here are some samples :

Optoma HD131Xe

On

BYIjrhFDAkABA4cGQwLAAUALQAPAAcALQAdAA8ABQAtAA0ABwAfgCwHAG0AH4AsDCfadgiPWCEMC///gAgcCCEMC

BXUjrRFAAkABA4kGQALAAUALQAPAAcALQAdAA8ABQAtAA0ABwAfgCwGAGwGyAkAH4AsDD/2ddSPaCEAC//91I9oIQAI=

BWEj6RE1AkABA6kGNQLAAUALQAPAAcALQAdAA8ABQAtAA0ABwAfgCwHAG0AH4AsDDxaeYSMJCTUC//9hIwkJNQI=

BVgj1BEeAkABBckGHgJgAoADQAtAA0ABQBPAC0AHQANAE0ABQAtAA0ABQAdAF+AHA0ABwBtAB+ALAwc8nlgjDQkeAg==

BWMjyhEtAkABBrYGLQJgAi1gAUALQAPAAUALQBtAB0ADwAFAC0ADwBvgBwFAF0AB4AMjQAvgBwMHPp5jIwsJLQI=

BUQj3BExAkABBLkGMQJoIAEDMQKFAUALQAPAAcALQAdAA8ABQAtAA0ABwAfgCwFAG0BZQAfgCwMHP55EIw8JMQI=

BXYjrxFDAkABA4YGQwKAAQFlAkALQAPAAcALQAdAA8ABQAtAA0ABwAfgCwHAG0AH4AsDBxmediPPCEMC

BZEjsBFAAkABA40GQALAAQKNBoAgAwFAAsABwAtAB0ADwAFAC0ADQAHAB+ALAcAbQAfgCwMPDp6RI8sIQAL//5EjywhAAg==

DU0j7REZAmMCGQLLBhkCQAdAAUALQANAAUATQAvAB0ALQAHgBw9AF0AT4AsDwBtAB+ALAw9Gnk0jAwkZAv//TSMDCRkC

BXAjrhFCAkABA4sGQgLAAUALQAPAAcALQAdAA8ABQAtAA0ABwAfgCwHA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AHQANAF0ADQAvgCwNAG+ATA4AzABigBwlPAmSehSO3CE8C

BZQjsRFAAkABA48GQALAAUALQAPAAcALQAdAA8ABQAvgCwPgFwHgBzMHQJ6UI8wIQAI=

BY4jrRFCAkABA4sGQgLAAUALQAPAAcALQAdAA8ABQAvgCwPgFwHgBzMHT56OI8EIQgI=

Samsung

On/Off

B6oRqhE8ApkG4AED4AsB4BcfQAFAI+APAcAbQAfgCAMCBjwC

B60RrRFCAoYG4AED4AsB4BcfQAFAI+APAcAbQAfgCAMCBkIC

B6oRqhE+ApMG4AED4AsB4BcfQAFAI+APAcAbQAfgCAMCBj4C

Vol up

B6URpRFAAo0G4AED4AsB4Dcf4AMB4ANLwAsHwrSlEaURQALAD0AH4AsBQBfAA+ALAcAbQAfgFwFAI+AEAwIGQAI=

B6MRoxE/Ao4G4AED4AsB4Dcf4AMB4ANLwAsH1LSjEaMRPwLAD0AH4AsBQBfAA+ALAcAbQAfgFwFAI+AEAwIGPwI=

Onkyo

On/Off

BUcjrhE8AkABA4YGPALAAcALQAdAA8ABQAtAA0ABQAdAA0ABQAdAA0ABwAdAAUALQAPAAcALQAdAA8ABB7ucRyPPCDwC

BUUjqRE8AkABA4cGPALAAcALQAdAA8ABQAtAA0ABQAdAA0ABQAdAA0ABwAdAAUALQAPAAcALQAdAA8ABB8CcRSPPCDwC

Enter

BTAjqhE9AkABA4YGPQLAAcALQAfAA0AB4BcLQB9AAcAHQAHgAwtAAcAPQAdAAws9Aj0CYpgwI+oIPQI=

BVQjjxE6AkABA48GOgLAAcALQAfAA0AB4BcLQB9AAcAHQAHgAwtAAcAPQAdAAws6AjoCQJhUI+AIOgI=

The numbers are never exact on any IR remote. Best practice is to send the same code 20 times and use to store a code that is the best average code out of the bunch, throwing out wildly wrong ones.

My question to you is are you just freaking out that they are not exact, or did you actually try some of these with minor bit errors?

That will generate a lot of tries to get most codes from most remotes … but let’s go !

Yes I tried some of these, but only once or twice, and most of them didn’t work, and the ones witch did where not systematical successful

How to do that? and there is a way to do it in ZHA integration?

You trigger it like a dozen times, ignore the 2 or 3 that are farthest out, and pick the one that looks like it was hit the most/best average/whatever. It tends to work.