1
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-05-04 22:19:38 +00:00
fhem-mirror/FHEM/lib/SWAP/template.xml
justme-1968 a3b151955f added 34_panStamp, 34_SWAP.pm and FHEM/lib/SWAP
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@3439 2b470e98-0d58-463d-a4d8-8e2adae1ed80
2013-07-17 12:02:16 +00:00

45 lines
1.9 KiB
XML

<?xml version="1.0"?>
<device>
<developer>Developer_name</developer>
<product>Product name or short description</product>
<!-- pwrdownmode: power-down flag. If true, this device sleeps between transmissions.
Otherwise, it continuously listens to the SWAP network -->
<pwrdownmode>true/false</pwrdownmode>
<!-- Configuration section -->
<config>
<!-- Configuration register. Register ID's start from 11 -->
<reg name="Register name" id="reg_id">
<!-- Configuration parameter -->
<!-- Type of parameter: "bin": Binary, "num": Number, "str": String -->
<param name="Parameter name" type="bin|num|str">
<!-- position: byte.bit (format: B.b or B) position of the parameter within the register -->
<position>B.b</position>
<!-- size: size in bytes.bits (format: B.b or B) of the parameter within the register -->
<size>B.b</size>
<!-- default: default value -->
<default>default value</default>
</param>
</reg>
</config>
<!-- Regular endpoint section. Here comes sensor readings, actuator states, etc. -->
<regular>
<!-- Regular register. Register ID's start from 11 -->
<reg name="Register name" id="reg_id">
<!-- Endpoint -->
<!-- Type of endpoint: "bin": Binary, "num": Number, "str": String -->
<!-- Direction: "inp": input, "out": output -->
<endpoint name="Endpoint name" type="bin|num|str" dir="inp|out">
<!-- position: byte.bit (format: B.b or B) position of the endpoint within the register -->
<position>B.b</position>
<!-- size: size in bytes.bits (format: B.b or B) of the endpoint within the register -->
<size>B.b</size>
<!-- units: list of units for this endpoint -->
<units>
<!-- unit. Value to be displayed = factor * (endpoint value) + offset name -->
<unit name="name" factor="+-F.f" offset="+-O.o"/>
</units>
</endpoint>
</reg>
</regular>
</device>