{"text_format":"2","workbook":"xlsx","n_sheets":4,"sheets":["Light measurements","Detailed white light","ESPHome brightness to power","GPIO14"],"not_rendered":{"charts":13,"images":0,"macros":0,"external_links":0,"defined_names":0,"comments":0,"pivot_tables":0},"unopened":[],"bounds":{"document_bytes":16777216,"sheet_cells":100000,"run_cost":"one","rows_first":2000,"rows_last":500,"rows_between":2000,"halvings":0,"cell_chars":16384,"cell_head_chars":4096},"cells_cut":0,"cells_raw":0,"read":"whole","date_system":"1900"}

{"sheet":"Light measurements","index":0,"n_rows":39,"n_cols":12,"rows_kept":39,"cut":false,"hidden":false,"merged":[]}
[]
[null,"33 (L6)","25 (L5)","14 (L2)","12 (L1)","13 (B2)","4 (R2)","16 (R3)","5 (R5)","18 (R6)","19 (R7)","21 (R9)"]
["off",0,3.3,0,0,3.3,0,3.3,3.3,3.3,3.3,3.3]
["red low",3.3,3.3,3.3,0,2.95,3.3,3.3,3.3,3.3,3.3,3.3]
["red medium",3.3,3.3,3.3,0,1.31,3.3,3.3,3.3,3.3,3.3,3.3]
["red high",3.3,3.3,3.3,0,0.01,3.3,3.3,3.3,3.3,3.3,3.3]
["green low",3.3,3.3,2.86,0,3.13,3.3,3.3,3.3,3.3,3.3,3.3]
["green high",3.3,3.3,0.01,0,3.3,3.3,3.3,3.3,3.3,3.3,3.3]
["blue low",3.3,3.3,3.3,0,3.3,3.3,3.3,2.95,3.3,3.3,3.3]
["blue high",3.3,3.3,3.3,0,3.3,3.3,3.3,0.01,3.3,3.3,3.3]
[]
["GPIO13","RED"]
["GPIO14","GREEN"]
["GPIO5","BLUE"]
[]
["GPIO33","ENABLE"]
["GPIO4","ENABLE? Power front buttons?"]
[]
[null,"33 (L6)","25 (L5)","14 (L2)","12 (L1)","13 (B2)","4 (R2)","16 (R3)","5 (R5)","18 (R6)","19 (R7)","21 (R9)"]
["off",0,3.3,0,0,3.3,0,3.3,3.3,3.3,3.3,3.3]
["white warm high",3.3,3.3,1.13,0.22,0.01,3.3,3.3,3.3,3.3,3.3,3.3]
["white warm medium",3.3,3.3,2.06,0.2,1.45,3.3,3.3,3.3,3.3,3.3,3.3]
["white warm low",3.3,3.3,2.97,0.19,2.86,3.3,3.3,3.3,3.3,3.3,3.3]
["white cold high",3.3,3.3,0.01,1.1,3.3,3.3,3.3,0.62,3.3,3.3,3.3]
["white cold medium",3.3,3.3,1.45,0.69,3.3,3.3,3.3,1.78,3.3,3.3,3.3]
["white cold low",3.3,3.3,2.86,0.28,3.3,3.3,3.3,2.92,3.3,3.3,3.3]
["white mix high",3.3,3.3,0.88,2.51,3.3,3.3,3.3,1.59,3.3,3.3,3.3]
["white mix low",3.3,3.3,2.95,0.42,3.3,3.3,3.3,3.02,3.3,3.3,3.3]
[]
["GPIO12","BRIGHTNESS?"]
["GPIO13","WHITE WARM LEVEL"]
["GPIO5","WHITE COLD LEVEL"]
["GPIO14","SOME KIND OF MIX"]
[]
[null,"33 (L6)","25 (L5)","14 (L2)","12 (L1)","13 (B2)","4 (R2)","16 (R3)","5 (R5)","18 (R6)","19 (R7)","21 (R9)"]
["off",0,3.3,0,0,3.3,0,3.3,3.3,3.3,3.3,3.3]
["night mode",3.3,3.3,3.14,0,3.14,3.3,3.3,3.18,3.3,3.3,3.3]
[]
["RGB mode with a little bit of brightness on the RGB channels."]

