Broadlink b64 command script

Hi All,

I had a AC script that used me to have a remote as same the original one.
After upgrade to new version I’m not able to convert to b64 variable:

'living_room_ac_check_state_script:
sequence:
- service_template: >
{% if (selected_mode.lower() == “cool”) %}
{% if (selected_fan.lower() == “low”) %} script.living_room_ac_cool_low_script
{% elif (selected_fan.lower() == “med”) %} script.living_room_ac_cool_medium_script
{% elif (selected_fan.lower() == “high”) %} script.living_room_ac_cool_high_script
{% elif (selected_fan.lower() == “auto”) %} script.living_room_ac_cool_auto_script
{% endif %}
{%-elif (selected_mode.lower() == “heat”) %}
{% if (selected_fan.lower() == “low”) %} script.living_room_ac_heat_low_script
{% elif (selected_fan.lower() == “med”) %} script.living_room_ac_heat_med_script
{% elif (selected_fan.lower() == “high”) %} script.living_room_ac_heat_high_script
{% elif (selected_fan.lower() == “auto”) %} script.living_room_ac_heat_auto_script
{% endif %}
{% endif %}
data_template:
selected_temp: “{{ selected_temp }}”

living_room_ac_cool_low_script:
sequence:
- service: script.living_room_rm_pro_send_packet
data_template:
packet_code: >
{% if (selected_temp == “16”) %} “b64:JgCSAAABJ5MXNRcRFRIXNRY1FxEWEhUSFhIVEhcRFRIXERYRFhIVExYRFxEVEhcRFhEXNRY2FRIWEhYRFxEWERY2FhIVNhcRFhEWNhUTFgACjhcRFRIWEhUSFhIWEhUSFhIWERYSFhEWEhUSFxEWEhUSFxEVEhYSFRIXERYRFhIVExUSFhIVEhYSFTYXNRYSFhEWAA0FAAAAAAAA”
{% elif (selected_temp == “17”) %} “b64:JgCSAAABJ5MWNRYSFhIVNhY2FhIVEhYSFjUWEhYRFxEVExYRFhIVEhcRFRIWEhUTFRIWNhY1FhIVExUSFhIVEhY2FhEWNhcRFRIXNRYRFwACjhYSFRIXERUSFhIVEhYSFRMVEhYSFRIXERYRFhIVEhYSFRMWERYSFhEWEhUSFhIVEhYSFRMVEhYSFRIWEhU2FhIVAA0FAAAAAAAA”
{% elif (selected_temp == “18”) %} “b64:JgCSAAABKJMVNhYSFRIXNRY2FRIWEhUSFhIVNxUSFhIWERcRFRIWEhUSFhIWEhUSFhIVNhY2FRMVEhcRFRIXERU2FxEWNhUSFxEVNhYSFQACkBYRFxEWERYSFRIXERUTFRIWEhUSFhIVEhYSFhEXERYSFhEWEhUSFhIVEhYSFRIWEhYRFhIWEhYRFjYVEhc1FRMVAA0FAAAAAAAA”
{% elif (selected_temp == “19”) %} “b64:JgCSAAABKJIWNRYSFRIXNRY2FhEWEhUSFjYWNhUSFxEVEhYSFhEXERYSFRIWEhUSFxEVNhY2FhIWERcRFRIWEhU3FRIWNhUSFhIWNRYSFgACjxUSFhIVEhYSFhEWEhYSFhEWEhYRFxEVEhYSFRIWEhUSFhIWEhUSFhIVEhYSFRIWEhUSFhIWEhUSFxEVNhY2FhIVAA0FAAAAAAAA”
{% elif (selected_temp == “20”) %} “b64:JgCSAAABJ5MWNhYRFhIWNRY2FhIVEhcRFRIWEhY2FRIWEhYRFxEVEhcRFhIWERYSFhEWNhU3FRIXERUSFhIWERc1FhIVNhcRFRIWNhYSFQACjxcRFhEWEhYSFhEXERUSFhIVEhYSFhIVEhYSFRIXERUSFxEWERYSFhIVEhYSFRIXERUSFhIVEhYSFjYVNhY2FxEVAA0FAAAAAAAA”
{% elif (selected_temp == “21”) %} “b64:JgCSAAABKJMXNRcRFhEXNRY2FhEWEhUSFjYWERY2FxEWERYSFRIWEhUTFRIXERUSFhIWNRY2FhIVEhcRFhEWEhY2FRIXNRYRFxEWNhUSFwACjhYSFhEWEhYRFxEWERcRFhEXERUTFhEWEhYRFhIWERcRFhEXERYRFxEVExYRFhIWERYSFhEWEhUTFRIWEhYRFjYVAA0FAAAAAAAA”
{% elif (selected_temp == “22”) %} “b64:JgCSAAABKZIXNRYSFRIXNRY1FhIWEhYRFxEWNRY2FhIWERYSFRIWEhYRFhIWEhUSFhIVNhY2FhIVEhcRFRIXERU3FRIWNhUSFxEVNxUSFwACjhYRFhIVExUSFhIVEhYSFRIWEhYRFxEVEhYSFhIVEhYSFhEWEhUSFxEVExYRFhIVEhYSFRIXERYRFzUWEhUSFjYWAA0FAAAAAAAA”
{% elif (selected_temp == “23”) %} “b64:JgCSAAABJ5MWNRcRFhIWNRc1FRMVEhYSFjUXNRU3FhEWEhYRFhIVEhYSFRIXERUSFhIVNxU2FhIWERYSFRMVEhY2FRIWNhYRFhIWNhUSFwACjhYSFhEWEhUSFhIWERYSFRIXERYSFRIWEhUSFxEWERcRFRIWEhUSFhIWEhYRFhIWERYSFRIWEhUSFhIVNxUSFzUVAA0FAAAAAAAA”
{% elif (selected_temp == “24”) %} “b64:JgCSAAABKJMVNxYRFxEVNhc1FRMVEhYSFRIWEhYRFjYWERcRFhIWERYSFRIXERYRFhIWNRc1FhIVEhcRFRIXERY2FRIWNhUSFxEWNhUSFgACjxYRFhIWEhUSFhIWERYSFhEWEhUSFhIWERcRFhIWERYSFhEWEhUSFhIWERYSFRMVEhYSFhEWEhYRFzUWNhYRFzUVAA0FAAAAAAAA”
{% elif (selected_temp == “25”) %} “b64:JgCSAAABKJIXNRUSFhIWNhU2FhIVEhcRFjYVEhcRFjUXERYSFRIWEhUSFhIWERYSFRIWNhY2FhEWEhYRFhIWEhU2FhIVNhYSFhIVNhcRFgACjhcRFhIVEhYSFRIWEhUSFhIWEhUSFhIVEhYSFhEWEhUSFhIWEhUSFhIVEhYSFRIWEhUSFhIVExUSFhIVEhY2FTYWAA0FAAAAAAAA”
{% elif (selected_temp == “26”) %} “b64:JgCSAAABJ5MXNRYSFRIXNRY2FhEWEhUSFhIVNhYSFjYVEhYSFRIWEhUSFhIWEhUSFxEVNhY2FhIWERYSFRIWEhU2FxEWNhUSFhIVNhYSFgACjxYRFhIVExUSFhIVEhcRFRIWEhUSFhIVExUSFhIWERYSFRIXERUSFxEWEhYRFhIVEhcRFRIWEhYRFzUXERY1FzUWAA0FAAAAAAAA”
{% elif (selected_temp == “27”) %} “b64:JgCSAAABJ5IXNRYSFRIXNRY2FhEXERUSFjYWNhUSFzUWERYSFhIWERYTFhEWEhUSFhIWNRc1FxEVEhcRFRIWEhU3FRIWNhUSFhIWNhUSFwACjhYRFhIWERcRFhIVEhcRFRIWEhYSFRIWEhYRFhIVEhYSFhEXERUSFhIWEhUSFxEVEhYSFRIWEhYSFhEXNRY1FzUWAA0FAAAAAAAA”
{% elif (selected_temp == “28”) %} “b64:JgCSAAABJ5QWNRYSFRIWNhU3FRIWEhUSFxEVEhY2FjYVEhYSFRIWEhYSFRIWEhUSFhIVNxU2FhIVEhYSFRIWEhU3FRIWNhUSFhIVNxUSFgACjxUTFRIWEhUSFhIVEhYSFRIWEhUTFRIWEhUSFhIVEhYSFhEWEhUTFhEWEhUSFhIVEhYSFRMVEhUTFTYWNhU3FTYWAA0FAAAAAAAA”
{% elif (selected_temp == “29”) %} “b64:JgCSAAABJpMXNRYSFRIWNhY2FhEWEhYRFzUVEhY2FjYVEhcRFRIWEhYSFhEWEhYRFxEWNRY2FhIVEhcRFhEXERY2FhEXNRYRFxEWNRYSFgACjxYRFxEWERYSFRMVEhYSFRIWEhYRFxEVEhYSFRIWEhYSFRIWEhYRFxEWERYSFRIWEhYSFRIWEhYRFhIVEhYSFRIWAA0FAAAAAAAA”
{% elif (selected_temp == “30”) %} “b64:JgCSAAABJ5MWNhYSFRIXNRU3FRIWEhUSFhIVNhY2FjYVEhYSFhIWERYSFRIWEhUSFhIVNhY2FhIVEhYSFhEXERY2FRIWNhUSFhIWNhYRFgACjxUTFRIWEhYRFhIVEhYSFRIWEhUTFRIWEhUSFhIVEhcRFRIXERUTFhEWEhUSFhIVEhcRFRIWEhYSFTYWEhUSFhIWAA0FAAAAAAAA”
{% endif %}

