paperUI works, CLI doesnt

Make a change (via control, turn a light on or turn it off) works via paperui, but if I do same change via CLI, it doesnt. The CLI will show item status as changed, but the device itself does not change. Same item, changed via the papui, shows changed and actually changes state (turns the light on or off).

What have I done wrong?