1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.51k stars 776 forks source link

HN3031 RF Switch #69

Closed donnib closed 6 years ago

donnib commented 7 years ago

Hi, I have one of these switches and id like to buy more if i can get them to work with this. Unfortunately i don't have an remote for it so i can't replicate the signal to learn it. Is there another way to do this ? I read that in the first 30sec of it turned on it's in learning mode so i should be able to send a code to it that it learns but i need to know the protocol and what to send, any ideas ?

The product : Sartano HN3031

1technophile commented 7 years ago

Hi,

I don't think it will work with RCswitch (the library used by the gateway), and even if it work it can be tricky to find the code. My advise is to go to devices compatible: https://community.home-assistant.io/t/433tomqttto433-gateway-device-list/7819

donnib commented 7 years ago

So i did find a remote which i programmed to control it. I tried to look at home/433toMQTTAdvanced but nothing comes in. I can see codes come in on home/433toMQTT but kinda weird same button will some times give two different codes. I see that home/433toMQTT/protocol gives 2 and bits 32 and length 714 or 716 and i tried so send the codes i got but the switch does not react. Any ideas what could be wrong ?

1technophile commented 7 years ago

Did you try by specifying protocol number, bits length and pulselength or only the RF code?

donnib commented 7 years ago

I tried specifying all of them using the home/commands/PLSL_714/433_2/RFBITS_32

1technophile commented 7 years ago

I advise to go at rcswitch library level in your case by trying the examples given with the library and if it doesn't work submit an issue on their github

donnib commented 7 years ago

@1technophile i can see you are using these https://www.leroymerlin.fr/v3/p/produits/lot-de-4-prises-telecommandables-interieure-idk-e1400980485 which looks exactly like mine. Can you reveal what you send to those ? like length, protocol and bits and eventually the code (if you don't want to reveal that then maybe just an example in the same number length) so i can try it out and see if it works on mine.

1technophile commented 7 years ago

@donnib hello, there is some dip switched to program on these plugs, could you send me a picture of one of them, I can deduct after the corresponding code

DenDeze commented 7 years ago

I had the same, sometimes returning 2 codes. After sending the codes i could filter out the wrong one. Did you tried sending the codes?

1technophile commented 7 years ago

I mean if you send me a picture of your dip switch position on the plug I can deduct directly your codes by positionning mine with the same position. I advise to use the tchat room for this kind of issue, it would be more appropriate

donnib commented 7 years ago

@DenDeze i believe i did, i'll have to try again to see if i did something wrong.

DenDeze commented 7 years ago

Can you tell if you used the correct mqtt topic?

When you subscribe to # you subscribe to all the topics on the server. Easy for debugging.

Verstuurd vanaf mijn iPhone

Op 17 jul. 2017 om 14:35 heeft donnib notifications@github.com<mailto:notifications@github.com> het volgende geschreven:

@DenDezehttps://github.com/dendeze i believe i did, i'll have to try again to see if i did something wrong.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/1technophile/OpenMQTTGateway/issues/69#issuecomment-315743020, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZUVcT7vryB2AqB5MpKbVo2_-Ow09WFaks5sO1T3gaJpZM4OKcyY. ENGIE Mail Disclaimer: http://www.engie.com/disclaimer/disclaimer-nl.html

1technophile commented 7 years ago

@donnib maybe you can close this issue as you succeeding in controling the switch with openmqttgateway

donnib commented 6 years ago

Yes done.