Difference between revisions of "Location Object"

From Hubitat Documentation
Jump to: navigation, search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The Location object is composed of methods that allow you to interact with the settings and values of a location.  This object is available to Apps and Drivers via the "getLocation()" method or simply using the property "location".
 
  
==Properties==
+
<big>'''We're moving!''' Please visit http://docs2.hubitat.com for the latest documentation.</big>
===<code>id</code>===
 
A unique id for the location, as a Long.
 
===<code>name</code>===
 
The name of the location as a String.
 
===<code>temperatureScale</code>===
 
The temperature scale of the location as a String (C or F).
 
===<code>timeZone</code>===
 
The time zone of the location as a TimeZone object.
 
===<code>zipCode</code>===
 
The zip code of the location as a String.
 
===<code>latitude</code>===
 
The latitude of the location as a BigDecimal.
 
===<code>longitude</code>===
 
The longitude of the location as a BigDecimal.
 
===<code>sunrise</code>===
 
The sunrise of the location as a Date.
 
===<code>sunset</code>===
 
The sunset of the location as a Date.
 
===<code>hubs</code>===
 
A list of hubs for this location as a List<Hub>.  In Hubitat there is only one Hub in the list.
 
===<code>hub</code>===
 
The Hub for this location.
 
  
 
+
<big>
==Methods==
+
This document is available at: http://docs2.hubitat.com/en/developer/location-object
===<code>getFormattedLatitude</code>===
+
</big>
===<code>getFormattedLongitude</code>===
 
===<code>getTimeFormat</code>===
 
===<code>getModes</code>===
 
===<code>getMode</code>===
 
===<code>setMode</code>===
 
===<code>currentMode</code>===
 

Latest revision as of 19:44, 25 September 2022

We're moving! Please visit http://docs2.hubitat.com for the latest documentation.

This document is available at: http://docs2.hubitat.com/en/developer/location-object