[Feature] polish code
[Feature] change log key
[Feature] change help url
[Feature] add device_key
[Feature] add state and remove useless state