setLevel on on/off causing error and not changing thermostat

Hi all,

Just noticed this was happening. I have a few dimmers and on/off switches and in a few of my routines, I turn the lights on, set the dimmers to a specific level, and change the thermostat. What I noticed through the log is that whenever setLevel is run on a device that doesn’t have dimmer, it returns an error, making smartthings unable to change my thermostat level. The only solution I’ve run into thus far is that I either:

  1. Take off dimmer setLevel on my routine
  2. Take off on/off lights on routine and add as part of another routine
  3. Take off the thermostat and run on separate routine

…unless anyone has any suggestions? Here’s the log:

72232297-edf2-4175-aab4-468fb86a56e7  7:23:15 PM: trace getPhrases(), state.welcomeIssue = null
581c714a-1a90-4d9d-b128-38906c7877de  7:21:49 PM: debug 01
581c714a-1a90-4d9d-b128-38906c7877de  7:21:49 PM: trace read attr - raw: 94670A0019120049110100A4010000, dni: 9467, endpoint: 0A, cluster: 0019, size: 12, attrId: 4900, encoding: 11, value: 000001a40001
f11b553f-1525-4863-a818-ea1387398eb1  7:20:56 PM: debug updating TS
f11b553f-1525-4863-a818-ea1387398eb1  7:20:56 PM: debug event from: Loft Hallway Lights, value: 99, source: DEVICE, description: zw device: 14, command: 2603, payload: 63
f11b553f-1525-4863-a818-ea1387398eb1  7:20:56 PM: debug updating TS
f11b553f-1525-4863-a818-ea1387398eb1  7:20:56 PM: debug event from: Loft Hallway Lights, value: 99, source: DEVICE, description: zw device: 14, command: 2603, payload: 63
5e5d75bd-15e8-413d-874e-e5de8a4129ac  7:20:52 PM: debug Parse returned Desk Lamp switch is on
5e5d75bd-15e8-413d-874e-e5de8a4129ac  7:20:52 PM: trace data: [1, 0]
5e5d75bd-15e8-413d-874e-e5de8a4129ac  7:20:52 PM: trace SmartShield(clusterId: 0x0006, command: 0x0b, data: [0x01, 0x00], destinationEndpoint: 0x01, direction: 0x01, isClusterSpecific: false, isManufacturerSpecific: false, manufacturerId: 0x0000, messageType: 0x00, number: null, options: 0x0140, profileId: 0x0104, senderShortId: 0x7bca, sourceEndpoint: 0x0a, text: null)
5e5d75bd-15e8-413d-874e-e5de8a4129ac  7:20:52 PM: trace catchall: 0104 0006 0A 01 0140 00 7BCA 00 00 0000 0B 01 0100
5e5d75bd-15e8-413d-874e-e5de8a4129ac  7:20:51 PM: trace data: [4, 0]
5e5d75bd-15e8-413d-874e-e5de8a4129ac  7:20:51 PM: trace SmartShield(clusterId: 0x0008, command: 0x0b, data: [0x04, 0x00], destinationEndpoint: 0x01, direction: 0x01, isClusterSpecific: false, isManufacturerSpecific: false, manufacturerId: 0x0000, messageType: 0x00, number: null, options: 0x0140, profileId: 0x0104, senderShortId: 0x7bca, sourceEndpoint: 0x0a, text: null)
5e5d75bd-15e8-413d-874e-e5de8a4129ac  7:20:51 PM: trace catchall: 0104 0008 0A 01 0140 00 7BCA 00 00 0000 0B 01 0400
581c714a-1a90-4d9d-b128-38906c7877de  7:20:51 PM: trace data: [4, 0]
581c714a-1a90-4d9d-b128-38906c7877de  7:20:51 PM: trace SmartShield(clusterId: 0x0008, command: 0x0b, data: [0x04, 0x00], destinationEndpoint: 0x01, direction: 0x01, isClusterSpecific: false, isManufacturerSpecific: false, manufacturerId: 0x0000, messageType: 0x00, number: null, options: 0x0140, profileId: 0x0104, senderShortId: 0x9467, sourceEndpoint: 0x0a, text: null)
581c714a-1a90-4d9d-b128-38906c7877de  7:20:51 PM: trace catchall: 0104 0008 0A 01 0140 00 9467 00 00 0000 0B 01 0400
**->[THIS LINE HERE] ->14b90add-1a33-4881-9b3a-f7d962a75e21  7:20:51 PM: error java.lang.IllegalArgumentException: Command 'setLevel' is not supported. Supported commands: [on, off, poll, refresh, indicatorWhenOn, indicatorWhenOff, indicatorNever] @ line 322**
14b90add-1a33-4881-9b3a-f7d962a75e21  7:20:50 PM: trace getSuffix(), index: null
14b90add-1a33-4881-9b3a-f7d962a75e21  7:20:50 PM: trace prefix(am'): I am
14b90add-1a33-4881-9b3a-f7d962a75e21  7:20:50 PM: trace settings: [thermostats:[Upstairs Thermostat], coolingSetpoint:72, newMode:Home, pushNotification:false, dimmerLevel:100%, onSwitches:[Bed Lamp, Desk Lamp, Loft Hallway Lights, Drive Way Lights, Front Porch Light]]
14b90add-1a33-4881-9b3a-f7d962a75e21  7:20:50 PM: debug HH execute(), newMode: Home
5e5d75bd-15e8-413d-874e-e5de8a4129ac  7:20:51 PM: trace setLevel(99)
581c714a-1a90-4d9d-b128-38906c7877de  7:20:51 PM: trace setLevel(99)
581c714a-1a90-4d9d-b128-38906c7877de  7:20:50 PM: debug Parse returned Bed La

Thanks for the StackTace! We let one of our developers know. I’ll keep you guys posted with a fix.

1 Like

Having the same issue with ecobee3

I should note in regards to replication,

It seems to happen when there is a dimmable “thing” and a non dimmable “thing” at the same time where the routine is setting dimmers to a level with a thermostat down the line. If I have my routine set for all non dimmable switches and have a dim level set (yes I know, you’d never do this), then the thermostat will change. However, once you add a switch that can be dimmed, then the thermostat wont change.

It should also be noted that the lights still run fully through the routine regardless. It’s the thermostat that doesn’t change.

This is the strangest thing ever! Makes no sense what so ever. Take this, I have two routines, same switches, same bulbs. One sets the levels at 10%, the other at 90% and locks the doors. And guess what the first one throws the error, the second doesn’t…