Danfoss Thermostat

From MiOS
(Difference between revisions)
Jump to: navigation, search
m
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Hardware]]
+
'''Information applies to Danfoss Plus-w only (RA: 013G2755, RA-K: 013G2735, RAVL: 013G2795, RAV: 013G2785).'''
 +
 
 
The Danfoss European Radiator knob is different from any other Z-Wave device, and does not properly implement the required Z-Wave commands, so the process to use it is non-standard.  
 
The Danfoss European Radiator knob is different from any other Z-Wave device, and does not properly implement the required Z-Wave commands, so the process to use it is non-standard.  
  
 
= General Informations about Danfoss Thermostat  =
 
= General Informations about Danfoss Thermostat  =
  
Pair the thermostat like normal. To get it to pair you may have to press the black button on the thermostat several times. It's not always easy to get it to pair. You may have to tap it several times in rapid succession. Sometimes you have to tap the black button 10 times or so, wait, tap it again 10 times or so, wait, try to tap it very fast 10 times, and so on. This is a problem with the Danfoss thermostat itself, but if you're patient it will generally always pair eventually.
+
Pair the thermostat like normal. To get it to pair you may have to press the black button on the thermostat several times. It's not always easy to get it to pair. You may have to tap it several times in rapid succession. Sometimes you have to tap the black button 10 times or so, wait, tap it again 10 times or so, wait, try to tap it very fast 10 times, and so on. This is a problem with the Danfoss thermostat itself, but if you're patient it will generally always pair eventually.  
  
It will probably appear first as a thermostat and marked as not yet being configured because it's a battery operated device and must wake up before it can be configured. So after it's paired and you set it in the UI, you can either wait about an hour and it will eventually wake up on it's own and get properly configured, or to wake it up immediately, you can press the activate button on the thermostat repeatedly in rapid succession, just like you did to pair it. Just like with pairing sometimes you have to repeat several times. When it's woken up, you'll see in the UI that it's being configured.
+
It will probably appear first as a thermostat and marked as not yet being configured because it's a battery operated device and must wake up before it can be configured. So after it's paired and you set it in the UI, you can either wait about an hour and it will eventually wake up on it's own and get properly configured, or to wake it up immediately, you can press the activate button on the thermostat repeatedly in rapid succession, just like you did to pair it. Just like with pairing sometimes you have to repeat several times. When it's woken up, you'll see in the UI that it's being configured. The thermostat doesn't always stay awake long enough to complete the configuration process. If you wake it up and you see in Vera's UI an error, wait 45 minutes, and then wake it up again. Vera will then continue to configure it where Vera left off the last time. You may need to repeat this process a few times. You have to be patient. Do not click "Reconfigure" in Vera's UI. This causes the configuration to start all over again from the top at step #1. The key is to get the thermostat to wake up every 45 minutes or so until the configuration process is complete. This is a special process for the Danfoss thermostat.
  
According to the documentation it should only require a double-click to pair or wake up, and sometimes it does, but we've also seen thermostats that won't wakeup without several re-attempts, so just be patient. Once it's awake, Vera should then be able to configure it, and will change it from a thermostat to a 'generic i/o device'. This is because the Danfoss isn't really a thermostat. It doesn't have temperature set points, or a thermometer, or heat/cool modes. It's just a 2 mode switch (daylight mode and energy saving mode), and 'off' puts it in Energy Saving Mode, and 'on' puts it in daylight mode.
+
According to the documentation it should only require a double-click to pair or wake up, and sometimes it does, but we've also seen thermostats that won't wakeup without several re-attempts, so just be patient. Once Vera is able to configure it, it will change in Vera's UI from a thermostat to a 'generic i/o device'. This is because the Danfoss isn't really a thermostat. It doesn't have temperature set points, or a thermometer, or heat/cool modes. It's just a 2 mode switch (daylight mode and energy saving mode), and 'off' puts it in Energy Saving Mode, and 'on' puts it in daylight mode.  
  
