Solved: LG air conditioning codes

the output for the IR library
8250h 4300l = header
next
450h 1700l = 1
450h 700l = 0

first byte after header: 1 0 0 0 1 0 0 0 (i will not repeat this below)
power on: 0 0 0 0 0 1 0 0 1 1 1 1 0 1 0 0 + CRC 0 1 1 1 ( = 1 0 0 0 + 1 0 0 0 + 0 0 0 0 + 0 1 0 0 + 1 1 1 1 + 0 1 0 0; I will not repeat CRC below)
(this power on includes mode, temp and fan speed)
power off:1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 ( dont't see here any info about mode, temp and fan speed)
change temp/fan / mode:
0 0 0 0 1 1 0 0 1 1 1 0 0 1 0 0 = heating 29 C Fan4
1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
1-5 always the same except for timer set, or jet mode (or other SF I was not interested)
6-8 heating 4, auto 3, dehumidification 1, cooling 0
9-12 = temp -15
13 = 0
14-16 = fan1 1, fan2 0 (strange), fan3 2, fan4 4

Make sure you add the header, the first byte and the CRC.
The code was tested with 38kHz modulation and it worked