{"sheet":"Detailed white light","index":1,"n_rows":133,"n_cols":24,"rows_kept":133,"cut":false,"hidden":false,"merged":[]}
[null,null,null,"Green","White","Red","Blue",{"$nulls":6},"Brightness 1",{"$nulls":5},"Brightness 100"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5",{"$nulls":6},"temperature","GPIO14","GPIO12","GPIO13","GPIO5",null,"temperature","GPIO14","GPIO12","GPIO13","GPIO5"]
["100% warm",{"$f":"B131","v":588},1,2.97,0.19,2.86,3.28,{"$nulls":6},{"$f":"B3","v":588},{"$f":"D3","v":2.97},{"$f":"E3","v":0.19},{"$f":"F3","v":2.86},{"$f":"G3","v":3.28},null,588,{"$f":"D13","v":1.13},{"$f":"E13","v":0.22},{"$f":"F13","v":0.01},{"$f":"G13","v":3.28}]
[null,{"$f":"(B3-$B$132)/($B$131-$B$132)","v":1},10,2.8,0.2,2.6,3.28,{"$nulls":6},{"$f":"B16","v":479},{"$f":"D16","v":2.94},{"$f":"E16","v":0.2},{"$f":"F16","v":2.86},{"$f":"G16","v":3.28},null,479,{"$f":"D26","v":0.78},{"$f":"E26","v":0.3},{"$f":"F26","v":0},{"$f":"G26","v":3.28}]
[null,null,20,2.64,0.2,2.34,3.28,{"$nulls":6},{"$f":"B29","v":420},{"$f":"D29","v":2.92},{"$f":"E29","v":0.21},{"$f":"F29","v":2.86},{"$f":"G29","v":3.27},null,420,{"$f":"D30","v":0.61},{"$f":"E30","v":0.39},{"$f":"F30","v":0},{"$f":"G30","v":3.28}]
[null,null,30,2.43,0.2,2.02,3.28,{"$nulls":6},371,{"$f":"D33","v":2.9},{"$f":"E33","v":0.28},{"$f":"F33","v":2.86},{"$f":"G33","v":3.28},null,371,{"$f":"D43","v":0.45},{"$f":"E43","v":1.07},{"$f":"F43","v":0},{"$f":"G43","v":3.28}]
[null,null,40,2.24,0.2,1.73,3.28]
[null,null,50,2.06,0.2,1.44,3.28]
[null,null,60,1.87,0.21,1.16,3.28]
[null,null,70,1.69,0.21,0.87,3.28]
[null,null,80,1.5,0.21,0.58,3.28]
[null,null,90,1.32,0.21,0.29,3.28]
[null,null,100,1.13,0.22,0.01,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
["75% warm",{"$f":"ROUND($B131-$B133,0)","v":479},1,2.94,0.2,2.86,3.28]
[null,{"$f":"(B16-$B$132)/($B$131-$B$132)","v":0.749425287356322},10,2.74,0.21,2.6,3.28]
[null,null,20,2.52,0.22,2.31,3.28]
[null,null,30,2.32,0.23,2.05,3.28]
[null,null,40,2.09,0.24,1.73,3.28]
[null,null,50,1.87,0.25,1.44,3.28]
[null,null,60,1.65,0.26,1.16,3.28]
[null,null,70,1.46,0.26,0.9,3.28]
[null,null,80,1.22,0.28,0.58,3.28]
[null,null,90,1,0.29,0.29,3.28]
[null,null,100,0.78,0.3,0,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,420,1,2.92,0.21,2.86,3.27]
["          ",{"$f":"(B29-$B$132)/($B$131-$B$132)","v":0.613793103448276},100,0.61,0.39,0,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
["50% warm",{"$f":"ROUND($B131-2*$B133,0)","v":371},1,2.9,0.28,2.86,3.28]
[null,{"$f":"(B33-$B$132)/($B$131-$B$132)","v":0.501149425287356},10,2.68,0.35,2.6,3.28]
[null,null,20,2.43,0.43,2.31,3.28]
[null,null,30,2.21,0.5,2.05,3.28]
[null,null,40,1.93,0.59,1.73,3.28]
[null,null,50,1.69,0.67,1.45,3.28]
[null,null,60,1.44,0.75,1.16,3.28]
[null,null,70,1.22,0.82,0.9,3.28]
[null,null,80,0.94,0.91,0.58,3.28]
[null,null,90,0.69,0.99,0.29,3.28]
[null,null,100,0.45,1.07,0,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,370,1,2.9,0.28,2.86,3.28]
["          ",{"$f":"(B46-$B$132)/($B$131-$B$132)","v":0.498850574712644},100,0.45,1.07,0,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,334,1,2.9,0.28,2.86,3.28]
["          ",{"$f":"(B50-$B$132)/($B$131-$B$132)","v":0.416091954022988},100,0.45,1.07,0,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,333,1,2.96,0.42,2.89,3.28]
["          ",{"$f":"(B54-$B$132)/($B$131-$B$132)","v":0.413793103448276},100,1.03,2.43,0.32,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,313,1,2.96,0.42,2.89,3.28]
["          ",{"$f":"(B58-$B$132)/($B$131-$B$132)","v":0.367816091954023},100,1.03,2.43,0.32,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,312,1,3.27,0.5,3.27,3.27]
["          ",{"$f":"(B62-$B$132)/($B$131-$B$132)","v":0.36551724137931},100,3.27,3.29,3.27,3.27]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
["30% warm",284,1,3.27,0.5,3.27,3.28]
[null,{"$f":"(B66-$B$132)/($B$131-$B$132)","v":0.301149425287356},10,3.27,0.75,3.27,3.28]
[null,null,20,3.27,1.03,3.27,3.28]
[null,null,30,3.27,1.31,3.27,3.28]
[null,null,40,3.27,1.59,3.27,3.28]
[null,null,50,3.27,1.88,3.27,3.28]
[null,null,60,3.27,2.16,3.27,3.28]
[null,null,70,3.27,2.44,3.27,3.28]
[null,null,80,3.27,2.72,3.27,3.28]
[null,null,90,3.27,3,3.27,3.28]
[null,null,100,3.27,3.28,3.27,3.28]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
["25% warm",{"$f":"ROUND($B131-3*$B133,0)","v":262},1,3.27,0.5,3.27,3.27]
[null,{"$f":"(B79-$B$132)/($B$131-$B$132)","v":0.250574712643678},10,3.27,0.75,3.27,3.27]
[null,null,20,3.27,1.03,3.27,3.27]
[null,null,30,3.27,1.29,3.27,3.27]
[null,null,40,3.27,1.6,3.27,3.27]
[null,null,50,3.27,1.88,3.27,3.27]
[null,null,60,3.27,2.16,3.27,3.27]
[null,null,70,3.27,2.41,3.27,3.27]
[null,null,80,3.27,2.72,3.27,3.27]
[null,null,90,3.27,3,3.27,3.27]
[null,null,100,3.27,3.29,3.27,3.27]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,251,1,3.27,0.5,3.27,3.27]
["          ",{"$f":"(B92-$B$132)/($B$131-$B$132)","v":0.225287356321839},100,3.27,3.29,3.27,3.27]
[]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,250,1,2.94,0.42,3.27,3.02]
["          ",{"$f":"(B97-$B$132)/($B$131-$B$132)","v":0.222988505747126},100,0.88,2.51,3.27,1.59]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,{"$f":"ROUND(4.36 * 20 +B118,0)","v":240},1,2.94,0.42,3.27,3.02]
[null,{"$f":"(B101-$B$132)/($B$131-$B$132)","v":0.2},50,1.92,1.46,3.27,2.31]
["          ",null,100,0.88,2.51,3.27,1.59]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,223,1,2.94,0.42,3.27,3.02]
["          ",{"$f":"(B106-$B$132)/($B$131-$B$132)","v":0.160919540229885},100,0.88,2.51,3.27,1.59]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,222,1,2.86,0.37,3.28,2.97]
["          ",{"$f":"(B110-$B$132)/($B$131-$B$132)","v":0.158620689655172},100,0.01,2,3.28,1.17]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
[null,187,1,2.86,0.33,3.27,2.95]
["          ",{"$f":"(B114-$B$132)/($B$131-$B$132)","v":0.0781609195402299},100,0,1.6,3.27,0.92]
[null,null,null,"Green","White","Red","Blue"]
[null,"HA temperature","brightness","GPIO14","GPIO12","GPIO13","GPIO5"]
["0% warm",{"$f":"B132","v":153},1,2.86,0.28,3.27,2.92]
[null,{"$f":"(B118-$B$132)/($B$131-$B$132)","v":0},10,2.6,0.36,3.27,2.71]
[null,null,20,2.31,0.44,3.27,2.48]
[null,null,30,2.05,0.51,3.27,2.27]
[null,null,40,1.73,0.6,3.27,2.02]
[null,null,50,1.44,0.69,3.27,1.78]
[null,null,60,1.16,0.77,3.27,1.55]
[null,null,70,0.9,0.84,3.27,1.34]
[null,null,80,0.58,0.93,3.27,1.08]
[null,null,90,0.3,1.01,3.27,0.85]
[null,null,100,0,1.1,3.27,0.62]
[]
["Home Assistant color temperature"]
["max temp",588]
["min temp",153]
["temp per 25% change",{"$f":"(B131-B132)/4","v":108.75}]

{"sheet":"ESPHome brightness to power","index":2,"n_rows":18,"n_cols":4,"rows_kept":18,"cut":false,"hidden":false,"merged":[]}
["These measurements show the brightness to GPIO power mapping in ESPHome’s RGBWW light component."]
[]
["brightness","brightness float","power float"]
[1,0.011765,4E-006]
[19,0.188235,0.009315]
[20,0.2,0.011038,"← first level at which the light is visible"]
[30,0.298039,0.033726]
[40,0.4,0.076872]
[50,0.501961,0.14517]
[60,0.6,0.239234]
[70,0.698039,0.36548]
[80,0.8,0.535367]
[90,0.901961,0.749075]
[100,1,1]
[]
["ESPhome translates the brightness to the required GPIO power using a non-linear function."]
["That is fine, but not useful for our case. We need a linear translation."]
["Therefore, I’ll provide a custom scaling function in the firmware."]

{"sheet":"GPIO14","index":3,"n_rows":21,"n_cols":2,"rows_kept":21,"cut":false,"hidden":false,"merged":[]}
["Brightness = 1"]
[]
["temperature","GPIO14 "]
[{"$f":"'Detailed white light'!B3","v":588},{"$f":"'Detailed white light'!D3","v":2.97}]
[{"$f":"'Detailed white light'!B16","v":479},{"$f":"'Detailed white light'!D16","v":2.94}]
[{"$f":"'Detailed white light'!B29","v":420},{"$f":"'Detailed white light'!D29","v":2.92}]
[{"$f":"'Detailed white light'!B33","v":371},{"$f":"'Detailed white light'!D33","v":2.9}]
[{"$f":"'Detailed white light'!B46","v":370},{"$f":"'Detailed white light'!D46","v":2.9}]
[{"$f":"'Detailed white light'!B50","v":334},{"$f":"'Detailed white light'!D50","v":2.9}]
[{"$f":"'Detailed white light'!B54","v":333},{"$f":"'Detailed white light'!D54","v":2.96}]
[{"$f":"'Detailed white light'!B58","v":313},{"$f":"'Detailed white light'!D58","v":2.96}]
[{"$f":"'Detailed white light'!B62","v":312},{"$f":"'Detailed white light'!D62","v":3.27}]
[{"$f":"'Detailed white light'!B66","v":284},{"$f":"'Detailed white light'!D66","v":3.27}]
[{"$f":"'Detailed white light'!B79","v":262},{"$f":"'Detailed white light'!D79","v":3.27}]
[{"$f":"'Detailed white light'!B92","v":251},{"$f":"'Detailed white light'!D92","v":3.27}]
[{"$f":"'Detailed white light'!B97","v":250},{"$f":"'Detailed white light'!D97","v":2.94}]
[{"$f":"'Detailed white light'!B101","v":240},{"$f":"'Detailed white light'!D101","v":2.94}]
[{"$f":"'Detailed white light'!B106","v":223},{"$f":"'Detailed white light'!D106","v":2.94}]
[{"$f":"'Detailed white light'!B110","v":222},{"$f":"'Detailed white light'!D110","v":2.86}]
[{"$f":"'Detailed white light'!B114","v":187},{"$f":"'Detailed white light'!D114","v":2.86}]
[{"$f":"'Detailed white light'!B118","v":153},{"$f":"'Detailed white light'!D118","v":2.86}]