mcmadhatter/Ninja-LWRF-Energy — pull request #1 by stevecraig (2013-11-08 16:03:53+00:00)
Title: added basic parser for lwrf config

Change-Id: Ia89c96ee5455b8c5fbb44db7fd512d38c0d4c5d2

Created a new module to request and parse the lightwaveRF config from their servers. This could prove to be a bit flakey based upon lwrf updating their site, but it gives a good starting point. This combined with the ability to manually config will be good.

It currently gives output in the form:
[ { id: 'R1D1',
name: 'Xmas Tree',
room: 'Living Room',
type: 'Switch' },
{ id: 'R1D2',
name: 'Xmas Lights',
room: 'Living Room',
type: 'Switch' },
{ id: 'R1D3',
name: 'Living Room',
room: 'Living Room',
type: 'Light' },
{ id: 'R1D4', name: 'Dining', room: 'Living Room', type: 'Light' },
{ id: 'R2D1', name: 'Security', room: 'Garden', type: 'Switch' } ]