-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HEIMAN IR control HS2IRC #7814
Comments
From that I m reading this device is standard, no Tuya magic inside. |
Yes, that's what I was thinking here: https://forum.phoscon.de/t/zigbee-ir-infrared-controller/4930/3 |
Can make a try for a basic support. |
Yes i got it i ve made the screen shot ^^ |
Ok so can make a try. Can add the code
It's totally experimental, I don't know how to receive the device list, so you can make the request but to see the return you will need to enable the log (Flag ZCL is I remember).
I can add at least a small edit box to see device return in the GUI |
Ok i understand how to add the code but after I don t know what I hate to do. |
Just restart deconz for it take the change. |
You have error message printed on GUI when making tries ? Have improved a little the xml
You will be able to see "Learn key response", and perhaps the "Get list response", but I m not sure for the last value. |
Lol, bad luck, there is realy nothing for your device (except when using "learn")
You mean "Get list" ? Because you have send the command 0xf6 ? Log are too much talkative for me, you know how work the device ? It seem you can just select a model without learning the first remote ? Or you can turn in "learn mode", use a remote to memorise code, and the device react with special blink ? Edit: Edit2: |
Have found a comment on Z2M
So have added the create model ID request
Model id is a value from 1 to 255. |
Strange thee is no more log usefull ?
Nice was the good color, just miss a fixe 1s yellow after, you have tried to use a remote close to it for it learn the code ? But you haven't a part on bottom of the Cluster panel ? I don't see "Learn key response" "Create model response" and ect ... This part is never filled when you make request ? Perhaps I miss the manufacture number, I have see I need to NOT use it to send request, but for return ... For exemple when you have used the "get list" on your log we can see you have send the 0xf6 request, perfect but the device need to answer with a command 0xf7 |
Yes I try to learn a remote but nothing happen. |
Ha ? right, same on my side, but I don't see what I m doing wrong, I m asking to other devs. |
Ok so I have another xml to test ^^
For this one for sure, you will be able to see all te xml, but not sure it will work, not logic for me |
Ha nice, this time there is something usable.
So first can try to decode the payload, on your situation it need to be 17 byte length, can try to get it as string, can you replace
by
When you press the "exec" button you haven't a fast return message (displayed just 1s). Now about the device, you have succesfuly memorised at least 1 code, IDK what you have done but It have worked, the problem is without the "Get list" request, you are forced to remember yourself the ID and the keycode. Now the hard part, have made some tries on my side, and the better flags to use to have all raw zigbee data is using APS + APS_L2. Problem you will have so talkative logs.
APS-DATA.indication mean it's from the device, else it's APS-DATA.request But this is only usefull if the request "Get list" don't work with last change using the GUI. For exemple if length = 17, you need to have as payload something like 0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX |
Model type is a value from 1 to 255, IDK if there is a "rules" somewhere for value. Pehaps used by the native application ?
Yeah, and experimental ^^
If I m right with this code, you will be to send a code using curl
To resume need to send a string composed by "id,code", the JS code will transform it to 00XX00YY with hexa value (visible on asdu on logs). If you have problem with APS log, I think the magic will be visible too on log "DDF" If I remember you are on Jeedom ? so you can mimic a config/preset request if you already have a thermostat. I have used this one because it'a string too by defaut. |
I try to validate the json on jsonlit and see that :
line 70 :
Normal ? I was on jeedom but now in home assistant. |
Ha yes right need to escape the quote or can use
|
"eval": "'20'+ ('0'+parseInt(Item.val.split(',')[0]).toString(16)).slice(-2) + '20' + ('0'+parseInt(Item.val.split(',')[1]).toString(16)).slice(-2);" or "eval": "'00'+ ('0'+parseInt(Item.val.split(',')[0]).toString(16)).slice(-2) + '20' + ('0'+parseInt(Item.val.split(',')[1]).toString(16)).slice(-2);" |
I was using "20" because its the logic for me, but according to some logs need to use "00" |
The ddf seems to be apply to the remote : See that in HA. Can we delete the battery (in ha and deconz GUI) ? : What I have to do after ? send a put command in http://xxxxx/api/apikey/sensor/669/config ? Try this but doesn't work (try a point and a coma between (10 and 2) : |
But this device don't have battery ? it have good attributes used. Else I can remove them in the DDF.
It's a comma ",", and at least your procedure is fine, and deconz seem receive it. |
The device is plugged into a usb cable. I try the ;. It doesn't work. The sensor doesn't react (non red blink led) to : |
Arf :( even with using "cstring" instead of "ostring" ? The first byte is 0x01 and the second one 0x63, so for me decnz have take the first one as size, so it display only the second one alone (1 byte lenght) |
"c" is the ascii number for 0x63 .... |
You are using |
Yes I just copy past the line with showas="hex |
Ha, I have an idea, as deconz use the first byte as lenght, we can try to catch the payload 1 byte before, like that it will use the good lenght
by
So it take the payload 1 byte before, and start by the lengh. |
Perfect thx, have updated the PR and start to make a python code to decrypt the payload
result
It's probably possible to make this code in JS to use it in DDF, but not sure lot of people will use it. |
You need something from me ? |
Yes, do you have the Jennifer Aniston phone number ? |
No it s ok for me too. Jennifer Aniston... Seriously ? 😋 |
Lol, why not, she is single ATM no ? (and no, I m not spy her life ...) I have no return for the PR yet, so idk when (or if) it will be merged, but if you want improvements, just ask, I will see what I can do. |
Any news about the pr ? |
Nope, it's complete and not so hacky but not return yet. |
Ok hope for the next maj. Thanks |
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs. |
Hello , wait for an addition in stable version. Please dont close it. |
Perhaps the DDF have not worked because you miss "config_sendkey_item.json" , "config_learnkey_item.json" and the change in "constants.json)" ? ATM you have the defaut device a ZHAswitch instead of the ZHAControl. |
Ah ok understand, the new ddf need more change. I ll rool back to the old methode 🤣 |
As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs. |
As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again. |
Is there already an existing issue for this?
Product name
HEIMAN IR control HS2IRC
Manufacturer
HEIMAN
Model identifier
HS2IRC
Device type to add
Remote
Node info
Endpoints and clusters
Basic
Further relevant clusters
Power Configuration
Any other cluster of relevance/interest
Identify
Diagnostics
The text was updated successfully, but these errors were encountered: