Samsung Smartthings Minisplit script failing with strange error

The error is “Provided temperature 83.0 is not valid. Accepted range is 141.8 to 186.8”

This makes no sense, no HVAC I know of could have such a temperature range in F or C.
Context:
The script basically turns the HVAC to cool and sets the temperature (83) based on a schedule meta data to all four using the new actions across an area. It also manages the display lighting so it’s not left on attracting bugs as Samsung resets this to on for any mode change with no way to leave it off.

I have been running an automation/script for several months without a problem. This last week I noticed that it started to fail when turning on. There are four mini splits that are controlled and scheduled by HA. Two still work fine, but two are now have an error that makes no sense and I am trying to diagnose this.

If I directly control one turning it on to “cool” within HA through the Smarthings card, they react without an error.

AC 1 and AC 4 both still work correctly and turn on to cool with the correct temperature.
AC 2 and AC 3 both do not turn on through the script.

Here is the script that gets run…

sequence:
  - action: automation.turn_on
    metadata: {}
    target:
      entity_id: automation.on_schedule_garage_ac
    data: {}
  - if:
      - condition: schedule.is_on
        target:
          entity_id: schedule.garage_temps
        options:
          for: '00:00:00'
    then:
      - sequence:
          - action: climate.set_temperature
            metadata: {}
            target:
              area_id: garage
            data:
              hvac_mode: '{{ state_attr(''schedule.garage_temps'', ''mode'') }}'
              temperature: >-
                {{ state_attr('schedule.garage_temps', 'temperature')|float(0)
                }}
            continue_on_error: true
          - action: timer.start
            metadata: {}
            target:
              entity_id: timer.garage_ac_displays_off
            data: {}
          - action: switch.turn_on
            metadata: {}
            target:
              entity_id:
                - switch.ac_1_mezzanine_display_lighting
                - switch.ac_2_display_lighting
                - switch.ac_3_display_lighting
                - switch.ac_4_display_lighting
            data: {}
            continue_on_error: true
    else:
      - action: climate.set_hvac_mode
        metadata: {}
        target:
          area_id: garage
        data:
          hvac_mode: 'off'
        continue_on_error: true
alias: Resume HVAC Schedule
description: ''

Here is the trace from a failed run

{
  "trace": {
    "last_step": "sequence/1/then/0/sequence/2",
    "run_id": "387cdb760c2b99628a8f616c3b900646",
    "state": "stopped",
    "script_execution": "finished",
    "timestamp": {
      "start": "2026-09-04T15:59:51.686238+00:00",
      "finish": "2026-09-04T15:59:54.110087+00:00"
    },
    "domain": "script",
    "item_id": "resume_hvac_schedule",
    "trace": {
      "sequence/0": [
        {
          "path": "sequence/0",
          "timestamp": "2026-09-04T15:59:51.686646+00:00",
          "changed_variables": {
            "this": {
              "entity_id": "script.resume_hvac_schedule",
              "state": "off",
              "attributes": {
                "last_triggered": "2026-09-04T15:00:00.607606+00:00",
                "mode": "single",
                "current": 0,
                "friendly_name": "Resume HVAC Schedule"
              },
              "last_changed": "2026-09-04T15:00:03.924730+00:00",
              "last_reported": "2026-09-04T15:00:03.924730+00:00",
              "last_updated": "2026-09-04T15:00:03.924730+00:00",
              "context": {
                "id": "01M1PEY2C1S2VXGEE399SKXXYJ",
                "parent_id": "01M1PEY2C1NP3CNM9C74AB5Q23",
                "user_id": null
              }
            },
            "context": {
              "id": "01M1PJBNW66S3JMW3KBXSPGB0Z",
              "parent_id": null,
              "user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2"
            }
          },
          "result": {
            "params": {
              "domain": "automation",
              "service": "turn_on",
              "service_data": {},
              "target": {
                "entity_id": [
                  "automation.on_schedule_garage_ac"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "sequence/1": [
        {
          "path": "sequence/1",
          "timestamp": "2026-09-04T15:59:51.687888+00:00",
          "result": {
            "choice": "then"
          }
        }
      ],
      "sequence/1/if": [
        {
          "path": "sequence/1/if",
          "timestamp": "2026-09-04T15:59:51.687971+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "sequence/1/if/condition/0": [
        {
          "path": "sequence/1/if/condition/0",
          "timestamp": "2026-09-04T15:59:51.688019+00:00",
          "result": {
            "result": true
          }
        }
      ],
      "sequence/1/then/0": [
        {
          "path": "sequence/1/then/0",
          "timestamp": "2026-09-04T15:59:51.688229+00:00"
        }
      ],
      "sequence/1/then/0/sequence/0": [
        {
          "path": "sequence/1/then/0/sequence/0",
          "timestamp": "2026-09-04T15:59:51.688374+00:00",
          "error": "Provided temperature 83.0 is not valid. Accepted range is 141.8 to 186.8",
          "result": {
            "params": {
              "domain": "climate",
              "service": "set_temperature",
              "service_data": {
                "hvac_mode": "cool",
                "temperature": 83,
                "area_id": [
                  "garage"
                ]
              },
              "target": {
                "area_id": [
                  "garage"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "sequence/1/then/0/sequence/1": [
        {
          "path": "sequence/1/then/0/sequence/1",
          "timestamp": "2026-09-04T15:59:53.360868+00:00",
          "result": {
            "params": {
              "domain": "timer",
              "service": "start",
              "service_data": {},
              "target": {
                "entity_id": [
                  "timer.garage_ac_displays_off"
                ]
              }
            },
            "running_script": false
          }
        }
      ],
      "sequence/1/then/0/sequence/2": [
        {
          "path": "sequence/1/then/0/sequence/2",
          "timestamp": "2026-09-04T15:59:53.361798+00:00",
          "result": {
            "params": {
              "domain": "switch",
              "service": "turn_on",
              "service_data": {},
              "target": {
                "entity_id": [
                  "switch.ac_1_mezzanine_display_lighting",
                  "switch.ac_2_display_lighting",
                  "switch.ac_3_display_lighting",
                  "switch.ac_4_display_lighting"
                ]
              }
            },
            "running_script": false
          }
        }
      ]
    },
    "config": {
      "sequence": [
        {
          "action": "automation.turn_on",
          "metadata": {},
          "target": {
            "entity_id": "automation.on_schedule_garage_ac"
          },
          "data": {}
        },
        {
          "if": [
            {
              "condition": "schedule.is_on",
              "target": {
                "entity_id": "schedule.garage_temps"
              },
              "options": {
                "for": "00:00:00"
              }
            }
          ],
          "then": [
            {
              "sequence": [
                {
                  "action": "climate.set_temperature",
                  "metadata": {},
                  "target": {
                    "area_id": "garage"
                  },
                  "data": {
                    "hvac_mode": "{{ state_attr('schedule.garage_temps', 'mode') }}",
                    "temperature": "{{ state_attr('schedule.garage_temps', 'temperature')|float(0) }}"
                  },
                  "continue_on_error": true
                },
                {
                  "action": "timer.start",
                  "metadata": {},
                  "target": {
                    "entity_id": "timer.garage_ac_displays_off"
                  },
                  "data": {}
                },
                {
                  "action": "switch.turn_on",
                  "metadata": {},
                  "target": {
                    "entity_id": [
                      "switch.ac_1_mezzanine_display_lighting",
                      "switch.ac_2_display_lighting",
                      "switch.ac_3_display_lighting",
                      "switch.ac_4_display_lighting"
                    ]
                  },
                  "data": {},
                  "continue_on_error": true
                }
              ]
            }
          ],
          "else": [
            {
              "action": "climate.set_hvac_mode",
              "metadata": {},
              "target": {
                "area_id": "garage"
              },
              "data": {
                "hvac_mode": "off"
              },
              "continue_on_error": true
            }
          ]
        }
      ],
      "alias": "Resume HVAC Schedule",
      "description": ""
    },
    "blueprint_inputs": null,
    "context": {
      "id": "01M1PJBNW66S3JMW3KBXSPGB0Z",
      "parent_id": null,
      "user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2"
    }
  },
  "logbookEntries": [
    {
      "state": "on",
      "entity_id": "script.resume_hvac_schedule",
      "when": 1788537591.6864436,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2"
    },
    {
      "state": "on",
      "entity_id": "automation.on_schedule_garage_ac",
      "when": 1788537591.6876903,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2",
      "context_state": "on",
      "context_entity_id": "script.resume_hvac_schedule"
    },
    {
      "state": "cool",
      "entity_id": "climate.ac_4",
      "when": 1788537592.9679701,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2",
      "context_state": "on",
      "context_entity_id": "script.resume_hvac_schedule"
    },
    {
      "state": "active",
      "entity_id": "timer.garage_ac_displays_off",
      "when": 1788537593.3615022,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2",
      "context_state": "on",
      "context_entity_id": "script.resume_hvac_schedule"
    },
    {
      "state": "cool",
      "entity_id": "climate.ac_1_mezzanine",
      "when": 1788537593.368711,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2",
      "context_state": "on",
      "context_entity_id": "script.resume_hvac_schedule"
    },
    {
      "state": "on",
      "entity_id": "switch.ac_1_mezzanine_display_lighting",
      "when": 1788537593.608199,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2",
      "context_state": "on",
      "context_entity_id": "script.resume_hvac_schedule"
    },
    {
      "state": "off",
      "entity_id": "script.resume_hvac_schedule",
      "when": 1788537594.109124,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2",
      "context_state": "on",
      "context_entity_id": "script.resume_hvac_schedule"
    },
    {
      "state": "on",
      "entity_id": "switch.ac_2_display_lighting",
      "when": 1788537594.4361377,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2",
      "context_state": "on",
      "context_entity_id": "script.resume_hvac_schedule"
    },
    {
      "state": "on",
      "entity_id": "switch.ac_3_display_lighting",
      "when": 1788537594.6284342,
      "context_user_id": "6fbc6d7453c54ca7b734d02f1b3cbcd2",
      "context_state": "on",
      "context_entity_id": "script.resume_hvac_schedule"
    }
  ]
}

The plot thickens.

Looking at the Card in HA for the three, this is what is displayed…


Notice that the two problem ones are displaying a WIDE arc for the temperature range with the current temp at the bottom. This arc represents that ridiculous error range mentioned above.

When I check in my Smarthings dashboard it lists the acceptable range like the others between 61 and 86.

So the details of the “AC” object exposed by Smartthings Integration shows the following YAML which has the incorrect values for min and max. Now to try to find where these are coming from,

entity_id: climate.ac_2
state: cool
last_changed: '2026-09-04T16:04:39.142Z'
last_updated: '2026-09-04T17:43:36.233Z'
attributes:
  hvac_modes:
    - 'off'
    - auto
    - cool
    - dry
    - fan_only
    - heat
  min_temp: 142
  max_temp: 187
  target_temp_step: 1.8
  fan_modes:
    - auto
    - low
    - medium
    - high
    - turbo
  preset_modes:
    - none
    - sleep
    - quiet
    - boost
    - wind_free
    - wind_free_sleep
  swing_modes:
    - 'off'
    - vertical
    - horizontal
    - both
  current_temperature: 84
  temperature: 83
  fan_mode: auto
  preset_mode: none
  swing_mode: 'off'
  drlc_status_duration: 0
  drlc_status_start: '1970-01-01T00:00:00Z'
  drlc_status_override: false
  drlc_status_level: 0
  friendly_name: AC 2
  supported_features: 441

I would take the opportunity to remove the ACs from SmartThings. They’ll be charging you $5 a month as from next month for the privilege of using their API. Read here for details

How do I locally control them or integrate them into HA then?

Well, while working out another issue (Matter Time Sync) the system required a restart and after that restart the problem has gone away.

Now a simple restart was done prior, and it didn’t solve the problem, but I can’t see how the Matter Time Sync integration could have affected any of this.

AND Home Assistant core update just applied, and after that update the problem is back but with AC 3 and AC4 (one that had it before, and one that didn’t have the issue before).

Search is your friend :slight_smile: Smartthings must be destroyed

Those two numbers aren’t random. 141.8 and 186.8 are exactly what you get when you take 61°F and 86°F and run them through the Celsius-to-Fahrenheit formula a second time, and 61 to 86°F is the usual 16 to 30°C setpoint range on a mini split. So the integration is receiving that unit’s min/max already in Fahrenheit and converting it again, which is why 83 lands outside the “range” while the real range would accept it. I don’t have one of these to test, but the fact that it moves between units across restarts smells like the temperature unit is read per device at startup and sometimes comes back as C, so I’d compare what the two failing units report for temperature scale in the SmartThings API against the two that work.