[RESOLVED] Icon State.. whats wrong with my code

Hi

I have the following code in my JSON:

{
"flashicon": "icons/ikettle.png",
 "halloIconsDir": "pics\/hallo",
  "state_icons": [
    "iKettle_0.png",
    "iKettle_100.png",

  ],
  "x": "2",
  "y": "4",
  "iconText": "0",
  "inScene": "1",
  "DisplayStatus": {
    "Service": "urn:sharedfunctions-com:serviceId:iKettle1",
    "Variable": "KettleState",
    "MinValue": "0",
    "MaxValue": "1"
  },

and in my implementation file I have:

luup.variable_set(SID, "KettleState", "1", parentDevice)

Yet it never affects the icon… what am I doing wrong,

I have verified the images a loaded correctly by visiting the urls directly.

Hello,

you have change the name

try

  "state_icons": [
    "ikettle_0.png",
    "ikettle_100.png"
  ],

ARRRGGHHH!!..
I have wasted all morning on a capital letter…!

Thanks so much vosmont

The most frustrating programming mistakes always lead to a syntax or simple error. That’s from my experience. Sometimes it is good to step away for a bit a come back to tackle the issue with fresh eyes.

  • Garrett