Add smart plug in picto settings
Fix bug in porgram state trace