The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024

Latest message you have seen: Re: Duplicated xAP messages


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Topic 1: Base Level Status Schema


  • Subject: Re: Topic 1: Base Level Status Schema
  • From: Stuart Booth
  • Date: Tue, 10 Jun 2003 20:34:00 +0000

On Tue, 10 Jun 2003 17:47:26 +0100, "Kevin Hawkins"
<<a
href="/group/xAP_developer/post?postID=7p3L3igrZZA-AeopiAq3SK8Wp-ybU8_qycz99SHOTgF-vqSTfcFVUaZoZWjApN7KnqlAY7-PqvgNITNdc1Zb3tL4">lists@u...</a>>
wrote:

>I'm trying to nudge this topic up to the top again so we can decide
>something for the developers looking at including xAP support in
existing
>controllers.
>
>Are we happy with as previously stated..????
>
>State as
>ON  OFF  UNKNOWN  NA (not applicable)
>
>And also for LEVEL expressed as a percentage eg 20% 88.3% or again
UNKNOWN
>or NA
>
>Do we have a case for the relative percent support for level eg +20% ?

So,

Level=[+-]NNN[.DD]  UNKNOWN

Level=20 (fixed value setting)
Level=+20 (increase by 20 from current level)
Level=-20 (decrease by 20 from current level)

NNN may be any number of digits appropriate to the device.
DD the same, but optional.

All good. A very common pattern that one I'd say.

Bit harder to do inc/decrementing where the level isn't "0...100"
(or
whatever), e.g. for a balance type level of "-100...0...+100"

But that's a separate "xAP name/value pattern" I think.

I'm already using the +NNN type value pattern in several of my schema,
and I've encapsulated is in a separate class in my framework, it's so
fundamental.

I don't have decimal support in it, nor the ability to accept UNKNOWN
though. I'll leave that class alone as it'll likely be used in some
schema, whereas a Level value is slightly more specialised.

You guys just keep coming up with these ideas and I'll never get my
xAPplications finished!!! ;-)

S
--
Stuart Booth
xAPFramework.net - a reusable xAP framework for .net

<a href="http://www.xapframework.net/";>http://www.xapframework.net/</a>
<a
href="/group/xAP_developer/post?postID=9j43d2fb8aUM2KFEewMxtqCkQkYDJLrZkTNyKzFrTZQ7Tm0aCrUhAC4UxyUx0wYLrsb3RIzcIkFO2LhWuw">stuart@x...</a>





xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.