Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A tuya bulb colour mapping with the one exposed by Google Home application
[
{
"1":true,
"2":"white",
"3":255,
"4":255,
"5":"fffafa000005ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"f8f8ff00f007ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"f0f8ff00d00fff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"fff8b7003648ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"fff9cd003532ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"fff0dc002223ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ffd5000032ffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff8000001effff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff8000001effff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff7f500010afff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff74180018e7ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff63470009b8ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff63470009b8ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff44000010ffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ffc0cc015d3fff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff1846015ce7ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff00000000ffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff69b4014a96ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff53ac0149acff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"ff53ac0149acff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"aa83ff01037cff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"9b31ff010fceff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"9000ff0112ffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"6ca2ff00da93ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"6ca2ff00da93ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"3c00ff00feffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"00bfff00c3ffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"0080ff00d2ffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"0000ff00f0ffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"bcffff00b443ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"7fffd2009f80ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"49ffed00aeb6ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"9bff9b007864ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"bfff00004bffff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
},
{
"1":true,
"2":"colour",
"3":255,
"4":255,
"5":"3fff3f0078c0ff",
"6":"00ff0000000000",
"7":"ffff500100ff00",
"8":"ffff8003ff000000ff000000ff000000000000000000",
"9":"ffff5001ff0000",
"10":"ffff0505ff000000ff00ffff00ff00ff0000ff000000"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment