Added units for temperature.
Implemented addition of component to a group based on a custom state.