I have two command line switches in my home automation. In my configuration.yaml, I am using oncmd / offcmd/ statecmd. I turn the switches on in the States view. When I review the logbook, I see lots of on/off transitions. Everything looks OK in the States view.
Is this because of the statecmd script? Should I remove the statecmd option?