I have installed an infrared emitter with the following tutorial:
But I had trouble running the LIRC commands, so with the help of the pigpio library and this script in Python:
IR Record and Playback http://abyz.me.uk/rpi/pigpio/examples.html#Python_irrp_py
I had managed to set up my air conditioning.
After backing up and reinstalling the operating system (Raspbian Buster on RP3+B) I was not able to get my air conditioning to work.
I don't know if the problem is something electrical or something at the software level. I have controlled with a camera that the emitter emits when it executed the commands. I have in turn controlled the status of the pidgpio service and it returns this to me:
sudo systemctl status pigpiod Warning: The unit file, source configuration file or drop-ins of pigpiod.service changed on disk. Run 'systemctl daemon-reload' to reload units ● pigpiod.service - Daemon required to control GPIO pins via pigpio Loaded: loaded (/lib/systemd/system/pigpiod.service; enabled; vendor preset: enabled) Drop-In: /etc/systemd/system/pigpiod.service.d └─public.conf Active: active (running) since Tue 2020-02-04 09:22:20 -03; 4h 5min ago Process: 418 ExecStart=/usr/bin/pigpiod (code=exited, status=0/SUCCESS) Main PID: 452 (pigpiod) Tasks: 4 (limit: 2200) Memory: 880.0K CGroup: /system.slice/pigpiod.service └─452 /usr/bin/pigpiod feb 04 09:22:18 raspberrypi systemd: Starting Daemon required to control GPIO pins via pigpio... feb 04 09:22:20 raspberrypi systemd: Started Daemon required to control GPIO pins via pigpio.