Danfoss Thermostat

From MiOS
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
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.  
  
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.  It will probably appear first as a thermostat with a red cog (meaning it's not configured), press the activate button on the thermostat repeatedly in rapid succession to wake it up.  According to the documentation it should only require a double-click to wake up, and sometimes it does, but we've also seen thermostats that won't wakeup until you click the activate button 10 times very quickly.  Vera should then be able to configure it, and will change it from a thermostat to a 'generic i/o device' in your unassigned devices page.  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).
+
= General Informations about Danfoss Thermostat =
  
When Vera shows the thermostat as a 'generic i/o' device on your 'unassigned devices page', tell Vera what room it's in, click continue, and then click the '+' button next to it to set the desired wakeup interval and any other options.  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).  When done, click 'save'. It will probably have a red cog 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.
+
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. It will probably appear first as a thermostat with a red cog (meaning it's not configured), press the activate button on the thermostat repeatedly in rapid succession to wake it up. According to the documentation it should only require a double-click to wake up, and sometimes it does, but we've also seen thermostats that won't wakeup until you click the activate button 10 times very quickly. Vera should then be able to configure it, and will change it from a thermostat to a 'generic i/o device' in your unassigned devices page. 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).  
  
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 red '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.
+
When Vera shows the thermostat as a 'generic i/o' device on your 'unassigned devices page', tell Vera what room it's in, click continue, and then click the '+' button next to it to set the desired wakeup interval and any other options. 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). When done, click 'save'. It will probably have a red cog 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 red '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.
 +
 
 +
= 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:
 +
 
 +
# Go to Devices/Luup plugins
 +
# Press Luup Files
 +
# Press Download on the '''D_GenericIO1.xml''' file
 +
# Edit with Wordpad or an XML editor
 +
# Your current content of this file is something like this:
 +
<pre>
 +
<?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>
 +
</pre>
 +
 
 +
6. Add the following code between '''</serviceList>''' and '''</device>''' lines
 +
<pre>
 +
 
 +
<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>
 +
</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.
 +
 
 +
Now you should be able to select the Generic I/O Danfoss Thermostat from the Commands list in the Scenes.

Revision as of 09:28, 30 October 2009

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

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. It will probably appear first as a thermostat with a red cog (meaning it's not configured), press the activate button on the thermostat repeatedly in rapid succession to wake it up. According to the documentation it should only require a double-click to wake up, and sometimes it does, but we've also seen thermostats that won't wakeup until you click the activate button 10 times very quickly. Vera should then be able to configure it, and will change it from a thermostat to a 'generic i/o device' in your unassigned devices page. 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).

When Vera shows the thermostat as a 'generic i/o' device on your 'unassigned devices page', tell Vera what room it's in, click continue, and then click the '+' button next to it to set the desired wakeup interval and any other options. 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). When done, click 'save'. It will probably have a red cog 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 red '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.

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
  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