After update to 0.115.2 the Broadlink learn_command is not working anymore.
HA is not waiting for the IR to learn.
It also is not creating the Broadlink file at .storage
The use of the switch method is still working
It did work at 0.115
I do use NodeRED to handle this like:
[{"id":"c01438b8.345a08","type":"api-call-service","z":"ecdb8f1f.6c03b","name":"RM mini leer functie tv aan/uit","server":"783e002.7fe69","version":1,"debugenabled":false,"service_domain":"remote","service":"learn_command","entityId":"remote.rm_mini_remote","data":"{\"device\":\"TV\",\"command\":\"turn on off\",\"alternative\":\"true\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":370,"y":580,"wires":[["38a0ba2e.a27aa6"]]},{"id":"35bbe1f.0c3b51e","type":"inject","z":"ecdb8f1f.6c03b","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":580,"wires":[["c01438b8.345a08"]]},{"id":"94f85482.aec3d8","type":"comment","z":"ecdb8f1f.6c03b","name":"Leerfuncties voor de RM mini 3","info":"The learned codes are stored in the /configuration/.storage folder in a file called broadlink_remote_xxxxxxxxxxx_codes.json. You can open this file with a text editor and copy the codes to set up a custom switch, but beware: the files in the .storage folder should never be edited manually.","x":200,"y":540,"wires":[]},{"id":"38a0ba2e.a27aa6","type":"debug","z":"ecdb8f1f.6c03b","name":"Learn ir","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":620,"y":580,"wires":[]},{"id":"814a3dad.c0c03","type":"api-call-service","z":"ecdb8f1f.6c03b","name":"RM mini send tv aan/uit","server":"783e002.7fe69","version":1,"debugenabled":false,"service_domain":"remote","service":"send_command","entityId":"remote.rm_mini_remote","data":"{\"device\":\"TV\",\"command\":\"turn on off\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":350,"y":880,"wires":[[]]},{"id":"96cc3cda.e7f8b","type":"inject","z":"ecdb8f1f.6c03b","name":"","repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":140,"y":880,"wires":[["814a3dad.c0c03"]]},{"id":"5f5fab60.578724","type":"comment","z":"ecdb8f1f.6c03b","name":"uitvoer functies voor de RM mini 3","info":"The learned codes are stored in the /configuration/.storage folder in a file called broadlink_remote_xxxxxxxxxxx_codes.json. You can open this file with a text editor and copy the codes to set up a custom switch, but beware: the files in the .storage folder should never be edited manually.\n\n\nDe flows hierboven zijn de leer commandos","x":200,"y":840,"wires":[]},{"id":"783e002.7fe69","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
EDIT: I also tried the methode using: remote.learn_command at the developperstool at services.
This also not picking up the IR code and also not creating the broadlink file at .storage
EDIT2: I did find out that the device was switched off (I don’t know how that happened).
After switching on everything worked fine again