Fix encoding of RoomTemp and State as number instead of string