Added where in getDeviceInfo() for thermostats

Added where in getDeviceInfo() for thermostats.
Renamed $protect_where_map to $where_map
Check that where_id property exists

Avoid Undefined property warning if where_id is not set on device
Merge pull request #31 from oyarzun/master

Adds where property in getDeviceInfo for themostats