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.57k stars 786 forks source link

Continuously send IR message #197

Closed konektor001 closed 6 years ago

konektor001 commented 6 years ago

Is it possible to repeat X times an IR message other than Sony protocol? It would be useful for example sending continuous "volume_up" to an amplifier. Thanks.

1technophile commented 6 years ago

yes just follow the wiki: https://github.com/1technophile/OpenMQTTGateway/wiki/User-guide-IR#send-data-by-mqtt-with-advanced-ir-parameters

and use RPT_ key in your topic

konektor001 commented 6 years ago

Thank you for your answer, but the wiki says Sony protocol only:

IR sending support two advanced parameters; bits length and repeat number (sony only)

I've tried sending NEC protocol with "home/commands/IR_NEC/RPT_4" , but it only sends once (at least my amplifier receives it once). Did I missed something?

1technophile commented 6 years ago

Indeed, i corrected it. It should work with sendNEC, try maybe a bigger repeat , 10 or 20

konektor001 commented 6 years ago

Sorry, but for me, the repeat command does not work. If I send quickly the single messages it works (not so effective for MQTT), but it would be better with the repeat command.

1technophile commented 6 years ago

do you see IR repeat: on the serial monitor?

1technophile commented 6 years ago

I'm going to close the issue, you can reopen it if needed