Fixing : - the temperature in if statement was applicable on any device
- a conflict was here between select and selected in the grammar
- when a property exist as a state it does not need to appear in the grammar