Author Topic: Beta testers (Old Post see above))  (Read 8417 times)

Offline Ap15e

  • Beta Testers
  • Sr. Hero Member
  • *****
  • Posts: 2000
  • Karma: +11/-0
Re: Beta testers needed for dimmer panel
« Reply #15 on: May 06, 2011, 04:45:25 am »
@TimAlls

You might find the source code of LOUIS4Vera useful:
http://forum.micasaverde.com/index.php?topic=5232.0

LOUIS4Vera supports the following services:

Code: [Select]
local URN_Dimming1                  = 'urn:upnp-org:serviceId:Dimming1'
local URN_SwitchPower1              = 'urn:upnp-org:serviceId:SwitchPower1'
local URN_SecuritySensor1           = 'urn:micasaverde-com:serviceId:SecuritySensor1'
local URN_TemperatureSensor1        = 'urn:upnp-org:serviceId:TemperatureSensor1'
local URN_HVAC_OperatingState1      = 'urn:micasaverde-com:serviceId:HVAC_OperatingState1'
local URN_HVAC_UserOperatingMode1   = 'urn:upnp-org:serviceId:HVAC_UserOperatingMode1'
local URN_HVAC_FanOperatingMode1    = 'urn:upnp-org:serviceId:HVAC_FanOperatingMode1'
local URN_TemperatureSetpoint1_Heat = 'urn:upnp-org:serviceId:TemperatureSetpoint1_Heat'                                           
local URN_TemperatureSetpoint1_Cool = 'urn:upnp-org:serviceId:TemperatureSetpoint1_Cool'
local URN_PanTiltZoom1              = 'urn:micasaverde-com:serviceId:PanTiltZoom1'
local URN_DoorLock1                 = 'urn:micasaverde-com:serviceId:DoorLock1'
local URN_WindowCovering1           = 'urn:upnp-org:serviceId:WindowCovering1'
local URN_HumiditySensor1           = 'urn:micasaverde-com:serviceId:HumiditySensor1'
local URN_LightSensor1              = 'urn:micasaverde-com:serviceId:LightSensor1'

You could extract the corresponding Luup statements from I_LOUIS4Vera1.xml.

Offline TimAlls

  • Moderator
  • Hero Member
  • *****
  • Posts: 722
  • Karma: +0/-0
    • AllSeas Yachts
Re: Beta testers needed for dimmer panel
« Reply #16 on: May 06, 2011, 01:27:30 pm »
Ap15e,
No problem on the Json......when you get a chance look at the tag generator I am building up.....a few examples and the format. I need good coders like you to help with actual examples of luup coding.....look at the program and you will get where I am going.
I am looking at the Wiki but it is unclear to me as a novice. In paticular I need:
1. Read a sensor and place in a temp. variable
2. If A is true then do something if between timeA and TimeB
3. On off repeating timers .....for lights or similar

These are a few and I need specific code so I don't screw it up!

Regards
Tim Alls