How do I convert JSON into commandarray?

Moderator: leecollings

Post Reply
BristolBaz
Posts: 5
Joined: Wednesday 01 January 2014 21:53
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Hampshire, UK
Contact:

How do I convert JSON into commandarray?

Post by BristolBaz »

Hi,

Sorry, this is probably a stupid question but I am trying to change the colour of my milight/applamps bulbs from LUA script.

This is the JSON - which works perfectly

http://192.168.178.60:8080/json.htm?typ ... hite=false

but how to I translate that into my LUA script?

commandArray['UpdateDevice']='80|136|255'

Thanks,
Barry
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests