I’m very new with HA coming from Hubitat and I’m having an issue changing an image based on the state of a light bulb
bulb off - picture a
bulb on - picture b
You need to surround your code with 3 backticks (```) for it to format correctly.
I’m guessing you’re using a Picture Elements card, in which case the type should be “picture-elements”, not “image”.
The link I included shows the format of “state_image” - it does not have “true” after it. Assuming you’ve got ‘on’ indented below it, that would make it invalid YAML because “x: y” cannot have child (indented) lines below it, whereas “x:” does.
There may be other indenting issues, but without proper formatting it is impossible to tell.