living_room_ac_cool_medium_script:
sequence:
- service: script.living_room_rm_pro_send_packet
data_template:
packet_code: >
{% if (selected_temp == “16”) %} “b64:JgCSAAABKZEYNBcQGBAXNBgQFzUXEBgQFxAYEBcRFxAWExQSGBAXEBgQFxAYEBcRFxAXNRc0FhIXEBgQFxEXEBc1FxAYNBcRFxAXNRcQGAACjRgQFxAXERcQGBAXEBgQFxAYEBcRFxAWEhcQGBAXEBgQFxAYEBcRFRIXERcQGBAXEBgQFxAYEBcQGDQYNBcQGBAXAA0FAAAAAAAA”
{% elif (selected_temp == “17”) %} “b64:JgCSAAABKJMXNRUSFhIXNBYSFjYXEBYSFTcVEhYSFRIWEhcQFhIVEhYSFRMVEhYSFRIWNhU3FRIWEhUSFhIVEhY2FRMXNBYSFRIWNhYSFQACjxgQFRMVEhYSFRIXERUSFhIVEhYSFRMVEhYSFRIWEhUSFhIVEhYSFRIWEhYSFRIWEhUSFhIVEhYSFRMVEhY2FRIWAA0FAAAAAAAA”
{% elif (selected_temp == “18”) %} “b64:JgCSAAABJ5MWNRYSFRIXNRYSFjUXERYRFxEVNxUSFhIVEhYSFRIWEhUSFxEWEhUSFhIVNhc1FhIWERYSFRIXERY1FhIVNxUSFxEWNRYSFgACjxYRFhIVEhYSFhEXERYSFhEWEhUSFhIVEhcRFRIXERUTFRIWEhUSFhIVEhYSFRIWEhUTFhEWEhUSFjYWERY2FhIWAA0FAAAAAAAA”
{% elif (selected_temp == “19”) %} “b64:JgCSAAABJ5MVNxUSFhIVNhYSFTcVEhYSFTYWNhYSFRIWEhUSFhIVEhYSFRMVEhYSFRIWNhU3FRIWEhUSFhIVEhY2FhIVNhYSFRIWNhYSFQACjxYSFRMVEhYSFRIWEhUSFhIVEhYSFjYVEhYSFRIWEhUSFhIWEhUSFhIVEhYSFRIWEhUSFhIVExUSFhIVNhY2FRMVAA0FAAAAAAAA”
{% elif (selected_temp == “20”) %} “b64:JgCSAAABJ5MVNhYSFRMVNhYSFTYWEhUTFRIWEhU2FhIVEhYSFRMVEhYSFRIWEhUSFhIVNxU2FhIVEhYSFhIVEhY2FRIWNhUTFRIWNhUSFgACjxYSFRIWEhUSFhIVEhYSFRIWEhYSFTYWEhUSFhIVExUSFhIVEhYSFRIWEhUSFhIVExUSFhIVEhYSFTYWNhY2FRIWAA0FAAAAAAAA”
{% elif (selected_temp == “21”) %} “b64:JgCSAAABJ5MVNhYSFRIWNhcRFTYWEhUSFjYWEhU2GBAXEBYSFRIWEhUTFRIWEhUSFhIVNhY2FhIVEhYSFhEWEhU2FhIWNhUSFhIVNxUSFgACjxUSFhIVEhYSFRIWEhYSFRIWEhUSFjYVExUSFRMVEhYSFRIWEhUSFhIVExUSFhIVEhYSFRIWEhUSFhIVEhYSFjYVAA0FAAAAAAAA”
{% elif (selected_temp == “22”) %} “b64:JgCUAAABJpMWNhYSFRIWNhUSFjYWEhUSFhIVNxU2FhIVEhYSFRIWEhYSFRIWEhUSFhIVNhY2FhIVEhYSFRIWEhU2FhIWNhUSFhIVNhYSFpILAAHyFRIWEhUSFhIVEhYSFhIVEhYSFRIWNhUSFhIVExUSFhIVEhYSFRIWEhUSFhIVExUSFhIVEhYSFRIWNhUSFhIVNxUADQUAAAAA”
{% elif (selected_temp == “23”) %} “b64:JgCSAAABJ5MWNhUSFhIVNhYSFjYVEhYSFTcXNBc1FRIWEhUTFRIWEhUSFhIVEhYSFRIWNhY2FRIWEhUSFhIWEhU2FhIVNxUSFhIVNhYSFwACjRgQFhIVEhYSFRIWEhUTFRIWEhUSFjYVEhYSFRIWEhYSFRIWEhUSFhIVEhYSFRMVEhYSFRIWEhUSFhIXNRUSFjYVAA0FAAAAAAAA”
{% elif (selected_temp == “24”) %} “b64:JgDAAAABKJMVNxUSFhIVNhYSFTcVEhYSFRIWEhUSFjYWEhUSFhIVEhYSFRIWEhUTFRIWNhU2FhIXEBYSFhIXEBY2FRIWNhYSFRIWNhUSFgACjxYSFRIWEhUSFhIVExcQFxEVEhYSFTYWEhUSFhIWEhUSFhIVEhYSFRIWEhUSFhIWEhUSFhIVEhYSFTYWNhYSFTYWAAPbCwALCgkACpLFYBgSFRMVNhY2FTcVEhYSFxAWNhUTFTYWEhYRFjYVEhY2FgANBQAAAAAAAAAA”
{% elif (selected_temp == “25”) %} “b64:JgCSAAABKJMWNhUSFhIVNhYSFjYVEhYSFTcVEhYSFTYWEhUSFhIVExUSFRMVEhYSFRIWNhU3FRIWEhUSFhIVEhY2FRIWNhYSFRIWNhUSFgACjxYSFRIWEhUSFhIVEhYSFRIWEhYSFTYWEhcQFhIVExUSFhIVEhYSFRIWEhUSGBAVEhYSFRIWEhYSFRIWEhU2FjYWAA0FAAAAAAAA”
{% elif (selected_temp == “26”) %} “b64:JgCSAAABJ5MXNRYSFRIWNhUSFjYWEhUSFhIVNhYSFTcVEhYSFRIWEhUSFhIVEhYSFhIVNhY2FRIWEhYSFRIWEhU2FhIVNxUSFhIVNhcRFQACjxYSFhIVEhYSFRIWEhUSFhIVEhYSFjYVEhYSFRIWEhUSFhIWEhUSFxEVEhYSFRIWEhUSFhIVExUSFjYVEhY2FTcVAA0FAAAAAAAA”
{% elif (selected_temp == “27”) %} “b64:JgCSAAABKJMWNhUSFhIWNhUSFjYVExUSFjYVNhYSFTcVEhYSFRIWEhUTFRIVExUSFhIVNhY2FhIVEhYSFRIWEhc0FhIWNhUSFhIVNxUSFgACjxUSFhIVExUSFhIVEhYSFRIWEhUSFjYWEhUSFhIVEhYSFRIWEhUTFRIWEhUSFhIVEhYSFRIWEhUTFRIWNhU2FjYWAA0FAAAAAAAA”
{% elif (selected_temp == “28”) %} “b64:JgCSAAABKJMVNhYSFRIWNhYSFTYWEhUSFhIVEhY2FjYVEhYSFRIWEhUTFRIWEhUSFhIVNhY2FhIVEhYSFRIWEhU2FhIWNhUSFhIVNhYSFgACjxUSFhIVEhYSFRIWEhYSFhEWEhUSFjYVEhYSFRMVEhYSFRIWEhUSFhIVEhYSFRMWERYSFRIWEhUSFjYVNxU2FjYVAA0FAAAAAAAA”
{% elif (selected_temp == “29”) %} “b64:JgCWAAABKJIWNhYSFRIWNhYSFTYWEhUSFjYWEhU2FjYVExUSFhIVEhYSFRIWEhUSFhIVNxU2FhIVEhYSFRMVEhc1FRIWNhUTFRIWNhUSFgACjxYSFRIWEhUSFhIVEhYSFhIVEhYSFTYWEhUSFhIWEhUSFhIVEhYSFxAWEhUTFxAWEhUSFhIVEhYSFRIYEBUSFhIWAAdeCwANBQAA”
{% elif (selected_temp == “30”) %} “b64:JgCSAAABJ5MXNBYSFRMVNhYSFTYWEhYSFRIWNhU2FjYWEhUSFhIVEhYSFRIWEhUSFhIWNhU2FhIVExUSFhIVEhY2FRIWNhYSFRIWNhUSFgACjxcRFRIWEhUSFhIVEhYSFRMVEhYSFTYWEhUSFhIVExUSFhIVEhYSFRIWEhUSFhIWEhUSFhIVEhYSFTYWEhYSFRIWAA0FAAAAAAAA”
{% endif %}

living_room_ac_cool_high_script:
sequence:
- service: script.living_room_rm_pro_send_packet
data_template:
packet_code: >
{% if (selected_temp == “16”) %} “b64:JgCSAAABJ5MWNhYSFRIWNhU3FTYWEhUSFhIWEhUSFhIVEhYSFRIWEhUSFhIWEhUSFhIVNhY2FhIVEhYSFRIWEhU2FhIWNhUSFhIVNxUSFgACjxUSFhIVExUSFhIVEhYSFRIWEhUSFjYWEhUSFhIVEhYSFRIWEhUTFRIWEhUSFhIVEhYSFxAWEhUTFTYWNhUTFRIWAA0FAAAAAAAA”
{% elif (selected_temp == “17”) %} “b64:JgCSAAABJ5MWNRYSFRIWNhY2FjUWEhYSFTYWEhUSFhIVEhYSFhIVEhYSFhEWEhUSFhIVNxU2FhIVEhYSFhIWERY2FRIWNhYSFRIWNhYRFgACjxYSFRIWEhYRFhIVExUSFhIVEhcRFTYXERUSFxEWEhUSFhIVEhYSFhEWEhUTFRIVExUSFhIVEhYSFRIWEhU3FRIWAA0FAAAAAAAA”
{% elif (selected_temp == “18”) %} “b64:JgCSAAABJ5MWNhUSFhIWNhU2FjYWEhUSFhIVNhYSFRMVEhYSFRIWEhUSFhIVEhYSFRMVNhY2FhEWEhcRFRIWEhU2FhIVNxUSFhIVNhYSFQACkBUSFhIVEhYSFRMVEhYSFRIWEhUSFjYVExUSFhIVEhYSFRIWEhUSFhIVExUSFhIVEhYSFRIWEhUSFjYWEhU2FhIVAA0FAAAAAAAA”
{% elif (selected_temp == “19”) %} “b64:JgCSAAABKJMWNhUSFhIWNhU2FzUVExUSFjYVNhYSFhIVEhYSFRIWEhUSFhIVEhYSFRMWNRY2FRIWEhUTFRIWEhU2FhIVNhYSFhIVNhYSFQACjxYSFhIVEhYSFRIWEhUSFhIVEhYSFTcVEhYSFRIWEhUSFhIVExUSFRMVEhYSFRIWEhUSFhIVEhYSFhIVNhY2FRMVAA0FAAAAAAAA”
{% elif (selected_temp == “20”) %} “b64:JgCSAAABJ5MWNhYSFRIWNhU3FTYWEhUSFhIWEhU2FhIVEhYSFRIWEhYSFRIWEhUSFhIVNhY2FhIVEhYSFRIXERU2FhIWNhUSFhIVNxUSFgACjxYRFhIVEhYSFRIWEhUTFRIYEBUSFjYVEhYSFhIVEhYSFRIWEhUSFhIVExUSFhIVEhYSFRIWEhUSFjYWNhU2FhIVAA0FAAAAAAAA”
{% elif (selected_temp == “21”) %} “b64:JgCSAAABJ5MVNhYSFRIWNhY2FTYWEhYSFTYWEhU2FhIWEhUSFhIVEhYSFRIWEhUSFhIVNxU2FhIVEhYSFRIWEhY2FRIWNxUSFhIVNhYSFgACjxUSFhIVEhYSFRMVEhYSFRIWEhUSFjYVEhYSFhIVEhYSFRIWEhUSFhIVExUSFhIVEhYSFRIWEhUSFhIVEhYSFjYVAA0FAAAAAAAA”
{% elif (selected_temp == “22”) %} “b64:JgCSAAABJ5MWNhUSFhIVNxU2FjYVExUSFhIVNhg0FRMVEhYSFRIWEhUSFhIXEBYSFRIWNhY2FRIWEhUSFhIXERU2FhIVNhYSFRIWNhYSFQACjxYSFhIVEhYSFRIWEhUSFhIVEhYSFTcVEhYSFRIWExUSGBAVEhYSFRIWEhUTFRIWEhUSFhIVEhYSFTYWEhYSFTYWAA0FAAAAAAAA”
{% elif (selected_temp == “23”) %} “b64:JgCSAAABKJMVNxUSFhIVNhY2FjYVEhYSFTYWNhY2FRIWEhUTFRIWEhUSFhIVEhYSFRIWNhc1FRIWEhUSFhIWEhU2FhIVNxUSFhIVNhYSFQACkBUSFhIVEhYSFRMVEhYSFRIWEhUSFjYVExUSFhIVEhYSFRIWEhUSFhIVExUSFhIVEhYSFRIWEhUTFRIWNhUSFjYVAA0FAAAAAAAA”
{% elif (selected_temp == “24”) %} “b64:JgCSAAABKJEXNxUSFhIVNhY2FjYVEhYSFRIWEhUSFjYWEhUSFhIVEhYSFRIWEhUTFRIWNhU2FxEVEhYSFRMVEhY2FRIWNhYSFRIWNhUSFgACjxYSFRIWEhUSFhIVEhYSFRIWEhUTFTYWEhYRFhIVEhYSFRMVEhYSFRIWEhUSFhIVEhYSFRMVEhYSFTYWNhUSFjYWAA0FAAAAAAAA”
{% elif (selected_temp == “25”) %} “b64:JgCSAAABJ5IWNhYSFRIWNhU3FTYWEhYSFTYWEhUSFjYVExUSFhIVEhYSFRIWEhUSFhIVNxU2FhIVEhYSFRIWEhU3FRIWNhUSFhIVNxYRFgACjxUSFhIVEhYSFRMVEhYSFRIWEhUSFjYVEhYSFhIWERYSFRIXERUSFhIVEhYSFhIVEhYSFhEWEhUSFhIVEhY2FjYVAA0FAAAAAAAA”
{% elif (selected_temp == “26”) %} “b64:JgCSAAABJ5MVNhYSFRMVNhY2FTYWEhYSFRIWNhUSFjYWEhUSFhIVEhYSFRIYEBYSFRIWNhU3FRIWEhcQFhIVEhY2FhIVNhYSFRIWNhUTFQACjxgQFRIWEhUTFRIWEhcQFhIVEhYSFTcVEhYSFRIWEhUSFhIVEhYSFRMXEBYSFRIWEhUSFhIVEhYSFTcVEhY2FTcWAA0FAAAAAAAA”
{% elif (selected_temp == “27”) %} “b64:JgCSAAABJ5MWNhUSFhIVNxU2FjYWEhUSFjYVNhYSFTcVEhYSFRIWEhUSFhIVExUSFxEVNhY2FRIWEhYSFRIWEhc0FhIVNxUSFhIVNhYSFQACkBUSFhIXEBYSFRIWEhUTFRIVExUSFjYVEhYSFRMWEhUSFhIXERUSFhIVEhYSFRIWEhcQFhIVExUSFhIVNBg2FTcVAA0FAAAAAAAA”
{% elif (selected_temp == “28”) %} “b64:JgCSAAABJ5MVNxUSFhIVNhY2FjYVEhYSFRIWEhU2FjYWEhUSFhIVEhYSFRMVEhYSFRIWNhU2FhIWEhUSFhIVEhY2FRIWNhYSFRIWNhUSFgACjxYSFRIWEhUSFhIVEhYSFRIWEhYSFTYWEhUSFhIVEhgQFRMVEhYSFRIWEhUSFhIVExUSFhIVEhYSFTYWNhU3FTYWAA0FAAAAAAAA”
{% elif (selected_temp == “29”) %} “b64:JgCSAAABKJMWNhUSFhIXNRU2FjYVEhYSFTcVEhY2FTYWEhYSFRIWEhcQGBAVEhYSFRIWNhY2FRIWEhUSFhIVExU2FhIVNhYSFRMVNhYSFQACjxYSFhIVEhYSFRIWEhUSFhIVEhYSFTcVEhYSFRIWEhUTFRIWEhUSFxEVEhYSFRIWEhUSFhIVExUSFhIVEhYSFRIWAA0FAAAAAAAA”
{% elif (selected_temp == “30”) %} “b64:JgCOABY2FhIVEhY2FTcVNhYSFRIWEhU3FTYWNhUTFRIWEhUSFhIVEhYSFRIWEhU3FTYWEhUSFhIVEhYSFjYVEhY2FRIWEhY2FRIWAAKPFRMVEhYSFRIWEhUSFhIVEhYSFRIWNhYSFRIWEhUSFhIVEhYSFRMVEhYSFRIWEhUSFhIVEhYSFRMVNhYSFRIWEhUADQUAAAAAAAAAAAAA”
{% endif %}

