PDA

View Full Version : Using System IO in scenes


ICS-GS
06 Jan 10, 09:43 AM
is it possible (or could it be added to the software) to be able to access the system IO from within a scene in PICED?

What i am trying to achieve is something along the lines of:

Scene = Heater On (zone1)


Set zone 1 mode to heat
set zone 1 temp setpoint to x degrees...


Scene = Cooling On (zone1)


Set zone 1 mode to cooling
Set fan mode to auto
set zone 1 comfort level setpoint to xxx ...

Cheers

Grant

ashleigh
06 Jan 10, 09:50 AM
You are probably better off writing some logic code to do this. Accept the incoming trigger commands and then do all the bits you want.

Making all that stuff happen in scenes is a big bad complex nasty world to head into.

ICS-GS
06 Jan 10, 10:19 AM
. Accept the incoming trigger commands and then do all the bits you want.

in the words of brainiac pauline hanson... 'please explain'

Mark
06 Jan 10, 12:00 PM
Hi,

If you create empty scenes in the project, making sure they have the same trigger group and different action selectors (this ensures they are mutually exclusive) you could do this in logic:


once SceneIsSet("Scene 1") then
begin
// Ferkle with HVAC here...
end;


This is doing the same thing as Ashleigh was talking about, but abstracts away the handling of Trigger Group / Action Selectors for you.

Cheers,
M

ICS-GS
06 Jan 10, 01:17 PM
hmmm... ok thanks