When Vera shows the thermostat as a 'generic i/o' device with the description "Danfoss Radiator" it's ready to be used. Note that the thermostat only wakes up periodically to accept commands. So when you press off or on, the command is queued until the next time the thermostat wakes up. You can reduce the wakeup interval so it wakeups or more often (click the + button on Vera's device page), but note that it will reduce battery time. The minimum wakeup interval is 300 seconds (5 minutes), and the default is 1800 seconds (30 minutes). When done, click 'save'. It will probably have a message needing to be reconfigured again because every time you change something, Vera needs to re-configure it, but can only do that when you press the activate button. Again, press the activate button repeatedly to wake it up and confirm you get the green cog. Once you have the 'green cog', click the Save button again (even it's grayed out), to be sure the current configuration status is saved.  
+
When Vera shows the thermostat as a 'generic i/o' device with the description "Danfoss Radiator" it's ready to be used. Note that the thermostat only wakes up periodically to accept commands. So when you press off or on, the command is queued until the next time the thermostat wakes up. You can reduce the wakeup interval so it wakeups or more often (click the + button on Vera's device page), but note that it will reduce battery time. The minimum wakeup interval is 300 seconds (5 minutes), and the default is 1800 seconds (30 minutes). When done, click 'save'. It will probably have a message needing to be reconfigured again because every time you change something, Vera needs to re-configure it, but can only do that when you press the activate button. Again, press the activate button repeatedly to wake it up and confirm you get the green cog. Once you have the 'green cog', click the Save button again (even it's grayed out), to be sure the current configuration status is saved.  
  
 
To use it: the 'Off' button puts the thermostat in 'energy saving' (ie night) mode, and the 'On' in 'normal' (ie day) mode. You can add the Danfoss thermostat to scenes like any other Z-Wave device. When you run the 'off' or 'on' commands, you will get a 'failure' because they failed as the Danfoss is asleep. But the next time the Danfoss wakes up, Vera will re-try the failed command and turn it on or off.  
 
To use it: the 'Off' button puts the thermostat in 'energy saving' (ie night) mode, and the 'On' in 'normal' (ie day) mode. You can add the Danfoss thermostat to scenes like any other Z-Wave device. When you run the 'off' or 'on' commands, you will get a 'failure' because they failed as the Danfoss is asleep. But the next time the Danfoss wakes up, Vera will re-try the failed command and turn it on or off.  
Line 18: Line 19:
 
Since the Danfoss Thermostat it's just a 2 mode switch ('daylight mode and energy saving mode' or let's say On/Off mode) you can tweak it in order to include it in a Scene and add an Event. The procedure is this:  
 
Since the Danfoss Thermostat it's just a 2 mode switch ('daylight mode and energy saving mode' or let's say On/Off mode) you can tweak it in order to include it in a Scene and add an Event. The procedure is this:  
  
# Go to Devices/Luup plugins  
+
#Go to Devices/Luup plugins. ''Note: On UI4 you will need to go to MiOS Developers &gt; Luup Files''<br>
# Press Luup Files  
+
#Press Luup Files<br>
# Press Download on the '''D_GenericIO1.xml''' file  
+
#Press Download on the '''D_GenericIO1.xml''' file  
# Edit with Wordpad or an XML editor  
+
#Edit with Wordpad or an XML editor  
# Your current content of this file is something like this:
+
#Your current content of this file is something like this:
<pre>
+
<pre>&lt;?xml version="1.0"?&gt;
<?xml version="1.0"?>
+
&lt;root xmlns="urn:schemas-upnp-org:device-1-0"&gt;
<root xmlns="urn:schemas-upnp-org:device-1-0">
+
   &lt;specVersion&gt;
   <specVersion>
+
     &lt;major&gt;1&lt;/major&gt;
     <major>1</major>
+
     &lt;minor&gt;0&lt;/minor&gt;
     <minor>0</minor>
+
   &lt;/specVersion&gt;
   </specVersion>
+
   &lt;device&gt;
   <device>
+
     &lt;deviceType&gt;urn:schemas-micasaverde-com:device:GenericIO:1&lt;/deviceType&gt;
     <deviceType>urn:schemas-micasaverde-com:device:GenericIO:1</deviceType>
+
     &lt;serviceList&gt;
     <serviceList>
+
       &lt;service&gt;
       <service>
+
         &lt;serviceType&gt;urn:schemas-micasaverde-com:service:HaDevice:1&lt;/serviceType&gt;
         <serviceType>urn:schemas-micasaverde-com:service:HaDevice:1</serviceType>
+
         &lt;serviceId&gt;urn:micasaverde-com:serviceId:HaDevice1&lt;/serviceId&gt;
         <serviceId>urn:micasaverde-com:serviceId:HaDevice1</serviceId>
+
         &lt;controlURL&gt;/upnp/control/HaDevice1&lt;/controlURL&gt;
         <controlURL>/upnp/control/HaDevice1</controlURL>
+
         &lt;eventSubURL&gt;/upnp/event/HaDevice1&lt;/eventSubURL&gt;
         <eventSubURL>/upnp/event/HaDevice1</eventSubURL>
+
         &lt;SCPDURL&gt;S_HaDevice1.xml&lt;/SCPDURL&gt;
         <SCPDURL>S_HaDevice1.xml</SCPDURL>
+
       &lt;/service&gt;
       </service>
+
       &lt;service&gt;
       <service>
+
         &lt;serviceType&gt;urn:schemas-upnp-org:service:SwitchPower:1&lt;/serviceType&gt;
         <serviceType>urn:schemas-upnp-org:service:SwitchPower:1</serviceType>
+
         &lt;serviceId&gt;urn:upnp-org:serviceId:SwitchPower1&lt;/serviceId&gt;
         <serviceId>urn:upnp-org:serviceId:SwitchPower1</serviceId>
+
         &lt;SCPDURL&gt;S_SwitchPower1.xml&lt;/SCPDURL&gt;
         <SCPDURL>S_SwitchPower1.xml</SCPDURL>
+
       &lt;/service&gt;
       </service>
+
     &lt;/serviceList&gt;
     </serviceList>
+
   &lt;/device&gt;
   </device>
+
&lt;/root&gt;
</root>
+
</pre>  
</pre>
+
6. Add the following code between '''&lt;/serviceList&gt;''' and '''&lt;/device&gt;''' lines  
 
+
<pre> &lt;sceneList&gt;
6. Add the following code between '''</serviceList>''' and '''</device>''' lines
+
<pre>
+
 
+
<sceneList>
+
  
 
{
 
{
Line 79: Line 76:
 
}
 
}
 
}
 
}
</sceneList>
+
&lt;/sceneList&gt;
  <eventList>
+
  &lt;eventList&gt;
 
{
 
{
 
"event_1":{
 
"event_1":{
 
"label": "A device is turned on or off",
 
"label": "A device is turned on or off",
 
"serviceId": "urn:upnp-org:serviceId:SwitchPower1",
 
"serviceId": "urn:upnp-org:serviceId:SwitchPower1",
"argumentList" :
+
"argumentList"&nbsp;:
 
{
 
{
"argument_1" :
+
"argument_1"&nbsp;:
 
{
 
{
 
"dataType": "boolean",
 
"dataType": "boolean",
 
"defaultValue": "1",
 
"defaultValue": "1",
"allowedValueList" :  
+
"allowedValueList"&nbsp;:  
 
{
 
{
"Off" : "0",
+
"Off"&nbsp;: "0",
"On" : "1"
+
"On"&nbsp;: "1"
 
},
 
},
 
"name": "Status",
 
"name": "Status",
Line 104: Line 101:
 
}
 
}
 
}
 
}
   </eventList>
+
   &lt;/eventList&gt;
</pre>
+
</pre>  
 +
7. Upload the new file called exactly '''D_GenericIO1.xml''' by pressing "Broswe", check the "Restart Luup after upload" and press "Go". The old file will be overwritten and the Luup will be restarted in order to load the new file.
  
7. Upload the new file called exactly '''D_GenericIO1.xml''' by pressing "Broswe", check the "Restart Luup after upload" and press "Go". The old file will be overwritten and the Luup will be restarted in order to load the new file.
+
Now you should be able to select the Generic I/O Danfoss Thermostat from the Commands list in the Scenes.  
  
Now you should be able to select the Generic I/O Danfoss Thermostat from the Commands list in the Scenes.
+
[[Category:Hardware]]

Latest revision as of 20:06, 15 October 2012

Information applies to Danfoss Plus-w only (RA: 013G2755, RA-K: 013G2735, RAVL: 013G2795, RAV: 013G2785).

The Danfoss European Radiator knob is different from any other Z-Wave device, and does not properly implement the required Z-Wave commands, so the process to use it is non-standard.

[edit] General Informations about Danfoss Thermostat

Pair the thermostat like normal. To get it to pair you may have to press the black button on the thermostat several times. It's not always easy to get it to pair. You may have to tap it several times in rapid succession. Sometimes you have to tap the black button 10 times or so, wait, tap it again 10 times or so, wait, try to tap it very fast 10 times, and so on. This is a problem with the Danfoss thermostat itself, but if you're patient it will generally always pair eventually.

It will probably appear first as a thermostat and marked as not yet being configured because it's a battery operated device and must wake up before it can be configured. So after it's paired and you set it in the UI, you can either wait about an hour and it will eventually wake up on it's own and get properly configured, or to wake it up immediately, you can press the activate button on the thermostat repeatedly in rapid succession, just like you did to pair it. Just like with pairing sometimes you have to repeat several times. When it's woken up, you'll see in the UI that it's being configured. The thermostat doesn't always stay awake long enough to complete the configuration process. If you wake it up and you see in Vera's UI an error, wait 45 minutes, and then wake it up again. Vera will then continue to configure it where Vera left off the last time. You may need to repeat this process a few times. You have to be patient. Do not click "Reconfigure" in Vera's UI. This causes the configuration to start all over again from the top at step #1. The key is to get the thermostat to wake up every 45 minutes or so until the configuration process is complete. This is a special process for the Danfoss thermostat.

According to the documentation it should only require a double-click to pair or wake up, and sometimes it does, but we've also seen thermostats that won't wakeup without several re-attempts, so just be patient. Once Vera is able to configure it, it will change in Vera's UI from a thermostat to a 'generic i/o device'. This is because the Danfoss isn't really a thermostat. It doesn't have temperature set points, or a thermometer, or heat/cool modes. It's just a 2 mode switch (daylight mode and energy saving mode), and 'off' puts it in Energy Saving Mode, and 'on' puts it in daylight mode.

When Vera shows the thermostat as a 'generic i/o' device with the description "Danfoss Radiator" it's ready to be used. Note that the thermostat only wakes up periodically to accept commands. So when you press off or on, the command is queued until the next time the thermostat wakes up. You can reduce the wakeup interval so it wakeups or more often (click the + button on Vera's device page), but note that it will reduce battery time. The minimum wakeup interval is 300 seconds (5 minutes), and the default is 1800 seconds (30 minutes). When done, click 'save'. It will probably have a message needing to be reconfigured again because every time you change something, Vera needs to re-configure it, but can only do that when you press the activate button. Again, press the activate button repeatedly to wake it up and confirm you get the green cog. Once you have the 'green cog', click the Save button again (even it's grayed out), to be sure the current configuration status is saved.

To use it: the 'Off' button puts the thermostat in 'energy saving' (ie night) mode, and the 'On' in 'normal' (ie day) mode. You can add the Danfoss thermostat to scenes like any other Z-Wave device. When you run the 'off' or 'on' commands, you will get a 'failure' because they failed as the Danfoss is asleep. But the next time the Danfoss wakes up, Vera will re-try the failed command and turn it on or off.

[edit] Manual Danfoss Thermostat inclusion in Scenes/Events

Since the Danfoss Thermostat it's just a 2 mode switch ('daylight mode and energy saving mode' or let's say On/Off mode) you can tweak it in order to include it in a Scene and add an Event. The procedure is this:

  1. Go to Devices/Luup plugins. Note: On UI4 you will need to go to MiOS Developers > Luup Files
  2. Press Luup Files
  3. Press Download on the D_GenericIO1.xml file
  4. Edit with Wordpad or an XML editor
  5. Your current content of this file is something like this:
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <device>
    <deviceType>urn:schemas-micasaverde-com:device:GenericIO:1</deviceType>
    <serviceList>
      <service>
        <serviceType>urn:schemas-micasaverde-com:service:HaDevice:1</serviceType>
        <serviceId>urn:micasaverde-com:serviceId:HaDevice1</serviceId>
        <controlURL>/upnp/control/HaDevice1</controlURL>
        <eventSubURL>/upnp/event/HaDevice1</eventSubURL>
        <SCPDURL>S_HaDevice1.xml</SCPDURL>
      </service>
      <service>
        <serviceType>urn:schemas-upnp-org:service:SwitchPower:1</serviceType>
        <serviceId>urn:upnp-org:serviceId:SwitchPower1</serviceId>
        <SCPDURL>S_SwitchPower1.xml</SCPDURL>
      </service>
    </serviceList>
  </device>
</root>

6. Add the following code between </serviceList> and </device> lines

	<sceneList>

{
	"group_1":{
		"cmd_1": 
		{
			"label": "ON",
			"serviceId": "urn:upnp-org:serviceId:SwitchPower1",
			"action": "SetTarget",
			"arguments":
			{
				"newTargetValue": "1"
			}
		},
		"cmd_2": 
		{
			"label": "OFF",
			"serviceId": "urn:upnp-org:serviceId:SwitchPower1",
			"action": "SetTarget",
			"arguments":
			{
				"newTargetValue": "0"
			}
		}
	}
}	
	</sceneList>
 	<eventList>
{
	"event_1":{
		"label": "A device is turned on or off",
		"serviceId": "urn:upnp-org:serviceId:SwitchPower1",
		"argumentList" :
		{
			"argument_1" :
			{
				"dataType": "boolean",
				"defaultValue": "1",
				"allowedValueList" : 
				{
					"Off" : "0",
					"On" : "1"
				},
				"name": "Status",
				"comparisson": "=",
				"prefix": "Which mode",
				"suffix": ""
			}
		}
	}
}
  </eventList>	

7. Upload the new file called exactly D_GenericIO1.xml by pressing "Broswe", check the "Restart Luup after upload" and press "Go". The old file will be overwritten and the Luup will be restarted in order to load the new file.

Now you should be able to select the Generic I/O Danfoss Thermostat from the Commands list in the Scenes.

Personal tools