move hm-id to devParam PROGMEM, some code optimizations, reduce consumption of flash rom