Intelligent HAH

Hi Guys,

I've set myself something of a challenge for my LUA programming development and wondered if I can pick your brains.

I want to start building in some 'intelligence' into the HAH, something some of you may have already done.  My plan is to bring 'presence' as a variable that all applets can be made aware of and modify their behaviour accordingly.  I've seen a few scripts around that seem to refer to presence but only as a 'local' condition i.e. for a room.

Member for

14 years 5 months

mark_baldwin

11 years 11 months ago

I have scripts set up that use presence. One script decides who is present and broadcasts a xap message, other scripts can then use this.

Maybe have a look at the sunrise/sunset sample. One script decides whether it is nighttime or not, other scripts can then use this

Member for

16 years 10 months

brett

11 years 11 months ago

Mark yes indeed.  Check the pair of scripts:  automaticLightsApplet.lua and sunForecastApplet.lua