* Fix thermostat payload issue * fix test payload * style issue * handle both string and value object