<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://docs.hubitat.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=WesleyMC</id>
	<title>Hubitat Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://docs.hubitat.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=WesleyMC"/>
	<link rel="alternate" type="text/html" href="https://docs.hubitat.com/index.php?title=Special:Contributions/WesleyMC"/>
	<updated>2026-05-01T13:01:17Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://docs.hubitat.com/index.php?title=Talk:App_Object&amp;diff=2520</id>
		<title>Talk:App Object</title>
		<link rel="alternate" type="text/html" href="https://docs.hubitat.com/index.php?title=Talk:App_Object&amp;diff=2520"/>
		<updated>2020-02-11T18:12:04Z</updated>

		<summary type="html">&lt;p&gt;WesleyMC: Created page with &amp;quot;The documentation page indicates that '''addChildDevice()''' has four arguments.  * String namespace * String typeName * String deviceNetworkId * Map properties = [:])  Exampl...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The documentation page indicates that '''addChildDevice()''' has four arguments.&lt;br /&gt;
&lt;br /&gt;
* String namespace&lt;br /&gt;
* String typeName&lt;br /&gt;
* String deviceNetworkId&lt;br /&gt;
* Map properties = [:])&lt;br /&gt;
&lt;br /&gt;
Examples, like [https://github.com/hubitat/HubitatPublic/blob/master/example-apps/averageIlluminance.groovy averageIlluminance.groovy] suggest a fifth argument is required. From that file, see the &amp;quot;null&amp;quot; argument in the following example:&lt;br /&gt;
&lt;br /&gt;
  addChildDevice(&amp;quot;hubitat&amp;quot;, &amp;quot;Virtual Illuminance Sensor&amp;quot;, &amp;quot;AverageLux_${app.id}&amp;quot;, '''null''', [label: thisName, name: thisName])&lt;/div&gt;</summary>
		<author><name>WesleyMC</name></author>
		
	</entry>
	<entry>
		<id>https://docs.hubitat.com/index.php?title=Talk:Location_Object&amp;diff=2519</id>
		<title>Talk:Location Object</title>
		<link rel="alternate" type="text/html" href="https://docs.hubitat.com/index.php?title=Talk:Location_Object&amp;diff=2519"/>
		<updated>2020-02-04T16:49:45Z</updated>

		<summary type="html">&lt;p&gt;WesleyMC: Created page with &amp;quot;The '''location.getModes()''' function lacks documentation. The SmartThings [https://docs.smartthings.com/en/latest/ref-docs/location-ref.html#getmodes getModes()] documentati...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The '''location.getModes()''' function lacks documentation. The SmartThings [https://docs.smartthings.com/en/latest/ref-docs/location-ref.html#getmodes getModes()] documentation suggests a return type of '''List&amp;lt;Mode&amp;gt;'''. Hubitat does not appear to have a '''Mode''' type; so, the following generates an error:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;List&amp;lt;Mode&amp;gt; discoveredModes = location.getModes()&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Through experimentation, it does look like location.getModes() returns a list of &amp;lt;id(string), name(string)&amp;gt; pairs; so, code like the following does work:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;def discoveredModes = location.getModes()&amp;lt;br/&amp;gt;&lt;br /&gt;
paragraph &amp;quot;@0 id: ${discoveredModes[0].id} \tname: ${discoveredModes[0].name}&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
paragraph &amp;quot;@1 id: ${discoveredModes[1].id} \tname: ${discoveredModes[1].name}&amp;quot;&amp;lt;br/&amp;gt;&lt;br /&gt;
paragraph &amp;quot;@2 id: ${discoveredModes[2].id} \tname: ${discoveredModes[2].name}&amp;quot;&amp;lt;/code&amp;gt;&lt;/div&gt;</summary>
		<author><name>WesleyMC</name></author>
		
	</entry>
</feed>