living_room_ac_cool_auto_script:
sequence:
- service: script.living_room_rm_pro_send_packet
data_template:
packet_code: >
{% if (selected_temp == “16”) %} “b64:JgCSAAABKpEXNBgPGBAYNBgPGBAYDxgQGA8YEBgQFxAYEBgPGBAYDxgQGA8YEBgPGBAYNBgzGBAYDxgQGBAXEBg0GA8YNRcQFxAYNBgPGAACjRgQFxAYEBgQFxAYDxgQGA8YEBgQFzQYEBgPGBAYDxgQGA8YEBgQGA8YEBgPGBAYDxgQGA8YEBgQFzUXNBgPGBAYAA0FAAAAAAAA”
{% elif (selected_temp == “17”) %} “b64:JgCSAAABKZEYNBgPGBAYMxgQGBAYDxgQGDMYEBgPGBAYEBgPGBAYDxgQGA8YEBgQGA8YNBgzGBAYDxgQGBAYDxg0GA8YNBgQGBAXNBgPGAACjRgQGA8YERcPGBAYEBgPGBAYDxgRFzMYERcQFxAYEBgPGBAYEBcQGA8YEBgQGA8YEBgPGBEXDxgQGA8YEBg0GA8YAA0FAAAAAAAA”
{% elif (selected_temp == “18”) %} “b64:JgCSAAABKZEYMxkPGBAYMxgQGA8YEBgQGA8YNBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYMxkzGBAYDxgQGA8YEBg0GA8YNBgPGBAYNBgPGAACixoPGBAYEBgPGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgPGBAYEBgPGBAYDxgQGA8YEBgPGDQYEBgzGBAYAA0FAAAAAAAA”
{% elif (selected_temp == “19”) %} “b64:JgCSAAABKpEXNBgPGBAYNBgPGBAYDxgQGDMZMxgQGA8YEBgPGBAYEBgPGBAYDxgQGA8YNRc0GA8YEBgPGBAYDxkzGBAYMxgQGBAYMxgQGAACjBkPGBAYDxgQGA8YEBgPGBAYEBgPGDQYDxgQGA8YEBgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYMxkzGBAYAA0FAAAAAAAA”
{% elif (selected_temp == “20”) %} “b64:JgCSAAABKZEYNBgQFxAYNBgPGBAXERcQFxEXEBg0FxAZDxcRGA8YEBgPGBAYDxgQGA8ZMxg0GA8YEBgPGQ8YEBgzGBAYMxkPGBAYMxgQGAACjRgPGBAYDxgQGA8ZDxgQGA8YEBgPGDQYDxkPGBAYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGA8YEBgPGDQYNBgzGQ8YAA0FAAAAAAAA”
{% elif (selected_temp == “21”) %} “b64:JgCSAAABKpAYNBgPGBAYNBgPGBAYDxgQGDMZDxg0GA8YEBgPGBAYEBgPGBAYDxgQGA8YNBg0GA8YEBgPGBAYDxkzGBAYMxgQGA8ZMxgQGAACjBkPGA8ZDxgQGA8YEBgPGBAYDxkPGDQYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYAA0FAAAAAAAA”
{% elif (selected_temp == “22”) %} “b64:JgCSAAABKZEYMxkPGBAYMxgQGA8YEBgPGBAYNBgzGBAYDxkPGBAYDxgQGA8YEBgPGBAYNBg0FxAYDxgQGA8ZDxg0GA8YNBgQGA8YNBgPGAACjRgQGA8YEBgPGBAYDxgQGA8ZDxgQGDMYEBgPGBAYEBgPGBAYDxgQGA8YEBgPGBAYEBgPGBAYDxgQGDMYEBgQGDQXAA0FAAAAAAAA”
{% elif (selected_temp == “23”) %} “b64:JgCSAAABKZEXNRcQGQ8YNBcQGBAYDxgQGDMYNBg0GA8YEBgPGQ8YEBgPGBAXEBgQGA8YNBc1FxAYEBgPGBAYDxg0GBAYMxgQGA8YNBgQGAACjBgQGA8YEBgQGA8YEBgPGBAYDxgQFzQYEBcRFxAYEBcQGBAXEBgQFxAYEBcRFxAXERcQGBAXEBgQFxAYNBcRFzQYAA0FAAAAAAAA”
{% elif (selected_temp == “24”) %} “b64:JgCSAAABKZEYNBgPGBAYMxgQGA8ZDxgQGA8YEBgPGDQYDxkPGBAYDxgQGA8YEBgPGBAYMxkzGBAYDxgQGA8YEBg0GA8YNBgPGBAYMxkPGAACjRgPGBAYDxgQGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgPGQ8YEBgPGBAYDxgQGA8YEBgPGDQYNBgPGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “25”) %} “b64:JgCSAAABKpAYNBgQGBAXNRcQFxAYEBgPGDQYDxgQGDQYDxgQGA8YEBgPGBAYEBgPGBAYMxg0GBAXERcQGA8YEBgzGBAYNBgPGBAYMxgQGAACjRgPGBEXEBcQGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgQFxAYEBgPGBAYEBcQGA8YEBgQFxAYEBgzGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “26”) %} “b64:JgCSAAABKpAYNBgPGBAYMxkPGBAYDxgQGA8YNBgQGDMYEBgPGBAYDxgQGBAYDxgQGA8YNBgzGQ8YEBgPGBAYDxg0GA8ZMxgQGA8YNBgQGAACjBgQGA8YEBgPGBAYDxgQGBAYDxgQGDQXEBgQGA8YEBgPGBAYDxgQGA8YEBgPGBAYEBgPGBAYDxgQGDMYEBg0GDMYAA0FAAAAAAAA”
{% elif (selected_temp == “27”) %} “b64:JgCSAAABK5AYNBgPGBAYMxkPGBAYDxgQGDMYNBgQGDMYEBgPGQ8YEBgPGBAYDxgQGBAXNBg0GBAXEBgPGBAYDxkzGBAYMxgQGA8ZMxgQGAACjBkPGBAYDxgQGA8YEBgPGQ8YEBgPGDQYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYMxkzGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “28”) %} “b64:JgCSAAABKZEXNRcQGBAXNBgQFxEXEBcRFxAYEBc0GDQXERcQGBAXEBgQFxAYEBcRFxAXNRc0GBAXERcQFxEXEBg0FxAYNBgQGA8YNBcQGQACjBgQGA8YEBgPGBAYDxkPFxAZDxgQGDMYEBgPGQ8YDxkPGBAXEBgQGA8YEBcQGBAXEBgQFxEXEBcRGDMYNBg0GDMYAA0FAAAAAAAA”
{% elif (selected_temp == “29”) %} “b64:JgCSAAABKpAYNBgPGBAYMxkPGBAYDxgQGDMYEBg0GDMYEBgPGQ8YEBgPGBAYDxgQGA8YNBg0GA8YEBgPGBAYEBgzGBAYMxgQGBAYNBcQGAACjBkPGBAYDxgQGA8YEBgPGBAYEBgPGDQYDxgQGA8YEBgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8YAA0FAAAAAAAA”
{% elif (selected_temp == “30”) %} “b64:JgCSAAABKZEYMxgQGBAYNBcQGA8YEBgPGBAYNBg0FzQYEBgPGBAYDxgQGA8YEBgPGBAYNBg0FxAYDxgQGBAYDxg1Fw8YNBgQFxAYNBgPGAACjRgQGA8YEBgPGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGBAXEBgQGBAXEBgPGBAYDxgQGA8YEBgQFzQYEBgPGBAYAA0FAAAAAAAA”
{% endif %}

living_room_ac_heat_low_script:
sequence:
- service: script.living_room_rm_pro_send_packet
data_template:
packet_code: >
{% if (selected_temp == “16”) %} “b64:JgCSAAABKpEYERYRFzQYNBc0GBAXERcRFhEXERcQFxEXERYRFxEWERcRFhEXERcQFxEXNBc1FxEXEBcRFxAXERc0FxEXNBgQFxEXNBcRFwACjRgRFhEXERYRFxEWERcRFxAXERcQFzQYERYRFxEWERcRFxAXERcRFhAYERYRFxEWERcRFxAXERcRFhEXNBc1FxEXAA0FAAAAAAAA”
{% elif (selected_temp == “17”) %} “b64:JgCSAAABKZEXERcQFzQYNBg0FxEXERYRFzQYEBcRFxAXERcQFxEXERYRFxEXEBcRFxAXNBg0GBAXERcQFxEXERY1FxEXNBcRFxEWNRcRFwACjRcRFxEXEBcRFxAXERcRFhEXERYRFzQYEBcRFxAXERcRFhEXERcQFxEXEBcRFxAXERcQFxEXEBgQFzQYNBc1FxEXAA0FAAAAAAAA”
{% elif (selected_temp == “18”) %} “b64:JgCSAAABKZEXERcRFzQXNBg0GBAXERcQFxEXNBcRFxEXEBcRFxAXERcRFhEXERYRFxEWNRc0GBEWERcRFhEXERc0FxEXNBcRFxEXNBcRFwACjRcRFxEXEBcRFxAXERcRFhEXERYRFzQYEBcRFxEWERcRFhEXERYRFxEXEBcRFxAXERcRFhEXERYRFxEXEBcRFzQXAA0FAAAAAAAA”
{% elif (selected_temp == “19”) %} “b64:JgCSAAABKpEYDxgQGDQYMxg0GBAYDxgQGDMYNBgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YNBgzGQ8YEBgPGBAYDxg0GBAYMxgQGA8YNBgPGQACjBgQGA8YEBgPGQ8YEBgPGBAYDxgQGDMZDxgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGDQYDxgQGDMZAA0FAAAAAAAA”
{% elif (selected_temp == “20”) %} “b64:JgCSAAABKpEYEBcQGDQYMxg0GBAYDxgQGA8YEBgzGBAYDxkPGBAYDxgQGA8YEBgPGBAYNBgzGBAYDxgQGA8YEBg0GA8YNBgPGBAYNBgPGAACjRgPGQ8YEBgPGBAYDxgQGA8YEBgPGTMYEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YNBgPGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “21”) %} “b64:JgCSAAABKZEYDxgQGDMZMxg0GA8YEBgQGDMYEBgzGBAYDxkPGBAYDxgQGA8YEBgPGBAYNBgzGBAYDxgQGA8YEBg0GA8YNBgPGBAYNBgPGAACjRgPGBAYEBgPGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgQGA8YEBgPGBAYDxgQGA8YEBgQGDMYNBgPGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “22”) %} “b64:JgCSAAABKpAYEBgPGDQYNBgzGBAYDxkPGBAYMxg0GA8ZDxgQGA8YEBgPGBAYDxgQGA8ZMxg0GA8YEBgPGQ8YEBgzGBAYMxkPGBAYMxgQGAACjRgPGBAYDxkPGA8ZDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgPGQ8YEBgPGBAYDxgQGA8YEBgPGQ8YEBgzGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “23”) %} “b64:JgCSAAABKpEYDxgQGDMZMxg0GA8YEBgPGTMYNBgzGQ8YEBgPGBAYDxgQGA8YEBgPGQ8YNBgzGBAYDxkPGBAYDxg0GA8YNBgQGA8YNBgPGAACjRgQGA8YEBgPGBAYDxgQGA8ZDxgPGTMYEBgPGBAYDxkPGBAYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYEBgzGTMYAA0FAAAAAAAA”
{% elif (selected_temp == “24”) %} “b64:JgCSAAABK5AYEBgPGDQYMxkzGBAYDxgQGA8ZDxgPGTMYEBgPGBAYDxkPGA8ZDxgQGA8YNBgzGQ8YEBgPGBAYDxg0GA8ZMxgQGA8YNBgPGAACjRgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYEBgPGBAYDxkPGBAYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGA8YNBgzGTMYAA0FAAAAAAAA”
{% elif (selected_temp == “25”) %} “b64:JgCSAAABKpAYEBgPGDQYNBgzGBAYDxkPGDQYDxgQGDMZDxgQGA8YEBgPGBAYDxgQGA8ZMxg0GA8YEBgPGBAYDxkzGBAYMxkPGA8ZMxgQGAACjBgQGA8ZDxgQGA8YEBgPGBAYDxgQGDMZDxgQGA8YEBgQFxAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGDQYMxg0GDQYAA0FAAAAAAAA”
{% elif (selected_temp == “26”) %} “b64:JgCSAAABK5AYEBgPGDQYNBgzGBAYDxkPGBAYMxgQGDMZDxgQGA8YEBgPGBAYDxgQGA8ZMxg0GA8YEBgPGBAYEBgzGBAYMxgQGBAYMxgQGAACjBkPGBAYDxgQGA8YEBgPGQ8YEBgPGDQYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGBAYAA0FAAAAAAAA”
{% elif (selected_temp == “27”) %} “b64:JgCSAAABKpEYDxkPGDQYMxg0GBAYDxgQGDMYNBgQGDMYEBgPGBAYDxgQGBAYDxgQGA8YNBgzGQ8YEBgPGBAYDxg0GA8ZMxgQGA8YNBgPGAACjRgQGA8YEBgPGBAYDxgQGBAYDxgQGDMYEBgPGBAYEBgPGBAYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYEBgQGA8YAA0FAAAAAAAA”
{% elif (selected_temp == “28”) %} “b64:JgCSAAABKZEYDxgQGDMZMxg0GA8ZDxgPGQ8YEBgzGDQYDxkPGBAYDxgQGA8YEBgPGBAYMxkzGBAYDxgQGA8ZDxg0GA8YNBgPGQ8YNBgPGAACjRgPGBAYDxkPGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgPGQ8YDxkPGBAYDxgQGA8YEBgPGBAYNBgPGBAYAA0FAAAAAAAA”
{% elif (selected_temp == “29”) %} “b64:JgCSAAABKpEYDxgQGDMZMxg0GA8YEBgPGTMYEBgzGDQYEBgPGBAYDxgQGA8YEBgPGQ8YNBgzGBAYDxkPGBAYDxg0GA8YNBgQGA8YNBgPGAACjRgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYEBgQGA8YEBgPGBAYDxgQGA8YEBgQGA8YEBgPGBAYDxgQGDQYMxgQGA8YAA0FAAAAAAAA”
{% elif (selected_temp == “30”) %} “b64:JgCSAAABKZEYDxgQGDMZMxg0GA8ZDxgQGA8YNBgzGTMYEBgPGBAYDxgQGA8ZDxgPGQ8YNBgzGQ8YEBgPGBAYDxg0GA8ZMxgQGA8YNBgPGQACjBgQGA8YEBgPGBAYDxgQGA8ZDxgQGDMYEBgPGBAYDxkPGBAYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGA8YEBgzGBAYAA0FAAAAAAAA”
{% endif %}

living_room_ac_heat_med_script:
sequence:
- service: script.living_room_rm_pro_send_packet
data_template:
packet_code: >
{% if (selected_temp == “16”) %} “b64:JgCSAAABKZEXERcQGDQXNRcQFzUXEBgQFxAYEBcRFxAXERcQGBAXEBgQFxAYEBcRFxAXNRc0GBAXERcQGBAXEBg0FxEXNBgQFxAYNBcRFwACjRgQFxAYEBcQGBAXERcQGBAXEBgQFzQYEBcRFxAYEBcQGBAXEBgQFxEXEBcRFxAYEBcQGBAXEBgQFxEXNBg0FxAYAA0FAAAAAAAA”
{% elif (selected_temp == “17”) %} “b64:JgCSAAABKpAZDxgQGDMYNBgQGDMYEBgPGDQYEBgPGBAYDxgQGA8YEBgPGQ8YEBgPGBAYMxg0GBAYDxgQGA8YEBgzGQ8YNBgPGBAYMxkPGAACjRgPGQ8YDxkPGBAYDxgQGA8YEBgPGTMYEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8ZDxgQGDMYNBg0GA8YAA0FAAAAAAAA”
{% elif (selected_temp == “18”) %} “b64:JgCSAAABKpAYEBgPGDQYNBgPGDQYDxgQGA8YNBgQGA8YEBgPGBAYDxgQGBAYDxgQGA8YNBgzGQ8YEBgPGBAYDxg0GA8ZMxgQGA8YNBgPGAACjRgQGA8YEBgPGBAYDxgQGBAYDxgQGDMYEBgPGBAYEBgPGBAYDxgQGA8YEBgPGBAYEBgPGBAYDxgQGA8YEBgPGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “19”) %} “b64:JgCSAAABKZEYDxgQGDMYNBgQGDMYERcPGDUXNBgPGBAYDxgQGBAXEBgQGA8YEBgPGBAYMxg0GBAYDxgQGA8YEBgzGQ8YNBgPGBAYNBcQGAACjRgPGBAYDxgQGBAYDxgQGA8YEBgPGDUXEBgPGBAYDxgQGA8YEBgPGBAYEBcQGBAYDxgQGA8YEBgPGDQYEBgPGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “20”) %} “b64:JgCSAAABKpAYEBgPGDQYNBgPGDQYDxgQGA8ZDxg0GA8YEBgPGBAYDxgQGBAYDxgQGA8YNBgzGQ8YEBgPGBAYDxg0GA8ZMxgQGA8YNBgPGQACjBgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYEBgPGBAYDxkPGBAYDxgQGA8YEBgPGBAYDxgQGBAYDxgQGA8YNBgPGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “21”) %} “b64:JgCSAAABKpAYEBgPGDQYMxkPGDQYDxgQGDMZDxg0GA8YEBgPGBAYDxgQGA8ZDxgQGA8YNBgzGQ8YEBgPGBAYDxg0GA8ZMxgQGA8YNBgPGQACjBgQGA8YEBgPGBAYDxgQGBAYDxgQGDMYEBgPGBAYDxkPGBAYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYNBgQGDMYAA0FAAAAAAAA”
{% elif (selected_temp == “22”) %} “b64:JgCSAAABKpEYDxgQGDMZMxgQGDMYEBgPGQ8YNBgzGBAYDxkPGBAYDxgQGA8YEBgPGBAYMxkzGBAYDxgQGBAYDxg0GA8YNBgQGA8YNBgPGAACjRgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYEBgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8ZDxg0GDMYAA0FAAAAAAAA”
{% elif (selected_temp == “23”) %} “b64:JgCSAAABKpAZDxgQGDMYNBgPGDQYEBgPGDQYMxkzGBAYDxgQGA8ZDxgPGQ8YEBgPGBAYMxkzGBAYDxgQGA8YEBgzGQ8YNBgPGBAYMxkPGAACjRgPGQ8YEBgPGBAYDxgQGA8YEBgPGTMYEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8ZDxgQGDMYEBgzGTMYAA0FAAAAAAAA”
{% elif (selected_temp == “24”) %} “b64:JgCSAAABKJEYDxgQGDMYNBgQGDMYEBgPGBAYEBgPGDQYDxgQGA8YEBgQGA8YEBgPGBAYMxg0GBAYDxgQGA8YEBgzGQ8YNBgPGBAYMxgQGAACjRgPGBAYDxgQGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgPGBAYDxgQGBAYDxgQGA8YEBgPGBAYMxkzGDUXAA0FAAAAAAAA”
{% elif (selected_temp == “25”) %} “b64:JgCSAAABKpAYEBgPGTMYNBgPGDQYEBgPGDQYDxgQGDQYDxgQGA8YEBgPGQ8YEBgPGBAYMxg0GBAYDxgQGA8YEBgzGQ8YNBgPGBAYMxkPGAACjRgPGBAYDxkPGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgPGQ8YEBgPGBAYDxgQGA8YEBgPGTMYNBgzGTMYAA0FAAAAAAAA”
{% elif (selected_temp == “26”) %} “b64:JgCSAAABKpAYEBgPGDQYNBgPGDQYEBcQGBAYMxgQGDQYDxgQGA8YEBgPGBEXDxgRFxAYMxg0GBAXEBgQGA8YEBgzGBAYMxkPGBAYMxgQGAACjBkPGBAYDxgQGA8YERcQFxAYEBgPGDQYDxgQGBAXEBgQGA8YEBgPGBAYDxgQGBAXEBgQGA8YEBgPGBAYDxgQGBAXAA0FAAAAAAAA”
{% elif (selected_temp == “27”) %} “b64:JgCSAAABKpAYEBgPGDQYNBgPGDQYDxgQGDQYMxgQGDQYDxgQGA8YEBgPGBAYDxkPGBAYMxg0GA8ZDxgQGA8YEBgzGBAYNBgPGBAYMxkPGAACjRgPGBAYDxkPGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgPGQ8YEBgPGBAYDxgQGA8YEBgPGTMYEBgPGBAYAA0FAAAAAAAA”
{% elif (selected_temp == “28”) %} “b64:JgCSAAABKZEYEBgQGDMYNBgPGTMYEBgPGBAXEBg0GDQXEBgQGA8YEBcQGBAXERcQFxEXNBg0FxEXEBcRFxAYEBc0GBAXNRcQGBAXNBkPFwACjRkPGBAYDxgQGA8YEBgPGQ8YEBgPGDQYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8ZDxgPGQ8YEBgPGBAYMxkPGA8ZAA0FAAAAAAAA”
{% elif (selected_temp == “29”) %} “b64:JgCSAAABKpAZDxgQGDMYNBgPGTMYEBgPGDQYEBgzGDQYDxkPGBAYDxgQGA8YEBgPGBAYNBgzGBAYDxgQGA8ZDxg0GA8YNBgQGA8YNBgPGAACjRgQGA8YEBgPGBAYDxgQGA8ZDxgQGDMYEBgPGBAYDxkPGBAYDxgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYNBgQGA8YAA0FAAAAAAAA”
{% elif (selected_temp == “30”) %} “b64:JgCSAAABK5AYEBgPGDQYNBgPGDQYDxkPGBAYMxg0GDMZDxgQGA8YEBgPGBAYDxgQGBAYMxg0GA8YEBgQGA8YEBgzGBAYMxkPGBAYMxgQGAACjBkPGBAYDxgQGA8YEBgPGBAYEBgPGDQYDxgQGA8YEBgQGA8YEBgPGBAYDxgQGA8YEBgPGQ8YEBgPGBAYDxg0GA8ZAA0FAAAAAAAA”
{% endif %}

living_room_ac_heat_high_script:
sequence:
- service: script.living_room_rm_pro_send_packet
data_template:
packet_code: >
{% if (selected_temp == “16”) %} “b64:JgCSAAABKZEYERYRFzQYNBc1FzQYEBcRFxEWERcRFxAXERcQFxEXEBcRFxEWERcRFhEXNBg0FxEXERcQFxEXEBc0GBAXNBgRFxAXNBgRFgACjRgRFxAXERcQFxEXERYRFxEWERcRFzQXERcRFhEXERYRFxEXEBcRFxAXERcQFxEXERYRFxEXEBcRFxAXNBg0GBAXAA0FAAAAAAAA”
{% elif (selected_temp == “17”) %} “b64:JgCSAAABKpAYEBgQGDQXNBg0GDMYEBgPGDQYEBgPGBAYDxgQGA8YEBgPGBAYEBgPGBAYMxg0GBAYDxgQGA8YEBgzGBAYNBgPGBAYMxgQGAACjRgPGBAYDxgQGA8YEBgQGA8YEBgPGDQYDxgQGBAXEBgQGA8YEBgPGBAYDxgQGA8YEBgQGA8YEBgPGDUXNBgzGBAYAA0FAAAAAAAA”
{% elif (selected_temp == “18”) %} “b64:JgCSAAABKZEYDxgQGDQYMxg0GDMZDxgQGA8YNBgQFxAYEBgPGBAYDxgQGA8YEBgPGBAYNBgzGBAYDxgQGBAXEBg0GA8YNBgQFxAYNBgPGAACjRgQGA8YEBgPGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8YEBgPGBAYEBgPGBAYDxgQGA8YEBgPGBAYEBgPGDQYAA0FAAAAAAAA”
{% elif (selected_temp == “19”) %} “b64:JgCSAAABKpEYDxgQGDMYNBgzGTMYEBgPGDQYNBgPGBAYDxgQGA8YEBgQGA8YEBgPGBAYMxg0GBAYDxgQGA8YEBgzGQ8YNBgPGBAYNBcQGAACjRgPGBAYDxgQGA8YEBgQGA8YEBgPGDQYDxgQGA8YEBgQGA8YEBgPGBAYDxgQGA8YEBgPGQ8YEBgPGDQYDxgQGDMZAA0FAAAAAAAA”
{% elif (selected_temp == “20”) %} “b64:JgCSAAABK5AYEBgPGDQYMxkzGDQYDxkPGBAYDxg1Fw8YEBgPGQ8YEBgPGBAYDxgQGA8YNBg0GA8YEBgPGBAYDxg0GBAYMxgQGA8YNBgQGAACjBgQGA8YEBgPGBAYDxkPGBAYDxgQGDMYEBgQGA8YEBgPGBAYDxgQGA8YEBgQGA8YEBgPGBAYDxgQGA8YNBgQGDMYAA0FAAAAAAAA”
{% elif (selected_temp == “21”) %} “b64:JgCSAAABKZEYERYRFzQXNRc0GDQXERcRFjUXERc0FxEXERYRFxEXEBcRFxEWERcRFhEXNBg0FxEXERYRFxEWERc0GBEWNRcRFhEXNBgRFgACjRgRFhEXERYRFxEXEBcRFxEWERcRFjUXERYRFxEXERYRFxEWERcRFhEXERYRFxEXERYQGBEWERcRFjUXNBgRFjUXAA0FAAAAAAAA”
{% elif (selected_temp == “22”) %} “b64:JgCSAAABKpEXERcQFzQYNBg0FzQYEBcRFxEXNBc0GBAXERcRFxAXERcQFxEXEBcQGBEWNRc0GBEWERcRFhEXERc0FxEXNBcRFxEWNRcRFwACjRcRFxEXEBcRFxAXERcQFxEXERYRFzQYEBcRFxAXERcRFhEXERYRFxEXEBcRFxAXERcRFhEXERYRFxAYEBc0GDQXAA0FAAAAAAAA”
{% elif (selected_temp == “23”) %} “b64:JgCSAAABKpEYEBcRFzQXNBg0GDQXERcRFjUXNBg0FxEXERYRFxEXEBcRFxEWEBgRFhEXNBg0GA8YEBgPGBAYDxkzGBAYMxgQGA8YNBgQGAACjBgQGBAYDxgQGA8YEBgPGBAYDxgQGDQYDxgQGA8YEBgPGBAYEBgPGBAYDxgQGA8YEBgPGBAYEBcQGDQYDxg0GDMZAA0FAAAAAAAA”
{% elif (selected_temp == “24”) %} “b64:JgCSAAABKpAYEBgQGDMYNBg0GDQXEBgPGBAYDxkPGDQYDxgQGA8YEBgPGQ8YEBgPGBAYMxg0GBAYDxgQGA8YEBgzGQ8YNBgPGBAYNBgPGAACjRgPGBAYEBgPGBAYDxgQGA8YEBgPGDQYEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YNBgzGTMYAA0FAAAAAAAA”
{% elif (selected_temp == “25”) %} “b64:JgCSAAABKJEYDxgQGDMZMxg0GDQYDxgQGDMYEBgQGDMYEBgPGBAYDxgQGBAYDxgQGA8YNRczGQ8YEBgPGBAYDxg0GBAYMxgQGA8YNBgQGAACjBgQGA8ZDxgQGA8YEBgPGBAYDxgQGDQYDxgQGA8YEBgPGQ8YDxkPGBAYDxgQGA8YEBgPGBAYDxkPGDQYMxg0GDQYAA0FAAAAAAAA”
{% elif (selected_temp == “26”) %} “b64:JgCSAAABK5AYEBgPGTMYNBgzGTMYEBgPGBAYNBgPGDQYDxgQGA8ZDxgQGA8YEBgPGBAYNBgzGBAYDxgQGA8ZDxg0GA8YNBgPGQ8YNBgPGAACjRgQGA8YEBgPGBAYDxgQGA8ZDxgQGDMYEBgPGQ8YEBgPGBAYDxgQGA8YEBgPGQ8YEBgPGBAYDxgQGA8YEBgQGA8YAA0FAAAAAAAA”
{% elif (selected_temp == “27”) %} “b64:JgCSAAABKpEYEBgPGTMYNBgzGTMYEBgPGDQYNBgPGDQYDxgQGA8ZDxgQGA8YEBgPGBAYMxg0GBAYDxgQGA8ZDxc1GA8YNBgPGBAYNBgPGAACjRgPGQ8YEBgPGBAXEBgQFxAYEBcQGDQYEBcQGBAXEBgQFxAYEBgQGA8XERcQGBAXEBgQFxAYEBgQFzQXERgPGBAXAA0FAAAAAAAA”
{% elif (selected_temp == “28”) %} “b64:JgCSAAABKZEXERcQFzUXNBg0FzUXEBgQFxAYEBc1FzQYEBcQGBAXERcQFxEXEBcRFxAYNBc1FxAXERcQGBAXEBg0FxEXNBgQFxAYNBcRFwACjRcRFxAYEBcQGBAXEBgQFxEXEBcRFzQYEBcQGBAXERcQFxEXEBgQFxAYEBcQGBAXERcQFxEXEBcRFxAYNBcQGBAXAA0FAAAAAAAA”
{% elif (selected_temp == “29”) %} “b64:JgCSAAABKZEYDxgQGDMZMxg0GDMZDxgQGDMYEBgzGTMYEBgPGBAYDxgQGA8ZDxgQGA8YNBgzGQ8YEBgPGBAYDxg0GBAZMxgQGA8YNBgPGQACjBgQGA8YEBgPGQ8YEBgPGBAYDxgQGDMZDxgQGA8YEBgPGBAYDxgQGA8ZDxgQGA8YEBgPGBAYDxkPGDQYMxgQGA8ZAA0FAAAAAAAA”
{% elif (selected_temp == “30”) %} “b64:JgCSAAABKpEXERcQFzUXNBg0FzUXERcQFxAYNBc1FzQYEBcRFxEWERcQGBAXERcRFhAYNBc1FxEXEBcQGBAXERc0FxEXNBgRFhEXNBcRFwACjRgQFxEXEBcRFxAXERcQGBAXERcRFjUXERYRFxEXEBcRFxEWERcRFhEXEBcRFxAYEBcRFxAXEBgQFxEXERY1FxAYAA0FAAAAAAAA”
{% endif %}

living_room_ac_heat_auto_script:
sequence:
- service: script.living_room_rm_pro_send_packet
data_template:
packet_code: >
{% if (selected_temp == “16”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:16”
{% elif (selected_temp == “17”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:17”
{% elif (selected_temp == “18”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:18”
{% elif (selected_temp == “19”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:19”
{% elif (selected_temp == “20”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:20”
{% elif (selected_temp == “21”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:21”
{% elif (selected_temp == “22”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:22”
{% elif (selected_temp == “23”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:23”
{% elif (selected_temp == “24”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:24”
{% elif (selected_temp == “25”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:25”
{% elif (selected_temp == “26”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:26”
{% elif (selected_temp == “27”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:27”
{% elif (selected_temp == “28”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:28”
{% elif (selected_temp == “29”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:29”
{% elif (selected_temp == “30”) %} “place ir packet here for mode:HEAT+fan:AUTO+temperature:30”
{% endif %}

living_room_rm_pro_send_packet:
sequence:
- service: remote.send_command
data:
entity_id: remote.living_room_remote
command:
- ‘{{ packet_code }}’