index
int64
0
731k
package
stringlengths
2
98
name
stringlengths
1
76
docstring
stringlengths
0
281k
code
stringlengths
4
8.19k
signature
stringlengths
2
42.8k
embed_func_code
sequencelengths
768
768
729,317
tinytuya.BulbDevice
_hexvalue_to_rgb
Converts the hexvalue used by Tuya for colour representation into an RGB value. Args: hexvalue(string): The hex representation generated by BulbDevice._rgb_to_hexvalue()
@staticmethod def _hexvalue_to_rgb(hexvalue, bulb="A"): """ Converts the hexvalue used by Tuya for colour representation into an RGB value. Args: hexvalue(string): The hex representation generated by BulbDevice._rgb_to_hexvalue() """ if bulb == "A": r = int(hexvalue[0:2], 16) g = int(hexvalue[2:4], 16) b = int(hexvalue[4:6], 16) if bulb == "B": # hexvalue is in hsv h = float(int(hexvalue[0:4], 16) / 360.0) s = float(int(hexvalue[4:8], 16) / 1000.0) v = float(int(hexvalue[8:12], 16) / 1000.0) rgb = colorsys.hsv_to_rgb(h, s, v) r = int(rgb[0] * 255) g = int(rgb[1] * 255) b = int(rgb[2] * 255) return (r, g, b)
(hexvalue, bulb='A')
[ -0.011556788347661495, -0.08752845972776413, -0.06896181404590607, -0.007133000995963812, -0.02921404503285885, -0.006754090078175068, -0.009505932219326496, 0.06956807523965836, -0.037947945296764374, -0.027338434010744095, 0.037417467683553696, 0.02659955807030201, 0.04486307129263878, 0.02642904780805111, -0.0010733840754255652, -0.036375463008880615, 0.05729135498404503, 0.034026216715574265, 0.038724713027477264, -0.04565878584980965, -0.024705002084374428, -0.012560902163386345, -0.013394506648182869, 0.05535890907049179, -0.0345945805311203, 0.013403979130089283, 0.030824417248368263, 0.005858912598341703, -0.033779922872781754, 0.0072845653630793095, 0.04334742948412895, -0.04512830823659897, 0.004762438591569662, 0.031146490946412086, -0.028266767039895058, -0.015317480079829693, -0.008009232580661774, 0.03467036411166191, -0.06801453977823257, -0.048121705651283264, -0.0025552816223353148, -0.07043956965208054, 0.027774183079600334, 0.027527889236807823, -0.02015806920826435, -0.02459132857620716, -0.03921729698777199, 0.003758324310183525, -0.07036378979682922, -0.037246961146593094, 0.038989949971437454, -0.011376805603504181, -0.021938951686024666, 0.06134570389986038, 0.033685196191072464, -0.0016979952342808247, -0.04918265715241432, 0.06881025433540344, 0.020139124244451523, 0.05850386992096901, -0.024439765140414238, 0.019229738041758537, 0.03982355445623398, -0.0058968039229512215, 0.038800496608018875, -0.030009757727384567, -0.012068318203091621, -0.009908524341881275, 0.006252032704651356, 0.03198009356856346, 0.006133622955530882, 0.03086230717599392, 0.0002169858053093776, -0.03230217099189758, 0.0036659648176282644, -0.00408513518050313, -0.05918591096997261, 0.07729785889387131, -0.007166155613958836, -0.010590564459562302, 0.061648834496736526, 0.037587977945804596, 0.06365706026554108, -0.011481005698442459, 0.007729785982519388, -0.04978891462087631, 0.001361711649224162, -0.0032846855465322733, -0.0347650907933712, 0.03944464400410652, -0.035598695278167725, -0.08722533285617828, -0.04997837170958519, 0.029744520783424377, -0.009671705774962902, -0.0456966757774353, 0.0364701934158802, 0.026656394824385643, 0.007905032485723495, -0.04130130633711815, -0.0300665944814682, 0.011319968849420547, -0.05933747440576553, -0.02756578102707863, -0.011452587321400642, 0.01713625341653824, -0.032359007745981216, 0.010581091977655888, 0.06710515171289444, 0.0014990669442340732, -0.05024360865354538, -0.022905174642801285, 0.016321595758199692, -0.04156654700636864, -0.03304104506969452, -0.07972288876771927, 0.04455994442105293, 0.005205290857702494, 0.003533345879986882, -0.02180633321404457, 0.03667859360575676, 0.027622617781162262, 0.03364730253815651, 0.05160769075155258, 0.02068854495882988, 0.10723183304071426, 0.007043009623885155, -0.0026429048739373684, 0.001885082689113915, 0.06214141845703125, 0.01368816290050745, 0.06865868717432022, -0.015289061702787876, -0.020139124244451523, 0.024307146668434143, -0.005366328172385693, 0.0075261215679347515, 0.051683470606803894, 0.06066366285085678, -0.01623634062707424, 0.009074920788407326, 0.0020484880078583956, 0.0241745263338089, -0.08123853802680969, 0.007189837750047445, 0.04122552648186684, 0.018898190930485725, -0.025330206379294395, -0.03597760573029518, 0.049220550805330276, 0.0011379173956811428, 0.029251934960484505, 0.05448741465806961, 0.06615787744522095, 0.008549181744456291, -0.030464451760053635, 0.0008093303767964244, -0.03582604229450226, 0.06282345950603485, 0.021351639181375504, 0.025008130818605423, 0.0342535600066185, 0.015952156856656075, -0.05187292769551277, -0.02964979223906994, 0.020821163430809975, -0.037152230739593506, 0.05933747440576553, 0.03249162435531616, -0.029517173767089844, -0.017240453511476517, -0.015355371870100498, -0.07403922826051712, 0.0819205790758133, -0.003014711197465658, -0.017316237092018127, -0.05873121693730354, -0.01850980706512928, 0.06198985129594803, -0.005361591931432486, -0.025178641080856323, 0.013441870920360088, -0.00925490353256464, 0.002331487135961652, 0.07040167599916458, 0.030919143930077553, 0.05024360865354538, -0.004158549010753632, 0.022317862138152122, -0.01859506219625473, 0.045583002269268036, 0.022526264190673828, 0.039255186915397644, 0.052024491131305695, 0.047591231763362885, -0.014929096214473248, 0.013981819152832031, -0.029251934960484505, -0.05217605456709862, -0.024572383612394333, 0.0033320493530482054, -0.04224858433008194, -0.04164232686161995, 0.014625967480242252, 0.018917135894298553, -0.06623365730047226, 0.03921729698777199, -0.004582455847412348, -0.04012668505311012, -0.028096256777644157, -0.018917135894298553, 0.015857428312301636, -0.01616055704653263, 0.06108046695590019, 0.024363983422517776, -0.06778719276189804, 0.0018211413407698274, 0.046643953770399094, 0.03372308611869812, -0.005238445941358805, 0.02572806179523468, -0.01599952019751072, 0.05812495946884155, -0.014038655906915665, 0.031601183116436005, 0.0036399145610630512, -0.02999081276357174, 0.03747430443763733, -0.006597789004445076, -0.017695147544145584, 0.043688446283340454, -0.0012930340599268675, 0.003417304251343012, 0.05581360310316086, -0.05695033445954323, -0.0016399745363742113, 0.06403597444295883, -0.006313605699688196, -0.021067455410957336, -0.027186870574951172, 0.01473964098840952, 0.026959523558616638, 0.060891009867191315, -0.00856812670826912, 0.016804706305265427, -0.05695033445954323, 0.017666729167103767, 0.027319489046931267, -0.1162499189376831, -0.0503951720893383, -0.06092890352010727, -0.004243804141879082, 0.08229948580265045, 0.004267486277967691, -0.0460376963019371, -0.028456222265958786, 0.005882594734430313, 0.019608648493885994, 0.010846329852938652, -0.03726590424776077, -0.020290687680244446, -0.034802984446287155, 0.034821927547454834, 0.05547258257865906, -0.008421299047768116, -0.011575733311474323, 0.005191081669181585, 0.06824188679456711, -0.05691244453191757, 0.0011314047733321786, 0.1599004715681076, -0.01737307384610176, -0.08449716866016388, -0.0074834940023720264, -0.018632952123880386, -0.01920131966471672, 0.020120179280638695, -0.002102956408634782, 0.04452205076813698, 0.003727537812665105, -0.02938455529510975, -0.040202464908361435, 0.021597931161522865, 0.028569895774126053, 0.048803746700286865, 0.004584824200719595, 0.004113553557544947, -0.02504602260887623, 0.009245430119335651, -0.019362356513738632, 0.006413070019334555, -0.06085311993956566, -0.07108371704816818, 0.012532483786344528, 0.032718971371650696, 0.06092890352010727, -0.032718971371650696, 0.02320830337703228, -0.01025901734828949, -0.032624244689941406, -0.007900295779109001, 0.008710218593478203, 0.006413070019334555, -0.010097980499267578, -0.06839345395565033, 0.0067446171306073666, 0.061914071440696716, 0.0077439951710402966, -0.015487990342080593, -0.019343411549925804, -0.010978948324918747, -0.010732656344771385, 0.053843263536691666, -0.006711462512612343, 0.006896181497722864, -0.03086230717599392, 0.010581091977655888, 0.021882114931941032, 0.014218638651072979, 0.007720313500612974, -0.028910916298627853, -0.024742893874645233, 0.010183235630393028, 0.051077213138341904, 0.04808381572365761, 0.009794851765036583, -0.028399385511875153, -0.0025126540567725897, -0.03207482397556305, 0.019930722191929817, -0.0761990174651146, -0.011471533216536045, 0.004563510417938232, 0.035844989120960236, 0.08980192989110947, -0.05691244453191757, -0.027073197066783905, 0.0688481405377388, -0.05581360310316086, -0.028664622455835342, -0.022791501134634018, 0.018272986635565758, 0.008511289954185486, 0.037947945296764374, 0.028190985321998596, -0.018746625632047653, -0.06752195209264755, 0.003938307054340839, 0.03258635476231575, 0.04717443138360977, 0.035750262439250946, -0.05698822811245918, -0.014607022516429424, 0.0537295900285244, 0.04266538843512535, -0.019438138231635094, -0.037682708352804184, -0.05247918516397476, 0.03791005536913872, 0.04527987539768219, -0.02407979965209961, 0.002112429356202483, 0.013157687149941921, 0.017761457711458206, -0.03948253393173218, -0.0027731554582715034, -0.08434560894966125, 0.015620609745383263, 0.018367715179920197, 0.004707970190793276, 0.01747727394104004, 0.0792681947350502, 0.025936463847756386, -0.0045327236875891685, 0.012769303284585476, 0.015611136332154274, 0.020442252978682518, 0.0035238731652498245, -0.019703377038240433, -0.002545808907598257, 0.010221126489341259, 0.02999081276357174, -0.022147351875901222, 0.004587192088365555, 0.03156329318881035, -0.038459476083517075, -0.03836474567651749, -0.048121705651283264, -0.04956157132983208, -0.00671619875356555, -0.04232436791062355, -0.01660577766597271, 0.02851305902004242, -0.011803080327808857, 0.01491015125066042, -0.008246052078902721, 0.0010532543528825045, 0.055245235562324524, 0.06793875992298126, -0.01739201880991459, -0.017751984298229218, -0.057215575128793716, -0.043082188814878464, -0.008051860146224499, -0.030123431235551834, 0.0034386180341243744, 0.03353362902998924, 0.054979998618364334, -0.013413452543318272, -0.04516620188951492, 0.00012129594688303769, -0.01903080940246582, -0.02478078566491604, -0.008444980718195438, -0.04679551720619202, 0.012115681543946266, 0.0010171394096687436, -0.014010237529873848, -0.026466939598321915, 0.056116729974746704, -0.01116840448230505, -0.00817500613629818, -0.07699473202228546, -0.0021005882881581783, 0.025709116831421852, 0.046113479882478714, 0.06354338675737381, 0.0597921684384346, 0.022488372400403023, -0.004954262170940638, 0.03921729698777199, -0.025576498359441757, -0.005309491418302059, -0.07775255292654037, 0.013091377913951874, 0.003459931816905737, 0.0069103906862437725, 0.02868356928229332, 0.041414979845285416, 0.019400248304009438, 0.01814984157681465, 0.033495739102363586, 0.015374316833913326, 0.01368816290050745, 0.014483876526355743, -0.06661257147789001, -0.06229298189282417, 0.011452587321400642, 0.04884163662791252, -0.04122552648186684, -0.03222638741135597, -0.02493234910070896, -0.008757581934332848, -0.010164289735257626, 0.0594511479139328, -0.02093483693897724, -0.02504602260887623, -0.0035949188750237226, 0.014502821490168571, 0.006938809063285589, 0.026012245565652847, 0.0456966757774353, -0.02546282485127449, -0.038459476083517075, -0.034196726977825165, -0.013129268772900105, 0.06774929910898209, -0.022109461948275566, 0.01703205332159996, -0.01922026462852955, -0.01705099828541279, -0.012399865314364433, 0.006820399314165115, 0.040467701852321625, 0.026751121506094933, -0.033685196191072464, 0.022147351875901222, 0.0032065350096672773, -0.05717768147587776, -0.0661957636475563, -0.013830254785716534, -0.02197684347629547, -0.02466711215674877, -0.014313366264104843, 0.008989665657281876, 0.03512505814433098, 0.04118763282895088, -0.03485982120037079, 0.01885082572698593, -0.04118763282895088, -0.0627855658531189, -0.05960271134972572, -0.049144767224788666, 0.0035120320972055197, -0.03709539398550987, -0.045317765325307846, 0.03198009356856346, 0.019608648493885994, -0.04615136981010437, 0.02572806179523468, 0.022715719416737556, -0.025140751153230667, -0.006763563025742769, -0.041945457458496094, 0.00714721018448472, -0.007682422176003456, 0.03648913651704788, -0.0020212538074702024, -0.02258310094475746, -0.0051152994856238365, -0.08055649697780609, 0.019589703530073166, 0.02572806179523468, -0.04543143883347511, -0.007260883692651987, -0.005830494221299887, -0.006351497024297714, -0.022052625194191933, -0.020233850926160812, 0.0036896467208862305, -0.019513919949531555, 0.06702937185764313, 0.02701636031270027, -0.013801836408674717, -0.0017358864424750209, 0.02580384537577629, -0.02303779311478138, 0.01173677109181881, -0.01160415168851614, -0.014284947887063026, -0.034461963921785355, -0.021522149443626404, 0.004179862793534994, -0.02250731736421585, 0.0018566643120720983, -0.04721232131123543, 0.012030426412820816, -0.0277173463255167, -0.03196115046739578, -0.06524848937988281, 0.017941439524292946, -0.04353688284754753, -0.009681178256869316, -0.041414979845285416, -0.07464548200368881, -0.030919143930077553, -0.015289061702787876, 0.018661370500922203, -0.019163427874445915, -0.010126398876309395, 0.0034930864349007607, 0.004366950131952763, 0.05217605456709862, 0.003467036411166191, -0.028607787564396858, -0.01974126696586609, -0.034973494708538055, -0.008141851983964443, -0.02258310094475746, 0.0031781166326254606, -0.0125135388225317, -0.051077213138341904, -0.025311259552836418, 0.020044395700097084, -0.09040818363428116, 0.014521767385303974, -0.032889481633901596, 0.013868145644664764, -0.0006447408813983202, -0.05664720758795738, 0.011064203456044197, -0.011537842452526093, 0.005617356859147549, 0.010628456249833107, -0.04179389402270317, 0.010960003361105919, -0.02728159725666046, -0.047932252287864685, 0.06786297261714935, -0.02991502918303013, -0.008819155395030975, 0.06907548755407333, -0.03266213461756706, -0.06661257147789001, 0.006967227440327406, 0.004082766827195883, 0.04126341640949249, 0.054979998618364334, 0.017714092507958412, -0.010107452981173992, 0.021446367725729942, -0.012523011304438114, -0.008217633701860905, -0.04952367767691612, -0.04122552648186684, -0.03290842846035957, -0.003793847281485796, 0.011670460924506187, -0.01694679819047451, 0.02442081831395626, 0.03135489299893379, -0.002232023049145937, 0.050205718725919724, -0.03701961413025856, 0.050622519105672836, -0.013678690418601036, 0.03936886042356491, -0.07691895216703415, -0.02061276324093342, -0.04781857877969742, 0.03290842846035957, 0.009235957637429237, -0.01886977255344391, 0.05895856395363808, 0.0012563270283862948, 0.011897807940840721, 0.0012350133620202541, 0.020195960998535156, -0.05316122621297836, 0.05335067957639694, -0.03565553203225136, 0.03270002454519272, -0.02521653287112713, 0.04111185297369957, -0.004743493162095547, -0.03468931093811989, 0.030369723215699196, 0.006768299266695976, -0.022715719416737556, -0.02163582295179367, 0.03360941261053085, -0.021957896649837494, 0.03546607866883278, -0.020631708204746246, -0.05782183259725571, -0.017534110695123672, 0.045848239213228226, 0.016094248741865158, 0.017534110695123672, 0.038459476083517075, 0.025235477834939957, 0.02373877912759781, -0.032207440584897995, 0.0273763258010149, 0.044711507856845856, 0.026542721316218376, -0.04918265715241432, -0.03944464400410652, -0.011376805603504181, 0.0026665867771953344, 0.010097980499267578, -0.009505932219326496, -0.025064967572689056, 0.020840110257267952, -0.05247918516397476, 0.061497267335653305, 0.01704152673482895, -0.0064793797209858894, -0.027433162555098534, 0.015222752466797829, -0.04823537915945053, 0.029441390186548233, -0.00597258610650897, 0.026050137355923653, -0.010723183862864971, -0.0004718627023976296, 0.032283224165439606, 0.04111185297369957, -0.03353362902998924, -0.040884505957365036, 0.01156626082956791, -0.019703377038240433, -0.04717443138360977, -0.04160443693399429, -0.0003951924154534936, -0.01051478274166584, -0.043309535831213, 0.0443325974047184, 0.0752517431974411, -0.0273763258010149, 0.03548502177000046, 0.036375463008880615, 0.004499569069594145, 0.016577359288930893, 0.056798771023750305, 0.03440512716770172, -0.00960065983235836, 0.03304104506969452, 0.039406754076480865, -0.042021237313747406, -0.06331603974103928, -0.03474614769220352, -0.028399385511875153, 0.07339507341384888, -0.05119088664650917, 0.0034646682906895876, 0.010817911475896835, -0.013015595264732838, -0.009804324246942997, 0.02121902070939541, -0.0031828531064093113, -0.08070806413888931, -0.03334417566657066, 0.04092239588499069, 0.04224858433008194, -0.008089751936495304, 0.03736063092947006, -0.028835132718086243, -0.01746780052781105, -0.026826905086636543, -0.0013830254320055246, -0.029952920973300934, -0.030786525458097458, 0.015620609745383263, -0.0014031551545485854, 0.01955181173980236, -0.07002276927232742, -0.010874748229980469, -0.020991673693060875, 0.03372308611869812, 0.0027021097484976053, 0.025443879887461662, 0.06119414046406746, 0.05312333256006241, -0.009505932219326496, -0.02599330060184002, 0.053919047117233276, 0.0295550636947155, 0.0012788248714059591, -0.031506456434726715, 0.026277484372258186, -0.021503204479813576, -0.05069830268621445, 0.005925221834331751, -0.02356826886534691, 0.015800591558218002, 0.01208726316690445, 0.005716821178793907, 0.023852452635765076, -0.003900415962561965, 0.040884505957365036, -0.013631326146423817, -0.04952367767691612, 0.002758946269750595, -0.006252032704651356, 0.058276522904634476, 0.05486632511019707, -0.0061525688506662846, 0.01599004678428173, -0.036545973271131516, 0.047856468707323074, 0.028266767039895058, -0.007985550910234451, 0.08768002688884735, 0.11185455322265625, -0.055586256086826324, 0.011424168944358826, 0.010562146082520485, -0.0409981794655323, -0.03876260295510292, 0.03503032773733139, 0.04581034928560257, -0.013195578008890152, 0.009785378351807594, 0.03294631838798523, 0.026012245565652847, -0.037057504057884216, 0.01850980706512928 ]
729,318
tinytuya.core
_negotiate_session_key
null
def _negotiate_session_key(self): rkey = self._send_receive_quick( self._negotiate_session_key_generate_step_1(), 2 ) step3 = self._negotiate_session_key_generate_step_3( rkey ) if not step3: return False self._send_receive_quick( step3, None ) self._negotiate_session_key_generate_finalize() return True
(self)
[ -0.016313448548316956, -0.061776548624038696, -0.04712773859500885, 0.07901479303836823, 0.004119977820664644, 0.004161593969911337, 0.011726446449756622, 0.02885371632874012, 0.025986840948462486, -0.02058601751923561, 0.03562324494123459, -0.0015316976932808757, 0.018227780237793922, 0.03691796213388443, -0.020863456651568413, -0.05937207117676735, 0.09063026309013367, -0.03954438865184784, -0.022879518568515778, -0.03762080892920494, -0.010330000892281532, 0.055635884404182434, 0.015601352788507938, 0.011874414049088955, -0.03148014470934868, 0.022713053971529007, 0.016516903415322304, 0.020770976319909096, 0.025542937219142914, 0.011541486717760563, -0.03939642012119293, -0.05374929681420326, 0.06969282776117325, 0.019087843596935272, 0.03051835484802723, 0.02182524837553501, -0.03799072653055191, -0.004836696665734053, -0.05718954652547836, -0.02594984881579876, -0.022343134507536888, -0.004896808881312609, 0.027817942202091217, 0.0030934514943510294, -0.028465302661061287, 0.024211227893829346, -0.010098800994455814, 0.07827495783567429, 0.018523717299103737, -0.02186223864555359, 0.04150496423244476, 0.017598917707800865, 0.002947795670479536, 0.006427350454032421, -0.023082973435521126, -0.022010207176208496, -0.0017293734708800912, -0.0317205935716629, -0.06965583562850952, 0.03917447105050087, -0.022971997037529945, 0.0062192706391215324, 0.011032847687602043, 0.0598529689013958, -0.019106339663267136, 0.007370645180344582, -0.00033581748721189797, -0.0029778515454381704, 0.029649043455719948, 0.007338277064263821, 0.006404230371117592, 0.0032090512104332447, -0.015545864589512348, 0.014759786427021027, -0.033884622156620026, -0.008711603470146656, -0.06033386290073395, 0.04187488183379173, -0.016202472150325775, 0.0407281331717968, -0.02434070035815239, -0.024488667026162148, -0.007097829598933458, -0.03262689709663391, -0.0027628359384834766, 0.04949522390961647, 0.05341636762022972, -0.03342222422361374, -0.006048182956874371, -0.004205521661788225, -0.021621791645884514, 0.03347770869731903, -0.0005404292023740709, 0.007329029031097889, 0.028335830196738243, -0.015397896990180016, -0.000011424514013924636, 0.011994638480246067, -0.023138461634516716, -0.08056845515966415, -0.04187488183379173, 0.06410703808069229, -0.02262057363986969, 0.03492039442062378, 0.009266482666134834, -0.01945776306092739, -0.029834004119038582, 0.031091729179024696, 0.003484178800135851, 0.008743970654904842, -0.02766997553408146, -0.027004119008779526, 0.010616688057780266, 0.0628863051533699, -0.013687019236385822, -0.030499858781695366, 0.04165292903780937, 0.04106105864048004, -0.01415866706520319, -0.015721576288342476, -0.018884388729929924, -0.008355556055903435, 0.006112918723374605, 0.0039026502054184675, -0.029001684859395027, 0.02772546373307705, 0.06884200870990753, 0.007944020442664623, 0.001675041508860886, -0.012854700908064842, 0.005766119342297316, 0.043761469423770905, 0.02047504112124443, 0.04083910584449768, -0.04716473072767258, 0.020918944850564003, 0.005872471258044243, 0.028779733926057816, 0.052898481488227844, 0.026467736810445786, -0.006357990670949221, -0.04324358329176903, -0.0040159379132092, 0.019420770928263664, -0.003509610891342163, -0.007606468629091978, -0.034254539757966995, -0.014149419032037258, 0.06887900084257126, -0.08656115084886551, 0.040062274783849716, -0.017598917707800865, 0.037953734397888184, -0.014177163131535053, -0.0008577507105655968, 0.024544155225157738, -0.015037225559353828, 0.031794577836990356, -0.011809678748250008, -0.007370645180344582, 0.019087843596935272, -0.09358961880207062, 0.017118021845817566, -0.006801893934607506, 0.00964564923197031, -0.011606222949922085, -0.03316327929496765, -0.041467972099781036, 0.012614252977073193, 0.056930605322122574, -0.02585737034678459, 0.06099971756339073, 0.015092713758349419, -0.01725674234330654, -0.003720002481713891, -0.003516546683385968, 0.022768542170524597, -0.051344819366931915, -0.01918032392859459, -0.012836204841732979, -0.04479724541306496, -0.02391529269516468, -0.07339201867580414, 0.025672409683465958, 0.011328782886266708, 0.08552537858486176, 0.04390943795442581, 0.013307852670550346, 0.058003369718790054, -0.0009531205869279802, -0.05530295893549919, 0.03617812320590019, -0.0048736887983977795, 0.04960619658231735, -0.014241898432374, 0.02278703823685646, 0.030888274312019348, 0.016036007553339005, -0.04749765619635582, 0.018930627033114433, 0.018930627033114433, -0.057892393320798874, -0.04009926691651344, 0.010616688057780266, -0.022158175706863403, -0.008480403572320938, -0.0029732275288552046, -0.006496710237115622, 0.08360179513692856, 0.013391084037721157, -0.05915011838078499, -0.06532777845859528, 0.04975416511297226, 0.07642535865306854, -0.006145286839455366, 0.006154534872621298, 0.03009294718503952, 0.02422972396016121, -0.00559965567663312, 0.0038610342890024185, 0.07871885597705841, -0.007546356879174709, 0.008226083591580391, -0.01466730609536171, -0.007518612779676914, -0.021288864314556122, -0.03105473704636097, -0.01125479955226183, -0.03858259692788124, -0.008133604191243649, 0.026449240744113922, 0.0353643000125885, 0.0447232611477375, 0.04757164046168327, -0.027762454003095627, 0.004408977460116148, -0.00881333090364933, -0.004002065863460302, 0.050161078572273254, 0.044205375015735626, -0.02411874756217003, -0.024840090423822403, 0.02981550805270672, -0.018717924132943153, -0.04561106860637665, 0.03540129214525223, 0.06640054285526276, -0.0034055709838867188, 0.039470404386520386, 0.01816304586827755, -0.012207342311739922, -0.02160329557955265, -0.010727664455771446, -0.01740471087396145, -0.03418055549263954, -0.011042095720767975, -0.02730005607008934, 0.04098707437515259, 0.029001684859395027, 0.0051233842968940735, 0.013687019236385822, 0.07564853131771088, -0.09484734386205673, 0.049088310450315475, -0.0002653016126714647, 0.030721809715032578, 0.018634691834449768, 0.03464295715093613, -0.006468966603279114, -0.04723871499300003, 0.12333114445209503, 0.010727664455771446, -0.06355216354131699, -0.0013247739989310503, 0.04905131831765175, -0.020271586254239082, 0.03111022524535656, -0.031683601438999176, -0.0604078471660614, -0.0012715981574729085, 0.024192731827497482, 0.011106831952929497, 0.00934509001672268, -0.015009481459856033, -0.026578713208436966, 0.03638157621026039, -0.025801882147789, -0.053823281079530716, 0.041615936905145645, -0.03787975013256073, -0.05955703184008598, -0.03517933934926987, 0.07505665719509125, 0.015888040885329247, -0.0015478817513212562, 0.03229396790266037, -0.03760231286287308, -0.021251872181892395, -0.02058601751923561, 0.00410841777920723, 0.029963474720716476, 0.013964459300041199, -0.04923627898097038, -0.03303380683064461, 0.051936689764261246, 0.011485998518764973, 0.020234594121575356, 0.05245457962155342, -0.014935498125851154, -0.014389866963028908, -0.09144409000873566, 0.014769034460186958, 0.007712820544838905, -0.04764562472701073, 0.013945963233709335, -0.016109991818666458, 0.026301272213459015, 0.018126053735613823, 0.03675149753689766, 0.04738667979836464, -0.009210994467139244, -0.01163396704941988, -0.03519783541560173, 0.044686269015073776, 0.03551226854324341, -0.048829369246959686, 0.026097817346453667, -0.05748548358678818, -0.025117531418800354, -0.005766119342297316, -0.09255384653806686, -0.006820390000939369, -0.010302256792783737, 0.03943341225385666, -0.07087656855583191, -0.034846413880586624, -0.00843416340649128, 0.010912624187767506, 0.04638789966702461, 0.0043118735775351524, -0.036622025072574615, -0.11430510878562927, -0.00999707356095314, -0.04287366569042206, 0.05937207117676735, 0.0004728033090941608, -0.014870761893689632, 0.014759786427021027, 0.034051086753606796, -0.06173955649137497, -0.031017746776342392, -0.027540503069758415, 0.061924517154693604, 0.04524114727973938, 0.03654804080724716, 0.017053287476301193, -0.01125479955226183, -0.02219516783952713, 0.01026526466012001, -0.009026034735143185, 0.02933461219072342, 0.04960619658231735, -0.042318783700466156, 0.03414356708526611, -0.06103670969605446, -0.02112239971756935, 0.0034171310253441334, 0.03392161428928375, 0.025598425418138504, 0.012475533410906792, -0.018847396597266197, -0.005511799827218056, -0.0030633953865617514, 0.03965536504983902, 0.00816597230732441, 0.01517594512552023, -0.008045747876167297, -0.026449240744113922, 0.012040877714753151, -0.05992694944143295, 0.01238305401057005, 0.01373325940221548, -0.0026541720144450665, 0.028835220262408257, 0.011744942516088486, -0.005049400497227907, 0.006686293985694647, 0.013317099772393703, 0.02611631341278553, -0.03223847970366478, -0.008753218688070774, 0.03928544744849205, 0.070728600025177, 0.024266716092824936, -0.0021813686471432447, 0.01026526466012001, -0.013307852670550346, -0.007897780276834965, -0.0022252968046814203, -0.025210009887814522, 0.03079579398036003, 0.005308344028890133, -0.002913115778937936, 0.005049400497227907, -0.002950107678771019, 0.010838639922440052, 0.02030857838690281, -0.040802113711833954, 0.015934281051158905, -0.055746860802173615, -0.04302163049578667, -0.02724456787109375, -0.015166697092354298, -0.013862731866538525, -0.0238043162971735, 0.030000466853380203, -0.02058601751923561, 0.07239323854446411, 0.008498899638652802, 0.04450130835175514, 0.007819171994924545, -0.009654897265136242, -0.014528586529195309, -0.004600873216986656, -0.023730332031846046, 0.042207811027765274, -0.00037107543903402984, -0.016942311078310013, 0.012503277510404587, -0.046128954738378525, -0.011615470983088017, 0.014621065929532051, 0.04283667355775833, 0.024100251495838165, -0.001216110191307962, 0.0034263788256794214, -0.029649043455719948, -0.03181307390332222, -0.015730824321508408, -0.000323679530993104, -0.04638789966702461, -0.0034310028422623873, -0.076499342918396, 0.030296403914690018, 0.12606854736804962, -0.018126053735613823, -0.01616548001766205, 0.030610835179686546, 0.07139445096254349, 0.03773178532719612, 0.0101820332929492, -0.009275729767978191, -0.05493303760886192, -0.02250959910452366, 0.004933800548315048, 0.03553076460957527, 0.040765125304460526, 0.08374976366758347, -0.00188080919906497, -0.059298086911439896, 0.024840090423822403, 0.0426517128944397, -0.0015316976932808757, 0.03099925071001053, -0.025542937219142914, 0.05922410264611244, -0.00323679530993104, -0.002917739562690258, 0.004344241693615913, -0.0052066161297261715, -0.07982861995697021, 0.016572391614317894, -0.0038124823477119207, -0.011079087853431702, 0.029371604323387146, -0.026726679876446724, 0.022102687507867813, 0.027392534539103508, -0.07783105224370956, -0.006912869866937399, -0.0942554771900177, 0.0007606468861922622, 0.020807968452572823, -0.03392161428928375, -0.013742507435381413, -0.026578713208436966, -0.014454602263867855, -0.04808953031897545, -0.025283994153141975, -0.026523225009441376, 0.00784691609442234, -0.007130197249352932, 0.00026082212571054697, 0.07572250813245773, 0.040654148906469345, -0.02149231918156147, -0.01993865892291069, 0.01741395890712738, -0.03220148757100105, -0.02730005607008934, -0.018847396597266197, 0.06736233085393906, 0.053268399089574814, 0.037102919071912766, 0.012022382579743862, 0.005174248479306698, -0.08005057275295258, -0.02450716309249401, -0.0037084424402564764, 0.05533995106816292, 0.028224853798747063, 0.015527368523180485, 0.015148201957345009, -0.07686926424503326, 0.018616195768117905, 0.011310286819934845, 0.005063272546976805, -0.0328858382999897, -0.06099971756339073, 0.002628740156069398, 0.02025309018790722, 0.00020735719590447843, 0.021843744441866875, 0.04021024331450462, -0.01633194461464882, 0.03406958281993866, -0.021695775911211967, 0.010477968491613865, -0.03201652690768242, -0.017386214807629585, -0.0495322160422802, 0.02981550805270672, 0.008309315890073776, 0.04723871499300003, -0.048866357654333115, -0.04028422757983208, -0.02487708255648613, 0.07716519385576248, -0.039359427988529205, -0.03148014470934868, 0.02208419144153595, -0.00899829063564539, -0.10187581926584244, -0.03954438865184784, -0.010542704723775387, 0.06244240328669548, 0.023008989170193672, 0.012771468609571457, -0.08042048662900925, 0.007583348546177149, -0.031017746776342392, 0.04357651248574257, 0.05733751505613327, -0.036363083869218826, 0.025080539286136627, -0.02267606183886528, 0.04013625904917717, -0.009590161964297295, -0.06862005591392517, 0.009127762168645859, 0.04427935928106308, -0.05519198253750801, -0.054674096405506134, -0.020493537187576294, 0.010764655657112598, -0.05541393533349037, -0.0017698333831503987, -0.013742507435381413, 0.0018761851824820042, 0.06159158796072006, 0.01058894395828247, -0.0032945950515568256, 0.017376966774463654, 0.02014211378991604, -0.02826184593141079, -0.06007491797208786, -0.011023599654436111, 0.02267606183886528, -0.03617812320590019, -0.011217807419598103, 0.004103793762624264, -0.009497681632637978, 0.09403352439403534, -0.0020553648937493563, -0.007796052377671003, 0.034051086753606796, 0.009446818381547928, 0.009590161964297295, -0.09595710784196854, -0.02138134464621544, -0.044686269015073776, -0.007953268475830555, 0.0043627372942864895, -0.06099971756339073, 0.023452892899513245, 0.013233868405222893, 0.07557454705238342, 0.036363083869218826, 0.05559889227151871, -0.002795203821733594, -0.018902884796261787, 0.01144900731742382, 0.05189969763159752, -0.034106574952602386, -0.0051233842968940735, -0.03638157621026039, -0.05171474069356918, 0.013187628239393234, 0.02569090574979782, -0.03390311822295189, -0.009691889397799969, 0.006136038806289434, 0.00787003617733717, -0.016415175050497055, -0.02284252643585205, 0.08426765352487564, -0.021751264110207558, -0.02069699391722679, 0.00837867520749569, 0.0317205935716629, 0.005775367375463247, -0.013492812402546406, -0.010283760726451874, 0.034106574952602386, -0.031628113240003586, 0.004739592783153057, 0.01982768252491951, 0.03138766437768936, 0.017931845039129257, -0.043872445821762085, -0.024433178827166557, 0.0006022751331329346, 0.04808953031897545, 0.01906934753060341, 0.04039520397782326, -0.017219750210642815, -0.00859600305557251, 0.03754682466387749, -0.0015837176470085979, -0.009867601096630096, -0.052787505090236664, 0.021251872181892395, -0.02805839106440544, -0.005595031660050154, -0.035863690078258514, -0.006552198436111212, 0.01542564108967781, 0.023027485236525536, 0.03508685901761055, -0.0058539751917123795, 0.017756134271621704, 0.050752948969602585, 0.0129009410738945, -0.0066446783021092415, 0.009049154818058014, -0.06591964513063431, 0.014066186733543873, 0.019198819994926453, 0.025450458750128746, -0.04191187396645546, 0.023008989170193672, 0.013529803603887558, 0.011180815286934376, -0.01442685816437006, 0.0672883465886116, 0.06514281779527664, -0.025505946949124336, -0.030333394184708595, 0.02191772684454918, -0.011587726883590221, 0.004753464832901955, -0.05263953655958176, 0.00940057821571827, 0.05019807070493698, -0.026911640539765358, 0.04701676219701767, -0.004771960899233818, -0.06747330725193024, -0.03231246396899223, -0.0030148434452712536, -0.06691842526197433, -0.010219024494290352, -0.021251872181892395, -0.04013625904917717, -0.027207575738430023, -0.043613504618406296, 0.07080258429050446, 0.012105613946914673, -0.042096834629774094, -0.11844820529222488, 0.03525332361459732, -0.08567334711551666, -0.02631976827979088, 0.03961837291717529, -0.05119685083627701, -0.001019012532196939, 0.01977219432592392, 0.06296028941869736, -0.03283035010099411, -0.07032168656587601, -0.04757164046168327, -0.006760277785360813, -0.02010512165725231, 0.0025038921739906073, -0.021159391850233078, 0.002954731695353985, -0.035567756742239, -0.015462633222341537, 0.048866357654333115, 0.017867108806967735, -0.053823281079530716, -0.04394643008708954, 0.03676999360322952, -0.06018589437007904, -0.032904334366321564, 0.016239464282989502, -0.01335409190505743, -0.004827448632568121, -0.0020079689566046, 0.03314478322863579, -0.06499484926462173, 0.00014869027654640377, -0.0014704298228025436, 0.02766997553408146, -0.042318783700466156, -0.013455820269882679, 0.007245797198265791, 0.008323187939822674, 0.03125819191336632, -0.006011191289871931, -0.025764890015125275, -0.053490351885557175, -0.0843416377902031, 0.07353998720645905, -0.014843017794191837, -0.01665562391281128, -0.026412248611450195, 0.013113644905388355, -0.005086392629891634, 0.06307126581668854, 0.001974445069208741, -0.021103905513882637, 0.03943341225385666, -0.03891552612185478, -0.014491594396531582, 0.025672409683465958, 0.0023408965207636356, -0.04712773859500885, 0.02977851592004299, 0.00033321650698781013, 0.0067510297521948814, 0.008096612058579922, 0.05744849145412445, -0.02546895481646061, -0.014870761893689632, 0.06159158796072006, -0.08005057275295258, 0.08308390527963638, 0.02008662559092045, 0.04039520397782326, -0.03873056545853615, -0.00800875574350357, 0.023397404700517654, 0.01579556055366993, -0.07132046669721603, -0.008415667340159416, 0.04738667979836464, 0.029353108257055283 ]
729,319
tinytuya.core
_negotiate_session_key_generate_finalize
null
def _negotiate_session_key_generate_finalize( self ): if IS_PY2: k = [ chr(ord(a)^ord(b)) for (a,b) in zip(self.local_nonce,self.remote_nonce) ] self.local_key = ''.join(k) else: self.local_key = bytes( [ a^b for (a,b) in zip(self.local_nonce,self.remote_nonce) ] ) log.debug("Session nonce XOR'd: %r", self.local_key) cipher = AESCipher(self.real_local_key) if self.version == 3.4: self.local_key = cipher.encrypt( self.local_key, False, pad=False ) else: iv = self.local_nonce[:12] log.debug("Session IV: %r", iv) self.local_key = cipher.encrypt( self.local_key, use_base64=False, pad=False, iv=iv )[12:28] log.debug("Session key negotiate success! session key: %r", self.local_key) return True
(self)
[ -0.022203445434570312, -0.07272051274776459, -0.03265655040740967, 0.06144018843770027, 0.00023647563648410141, -0.03929314389824867, -0.0271103885024786, 0.07396135479211807, 0.048392608761787415, -0.014429420232772827, 0.031114906072616577, 0.0001714081154204905, 0.0068527995608747005, 0.0323745422065258, -0.032769352197647095, -0.02058659866452217, 0.053844768553972244, -0.05079907923936844, -0.032750554382801056, -0.06147778779268265, 0.001895330147817731, 0.024215104058384895, -0.019721774384379387, 0.04579813405871391, -0.003628505626693368, 0.02156422846019268, 0.006152478978037834, 0.029122047126293182, 0.011421332135796547, -0.015209642238914967, 0.0021397373639047146, -0.011646938510239124, 0.08482807129621506, 0.02457231469452381, 0.04117319732904434, -0.036755070090293884, -0.0008442620746791363, 0.0009182892390526831, -0.0786614865064621, -0.044406890869140625, -0.004072668496519327, -0.029610861092805862, 0.027787208557128906, -0.012051151134073734, -0.01013349462300539, 0.024685118347406387, 0.0032242939341813326, 0.07693184167146683, 0.013197984546422958, -0.017390506342053413, 0.00020592474902514368, 0.0057717678137123585, 0.032355740666389465, 0.02190263755619526, -0.026903582736849785, 0.034386198967695236, 0.011900746263563633, -0.027655605226755142, -0.09986850619316101, 0.03231814131140709, -0.04421888664364815, -0.023557085543870926, 0.026583973318338394, 0.06320744007825851, -0.014467021450400352, 0.02596355602145195, -0.03188572824001312, 0.028351224958896637, 0.028840038925409317, 0.016177870333194733, 0.030720094218850136, -0.007694123778492212, -0.0160368662327528, 0.0235194843262434, -0.03173532336950302, -0.017381105571985245, -0.041549209505319595, 0.03244974464178085, -0.006810498423874378, 0.00011757685570046306, -0.019646571949124336, -0.05715366452932358, 0.008751654997467995, -0.014072209596633911, 0.020078985020518303, 0.05219031870365143, -0.0009030138025991619, -0.018941551446914673, -0.011158124543726444, -0.010885517112910748, -0.020812205970287323, 0.0661403238773346, -0.028219621628522873, 0.04752778261899948, 0.02165823057293892, -0.01775711588561535, 0.029516858980059624, -0.011778542771935463, 0.03933074325323105, -0.06207940727472305, 0.004183121956884861, 0.026414768770337105, -0.0743749663233757, 0.019402164965867996, -0.001821303041651845, -0.035382628440856934, -0.024534713476896286, 0.016713686287403107, 0.02222224697470665, 0.016488078981637955, -0.007510818541049957, -0.029084445908665657, -0.0054709590040147305, 0.025869552046060562, -0.0011715090367943048, -0.061816200613975525, 0.024515913799405098, 0.028595631942152977, 0.028689634054899216, 0.012107552029192448, 0.003936364781111479, -0.03884192928671837, -0.004671935923397541, -0.011167525313794613, -0.03517582267522812, 0.0060443757101893425, 0.08069194853305817, -0.03557063639163971, -0.027298394590616226, -0.009536577388644218, -0.00421367259696126, 0.04921983182430267, 0.034311000257730484, 0.044895704835653305, -0.057905685156583786, 0.006664793938398361, 0.01554805226624012, 0.03002447448670864, 0.02116941660642624, 0.0333709716796875, 0.02408350072801113, 0.0032853956799954176, -0.0004935143515467644, 0.024647517129778862, -0.0008483746787533164, 0.018283532932400703, -0.029084445908665657, -0.032769352197647095, 0.04662535712122917, -0.06520029902458191, 0.06226741150021553, -0.015153241343796253, 0.02432790771126747, 0.03510062023997307, -0.006481488700956106, 0.02686598151922226, -0.0007338088471442461, 0.026640376076102257, -0.016582082957029343, -0.01905435509979725, 0.00032049056608229876, -0.040646784007549286, 0.0019082555081695318, -0.025343136861920357, 0.03839071840047836, 0.007031404413282871, 0.007900930009782314, -0.062154609709978104, -0.004690736532211304, 0.011609338223934174, -0.03978195786476135, 0.01816132850944996, 0.004545032046735287, -0.011740941554307938, 0.01473962888121605, 0.002127986866980791, 0.006970302667468786, -0.093175508081913, -0.00797143206000328, 0.005546161439269781, -0.03075769543647766, -0.030381683260202408, -0.06542590260505676, 0.006237081717699766, 0.018781745806336403, 0.07080285996198654, 0.07053965330123901, 0.020003782585263252, 0.07388614863157272, -0.049934253096580505, -0.055724821984767914, 0.04403088241815567, -0.014758429490029812, 0.046437352895736694, 0.006782297510653734, 0.020962610840797424, 0.027542801573872566, 0.027806010097265244, -0.06862200051546097, 0.008887958712875843, -0.026922384276986122, -0.02410230226814747, -0.043090853840112686, -0.03254374861717224, 0.015388247556984425, -0.010838515125215054, -0.026001157239079475, -0.009273369796574116, 0.03989475965499878, 0.0002568918571341783, 0.002413520123809576, -0.019834578037261963, 0.05647684261202812, 0.0589585155248642, -0.016130870208144188, -0.000641568680293858, -0.0037131081335246563, 0.0685843974351883, -0.01493703480809927, 0.016995694488286972, 0.055536817759275436, 0.008197038434445858, 0.004129070322960615, -0.04598613828420639, 0.011957148090004921, -0.06320744007825851, -0.04794139415025711, 0.017945121973752975, -0.059221722185611725, -0.015153241343796253, 0.019796976819634438, 0.05102468654513359, 0.00387526280246675, 0.07230690121650696, -0.02237265184521675, 0.008056034334003925, 0.012220355682075024, -0.0025592243764549494, -0.0063733854331076145, 0.03331457078456879, -0.04019556939601898, -0.019402164965867996, 0.0444444939494133, -0.02107541263103485, -0.0041431705467402935, 0.0594097301363945, 0.0335213765501976, 0.04827980324625969, 0.0470389686524868, 0.041474007070064545, -0.02874603681266308, -0.02914084866642952, -0.02906564623117447, -0.008840957656502724, 0.01444822084158659, -0.028050417080521584, -0.008568349294364452, 0.04117319732904434, 0.04233883321285248, 0.022184645757079124, -0.0023430180735886097, 0.06001134589314461, -0.11340489983558655, 0.04940783604979515, 0.010406102985143661, 0.006481488700956106, -0.02026698924601078, 0.03737548738718033, -0.016253072768449783, -0.036491863429546356, 0.07095326483249664, 0.003832961432635784, -0.06204180419445038, 0.01180674321949482, 0.04527171701192856, -0.04124839976429939, 0.010716311633586884, -0.011092322878539562, -0.045459721237421036, -0.006500289309769869, 0.03850352019071579, -0.019402164965867996, 0.018847549334168434, -0.02539953961968422, -0.02831362374126911, 0.04290284961462021, -0.047565385699272156, -0.09520597010850906, 0.06147778779268265, -0.0740741565823555, -0.055724821984767914, -0.0047729890793561935, 0.06467388570308685, 0.05249112844467163, 0.0343674011528492, 0.02850162982940674, -0.026320766657590866, 0.024873124435544014, -0.023256277665495872, 0.013696198351681232, -0.02539953961968422, 0.01379960123449564, -0.01449522189795971, -0.0398571603000164, 0.07283332198858261, -0.011223926208913326, 0.0343674011528492, 0.07320933043956757, 0.0013125132536515594, -0.014062808826565742, -0.04726457595825195, -0.014062808826565742, 0.028388826176524162, -0.024121101945638657, -0.00009774815407581627, -0.001371264923363924, 0.03865392506122589, -0.014626825228333473, 0.023557085543870926, 0.06636593490839005, 0.014514022506773472, -0.01457042433321476, -0.041549209505319595, 0.059146519750356674, -0.012558765709400177, -0.06696754693984985, 0.01659148372709751, -0.02996807172894478, -0.01700509525835514, 0.02970486506819725, -0.10362861305475235, 0.02660277485847473, -0.0395563505589962, 0.0496334433555603, -0.0343674011528492, -0.007398015353828669, -0.019909778609871864, -0.0006662443629465997, 0.05613843351602554, -0.032430943101644516, -0.022184645757079124, -0.09294990450143814, -0.01635647565126419, -0.02180863544344902, -0.01816132850944996, -0.023970697075128555, -0.03933074325323105, -0.010048892349004745, 0.014636225998401642, -0.045459721237421036, -0.022447852417826653, -0.002968136454001069, 0.06862200051546097, 0.08084235340356827, 0.0395563505589962, 0.005790568422526121, -0.018377535045146942, -0.011656339280307293, 0.0222974494099617, -0.008333342149853706, -0.012464762665331364, 0.05884571373462677, 0.007214710116386414, 0.01151533517986536, -0.05301754176616669, -0.01863134279847145, 0.0014053408522158861, -0.008507248014211655, 0.011374331079423428, -0.009738683700561523, -0.04290284961462021, -0.023557085543870926, 0.021113013848662376, 0.017700714990496635, 0.0063075837679207325, 0.004958644509315491, -0.03254374861717224, -0.025380738079547882, -0.0017284753266721964, -0.0592593252658844, 0.0012796121882274747, 0.030870499089360237, -0.0009083014447242022, 0.017926322296261787, 0.01970297284424305, 0.01660088263452053, 0.021507825702428818, 0.0018612542189657688, 0.022748662158846855, 0.007336913608014584, -0.025737948715686798, -0.001365389791317284, 0.12513643503189087, 0.020078985020518303, 0.025004727765917778, 0.014542222954332829, -0.02180863544344902, -0.029291251674294472, -0.011769142933189869, -0.02148902602493763, 0.05455918610095978, 0.013103981502354145, -0.0012666868278756738, -0.008507248014211655, -0.012239156290888786, 0.008544848300516605, 0.051814306527376175, -0.01651628129184246, 0.030964501202106476, -0.0639970600605011, -0.058319296687841415, 0.003811810864135623, -0.0008242864860221744, -0.03831551596522331, -0.020285790786147118, 0.026903582736849785, -0.04493330791592598, 0.04639974981546402, 0.049445439130067825, 0.0444444939494133, 0.0060960776172578335, 0.009663481265306473, 0.012032350525259972, 0.0037131081335246563, -0.036435458809137344, 0.03310776501893997, 0.01921415887773037, -0.008483747020363808, -0.005546161439269781, -0.043579667806625366, -0.016666684299707413, -0.004671935923397541, 0.0716300830245018, -0.006960902363061905, -0.025531142950057983, 0.021959038451313972, -0.00036191052640788257, -0.03978195786476135, -0.030475687235593796, 0.047640588134527206, -0.03701827675104141, -0.01668548583984375, -0.03652946278452873, 0.07031404972076416, 0.07366054505109787, 0.023914296180009842, -0.07035164535045624, 0.00842734519392252, 0.03135931119322777, 0.0589585155248642, 0.016262473538517952, 0.014786629937589169, -0.08136876672506332, -0.014664426445960999, -0.006472088396549225, 0.041887618601322174, 0.03199853003025055, 0.07693184167146683, -0.04617414250969887, -0.06538829952478409, -0.013771400786936283, 0.06621553003787994, 0.0517767071723938, 0.03011847659945488, -0.01449522189795971, 0.01896035112440586, -0.023575885221362114, -0.018819347023963928, -0.005532061215490103, -0.006801098119467497, -0.06106417626142502, -0.004406378138810396, -0.03143451362848282, -0.008267540484666824, 0.021789833903312683, -0.03239334374666214, 0.01757851243019104, -0.0033840984106063843, -0.07287091761827469, -0.04967104643583298, -0.08189518004655838, 0.014034608379006386, 0.010039492510259151, -0.06839638948440552, 0.008972560986876488, -0.017634913325309753, 0.03974435478448868, -0.033991388976573944, 0.022579457610845566, 0.016817089170217514, 0.015736058354377747, 0.04955824092030525, -0.04075958579778671, 0.05843210220336914, -0.013197984546422958, -0.004735387861728668, -0.011092322878539562, 0.007435616571456194, -0.039255540817976, -0.04997185245156288, -0.034875016659498215, 0.05478479340672493, 0.019514968618750572, -0.000729696243070066, 0.008037233725190163, 0.003478101221844554, -0.062229812145233154, -0.027524001896381378, -0.02498592622578144, 0.05403277277946472, 0.017719516530632973, -0.04576053097844124, 0.030099675059318542, -0.0734725371003151, 0.03019367903470993, 0.0233690794557333, -0.01363039668649435, -0.06012415140867233, -0.044970907270908356, -0.007510818541049957, 0.002155012683942914, 0.030908100306987762, 0.007825727574527264, 0.040157970041036606, -0.03508182242512703, 0.07986472547054291, -0.03498781844973564, 0.01741870678961277, -0.01863134279847145, 0.0005317030008882284, -0.08437685668468475, 0.025737948715686798, -0.00035779792233370245, 0.007177108898758888, -0.03201733157038689, -0.027129190042614937, -0.061176981776952744, 0.04072198644280434, -0.0005173088284209371, -0.042376432567834854, -0.0007191209006123245, 0.006721195764839649, -0.08490327000617981, -0.047339778393507004, -0.0197781752794981, 0.049445439130067825, 0.04117319732904434, 0.0021597128361463547, -0.08144397288560867, -0.0014993436634540558, -0.07546539604663849, 0.02327507734298706, 0.059372127056121826, -0.027636803686618805, 0.009184067137539387, -0.03231814131140709, 0.031114906072616577, -0.021451424807310104, -0.06328263878822327, 0.04512131214141846, 0.041624411940574646, -0.016976894810795784, -0.0447453036904335, -0.03305136039853096, 0.0008806881378404796, -0.0027730807196348906, -0.015360047109425068, -0.003715458093211055, 0.02002258226275444, 0.06877239793539047, 0.00031226532883010805, -0.03733788803219795, 0.056439243257045746, 0.01987217739224434, -0.04136120527982712, -0.04320365563035011, -0.036830272525548935, 0.012915975414216518, 0.03557063639163971, -0.030738893896341324, -0.023557085543870926, -0.018997952342033386, 0.08986661583185196, -0.012558765709400177, -0.027730807662010193, 0.04613654315471649, 0.020624199882149696, 0.0062511819414794445, -0.0423012301325798, 0.008103035390377045, -0.05094948410987854, -0.027373597025871277, 0.019326962530612946, -0.008455545641481876, 0.008629451505839825, 0.000982328550890088, 0.0423012301325798, 0.06922361254692078, 0.017399907112121582, -0.02288026548922062, -0.008229939267039299, -0.005203051492571831, 0.029911670833826065, 0.0034710511099547148, 0.011064122430980206, -0.039593953639268875, -0.07655582576990128, 0.022034240886569023, 0.006387485656887293, 0.023500684648752213, -0.03792070224881172, 0.029535658657550812, 0.016093268990516663, -0.023406680673360825, 0.03184812515974045, 0.058732908219099045, -0.024403110146522522, -0.02002258226275444, 0.003614405170083046, 0.039669156074523926, -0.025982355698943138, -0.004864641465246677, -0.02368868887424469, 0.030964501202106476, -0.04557252675294876, 0.03295736014842987, 0.0247415192425251, 0.014034608379006386, 0.003626155434176326, 0.01522844284772873, -0.03493141755461693, 0.00993608869612217, 0.020981410518288612, 0.044895704835653305, 0.03709347918629646, 0.02385789342224598, 0.012850173749029636, 0.028370026499032974, 0.012182754464447498, -0.012022949755191803, -0.02914084866642952, 0.011430732905864716, -0.00275663030333817, -0.004754188470542431, -0.06602752208709717, 0.003452250501140952, 0.025831950828433037, -0.0007649472681805491, 0.01693929359316826, -0.024440711364150047, 0.0019388063810765743, 0.006260582245886326, 0.04906942695379257, -0.02581315115094185, 0.0014405918773263693, -0.054408784955739975, 0.005776468198746443, 0.018499737605452538, 0.07655582576990128, -0.02921605110168457, 0.0057999687269330025, 0.009043063037097454, -0.003851762041449547, -0.005395757034420967, 0.04910703003406525, 0.04094759002327919, 0.007853928953409195, -0.031378112733364105, 0.01653508096933365, -0.013498792424798012, 0.00895846076309681, -0.037563491612672806, -0.012756171636283398, 0.03434859961271286, -0.0441436842083931, 0.04030837118625641, 0.0007432091515511274, -0.02009778469800949, -0.01970297284424305, 0.015501051209867, -0.04681336134672165, -0.0001340273447567597, -0.02256065607070923, -0.06301943212747574, 0.0038705626502633095, -0.04361727088689804, 0.04425648972392082, 0.0372626855969429, -0.04403088241815567, -0.13513833284378052, 0.023538285866379738, -0.07091566175222397, 0.002918784972280264, 0.02335027977824211, -0.05106228590011597, -0.006537890061736107, 0.027561601251363754, 0.027448799461126328, -0.05745447054505348, -0.024534713476896286, -0.03981955721974373, 0.0064344871789216995, 0.004921043291687965, -0.020003782585263252, -0.015839461237192154, 0.026001157239079475, 0.007116007152944803, -0.04421888664364815, 0.016544481739401817, 0.021771034225821495, 0.011834944598376751, -0.010565907694399357, 0.0336717814207077, -0.06260582059621811, -0.012032350525259972, 0.1032526046037674, -0.03656706586480141, -0.029122047126293182, -0.0014476421056315303, 0.02784360945224762, -0.034066591411828995, -0.0034875015262514353, -0.011308529414236546, 0.020962610840797424, -0.025173932313919067, -0.017437508329749107, -0.016262473538517952, 0.0038776127621531487, 0.035457830876111984, 0.011731541715562344, -0.018847549334168434, -0.03344617411494255, -0.058808110654354095, 0.06046256050467491, -0.020060183480381966, -0.03196093067526817, -0.01945856586098671, 0.02806921675801277, -0.04624934494495392, 0.08640731126070023, -0.0791127011179924, 0.028200820088386536, 0.02009778469800949, 0.008488447405397892, -0.015585653483867645, 0.0418500192463398, 0.00275663030333817, -0.04117319732904434, 0.02165823057293892, 0.04395567998290062, 0.02904684469103813, 0.0467381589114666, 0.04354206845164299, -0.024271506816148758, -0.02261705882847309, 0.02319987490773201, -0.05918412283062935, 0.06407226622104645, 0.010537706315517426, 0.0356646366417408, -0.0348186120390892, -0.018048524856567383, -0.0008601250592619181, 0.02148902602493763, -0.04436929151415825, 0.01732470467686653, 0.06245541572570801, 0.03694307431578636 ]
729,320
tinytuya.core
_negotiate_session_key_generate_step_1
null
def _negotiate_session_key_generate_step_1( self ): self.local_nonce = b'0123456789abcdef' # not-so-random random key self.remote_nonce = b'' self.local_key = self.real_local_key return MessagePayload(SESS_KEY_NEG_START, self.local_nonce)
(self)
[ -0.04330030083656311, -0.05063993111252785, -0.03855939209461212, 0.047268617898225784, 0.010754839517176151, -0.011325504630804062, -0.009007726795971394, 0.05833073705434799, 0.036627911031246185, -0.015214805491268635, -0.003237426280975342, 0.05243093892931938, -0.006891876924782991, 0.06819885224103928, -0.026513971388339996, -0.013678399845957756, 0.07276417315006256, -0.03413454443216324, -0.013713518157601357, -0.039296865463256836, 0.01038610190153122, 0.03272983059287071, 0.02344116009771824, 0.06089434027671814, -0.018384190276265144, -0.0010387200163677335, -0.006883097346872091, 0.016874123364686966, 0.00906040333211422, -0.037189796566963196, -0.008963829837739468, -0.05081551894545555, 0.048919156193733215, 0.03222062066197395, 0.0294111929833889, -0.03862962871789932, -0.06595131009817123, -0.003481056308373809, -0.11097238212823868, -0.03093882091343403, 0.030201345682144165, 0.00010562788520473987, 0.05176370218396187, -0.024968786165118217, -0.012932145968079567, 0.021527238190174103, 0.03438036888837814, 0.026882709935307503, 0.001995132537558675, -0.016206884756684303, 0.00453459145501256, 0.044143129140138626, 0.02730412408709526, 0.004745298530906439, -0.03483689948916435, 0.029130250215530396, 0.01099188532680273, -0.04663649573922157, -0.08442329615354538, 0.044634778052568436, -0.03487201780080795, 0.005048189777880907, 0.02193109318614006, 0.05555642768740654, -0.003147436771541834, 0.004727739840745926, -0.010052482597529888, 0.01606641337275505, 0.02136920765042305, 0.008919931948184967, 0.054221950471401215, 0.0015210416167974472, -0.046179965138435364, 0.03680349886417389, -0.03571484610438347, 0.008827747777104378, -0.03042961098253727, 0.035486578941345215, 0.0006738236406818032, -0.0012346117291599512, -0.006312432233244181, -0.054292187094688416, -0.009674965403974056, -0.007488880306482315, -0.01016661524772644, 0.07227252423763275, 0.018296396359801292, -0.020403467118740082, -0.006716287694871426, -0.020965352654457092, -0.0068962667137384415, 0.04667161405086517, -0.04224676638841629, 0.02558334916830063, 0.048392388969659805, -0.014020798727869987, -0.008955050259828568, 0.01149231381714344, 0.02784845046699047, -0.05197440832853317, 0.013186750002205372, 0.025513112545013428, -0.08800531178712845, 0.03367801010608673, 0.002183890901505947, -0.031184645369648933, 0.0011045659193769097, 0.004413873888552189, 0.008665327914059162, 0.04600437358021736, -0.00227168551646173, -0.020438585430383682, -0.027110975235700607, 0.015548424795269966, -0.021298972889780998, -0.0055793472565710545, 0.04927033558487892, 0.035504139959812164, 0.02252809703350067, 0.004503863397985697, 0.027110975235700607, -0.047760266810655594, -0.021702827885746956, 0.00906918291002512, -0.02289683371782303, -0.0016648052260279655, 0.06612689793109894, -0.04122834652662277, 0.003303272183984518, -0.04326518252491951, 0.01283557154238224, 0.032308414578437805, 0.017506245523691177, 0.061737168580293655, -0.07873420417308807, 0.010087600909173489, 0.057944443076848984, 0.031325116753578186, 0.03276494890451431, 0.011465976014733315, 0.014863627031445503, -0.014889965765178204, 0.012774115428328514, 0.041368819773197174, -0.020561497658491135, -0.022018887102603912, -0.03855939209461212, 0.00575932627543807, 0.03992898762226105, -0.04923521727323532, 0.053168416023254395, -0.0019698916003108025, 0.026022322475910187, 0.022563213482499123, 0.029604341834783554, 0.02307242341339588, -0.004714570473879576, 0.029692135751247406, -0.029639460146427155, -0.010324645787477493, 0.009955908171832561, -0.05387077108025551, 0.033344391733407974, -0.043475888669490814, 0.013915445655584335, 0.014494889415800571, 0.01875292882323265, -0.033379510045051575, 0.002567992312833667, 0.04101764038205147, -0.030060874298214912, 0.020701969042420387, 0.013853989541530609, -0.05186905339360237, 0.009587171487510204, -0.00021866345196031034, 0.008511687628924847, -0.05920868366956711, -0.010789957828819752, 0.010517793707549572, -0.030060874298214912, -0.02138676680624485, -0.06900656223297119, -0.028743954375386238, 0.037681445479393005, 0.06819885224103928, 0.06145622581243515, 0.019982052966952324, 0.06602154672145844, -0.03306344896554947, -0.041403938084840775, 0.06085922196507454, -0.010596808977425098, 0.051623228937387466, -0.004060500767081976, 0.04101764038205147, 0.025390200316905975, 0.0013235036749392748, -0.05804979428648949, 0.013256985694169998, -0.016312237828969955, -0.004262428265064955, -0.028480570763349533, -0.03683861717581749, -0.00442484812811017, -0.003946367651224136, -0.025952085852622986, -0.03487201780080795, 0.0348895788192749, -0.01608397252857685, -0.020543938502669334, -0.02293195202946663, 0.07248322665691376, 0.04431871697306633, -0.030201345682144165, -0.02888442575931549, -0.010342204943299294, 0.047338854521512985, 0.008208795450627804, -0.010763619095087051, 0.07157016545534134, -0.008401944302022457, -0.0062729245983064175, -0.0586467981338501, 0.029692135751247406, -0.03325659781694412, -0.02187841571867466, -0.05078040063381195, -0.08393164724111557, 0.006777743808925152, 0.026601767167448997, 0.001011284184642136, 0.047795385122299194, 0.023739662021398544, 0.008814578875899315, 0.01170302089303732, 0.013353560119867325, -0.04716326296329498, 0.012572187930345535, 0.05060481280088425, -0.0587170347571373, -0.006321211811155081, 0.057452790439128876, 0.023265570402145386, -0.007453762460500002, 0.07234276086091995, 0.03269471228122711, 0.015680117532610893, 0.03141291067004204, 0.041439056396484375, 0.011009443551301956, -0.020069846883416176, -0.026917826384305954, 0.02507413923740387, 0.034362807869911194, -0.023160217329859734, -0.011378181166946888, 0.004484109580516815, 0.02244030125439167, 0.010640706866979599, -0.005070138722658157, 0.05067504942417145, -0.1552208662033081, 0.01769939251244068, 0.0010902993381023407, 0.031131967902183533, -0.0320625901222229, 0.0534844771027565, 0.010728500783443451, -0.0428437702357769, 0.062263935804367065, 0.01968355104327202, -0.01304627861827612, -0.002217911183834076, 0.054151713848114014, -0.024898551404476166, 0.019929375499486923, -0.009385243989527225, -0.009569612331688404, -0.01915678381919861, 0.018436867743730545, -0.010825075209140778, 0.039753399789333344, -0.022668568417429924, -0.02198377065360546, 0.032361093908548355, -0.014442212879657745, -0.1119556874036789, 0.05183393508195877, -0.07768066972494125, -0.03690885379910469, 0.01755892112851143, 0.0534844771027565, 0.010157836601138115, 0.005386199336498976, 0.011782036162912846, -0.024968786165118217, 0.004679452627897263, -0.014371977187693119, 0.03884033486247063, 0.009885672479867935, 0.009964687749743462, -0.040350403636693954, -0.03673326596617699, 0.023388484492897987, -0.010271969251334667, 0.025881851091980934, 0.07206181436777115, -0.028094274923205376, -0.05278211832046509, -0.08821602165699005, 0.005943695083260536, 0.026970503851771355, -0.027146093547344208, -0.003000380704179406, -0.009885672479867935, 0.04020993039011955, 0.02187841571867466, 0.05229046940803528, 0.060191985219717026, 0.029112692922353745, -0.02196621149778366, -0.052149996161460876, 0.041474174708127975, 0.009973467327654362, -0.03534610942006111, 0.004014408681541681, -0.04558296129107475, -0.008603871800005436, 0.02289683371782303, -0.08196504414081573, -0.003028914099559188, -0.039226632565259933, 0.014468551613390446, -0.06703996658325195, 0.010008585639297962, -0.01098310574889183, 0.03381848335266113, 0.03141291067004204, -0.023142658174037933, -0.0079805301502347, -0.13127049803733826, -0.011386960744857788, -0.02198377065360546, 0.048813801258802414, -0.025794055312871933, 0.009753980673849583, -0.034415487200021744, 0.02625058777630329, -0.07824255526065826, -0.039226632565259933, -0.007962970994412899, 0.061631813645362854, 0.06272047013044357, 0.08498518168926239, 0.021140942350029945, -0.023950370028614998, -0.010078821331262589, -0.014310521073639393, -0.004385340493172407, -0.003292297711595893, 0.02772553823888302, -0.03431013226509094, 0.016127869486808777, -0.06303653120994568, -0.027901126071810722, 0.019121665507555008, -0.0049164979718625546, 0.005311573855578899, 0.021123383194208145, -0.02238762564957142, -0.0067338463850319386, -0.021211177110671997, 0.011632785201072693, -0.010649486444890499, -0.013221868313848972, -0.017673054710030556, -0.025319965556263924, -0.014679258689284325, -0.06809350103139877, -0.00422072596848011, 0.017418449744582176, -0.02616279385983944, 0.06988450884819031, 0.036557674407958984, 0.031079290434718132, 0.02784845046699047, 0.000996468821540475, 0.03564460948109627, -0.019911816343665123, 0.0010897505562752485, 0.0023660645820200443, 0.12003278732299805, 0.044108010828495026, 0.04175511747598648, -0.01038610190153122, -0.022721244022250175, -0.02359919063746929, -0.042527709156274796, -0.026443736627697945, 0.07006009668111801, 0.021632591262459755, -0.022194476798176765, -0.02251053787767887, -0.005074528511613607, -0.038699861615896225, 0.042949121445417404, -0.05218511447310448, 0.009332566522061825, -0.02237006649374962, -0.04628531634807587, -0.0008658743463456631, 0.000016504358427482657, -0.03332683444023132, 0.020982911810278893, -0.00841511320322752, -0.043054476380348206, 0.07768066972494125, 0.013116514310240746, 0.01704971306025982, 0.0000842279550852254, -0.007409865036606789, 0.024283988401293755, 0.0022914393339306116, -0.027497271075844765, 0.06159669905900955, -0.01764671690762043, -0.006751405540853739, -0.011571329087018967, -0.03146558627486229, -0.018893400207161903, -0.022018887102603912, 0.05274700000882149, -0.005943695083260536, -0.013283324427902699, 0.006580206099897623, -0.011861051432788372, -0.04653114080429077, -0.02198377065360546, 0.05618854984641075, -0.029165368527173996, -0.03311612457036972, -0.009218433871865273, 0.06510847806930542, 0.0745902955532074, -0.0044380174949765205, -0.061140164732933044, 0.024986345320940018, 0.04909474402666092, 0.04751444235444069, 0.027620183303952217, -0.012554628774523735, -0.03000819683074951, -0.012905807234346867, -0.00987689383327961, 0.01568889617919922, 0.02033323049545288, 0.06482753902673721, -0.0535547100007534, -0.08294834941625595, 0.01117625366896391, 0.04417824745178223, -0.013002381660044193, 0.031746529042720795, 0.005070138722658157, 0.04442407190799713, -0.017181403934955597, -0.005039410665631294, -0.028656160458922386, -0.006571426521986723, -0.06749649345874786, 0.0007500951760448515, -0.008735563606023788, -0.01873536966741085, 0.01917434297502041, -0.025232169777154922, 0.010535352863371372, -0.023634308949112892, -0.07824255526065826, -0.0016615130007266998, -0.05408147722482681, -0.018349073827266693, 0.019507961347699165, -0.01824371889233589, -0.021825740113854408, -0.006720677483826876, 0.011009443551301956, -0.020192759111523628, 0.005544229410588741, 0.02028055489063263, 0.020456144586205482, 0.035504139959812164, -0.02345871925354004, 0.07262369990348816, 0.005399368237704039, -0.0046970113180577755, 0.015381615608930588, 0.025513112545013428, -0.02349383756518364, -0.04326518252491951, -0.03968316316604614, 0.06198299303650856, 0.00640900619328022, -0.0006337673403322697, -0.007892735302448273, -0.013011161237955093, -0.09566100686788559, -0.02342360094189644, -0.024687843397259712, 0.05137740448117256, 0.04642578959465027, 0.0008082591230049729, -0.0018612457206472754, -0.0587872713804245, 0.0016955333994701505, 0.049867335706949234, 0.007304511498659849, -0.027918685227632523, -0.05457312986254692, -0.02194865234196186, 0.017515024170279503, 0.004271207842975855, 0.019472844898700714, 0.052606530487537384, -0.008015647530555725, 0.033432185649871826, -0.027532389387488365, -0.0005061908159404993, 0.001973183825612068, 0.032273296266794205, -0.07522241771221161, 0.02839277684688568, 0.013924225233495235, 0.048427507281303406, -0.02570626139640808, -0.028024038299918175, -0.04575854912400246, 0.04684720188379288, -0.010105159133672714, -0.036101143807172775, 0.006782133597880602, -0.024898551404476166, -0.08849696815013885, -0.027093416079878807, -0.037189796566963196, 0.048392388969659805, 0.01875292882323265, 0.041474174708127975, -0.09271110594272614, -0.00026818510377779603, -0.06637272238731384, -0.012466833926737309, 0.03587287664413452, -0.060578279197216034, -0.0029213656671345234, -0.03318636119365692, 0.024336665868759155, 0.015118231996893883, -0.05130716785788536, 0.07332605868577957, 0.03374824672937393, -0.03673326596617699, -0.013318441808223724, -0.031184645369648933, -0.023283129557967186, 0.003546902211382985, -0.04171999916434288, -0.005276456009596586, -0.018033012747764587, 0.06623224914073944, -0.008823358453810215, -0.02781333215534687, 0.04958639293909073, 0.01603129506111145, -0.06609178334474564, -0.05302794277667999, -0.027444595471024513, 0.029165368527173996, 0.012949705123901367, 0.003546902211382985, -0.005948084872215986, 0.016549283638596535, 0.09523959457874298, -0.016408812254667282, -0.044002655893564224, 0.06078898534178734, 0.03894568979740143, -0.021193617954850197, -0.05808491259813309, 0.0318870022892952, -0.060683634132146835, -0.030534964054822922, 0.01820860244333744, 0.0010985300177708268, -0.0020313477143645287, 0.006830420345067978, 0.08765413612127304, 0.024266429245471954, 0.026443736627697945, -0.004661893472075462, -0.018085690215229988, 0.01699703559279442, 0.052606530487537384, 0.008099053055047989, 0.030815906822681427, -0.031219761818647385, -0.05288747325539589, -0.0037290758918970823, -0.014819730073213577, -0.004920887760818005, -0.01982402242720127, 0.011448416858911514, -0.009999806061387062, -0.020087406039237976, 0.009262330830097198, 0.051588110625743866, -0.013292104005813599, -0.024336665868759155, -0.01042122021317482, -0.005509111564606428, -0.031184645369648933, -0.010798736475408077, -0.06159669905900955, 0.000984397018328309, -0.01915678381919861, 0.016277119517326355, 0.025477996096014977, 0.023880133405327797, 0.022247154265642166, -0.0016373693943023682, -0.04066646099090576, 0.024810755625367165, 0.01708483137190342, -0.00963984802365303, 0.0745200663805008, 0.014582684263586998, -0.00829659029841423, 0.03564460948109627, 0.0027479713317006826, 0.008744343183934689, -0.041368819773197174, 0.019016312435269356, -0.027918685227632523, -0.00012311822501942515, -0.08301857858896255, -0.012633644044399261, 0.011044561862945557, 0.0031035393476486206, -0.012554628774523735, -0.010868972167372704, 0.01757648028433323, 0.01415249053388834, 0.03143046796321869, -0.0008455718052573502, 0.009780319407582283, -0.02038590796291828, -0.011141135357320309, 0.013423795811831951, 0.03385360166430473, -0.048427507281303406, 0.032273296266794205, 0.007172819692641497, 0.02294951118528843, 0.016856564208865166, 0.02451225556433201, 0.06777743995189667, 0.030060874298214912, -0.04610972851514816, 0.05250117555260658, -0.022141799330711365, 0.0032791285775601864, -0.07174575328826904, 0.014767053537070751, 0.03785703331232071, -0.0318870022892952, 0.016926800832152367, 0.007712756283581257, -0.009279889985918999, -0.004503863397985697, 0.03315124288201332, -0.06893632560968399, -0.008559973910450935, 0.012177112512290478, -0.07058686763048172, -0.01793643832206726, -0.058892622590065, 0.053168416023254395, 0.020947793498635292, -0.06040269136428833, -0.09200874716043472, 0.04171999916434288, -0.07775090634822845, 0.008243913762271404, 0.03211526945233345, -0.044002655893564224, -0.02561846747994423, 0.028427893295884132, 0.018577339127659798, -0.04663649573922157, -0.018471986055374146, -0.07374747097492218, 0.004991123452782631, 0.002963067963719368, 0.0007912489236332476, -0.015539645217359066, 0.035065166652202606, 0.010798736475408077, -0.019982052966952324, 0.036627911031246185, -0.002333141630515456, -0.0023485056590288877, 0.00844145193696022, 0.032782506197690964, -0.033484864979982376, -0.021597472950816154, 0.05678555369377136, -0.047233499586582184, 0.017295537516474724, -0.039296865463256836, 0.05650461092591286, -0.06472218781709671, -0.01017539482563734, -0.0037993115838617086, 0.02623302862048149, -0.015197246335446835, -0.006984061095863581, 0.008103442378342152, -0.025811614468693733, 0.038137976080179214, 0.004466550890356302, -0.005223779007792473, -0.03996410593390465, -0.0428086519241333, 0.04547760635614395, 0.031360235065221786, -0.0028708837926387787, -0.03376580774784088, 0.02294951118528843, -0.012203450314700603, 0.06552989780902863, -0.059068214148283005, 0.0241083987057209, 0.021035587415099144, 0.009718863293528557, -0.027549948543310165, 0.055837370455265045, 0.007629351690411568, -0.021667709574103355, -0.003628112142905593, 0.04656625911593437, 0.007361577823758125, 0.02560090832412243, 0.0076117925345897675, -0.01441587507724762, -0.05664508044719696, 0.0294463112950325, -0.04108787700533867, 0.06665366888046265, 0.020930234342813492, 0.02623302862048149, -0.04059622809290886, -0.03325659781694412, 0.013581826351583004, 0.04740908741950989, -0.05453801155090332, 0.011290386319160461, 0.06198299303650856, 0.031272441148757935 ]
729,321
tinytuya.core
_negotiate_session_key_generate_step_3
null
def _negotiate_session_key_generate_step_3( self, rkey ): if not rkey or type(rkey) != TuyaMessage or len(rkey.payload) < 48: # error log.debug("session key negotiation failed on step 1") return False if rkey.cmd != SESS_KEY_NEG_RESP: log.debug("session key negotiation step 2 returned wrong command: %d", rkey.cmd) return False payload = rkey.payload if self.version == 3.4: try: log.debug("decrypting=%r", payload) cipher = AESCipher(self.real_local_key) payload = cipher.decrypt(payload, False, decode_text=False) except: log.debug("session key step 2 decrypt failed, payload=%r (len:%d)", payload, len(payload), exc_info=True) return False log.debug("decrypted session key negotiation step 2 payload=%r", payload) log.debug("payload type = %s len = %d", type(payload), len(payload)) if len(payload) < 48: log.debug("session key negotiation step 2 failed, too short response") return False self.remote_nonce = payload[:16] hmac_check = hmac.new(self.local_key, self.local_nonce, sha256).digest() if hmac_check != payload[16:48]: log.debug("session key negotiation step 2 failed HMAC check! wanted=%r but got=%r", binascii.hexlify(hmac_check), binascii.hexlify(payload[16:48])) return False log.debug("session local nonce: %r remote nonce: %r", self.local_nonce, self.remote_nonce) rkey_hmac = hmac.new(self.local_key, self.remote_nonce, sha256).digest() return MessagePayload(SESS_KEY_NEG_FINISH, rkey_hmac)
(self, rkey)
[ -0.019201796501874924, -0.036707356572151184, -0.061979398131370544, 0.0814194306731224, 0.0026086808647960424, -0.010453782044351101, -0.008633662015199661, 0.05180196836590767, 0.015094613656401634, -0.01997368037700653, 0.047151610255241394, 0.04951490834355354, 0.019725915044546127, 0.028340518474578857, -0.01078731194138527, -0.017600852996110916, 0.09826745837926865, -0.02456686459481716, 0.005184008739888668, -0.044407133013010025, -0.002503857249394059, 0.03644053265452385, -0.025233924388885498, 0.06270363926887512, -0.016180967912077904, 0.014637201093137264, 0.007404365576803684, 0.019278032705187798, 0.011158959940075874, 0.022565685212612152, -0.036345239728689194, -0.031428053975105286, 0.07958978414535522, 0.04509325325489044, -0.008552661165595055, -0.015313791111111641, -0.02658710442483425, -0.026053456589579582, -0.06964106112718582, -0.010701547376811504, -0.03952806815505028, -0.010844488628208637, 0.06548622995615005, -0.01567590981721878, -0.031618643552064896, 0.0031447112560272217, -0.009929663501679897, 0.05439397320151329, -0.0144752012565732, -0.024280982092022896, 0.038918182253837585, -0.011930843815207481, 0.013026728294789791, 0.03922312706708908, -0.003328152699396014, -0.003351976163685322, -0.02475745417177677, 0.005908245220780373, -0.08431638032197952, 0.03699323907494545, -0.04467395693063736, 0.0014246494974941015, -0.004883831832557917, 0.0736815333366394, -0.01842038333415985, 0.016247674822807312, -0.00828583724796772, -0.015494849532842636, -0.01572355628013611, 0.0008332293364219368, 0.004590801894664764, 0.013922493904829025, -0.02287062630057335, 0.02473839558660984, -0.019916504621505737, -0.01127331331372261, -0.04703725501894951, 0.04303489625453949, -0.000156788868480362, 0.02292780391871929, -0.008719426579773426, -0.02712075226008892, 0.03830830007791519, -0.022832509130239487, -0.004921949468553066, 0.054279621690511703, 0.06213187053799629, -0.005341244395822287, -0.012054726481437683, -0.010024958290159702, -0.03318146616220474, 0.0027111221570521593, -0.023023098707199097, 0.005736715625971556, 0.04097653925418854, 0.0054555973038077354, 0.015313791111111641, -0.011816490441560745, -0.028645459562540054, -0.0823342576622963, -0.0023728276137262583, 0.0571003332734108, -0.05572809278964996, 0.028073694556951523, 0.02580569125711918, -0.0007974940235726535, -0.04783772677183151, 0.029445933178067207, 0.007437718566507101, 0.005212597083300352, -0.006303716450929642, -0.03257158398628235, -0.01923038624227047, 0.06102645769715309, -0.018877796828746796, -0.06060716137290001, 0.013217316940426826, 0.027940282598137856, -0.04215819016098976, 0.008219131268560886, 0.0368407666683197, -0.052869267761707306, -0.015399555675685406, -0.005708127282559872, -0.030646640807390213, -0.0009720016387291253, 0.07444389164447784, -0.007523483131080866, 0.004362095613032579, 0.007294776849448681, -0.010110722854733467, 0.05176385119557381, 0.011244724504649639, 0.021174388006329536, -0.058205746114254, 0.02290874533355236, 0.013074374757707119, 0.02927440218627453, 0.045512549579143524, -0.011740255169570446, 0.029426872730255127, -0.0028230929747223854, 0.014980260282754898, 0.01429414190351963, -0.03476335480809212, -0.02287062630057335, -0.031580522656440735, -0.0017974883085116744, 0.0346299409866333, -0.0313136987388134, 0.03316240757703781, -0.014761083759367466, 0.05751962587237358, -0.005312656052410603, 0.028664520010352135, 0.023499568924307823, -0.009172074496746063, 0.016628852114081383, -0.044254664331674576, -0.025348277762532234, 0.02710169367492199, -0.07371965795755386, 0.012798021547496319, -0.017114851623773575, 0.04783772677183151, -0.023023098707199097, 0.007032717578113079, -0.030989699065685272, -0.011378137394785881, 0.07154694199562073, -0.026777692139148712, 0.06941235065460205, 0.014961201697587967, -0.033943820744752884, -0.028130870312452316, 0.03520170599222183, 0.017181558534502983, -0.1006307601928711, -0.005641421303153038, -0.006694423034787178, -0.04520760476589203, -0.026491809636354446, -0.0306085217744112, 0.004438330885022879, 0.03926124423742294, 0.0911775678396225, 0.048447612673044205, 0.019373327493667603, 0.05462267994880676, -0.016342969611287117, -0.07082270830869675, 0.020621681585907936, -0.0008826632401905954, 0.027006398886442184, -0.0250814538449049, 0.023518627509474754, 0.03588782623410225, 0.02104097604751587, -0.003594976617023349, -0.0022822979371994734, -0.008176249451935291, -0.043111130595207214, -0.023671098053455353, -0.000932097143959254, -0.03607841581106186, -0.003814153606072068, -0.026224985718727112, 0.01299813948571682, 0.0498579666018486, 0.012064255774021149, -0.03457276523113251, -0.029617462307214737, 0.06083586812019348, 0.05050596967339516, -0.014742025174200535, 0.0004478831251617521, 0.0014163112500682473, 0.05439397320151329, -0.02639651484787464, 0.009672368876636028, 0.06476198881864548, -0.007242365274578333, 0.0036902709398418665, -0.002416901057586074, 0.01957344450056553, -0.02561510168015957, -0.03312429040670395, -0.0070994240231812, -0.043492309749126434, 0.008514543995261192, 0.026434633880853653, 0.059273041784763336, 0.06220810487866402, 0.04657984524965286, 0.00850977934896946, 0.011444843374192715, -0.0037784180603921413, -0.020659800618886948, 0.04867631942033768, 0.05546126887202263, -0.02805463597178459, -0.02982710860669613, 0.029769932851195335, -0.00027307766140438616, -0.03243817389011383, 0.051725734025239944, 0.06998411566019058, 0.000686118786688894, 0.00540795037522912, 0.02490992471575737, -0.00822389591485262, -0.029903344810009003, -0.008262014016509056, 0.006303716450929642, 0.024833688512444496, -0.026053456589579582, 0.002396651078015566, -0.014560965821146965, 0.038918182253837585, -0.0031089759431779385, 0.043492309749126434, 0.04596995934844017, -0.07745519280433655, 0.027349459007382393, -0.018306031823158264, 0.026987340301275253, 0.010482370853424072, 0.022394156083464622, 0.010606253519654274, -0.02731133997440338, 0.07867495715618134, 0.015923673287034035, -0.07322412729263306, 0.029598403722047806, 0.03135181963443756, 0.0009976120200008154, 0.027540046721696854, -0.025881925597786903, -0.015075555071234703, -0.010854018852114677, 0.011664019897580147, -0.004452625289559364, 0.023137450218200684, 0.021898625418543816, -0.017886735498905182, 0.03790806606411934, -0.033810410648584366, -0.10101193934679031, 0.08660344034433365, -0.031752053648233414, -0.06308481097221375, -0.030665699392557144, 0.05896810069680214, 0.02363298088312149, 0.0009207809926010668, 0.05793892219662666, -0.04208195209503174, -0.00755207147449255, -0.02529110200703144, 0.019459091126918793, -0.023918863385915756, 0.019840268418192863, 0.007518718484789133, -0.039604302495718, 0.04741843417286873, 0.016733676195144653, 0.056337978690862656, 0.0354875884950161, -0.007809366099536419, -0.017905795946717262, -0.057595863938331604, 0.008533602580428123, 0.0005613428656943142, -0.05641421303153038, 0.020278623327612877, -0.004609860945492983, 0.04741843417286873, 0.02054544724524021, 0.044940780848264694, 0.04234877601265907, -0.004840949550271034, -0.026453692466020584, -0.050810910761356354, 0.05492762103676796, 0.03426782414317131, -0.0753968358039856, 0.017181558534502983, -0.07322412729263306, -0.011587784625589848, -0.013217316940426826, -0.07753142714500427, 0.004893361125141382, -0.033810410648584366, 0.04170077666640282, -0.05854880437254906, -0.05184008926153183, -0.013112492859363556, 0.013407904654741287, 0.06518128514289856, 0.010596724227070808, -0.008019013330340385, -0.10520488768815994, -0.0038093887269496918, -0.01752461865544319, 0.06499069929122925, -0.012102373875677586, -0.04981984943151474, -0.019725915044546127, 0.04082407057285309, -0.04379725083708763, -0.03335299715399742, -0.017200617119669914, 0.06964106112718582, 0.056490447372198105, 0.03870853781700134, 0.000597673817537725, -0.028321459889411926, -0.022603802382946014, 0.022241685539484024, 0.006270363461226225, 0.012416844256222248, 0.03424876555800438, -0.062360577285289764, 0.057062216103076935, -0.056871626526117325, -0.020107092335820198, -0.015971321612596512, -0.01116848923265934, 0.03737441450357437, 0.02288968674838543, -0.02763534151017666, -0.02933157980442047, 0.019182737916707993, 0.025367336347699165, 0.0018332237377762794, 0.030322639271616936, -0.027749694883823395, -0.01736261695623398, 0.0009035088587552309, -0.05572809278964996, 0.0018665767274796963, 0.02929346077144146, -0.05382220819592476, 0.0249289833009243, 0.029941461980342865, -0.010482370853424072, -0.005179244093596935, -0.0008534793742001057, 0.016428733244538307, -0.023404274135828018, 0.0026563280262053013, 0.04177701100707054, 0.09979216754436493, -0.0009017221163958311, -0.001324590528383851, 0.010653899982571602, -0.04177701100707054, 0.003459182335063815, -0.004545537289232016, -0.034172527492046356, 0.029598403722047806, 0.014560965821146965, -0.006475246045738459, -0.008014248684048653, -0.01518990844488144, 0.010063075460493565, 0.047189727425575256, 0.004400213249027729, -0.004583654925227165, -0.03558288514614105, 0.004457389935851097, -0.0016938558546826243, -0.023880746215581894, -0.023537686094641685, -0.049553025513887405, 0.01612379215657711, -0.011540137231349945, 0.07612106949090958, 0.009214957244694233, 0.020812271162867546, 0.01572355628013611, 0.021193448454141617, 0.0037522122729569674, -0.02067885920405388, -0.03527794033288956, 0.05145891010761261, -0.016409674659371376, 0.02163180150091648, -0.00048570302897132933, -0.019706856459379196, -0.019992738962173462, -0.012159549631178379, 0.025348277762532234, 0.027978399768471718, -0.010558606125414371, 0.003771271090954542, -0.04646549001336098, -0.012569315731525421, -0.016171438619494438, 0.035621002316474915, -0.04189136624336243, -0.014122611843049526, -0.040557246655225754, 0.05957798287272453, 0.09125380218029022, -0.015771202743053436, -0.03933747857809067, 0.012912374921143055, 0.020107092335820198, 0.03640241548418999, 0.009967781603336334, 0.008714661933481693, -0.061255164444446564, -0.014923084527254105, -0.013550846837460995, 0.021307799965143204, 0.044025957584381104, 0.08713708817958832, -0.03907065466046333, -0.0656386986374855, -0.002508621895685792, 0.02818804793059826, 0.0017927236622199416, 0.03219040855765343, -0.0025610337033867836, 0.05626174062490463, -0.02744475193321705, -0.035106413066387177, -0.016886146739125252, -0.016495440155267715, -0.10154558718204498, -0.013627082109451294, 0.004023801069706678, 0.020088033750653267, 0.026053456589579582, -0.021288741379976273, 0.04593184217810631, -0.006851658690720797, -0.08988156169652939, -0.010501429438591003, -0.08606979250907898, 0.00045890151523053646, -0.0019392386311665177, -0.03937559574842453, -0.011063666082918644, -0.027540046721696854, -0.004664654843509197, -0.03110405243933201, 0.0019106502877548337, 0.005412715021520853, -0.00874324981123209, -0.013112492859363556, 0.0026777691673487425, 0.059273041784763336, 0.012407314963638783, -0.02675863355398178, -0.006546717137098312, 0.03199981898069382, -0.029617462307214737, -0.03649770841002464, -0.011778373271226883, 0.056871626526117325, 0.029541226103901863, -0.006775423418730497, 0.013703317381441593, 0.013998729176819324, -0.049019377678632736, -0.019411444664001465, -0.019802151247859, 0.04856196418404579, -0.005498480051755905, 0.03729818016290665, 0.053212326020002365, -0.06689658761024475, 0.01650496944785118, 0.03238099440932274, 0.00249432772397995, -0.014151200652122498, -0.045321960002183914, -0.0008344205562025309, 0.030665699392557144, -0.006842129398137331, 0.03148522973060608, 0.04231065884232521, -0.009410309605300426, 0.05496574193239212, -0.02088850550353527, -0.005017243791371584, -0.009534192271530628, -0.0329718217253685, -0.0814194306731224, 0.021345918998122215, 0.02378545142710209, 0.013407904654741287, -0.03937559574842453, -0.04051912575960159, -0.06285610795021057, 0.07021282613277435, -0.0234233345836401, -0.04067159816622734, 0.014770613051950932, -0.02877887152135372, -0.10825429856777191, -0.04032853990793228, -0.03405817598104477, 0.06270363926887512, 0.02071697637438774, 0.02835957705974579, -0.0798184871673584, 0.011797431856393814, -0.08004719763994217, 0.03685982897877693, 0.0911775678396225, 0.001891591469757259, 0.039108771830797195, -0.015895085409283638, 0.025519808754324913, 0.012960022315382957, -0.02967463806271553, 0.0024133275728672743, 0.029236285015940666, -0.056337978690862656, -0.05656668543815613, -0.03903253749012947, 0.0032066525891423225, -0.0007992807659320533, -0.02292780391871929, -0.0005640230374410748, 0.0016855176072567701, 0.05664291977882385, -0.020068975165486336, -0.021136270835995674, 0.01548532024025917, 0.01292190421372652, -0.04345419257879257, -0.07772201299667358, -0.014074965380132198, 0.0007546115666627884, 0.008628897368907928, -0.011006489396095276, 0.020030857995152473, -0.0077093071304261684, 0.12190043926239014, -0.015266143716871738, -0.04768525809049606, 0.03575441241264343, 0.026510868221521378, 0.011949902400374413, -0.02931251935660839, 0.00031536450842395425, -0.052068792283535004, 0.01803920790553093, 0.006422834470868111, -0.054317738860845566, 0.029217226430773735, 0.007985660806298256, 0.0949893370270729, 0.05012479051947594, 0.03112311102449894, -0.004064301028847694, 0.0007147070718929172, -0.006265598814934492, 0.06529563665390015, -0.02635839767754078, -0.0021750919986516237, -0.02561510168015957, -0.0678495243191719, 0.012474020943045616, -0.008214366622269154, -0.012778962962329388, 0.012054726481437683, -0.017943913117051125, 0.025900984182953835, -0.034363117069005966, -0.009143485687673092, 0.045360077172517776, -0.024585923179984093, -0.009891546331346035, 0.0024145187344402075, 0.022432273253798485, 0.0018284589750692248, 0.0044311839155852795, -0.0250814538449049, 0.04978173226118088, -0.04802831634879112, 0.028531108051538467, 0.02877887152135372, 0.02784498780965805, 0.011749784462153912, -0.03773653507232666, -0.02125062420964241, 0.011416254565119743, 0.08027590066194534, 0.002237033098936081, 0.047189727425575256, 0.002314459765329957, 0.00864795595407486, 0.031599581241607666, 0.025576984509825706, -0.03299088031053543, 0.004107183311134577, -0.027787812054157257, -0.046084314584732056, -0.0032376230228692293, -0.05298361927270889, 0.0036473884247243404, 0.04032853990793228, 0.03367699682712555, 0.012683668173849583, 0.0031732995994389057, 0.020392974838614464, 0.03665018081665039, 0.017496028915047646, -0.023499568924307823, 0.0035306529607623816, -0.057595863938331604, 0.03676453232765198, 0.033048056066036224, 0.02271815575659275, -0.030360756441950798, 0.03806053474545479, 0.01620955765247345, 0.009153015911579132, -0.008042837493121624, 0.054698918014764786, 0.051382675766944885, 0.01574261486530304, -0.02654898539185524, 0.03504923731088638, -0.03565911948680878, -0.003716476960107684, -0.07859872281551361, 0.004926714114844799, 0.049019377678632736, -0.030170168727636337, 0.011864137835800648, 0.010939783416688442, -0.06617234647274017, 0.002868357812985778, -0.005279303062707186, -0.06628669798374176, 0.018811089918017387, -0.04410219192504883, -0.04852384701371193, -0.0022048712708055973, -0.028340518474578857, 0.05164949968457222, 0.03243817389011383, -0.06948858499526978, -0.1438562422990799, 0.029102873057127, -0.07905613631010056, -0.019649680703878403, 0.004671801812946796, -0.03926124423742294, -0.034687116742134094, -0.003423447022214532, 0.07814130932092667, -0.059273041784763336, -0.03133275732398033, -0.054851386696100235, -0.04215819016098976, -0.007213776931166649, -0.016895676031708717, -0.02801651880145073, 0.021517448127269745, -0.04303489625453949, -0.0399092435836792, 0.008748014457523823, -0.013312610797584057, -0.024071335792541504, -0.020793212577700615, 0.03127558156847954, -0.06266551464796066, -0.027044516056776047, 0.03154240548610687, -0.061445750296115875, -0.0038022417575120926, 0.012407314963638783, 0.010968371294438839, -0.08073331415653229, 0.004466919228434563, 0.004080977290868759, 0.04558878391981125, -0.050849027931690216, -0.041129011660814285, -0.0011083915596827865, -0.016342969611287117, 0.04139583557844162, 0.00773313082754612, -0.0056223622523248196, -0.018134500831365585, -0.03918500617146492, 0.043492309749126434, -0.014875437133014202, -0.010606253519654274, -0.037793710827827454, 0.004069065675139427, 0.0245287474244833, 0.07795072346925735, -0.02126968279480934, 0.02216544933617115, 0.025367336347699165, -0.038765713572502136, 0.010463312268257141, 0.04951490834355354, -0.007661660201847553, -0.015923673287034035, -0.006356128491461277, 0.0017593706725165248, 0.02327086217701435, -0.003833212424069643, 0.020392974838614464, 0.013998729176819324, -0.004941008519381285, 0.042958661913871765, -0.05755774304270744, 0.04177701100707054, 0.014913554303348064, 0.016962381079792976, -0.025557925924658775, -0.022622860968112946, 0.002646798500791192, 0.040938422083854675, -0.04006171599030495, 0.00495053781196475, 0.03907065466046333, 0.033410172909498215 ]
729,322
tinytuya.core
_process_message
null
def _process_message( self, msg, dev_type=None, from_child=None, minresponse=28, decode_response=True ): # null packet, nothing to decode if not msg or len(msg.payload) == 0: log.debug("raw unpacked message = %r", msg) # legacy/default mode avoids persisting socket across commands self._check_socket_close() return None # option - decode Message with hard coded offsets # result = self._decode_payload(data[20:-8]) # Unpack Message into TuyaMessage format # and return payload decrypted try: # Data available: seqno cmd retcode payload crc log.debug("raw unpacked message = %r", msg) result = self._decode_payload(msg.payload) if result is None: log.debug("_decode_payload() failed!") except: log.debug("error unpacking or decoding tuya JSON payload", exc_info=True) result = error_json(ERR_PAYLOAD) # Did we detect a device22 device? Return ERR_DEVTYPE error. if dev_type and dev_type != self.dev_type: log.debug( "Device22 detected and updated (%s -> %s) - Update payload and try again", dev_type, self.dev_type, ) result = error_json(ERR_DEVTYPE) found_child = False if self.children: found_cid = None if result and 'cid' in result: found_cid = result['cid'] elif result and 'data' in result and type(result['data']) == dict and 'cid' in result['data']: found_cid = result['data']['cid'] if found_cid: for c in self.children: if self.children[c].cid == found_cid: result['device'] = found_child = self.children[c] break if from_child and from_child is not True and from_child != found_child: # async update from different CID, try again log.debug( 'Recieved async update for wrong CID %s while looking for CID %s, trying again', found_cid, from_child.cid ) if self.socketPersistent: # if persistent, save response until the next receive() call # otherwise, trash it if found_child: result = found_child._process_response(result) else: result = self._process_response(result) self.received_wrong_cid_queue.append( (found_child, result) ) # events should not be coming in so fast that we will never timeout a read, so don't worry about loops return self._send_receive( None, minresponse, True, decode_response, from_child=from_child) # legacy/default mode avoids persisting socket across commands self._check_socket_close() if found_child: return found_child._process_response(result) return self._process_response(result)
(self, msg, dev_type=None, from_child=None, minresponse=28, decode_response=True)
[ 0.04399879276752472, 0.013529629446566105, -0.06287827342748642, 0.016899537295103073, -0.029619187116622925, -0.03175912797451019, 0.01575956866145134, 0.058318402618169785, 0.002204939490184188, -0.048278674483299255, 0.012389659881591797, 0.012569655664265156, -0.0019024477805942297, -0.010679706931114197, -0.015639571473002434, 0.03305909410119057, 0.026659268885850906, -0.0012062168680131435, 0.009144749492406845, -0.018469493836164474, -0.0231193657964468, 0.043158818036317825, -0.001382462098263204, 0.04863866791129112, -0.011449686251580715, 0.06879810988903046, 0.001546207582578063, -0.01069970615208149, 0.023299360647797585, -0.027399249374866486, 0.029319196939468384, -0.010459713637828827, 0.05227856710553169, 0.03871893882751465, -0.08815757930278778, 0.023399358615279198, -0.046558722853660583, -0.020499438047409058, -0.0599183551967144, 0.00018062004528474063, -0.016749540343880653, -0.01132968906313181, 0.027839235961437225, 0.0029649187345057726, 0.014139612205326557, 0.03217911720275879, -0.0612783208489418, 0.0845576822757721, -0.030419165268540382, 0.049318648874759674, -0.027179254218935966, -0.026539271697402, -0.0378989614546299, 0.020559435710310936, -0.0019549464341253042, 0.005854839459061623, -0.046718720346689224, 0.026039285585284233, -0.01643954962491989, 0.004989863373339176, -0.039878904819488525, 0.06207829713821411, -0.059958357363939285, 0.0283192228525877, -0.027099257335066795, -0.028499217703938484, 0.05435850843787193, -0.012589654885232449, -0.06795813888311386, 0.027399249374866486, -0.024399330839514732, 0.018469493836164474, -0.005474850069731474, 0.014929590746760368, 0.046798717230558395, -0.019959453493356705, 0.025079311802983284, 0.03485904261469841, 0.009954727254807949, 0.04183885455131531, 0.045838743448257446, 0.03367907553911209, 0.05327853932976723, -0.03499903902411461, 0.017559519037604332, 0.06351825594902039, 0.089757539331913, 0.039818909019231796, -0.07239801436662674, -0.0031674131751060486, -0.022719377651810646, -0.047318700700998306, -0.006009835284203291, 0.04579874500632286, -0.0044898767955601215, 0.006119832396507263, -0.005529848393052816, 0.007274800445884466, -0.002367435023188591, 0.0021786901634186506, -0.03945891931653023, 0.046878714114427567, -0.04387879744172096, -0.044198788702487946, 0.026959260925650597, -0.005209857132285833, -0.034379057586193085, 0.030719157308340073, 0.014689597301185131, 0.028079230338335037, -0.014039615169167519, -0.02771924063563347, -0.048878658562898636, 0.015179583802819252, -0.02765924111008644, -0.028439220041036606, -0.049998629838228226, -0.002727425191551447, -0.06419824063777924, 0.016539545729756355, -0.02467932365834713, -0.0023749349638819695, 0.01426960900425911, -0.078517846763134, -0.037718966603279114, 0.03907892853021622, 0.006304827053099871, -0.024259334430098534, 0.0667581707239151, -0.01218966580927372, -0.06843812018632889, 0.015189583413302898, 0.043158818036317825, 0.02223939076066017, -0.04803868383169174, 0.013929617591202259, -0.04223884269595146, -0.04339880868792534, 0.0042548831552267075, -0.053638529032468796, 0.04695871099829674, 0.03413906320929527, 0.04639872908592224, -0.09143749624490738, -0.043438807129859924, -0.02035944163799286, 0.027459247037768364, -0.050798606127500534, -0.07651790231466293, -0.0163495521992445, -0.044558778405189514, -0.021799402311444283, 0.022479383274912834, 0.02787923626601696, 0.02371934987604618, 0.02921919897198677, -0.03265910595655441, -0.06399824470281601, -0.029699185863137245, -0.0026899261865764856, -0.010224719531834126, -0.0768778920173645, 0.022859374061226845, -0.04443878307938576, 0.018489493057131767, -0.02579929307103157, -0.010879701934754848, -0.036458998918533325, 0.020329441875219345, 0.06999807804822922, -0.01694953441619873, 0.09799731522798538, -0.006149831227958202, -0.020109448581933975, -0.03439905494451523, 0.029179200530052185, -0.0003956141590606421, -0.0705980658531189, -0.0005431101308204234, 0.00007859159813961014, -0.029919179156422615, 0.04123887047171593, 0.04995863139629364, 0.038178954273462296, 0.008264773525297642, 0.07615791261196136, 0.03137914091348648, 0.01923947222530842, 0.04603873938322067, -0.001056221080943942, -0.07447795569896698, 0.010829702951014042, 0.029379194602370262, 0.010069724172353745, 0.016079559922218323, 0.06299827247858047, 0.036458998918533325, 0.030719157308340073, 0.0029099201783537865, -0.0161395575851202, -0.010069724172353745, -0.023239362984895706, 0.00012679339852184057, 0.035779017955064774, -0.09207747876644135, 0.03753897175192833, 0.008164776489138603, 0.07927782833576202, 0.011949672363698483, -0.03343908488750458, -0.05951836705207825, 0.003687398973852396, 0.024779319763183594, 0.025019314140081406, 0.05767842009663582, -0.03649899736046791, -0.029859181493520737, 0.00750979408621788, -0.011339688673615456, -0.006549820303916931, 0.030519163236021996, 0.005774841643869877, -0.04029889404773712, -0.0178495105355978, -0.06587819010019302, 0.02801923081278801, -0.04599873721599579, 0.035639021545648575, 0.06227829307317734, 0.03293909505009651, 0.012099668383598328, -0.0027299250941723585, 0.059438370168209076, 0.04863866791129112, 0.026819264516234398, 0.012989643961191177, -0.008014780469238758, 0.008759759366512299, 0.015819566324353218, 0.01849949359893799, 0.016089558601379395, -0.06507821381092072, -0.00802977941930294, -0.023519355803728104, 0.00778978643938899, -0.016299553215503693, 0.06147831305861473, 0.023619351908564568, -0.0016887036617845297, 0.014329606667160988, -0.019969452172517776, -0.03149913623929024, 0.02229938842356205, 0.010084723122417927, -0.007059806492179632, -0.06983808428049088, -0.011649680323898792, -0.027779238298535347, 0.03993890434503555, -0.005974836181849241, -0.02057943493127823, 0.013879619538784027, -0.05755842104554176, 0.029159201309084892, -0.02765924111008644, -0.002657427219673991, 0.021879399195313454, -0.010529710911214352, -0.033559080213308334, 0.0634782612323761, 0.09375742822885513, -0.0008574764942750335, -0.0075597926042973995, 0.0798778086900711, -0.026219280436635017, 0.030119173228740692, -0.024059340357780457, -0.04011889919638634, 0.009709733538329601, -0.05455850437283516, -0.021599408239126205, 0.01337963342666626, 0.04167885705828667, -0.0018786984728649259, 0.007849784567952156, -0.04659872129559517, 0.01866948790848255, -0.002929919632151723, -0.0005881089018657804, -0.0037123982328921556, -0.05039861798286438, -0.03121914342045784, -0.044558778405189514, 0.025919288396835327, -0.04423878714442253, 0.009744732640683651, -0.08295772224664688, 0.03127914294600487, -0.0034649050794541836, -0.045238759368658066, -0.06615818291902542, 0.03271910175681114, 0.0015762067632749677, -0.010389715433120728, 0.011509684845805168, 0.04183885455131531, 0.036978986114263535, -0.02869921363890171, 0.008549765683710575, -0.015169584192335606, 0.016019560396671295, 0.0283192228525877, 0.0044648777693510056, -0.01933947019279003, 0.004304882138967514, 0.05483849719166756, 0.07959781587123871, 0.051398590207099915, 0.07243801653385162, 0.08631763607263565, -0.014749595895409584, -0.00958973728120327, -0.002992417896166444, 0.0746779516339302, 0.038978930562734604, 0.03729897737503052, 0.020939426496624947, 0.008179775439202785, 0.029039204120635986, -0.01656954549252987, -0.005052361637353897, 0.0010593459010124207, -0.035859014838933945, -0.049318648874759674, 0.03033916838467121, -0.015069587156176567, -0.0229793693870306, -0.011709678918123245, 0.028719212859869003, -0.007634790614247322, -0.026859262958168983, -0.013029642403125763, 0.009499739855527878, 0.013729623518884182, 0.05559847503900528, -0.037718966603279114, 0.038838934153318405, 0.01745952107012272, 0.021839400753378868, 0.022879373282194138, -0.04667871817946434, -0.05195857584476471, 0.034159064292907715, 0.021139420568943024, 0.017739513888955116, -0.04063888639211655, -0.026819264516234398, -0.0231193657964468, 0.025439301505684853, 0.015779567882418633, 0.010609708726406097, 0.027119256556034088, 0.020859427750110626, -0.0016674542566761374, -0.08007780462503433, -0.010769704356789589, -0.055198486894369125, -0.003154913429170847, 0.07959781587123871, 0.013799621723592281, -0.004727370571345091, 0.018489493057131767, -0.007949781604111195, -0.022019395604729652, -0.018939480185508728, 0.043518807739019394, -0.06683816760778427, 0.004222384188324213, -0.028219226747751236, 0.014549600891768932, 0.03807895630598068, 0.005564847495406866, -0.0629182755947113, -0.004827367607504129, 0.04935864731669426, -0.013239637017250061, 0.003939892165362835, 0.02005944959819317, -0.06495822221040726, 0.009159748442471027, 0.008564765565097332, 0.07707788795232773, 0.01508958637714386, -0.033859070390462875, -0.02765924111008644, 0.01680953986942768, 0.011339688673615456, 0.036758992820978165, -0.03025916963815689, -0.07611791044473648, -0.03145913779735565, -0.015999561175704002, -0.006659817416220903, 0.04791868478059769, 0.02303936891257763, -0.0008806008263491094, 0.057358428835868835, 0.03855894133448601, -0.0579984113574028, 0.025399303063750267, 0.03545902669429779, 0.009349743835628033, -0.0025999287609010935, 0.0179195087403059, -0.06067833676934242, 0.03837894648313522, -0.0028174228500574827, 0.03885893523693085, 0.020199446007609367, 0.018409494310617447, -0.024039341136813164, 0.021819401532411575, -0.005654844921082258, -0.017529519274830818, -0.011619681492447853, 0.03603901341557503, -0.04111887142062187, -0.007374797947704792, 0.0009555987780913711, -0.0023461857344955206, 0.01656954549252987, 0.018699487671256065, -0.060398343950510025, -0.030219171196222305, 0.044718772172927856, -0.00126434036064893, -0.014579600654542446, -0.021659405902028084, -0.022479383274912834, 0.0053848521783947945, -0.01767951436340809, 0.03329908847808838, 0.011079696007072926, -0.0029649187345057726, 0.04647872596979141, -0.005379852373152971, -0.00032655353425070643, 0.014279608614742756, -0.0429588221013546, -0.04963864013552666, 0.000854976533446461, 0.0181295033544302, 0.017279526218771935, -0.0014924590941518545, -0.026179281994700432, -0.03389906883239746, 0.024199336767196655, 0.04875866323709488, -0.02393934316933155, -0.024619324132800102, -0.05611846223473549, 0.010559710673987865, -0.04231883957982063, 0.03865893930196762, -0.01673954166471958, 0.09399741888046265, 0.006019834894686937, -0.04029889404773712, -0.015939563512802124, 0.0024474328383803368, -0.023439357057213783, -0.059358373284339905, 0.03811895474791527, 0.050598613917827606, 0.014449603855609894, -0.03047916479408741, 0.04855866730213165, -0.046718720346689224, -0.04771869257092476, -0.010134722106158733, 0.029239198192954063, -0.03769896551966667, 0.030459165573120117, -0.0284592192620039, -0.01834949664771557, -0.06323826313018799, 0.0373389758169651, -0.036399003118276596, 0.004079888109117746, -0.01827949844300747, -0.044118791818618774, -0.0026524271816015244, 0.04443878307938576, -0.006454823072999716, 0.014929590746760368, -0.02853921800851822, -0.023259362205863, -0.007334799040108919, 0.022859374061226845, -0.08139776438474655, -0.010164720937609673, -0.02237938717007637, -0.024579325690865517, -0.01649954728782177, -0.002569929463788867, -0.010099723003804684, -0.021879399195313454, 0.05603846162557602, 0.0007731037912890315, 0.04579874500632286, -0.05315854400396347, 0.05371852591633797, 0.03235911205410957, -0.04139886423945427, -0.031919125467538834, 0.008779759518802166, 0.011359688825905323, 0.017339523881673813, -0.022099394351243973, -0.018759485334157944, 0.05775841698050499, -0.027539243921637535, 0.033179089426994324, 0.00693480996415019, 0.018529491499066353, 0.02705925889313221, -0.05911837890744209, 0.026879262179136276, 0.013519628904759884, -0.07183802872896194, -0.04603873938322067, 0.00393739202991128, 0.04555875062942505, -0.0005809215945191681, 0.048878658562898636, -0.05951836705207825, 0.002872421173378825, 0.008239774033427238, -0.15583573281764984, -0.013449631631374359, 0.018699487671256065, -0.018639488145709038, -0.05807840824127197, -0.05643845349550247, -0.027899235486984253, 0.0019199473317712545, 0.02013944834470749, 0.03627900406718254, 0.013519628904759884, -0.029239198192954063, -0.06503821909427643, 0.0032149117905646563, 0.042998820543289185, 0.06419824063777924, 0.005994835402816534, -0.02207939513027668, -0.017499519512057304, -0.022639378905296326, -0.005769841838628054, -0.02415933832526207, -0.04839867353439331, 0.03337908536195755, -0.04331881180405617, -0.017129531130194664, 0.020119449123740196, 0.017949508503079414, -0.06267828494310379, 0.07055806368589401, 0.010729705914855003, -0.011679680086672306, -0.013749622739851475, 0.045598749071359634, -0.01834949664771557, 0.0006706066196784377, 0.027179254218935966, -0.020679432898759842, 0.0028699212707579136, -0.0035949014127254486, 0.01014472171664238, -0.006259828340262175, 0.02921919897198677, -0.0019161974778398871, 0.0410388745367527, -0.0028299223631620407, -0.02451932802796364, -0.03347908332943916, 0.023959342390298843, 0.03347908332943916, 0.0738779753446579, -0.04483877122402191, -0.0056198458187282085, 0.01939946785569191, 0.03361907973885536, 0.0029499190859496593, 0.018489493057131767, 0.049478642642498016, 0.03717898204922676, 0.025979287922382355, -0.0263992752879858, -0.013909618370234966, -0.01408961322158575, 0.058598391711711884, 0.03969890996813774, -0.06351825594902039, 0.04183885455131531, -0.019209472462534904, -0.04005889967083931, 0.029699185863137245, -0.01828949898481369, 0.014679597690701485, 0.021299416199326515, -0.008914755657315254, 0.04767869412899017, 0.023999342694878578, 0.006709815934300423, -0.020319443196058273, -0.021099422127008438, -0.0033149090595543385, 0.0248993169516325, -0.032519109547138214, 0.025159310549497604, 0.019119475036859512, -0.015009588561952114, -0.014809593558311462, -0.07263800501823425, 0.009244746528565884, 0.0014087114250287414, -0.02803923189640045, -0.028859209269285202, -0.004802368115633726, 0.015109585598111153, 0.051478587090969086, 0.042038846760988235, -0.011419686488807201, -0.02237938717007637, -0.029079202562570572, -0.027759239077568054, -0.015329579822719097, -0.02771924063563347, 0.03955891355872154, 0.061438314616680145, -0.04327881336212158, -0.04751869663596153, -0.09415742009878159, -0.04211884364485741, 0.01426960900425911, 0.03607901185750961, 0.0024386830627918243, -0.003069915808737278, 0.01557957287877798, 0.01963946223258972, 0.039198923856019974, -0.07191802561283112, 0.03499903902411461, 0.05067861080169678, 0.011759677901864052, 0.014559600502252579, 0.040778882801532745, 0.0009537238511256874, 0.05983835831284523, -0.003394906874746084, -0.00523985642939806, 0.02579929307103157, -0.018999479711055756, -0.010449713096022606, 0.03885893523693085, 0.03751897066831589, -0.01412961259484291, 0.06115832179784775, -0.07019807398319244, 0.02527930587530136, -0.005869838874787092, -0.01685953699052334, -0.007449795491993427, -0.01017972081899643, -0.020719431340694427, 0.026719266548752785, -0.022279389202594757, 0.07067806273698807, 0.019719459116458893, 0.0012605903903022408, 0.04111887142062187, -0.02087942697107792, 0.007469795178622007, 0.025979287922382355, -0.016709541901946068, 0.09159749001264572, -0.00013429319369606674, -0.021579409018158913, -0.12767650187015533, 0.04699870944023132, -0.023299360647797585, -0.047318700700998306, -0.035059038549661636, -0.04803868383169174, -0.018079504370689392, -0.03607901185750961, -0.0300991740077734, -0.05483849719166756, 0.025399303063750267, 0.002333685988560319, -0.06443823128938675, -0.04387879744172096, -0.03337908536195755, 0.00420238496735692, 0.044718772172927856, -0.11015697568655014, 0.006644818000495434, -0.0012230915017426014, 0.031039148569107056, -0.020839428529143333, -0.021619407460093498, 0.0299591775983572, -0.03553902730345726, -0.010159721598029137, 0.008179775439202785, -0.01452960167080164, 0.06843812018632889, 0.058318402618169785, 0.027019258588552475, -0.05959836393594742, 0.026119284331798553, 0.04059888795018196, 0.03113914653658867, 0.01760951802134514, -0.01664954423904419, 0.03085915371775627, -0.009309744462370872, 0.03301909565925598, 0.03439905494451523, -0.013189638033509254, -0.004072388168424368, -0.05071860924363136, -0.01790950819849968, -0.020089449360966682, -0.06079833209514618, 0.032459110021591187, -0.018789485096931458, 0.0033774073235690594, 0.014449603855609894, -0.05119859427213669, -0.02251938171684742, -0.0328391008079052, 0.010819703340530396, -0.05767842009663582, 0.01673954166471958, 0.0263992752879858, 0.02103942260146141, 0.011769677512347698, -0.013619626872241497, 0.011809675954282284, -0.030279168859124184, -0.0324191115796566, 0.01903947815299034, -0.005044861696660519, 0.007039806805551052, -0.05483849719166756, 0.04811868071556091, 0.024139337241649628, 0.028359223157167435, 0.023099366575479507, 0.013499629683792591, 0.019209472462534904, 0.02535930462181568, -0.012209665030241013, 0.0038098955992609262, -0.038238950073719025, 0.0517185814678669 ]
729,323
tinytuya.core
_process_response
Override this function in a sub-class if you want to do some processing on the received data
def _process_response(self, response): # pylint: disable=R0201 """ Override this function in a sub-class if you want to do some processing on the received data """ return response
(self, response)
[ -0.03701367601752281, -0.021450307220220566, -0.06394553184509277, 0.020939165726304054, -0.013915379531681538, -0.010028943419456482, -0.016418209299445152, 0.0855192169547081, 0.049245815724134445, -0.018506838008761406, 0.07536689937114716, 0.006627210881561041, 0.059891652315855026, -0.0076098358258605, -0.0010432128328830004, 0.012320267036557198, 0.02129167690873146, -0.0015642684884369373, 0.016365332528948784, -0.05234791338443756, -0.021080169826745987, 0.004732463043183088, -0.0073322332464158535, 0.04508618265390396, -0.02673797495663166, 0.05629603937268257, -0.00898022297769785, -0.032642535865306854, 0.05929238349199295, -0.006019128952175379, -0.008605679497122765, -0.01741405390202999, -0.0006697712815366685, 0.07797548174858093, 0.004970408044755459, 0.028905918821692467, -0.06979721784591675, 0.036343906074762344, -0.09694058448076248, 0.05136088281869888, -0.06168946251273155, -0.011571180075407028, -0.010425519198179245, -0.01640939712524414, 0.03842372074723244, 0.019564371556043625, -0.027249116450548172, 0.06806991249322891, -0.03986901789903641, -0.002275900449603796, -0.022067202255129814, 0.028130393475294113, -0.02053377777338028, -0.0034546097740530968, 0.006794653367251158, 0.04459266737103462, 0.029787197709083557, 0.0758604109287262, -0.02104491926729679, 0.005159882828593254, -0.06056142598390579, 0.04459266737103462, -0.007706776261329651, -0.04378189146518707, 0.029505187645554543, 0.0006670173024758697, -0.0041728513315320015, 0.009235793724656105, -0.007896251045167446, 0.024340897798538208, 0.014576338231563568, 0.02141505479812622, -0.014981726184487343, 0.06792891025543213, 0.058375854045152664, 0.006309950724244118, -0.0005620901356451213, -0.029716694727540016, 0.0055256132036447525, 0.021203549578785896, 0.05693056061863899, 0.017290674149990082, 0.01783706620335579, 0.004318262450397015, 0.009350359439849854, -0.061583708971738815, 0.021943822503089905, -0.03438746929168701, -0.06570808589458466, 0.1073044091463089, -0.056190285831689835, 0.029399434104561806, -0.039657510817050934, 0.009932002983987331, 0.0036484908778220415, 0.02624445967376232, -0.015378301031887531, -0.04096180200576782, 0.0014915630454197526, -0.017634373158216476, -0.023142360150814056, 0.10596486926078796, -0.0108925960958004, -0.015113918110728264, 0.04459266737103462, -0.006565521005541086, 0.03056272119283676, -0.05478024110198021, 0.02404126338660717, 0.03856472671031952, 0.006239448208361864, -0.007490863092243671, -0.0387057289481163, 0.034087833017110825, -0.03919924423098564, -0.022261083126068115, -0.04984508454799652, -0.008632117882370949, -0.03156737983226776, 0.010011318139731884, 0.002835511928424239, -0.00001800423524400685, 0.007125132717192173, -0.014356018975377083, -0.000358019198756665, 0.045932210981845856, -0.022014325484633446, -0.008786342106759548, 0.06376927345991135, 0.025327930226922035, -0.04025677964091301, 0.023371493443846703, 0.004622302949428558, -0.03442271798849106, -0.004697212018072605, 0.04064454138278961, -0.01903560571372509, 0.022454963997006416, -0.005151070188730955, -0.00624826131388545, 0.04889330267906189, 0.021150672808289528, 0.07487338036298752, -0.0217851921916008, -0.007424767129123211, -0.012126385234296322, 0.034281715750694275, -0.010205199010670185, -0.033030301332473755, 0.00116989656817168, -0.016391770914196968, -0.00746883125975728, 0.062077224254608154, 0.046919241547584534, -0.034211210906505585, 0.04374663904309273, -0.007001753896474838, -0.025574687868356705, 0.012663965113461018, -0.0231776125729084, 0.011130541563034058, -0.07103100419044495, 0.02166181430220604, -0.06024416536092758, 0.022084826603531837, -0.00901106745004654, 0.04737750440835953, -0.04127906262874603, 0.028218522667884827, 0.005181914661079645, -0.013289672322571278, 0.01677072048187256, -0.04984508454799652, -0.014479397796094418, -0.010637025348842144, 0.06313475966453552, 0.05915138125419617, -0.01590706780552864, -0.01189725287258625, 0.031778886914253235, 0.023142360150814056, -0.05802334472537041, -0.012249764055013657, 0.04984508454799652, 0.05777658522129059, 0.0047677140682935715, 0.03711942955851555, -0.009720496833324432, -0.00419268012046814, 0.08276963233947754, 0.003494267351925373, -0.03620290011167526, 0.007173602934926748, -0.04783577099442482, 0.019952133297920227, -0.026878979057073593, 0.018136700615286827, -0.00992319080978632, -0.0115888062864542, -0.019634874537587166, -0.034845732152462006, -0.007081069052219391, -0.021362179890275, 0.012196887284517288, -0.03394683077931404, 0.08685876429080963, 0.0035493471659719944, 0.013871315866708755, -0.05693056061863899, -0.04543869569897652, -0.02241971343755722, 0.016391770914196968, 0.018312957137823105, 0.023071859031915665, 0.028905918821692467, 0.002247259020805359, -0.012390769086778164, -0.03470472991466522, 0.016568027436733246, -0.01822482980787754, 0.03184938803315163, 0.005961845628917217, -0.06313475966453552, -0.017519807443022728, 0.0013836064608767629, 0.008160633966326714, 0.004710431210696697, -0.010108258575201035, -0.018683094531297684, -0.01026688888669014, -0.05749457702040672, 0.014065196737647057, 0.005111412610858679, 0.004459266550838947, 0.024816788733005524, -0.02467578463256359, 0.03216664865612984, -0.007226479705423117, -0.033841077238321304, 0.015254922211170197, 0.01903560571372509, -0.025275053456425667, -0.0023838570341467857, 0.0052347914315760136, -0.052559420466423035, -0.00016565273108426481, -0.018330583348870277, 0.11386112123727798, 0.011051226407289505, 0.03354144096374512, 0.015254922211170197, -0.04825878515839577, -0.04381714388728142, -0.008900907821953297, 0.03800070658326149, -0.0387057289481163, -0.03570938482880592, 0.014717343263328075, 0.00879956129938364, -0.0016766313929110765, -0.004060488659888506, 0.0199697595089674, -0.009315108880400658, 0.01660327799618244, -0.01346592791378498, 0.0015719796065241098, 0.02323048934340477, 0.007728808093816042, -0.02523980289697647, 0.04977458342909813, 0.11202806234359741, 0.008997848257422447, 0.013474741019308567, 0.02190857194364071, -0.05016234517097473, -0.005217165686190128, -0.0068783750757575035, 0.025204550474882126, -0.048611294478178024, -0.0008008613949641585, 0.061019688844680786, -0.026209207251667976, 0.025204550474882126, -0.0055564576759934425, 0.005719494074583054, -0.04402865096926689, 0.03637915477156639, 0.10497783869504929, -0.029716694727540016, -0.04332362860441208, -0.007578990887850523, 0.00416183564811945, -0.008566021919250488, 0.013219170272350311, -0.00973812211304903, -0.01365099661052227, -0.0831221416592598, 0.021556060761213303, 0.004183867480605841, -0.029452310875058174, -0.03926974907517433, -0.0063143568113446236, 0.004974814597517252, 0.0012073508696630597, -0.0002559837303124368, 0.003917280584573746, 0.05499174818396568, 0.04656672850251198, -0.02818327024579048, 0.002646037144586444, 0.027566377073526382, 0.05326444283127785, -0.033911578357219696, -0.017934007570147514, -0.04794152453541756, 0.018771221861243248, 0.055062249302864075, 0.04307686910033226, -0.004302839748561382, 0.07240580022335052, -0.061583708971738815, -0.0354626290500164, 0.019881632179021835, 0.024834414944052696, 0.07233530282974243, 0.05129038169980049, 0.02511642314493656, 0.01822482980787754, 0.010125884786248207, 0.016356520354747772, 0.008050474338233471, -0.0007402735063806176, -0.05428672581911087, -0.04815303161740303, 0.0009413150837644935, -0.04219559207558632, -0.02465815842151642, -0.037225183099508286, 0.020181266590952873, -0.05340544879436493, -0.07275830954313278, -0.003558160038664937, 0.014356018975377083, 0.034034956246614456, -0.029945826157927513, -0.010125884786248207, -0.016946977004408836, 0.014849534258246422, 0.036343906074762344, -0.051255129277706146, -0.013439489528536797, -0.035973768681287766, 0.033788200467824936, 0.06355777382850647, 0.051501888781785965, -0.09376797825098038, -0.02021651715040207, 0.004331481643021107, -0.029663817957043648, 0.020357521250844002, 0.017484555020928383, -0.028218522667884827, 0.008839218877255917, 0.022243456915020943, -0.03768344968557358, -0.04015102609992027, -0.04822353273630142, -0.015219671651721, 0.011976568028330803, -0.03232527896761894, -0.030509844422340393, -0.022331584244966507, -0.05241841450333595, -0.04353513568639755, 0.011148166842758656, 0.0046487413346767426, -0.023265739902853966, 0.00013969633437227458, -0.08481419831514359, 0.041490569710731506, 0.0451919361948967, -0.00041227287147194147, -0.06933895498514175, -0.032660163938999176, 0.022966105490922928, -0.04445166140794754, 0.019317613914608955, 0.020075513049960136, -0.017828254029154778, 0.01691172458231449, 0.016303643584251404, -0.04219559207558632, -0.05347594991326332, 0.018260080367326736, -0.04839978739619255, -0.05693056061863899, -0.027072859928011894, 0.0020181266590952873, -0.006741776596754789, 0.0029258430004119873, 0.029152676463127136, -0.008191479369997978, -0.04540344327688217, 0.014911224134266376, 0.014514649286866188, 0.007614241912961006, 0.051678143441677094, 0.024834414944052696, 0.000020603316443157382, -0.006693306379020214, 0.014285516925156116, -0.003994392696768045, -0.004666367080062628, -0.05097312107682228, -0.013245608657598495, 0.057071562856435776, 0.004829403478652239, 0.03644965961575508, 0.0039106709882617, -0.00527444900944829, 0.03782445192337036, 0.04582645744085312, 0.03951650485396385, 0.02479916252195835, -0.009694058448076248, 0.0010085125686600804, -0.005521206650882959, -0.016391770914196968, 0.03442271798849106, -0.01083090715110302, 0.013095791451632977, 0.004578239284455776, -0.11802075058221817, -0.0403272807598114, 0.08199410885572433, 0.00645095482468605, -0.048611294478178024, -0.014849534258246422, -0.05478024110198021, 0.05463923513889313, -0.0038467785343527794, 0.04547394439578056, 0.03385870158672333, -0.021626561880111694, 0.11005400121212006, -0.02347724698483944, -0.05040910094976425, 0.015061041340231895, -0.00558730261400342, -0.11153454333543777, -0.008552802726626396, 0.03662591427564621, 0.020939165726304054, -0.020639531314373016, -0.06267648935317993, -0.03838847205042839, -0.020939165726304054, -0.05527375638484955, 0.0023992795031517744, -0.0021040511783212423, -0.020304646342992783, 0.013316110707819462, -0.02085103839635849, -0.044486913830041885, 0.0017636576667428017, 0.04709549620747566, -0.031902264803647995, -0.012011819519102573, -0.04896380752325058, 0.008367734961211681, 0.0031858200673013926, -0.04099705442786217, -0.007398328743875027, -0.0354626290500164, -0.00858364813029766, 0.02097441628575325, -0.008878875523805618, -0.034581348299980164, -0.024499528110027313, 0.010866157710552216, 0.00036545496550388634, 0.033030301332473755, 0.017581496387720108, -0.027266740798950195, 0.008226729929447174, -0.08756378293037415, 0.057565078139305115, 0.007689150515943766, 0.002599770203232765, -0.0237945057451725, 0.04508618265390396, 0.026967106387019157, -0.027654504403471947, -0.014734968543052673, -0.02048090100288391, 0.026191582903265953, 0.016365332528948784, 0.00939442403614521, 0.035832762718200684, -0.053052935749292374, -0.013104603625833988, -0.06514406949281693, 0.03983376547694206, 0.01136848609894514, 0.022948479279875755, -0.0314439982175827, 0.009861500933766365, 0.06468580663204193, -0.012434832751750946, 0.02291322872042656, -0.051255129277706146, 0.05389896407723427, 0.01098953653126955, -0.020639531314373016, 0.009896752424538136, 0.02323048934340477, -0.060949187725782394, 0.019141359254717827, -0.01691172458231449, 0.03511011600494385, 0.06641311198472977, -0.00366391334682703, 0.04709549620747566, -0.013104603625833988, -0.0004494517925195396, 0.013351362198591232, -0.029910575598478317, 0.01898272894322872, 0.01903560571372509, -0.0177313145250082, -0.02116829715669155, -0.034598976373672485, 0.009006661362946033, -0.020992042496800423, 0.04547394439578056, 0.03197276592254639, -0.06521457433700562, -0.018947476521134377, -0.031726010143756866, 0.026967106387019157, 0.01697341538965702, 0.015677936375141144, -0.02999870292842388, -0.03743669018149376, -0.06722388416528702, -0.038212213665246964, -0.022895602509379387, 0.018383460119366646, 0.010178760625422001, -0.016127387061715126, -0.07282881438732147, -0.02411176636815071, 0.029205553233623505, 0.02053377777338028, 0.029663817957043648, -0.03969276323914528, -0.005402234382927418, 0.014787845313549042, 0.014153324998915195, 0.00973812211304903, -0.009050725027918816, -0.017572684213519096, -0.054815493524074554, -0.01940574124455452, -0.04490992799401283, 0.04550919681787491, 0.0042984336614608765, 0.08171209692955017, -0.06715338677167892, -0.06433329731225967, 0.037401437759399414, 0.04177257791161537, -0.029716694727540016, 0.038917236030101776, 0.031214866787195206, 0.038353219628334045, 0.03652016073465347, -0.0015180014306679368, 0.017290674149990082, -0.017361177131533623, 0.002430124208331108, -0.03662591427564621, 0.0013913176953792572, -0.05326444283127785, -0.08382716774940491, -0.06475631147623062, -0.005441891960799694, -0.003564769634976983, 0.09052487462759018, -0.004111161921173334, -0.0012095540296286345, -0.01741405390202999, 0.026332587003707886, -0.07275830954313278, 0.005455110687762499, 0.05929238349199295, -0.054004717618227005, -0.038599975407123566, -0.04364088550209999, -0.009376797825098038, 0.04346463084220886, 0.09066588431596756, -0.002138200681656599, 0.007552552502602339, 0.0781869888305664, -0.017607934772968292, -0.054498232901096344, 0.026649847626686096, -0.047553762793540955, -0.005093786865472794, -0.03385870158672333, -0.015113918110728264, 0.05752982944250107, -0.019581997767090797, -0.02278984896838665, 0.0032915733754634857, -0.008306045085191727, 0.0062614805065095425, -0.0017041712999343872, -0.04364088550209999, 0.033717695623636246, -0.02548656053841114, -0.03308317810297012, 0.06415703892707825, -0.06302900612354279, 0.016726655885577202, 0.07691794633865356, -0.028465280309319496, -0.04170207679271698, -0.0026812884025275707, -0.016515150666236877, 0.004130990710109472, 0.016612090170383453, -0.03579751402139664, 0.021996699273586273, 0.021256426349282265, -0.003939312882721424, -0.019564371556043625, 0.02048090100288391, -0.013342549093067646, 0.09743409603834152, -0.0344579704105854, -0.032272402197122574, -0.032977424561977386, -0.06563758850097656, -0.004869061056524515, 0.0019344051834195852, -0.013818439096212387, 0.022772224619984627, -0.029469937086105347, -0.03595614433288574, 0.05414571985602379, -0.016991039738059044, 0.0236006248742342, -0.015951132401823997, 0.010205199010670185, 0.006486206315457821, 0.03736618906259537, -0.00006168946129037067, 0.014849534258246422, -0.02166181430220604, 0.01871834509074688, 0.04039778560400009, -0.03197276592254639, 0.030580347403883934, 0.022084826603531837, -0.000926994311157614, -0.03680216893553734, 0.026085829362273216, -0.01061058696359396, 0.02509879693388939, 0.059327635914087296, -0.002102949656546116, 0.008777529001235962, -0.013245608657598495, -0.010804468765854836, -0.010584148578345776, -0.03817696496844292, 0.052383165806531906, 0.04219559207558632, -0.0183482076972723, 0.042301345616579056, -0.0733928307890892, -0.011826750822365284, 0.035162992775440216, -0.005856092553585768, -0.017704876139760017, -0.012884284369647503, -0.0017041712999343872, -0.06567283719778061, 0.005120225250720978, -0.03473997861146927, -0.05280617997050285, 0.008777529001235962, -0.032959796488285065, 0.007398328743875027, -0.03454609960317612, -0.08107757568359375, 0.04290061444044113, 0.09905564785003662, 0.04124381020665169, -0.036343906074762344, -0.0015422365395352244, 0.008244356140494347, -0.00610725674778223, 0.006296731531620026, -0.047589011490345, -0.022631218656897545, -0.0134042389690876, 0.0079579409211874, 0.005111412610858679, 0.012919535860419273, 0.038670480251312256, -0.01871834509074688, -0.024446651339530945, 0.026508843526244164, 0.011606431566178799, 0.032395780086517334, 0.06003265827894211, 0.032395780086517334, -0.05026809871196747, 0.010090633295476437, 0.034087833017110825, 0.09144140779972076, -0.04050353914499283, -0.013324923813343048, -0.025627564638853073, -0.05911612883210182, 0.04462791979312897, 0.028888292610645294, 0.030879981815814972, -0.00572830718010664, -0.08855081349611282, -0.02278984896838665, -0.001237094053067267, -0.055555764585733414, -0.01903560571372509, 0.028077516704797745, 0.01102478802204132, 0.013060539960861206, -0.001630364335142076, -0.06789366155862808, 0.021185923367738724, -0.03523349389433861, -0.007834561169147491, -0.003203445579856634, 0.03482810780405998, 0.03216664865612984, 0.001828651875257492, 0.04522718861699104, 0.017572684213519096, -0.019335240125656128, -0.000007233536962303333, 0.05661329999566078, 0.014752593822777271, 0.02536318078637123, -0.025821445509791374, 0.03923449665307999, 0.01193250436335802, 0.0199697595089674, -0.020128389820456505, 0.047483257949352264, -0.01866546832025051, 0.021573685109615326, 0.04864654690027237, 0.05566151812672615, 0.07360433787107468, 0.045614950358867645 ]
729,324
tinytuya.core
_receive
null
def _receive(self): # make sure to use the parent's self.seqno and session key if self.parent: return self.parent._receive() # message consists of header + retcode + [data] + crc (4 or 32) + footer min_len_55AA = struct.calcsize(MESSAGE_HEADER_FMT_55AA) + 4 + 4 + len(SUFFIX_BIN) # message consists of header + iv + retcode + [data] + crc (16) + footer min_len_6699 = struct.calcsize(MESSAGE_HEADER_FMT_6699) + 12 + 4 + 16 + len(SUFFIX_BIN) min_len = min_len_55AA if min_len_55AA < min_len_6699 else min_len_6699 prefix_len = len( PREFIX_55AA_BIN ) data = self._recv_all( min_len ) # search for the prefix. if not found, delete everything except # the last (prefix_len - 1) bytes and recv more to replace it prefix_offset_55AA = data.find( PREFIX_55AA_BIN ) prefix_offset_6699 = data.find( PREFIX_6699_BIN ) while prefix_offset_55AA != 0 and prefix_offset_6699 != 0: log.debug('Message prefix not at the beginning of the received data!') log.debug('Offset 55AA: %d, 6699: %d, Received data: %r', prefix_offset_55AA, prefix_offset_6699, data) if prefix_offset_55AA < 0 and prefix_offset_6699 < 0: data = data[1-prefix_len:] else: prefix_offset = prefix_offset_6699 if prefix_offset_55AA < 0 else prefix_offset_55AA data = data[prefix_offset:] data += self._recv_all( min_len - len(data) ) prefix_offset_55AA = data.find( PREFIX_55AA_BIN ) prefix_offset_6699 = data.find( PREFIX_6699_BIN ) header = parse_header(data) remaining = header.total_length - len(data) if remaining > 0: data += self._recv_all( remaining ) log.debug("received data=%r", binascii.hexlify(data)) hmac_key = self.local_key if self.version >= 3.4 else None no_retcode = False #None if self.version >= 3.5 else False return unpack_message(data, header=header, hmac_key=hmac_key, no_retcode=no_retcode)
(self)
[ -0.003358854679390788, -0.021649671718478203, -0.08881720155477524, -0.01282341405749321, -0.009084447287023067, -0.047468625009059906, -0.00027761352248489857, 0.0740143358707428, 0.042037080973386765, -0.05672520026564598, -0.0017965688602998853, 0.02335180900990963, -0.010968274436891079, -0.00038638783735223114, -0.03970381245017052, 0.05026089772582054, 0.03832680359482765, -0.024958321824669838, -0.00435336260125041, -0.017059635370969772, -0.01170459296554327, 0.035171154886484146, -0.034635648131370544, 0.04134857654571533, -0.01798720471560955, 0.01678232103586197, -0.005402855109423399, -0.03738966956734657, 0.07638585567474365, -0.0027205527294427156, 0.01336848083883524, -0.04521185904741287, 0.013358918018639088, 0.024843571707606316, -0.05244116485118866, 0.005565418861806393, 0.00031018603476695716, -0.06640252470970154, 0.02513044886291027, 0.02262505330145359, 0.04655061662197113, -0.04781287908554077, 0.060282476246356964, -0.03555365651845932, 0.009524324908852577, 0.019354652613401413, -0.054085928946733475, 0.07294332981109619, 0.004625895991921425, 0.06900354474782944, -0.012354847975075245, 0.011130837723612785, -0.008711506612598896, -0.006904179695993662, 0.020769914612174034, 0.036471664905548096, -0.0015981454635038972, 0.009036634117364883, -0.04192233085632324, 0.04811888188123703, -0.014726366847753525, -0.0067798662930727005, -0.021554045379161835, -0.0017427793936803937, -0.023332685232162476, -0.0182453952729702, 0.024365441873669624, -0.037045419216156006, -0.021974798291921616, 0.0018886086763814092, 0.021496670320630074, 0.04578561335802078, -0.019096463918685913, 0.02616320736706257, -0.01392311044037342, -0.012708663009107113, 0.031613875180482864, -0.002689474495127797, 0.004432254005223513, -0.0024073785170912743, 0.06230974197387695, -0.022242551669478416, 0.04004806652665138, 0.00883581954985857, 0.045747362077236176, 0.04498235508799553, 0.06720577925443649, 0.02120979316532612, -0.029223231598734856, 0.0011122471187263727, -0.002298604231327772, 0.027444591745734215, -0.02382993884384632, 0.028133098036050797, -0.0017630999209359288, -0.05959397181868553, -0.044026099145412445, 0.008462879806756973, 0.012010594829916954, -0.004348581191152334, -0.0437965951859951, 0.08384466171264648, -0.0594409704208374, -0.011608966626226902, 0.023523936048150063, 0.041004326194524765, -0.042725589126348495, 0.025742454454302788, 0.0031939002219587564, 0.019794531166553497, 0.04697137326002121, -0.033908892422914505, -0.06590527296066284, 0.021018540486693382, -0.032857008278369904, -0.01522362045943737, -0.015606123022735119, 0.005445886868983507, -0.04712437465786934, 0.015414872206747532, 0.01191496942192316, -0.014812429435551167, 0.01934508979320526, -0.05515693500638008, -0.039742063730955124, 0.038078177720308304, 0.015328808687627316, -0.023237058892846107, 0.05247941613197327, -0.04823363199830055, -0.020578661933541298, 0.06135348603129387, 0.02799922227859497, 0.017327386885881424, -0.051790907979011536, 0.01814976893365383, 0.053397420793771744, -0.008591974154114723, -0.004824319388717413, -0.020655162632465363, 0.05144665762782097, 0.038919683545827866, 0.06579051911830902, 0.018283644691109657, -0.03413839638233185, -0.012297471985220909, 0.06781778484582901, -0.02371518686413765, -0.0005776393227279186, -0.04150157794356346, -0.020827289670705795, -0.010834398679435253, -0.006258705630898476, 0.043873097747564316, 0.07581210136413574, 0.005641919560730457, -0.04815712943673134, -0.014200424775481224, -0.08491567522287369, -0.02564682811498642, -0.02214692533016205, -0.005833171308040619, 0.018264519050717354, -0.0938662439584732, 0.007038055919110775, -0.012536536902189255, 0.020253535360097885, -0.037083666771650314, -0.048195380717515945, 0.03029423952102661, -0.02404031530022621, 0.07267557829618454, -0.04922813922166824, -0.019325966015458107, -0.01736563816666603, 0.0038059051148593426, -0.04211358353495598, -0.044905856251716614, -0.0051494468934834, 0.007214963436126709, -0.05775795876979828, 0.007329714018851519, -0.009275698103010654, -0.021974798291921616, -0.01097783725708723, 0.07646235823631287, 0.0463976189494133, 0.008008657023310661, 0.10488232970237732, -0.06208024173974991, -0.10648884624242783, -0.0049677579663693905, 0.006813335232436657, 0.06315124779939651, -0.024269817396998405, 0.023370934650301933, 0.027827095240354538, 0.062118493020534515, -0.02096116542816162, -0.03951256349682808, -0.018522709608078003, -0.04551786184310913, -0.005187697242945433, 0.0028974604792892933, -0.08568067848682404, -0.031269621104002, 0.0006932867108844221, 0.028113972395658493, -0.01357885729521513, -0.01621812768280506, -0.02105679176747799, 0.01657194271683693, 0.09149472415447235, 0.008319441229104996, -0.0023153387010097504, -0.009189635515213013, -0.008391160517930984, -0.00293810130096972, 0.02356218732893467, -0.011943656951189041, 0.03327776491641998, -0.0016244425205513835, -0.06808553636074066, 0.002878335304558277, -0.0625774934887886, 0.018484458327293396, -0.032187629491090775, 0.015673061832785606, 0.008931445889174938, 0.015873875468969345, 0.03784867376089096, -0.00004131331661483273, 0.014401239342987537, 0.034329645335674286, -0.0051446654833853245, 0.0208464153110981, -0.019325966015458107, 0.003918265458196402, 0.023007556796073914, 0.033813267946243286, -0.03784867376089096, -0.052517667412757874, 0.05932622030377388, 0.016619756817817688, 0.042572587728500366, -0.0226824302226305, 0.02824784815311432, 0.0224146768450737, 0.06682328134775162, 0.0651785135269165, -0.04479110613465309, -0.015070619061589241, -0.0012090681120753288, 0.0051446654833853245, 0.030581116676330566, -0.038594555109739304, -0.03096362017095089, -0.01939290389418602, 0.040698323398828506, 0.03123137168586254, 0.025187823921442032, -0.041731081902980804, -0.031556498259305954, -0.012316597625613213, 0.008921883068978786, 0.052632417529821396, 0.008319441229104996, -0.024633195251226425, -0.0007996704080142081, 0.044179100543260574, 0.07933112978935242, -0.013196354731917381, -0.011532465927302837, 0.06804728507995605, -0.003062414936721325, -0.002071492839604616, 0.013588420115411282, -0.007970406673848629, 0.03717929497361183, -0.012498286552727222, 0.00688027311116457, 0.034597400575876236, 0.030313365161418915, -0.05802571028470993, 0.011312526650726795, 0.010901336558163166, 0.02178354747593403, -0.0708778128027916, 0.007085868623107672, -0.01990928314626217, 0.014850679785013199, -0.05603669211268425, -0.015271433629095554, -0.022491177543997765, 0.03147999942302704, 0.018618334084749222, -0.0547361820936203, 0.05569244176149368, 0.015529623255133629, -0.010231955908238888, -0.058561213314533234, 0.0012610646663233638, 0.013167666271328926, -0.031766876578330994, -0.009366543032228947, 0.002765974961221218, 0.0153766218572855, 0.04023931920528412, 0.014420364052057266, -0.013148541562259197, 0.026354458183050156, 0.00033737963531166315, 0.06579051911830902, -0.0563044473528862, 0.0344061478972435, 0.0051494468934834, 0.09218323230743408, 0.04739212617278099, 0.05687820166349411, 0.035113777965307236, 0.029796985909342766, -0.0071336813271045685, -0.028955478221178055, 0.060703229159116745, -0.004800412803888321, 0.047468625009059906, -0.042457837611436844, 0.027980096638202667, -0.02069341391324997, -0.04781287908554077, -0.026144081726670265, -0.004035406745970249, -0.04995489493012428, -0.01678232103586197, -0.01990928314626217, 0.024728821590542793, 0.014764617197215557, -0.018025455996394157, 0.02643095888197422, -0.021802673116326332, 0.022280801087617874, -0.04081307351589203, 0.03117399662733078, 0.023390060290694237, 0.022242551669478416, -0.022280801087617874, 0.018685271963477135, 0.010824835859239101, -0.02340918593108654, 0.002871163422241807, -0.009117916226387024, -0.026622211560606956, 0.02069341391324997, 0.0740143358707428, 0.038651932030916214, -0.033755891025066376, -0.025245198979973793, -0.028439100831747055, 0.0547361820936203, 0.030007362365722656, -0.013798796571791172, 0.03423402085900307, 0.004807584919035435, -0.0153766218572855, -0.0938662439584732, -0.04884563758969307, -0.05186741054058075, 0.03727491945028305, 0.02627795748412609, 0.010069392621517181, -0.0126417251303792, -0.022280801087617874, -0.03465477377176285, -0.029739610850811005, -0.02612495608627796, -0.007540090940892696, -0.03216850385069847, 0.010318019427359104, -0.027540218085050583, -0.03455914929509163, 0.0023296824656426907, -0.0029835235327482224, -0.06131523475050926, -0.0003424597380217165, 0.05764320492744446, 0.031269621104002, 0.005780577193945646, -0.002289041643962264, -0.03738966956734657, 0.036471664905548096, -0.00967254489660263, 0.03685416653752327, 0.06705278158187866, -0.037294045090675354, -0.04911338910460472, 0.011503778398036957, 0.011465528048574924, 0.022185174748301506, -0.026469210162758827, -0.09516675025224686, 0.02924235723912716, -0.029012855142354965, -0.034119270741939545, 0.04995489493012428, 0.010212831199169159, -0.020808164030313492, 0.0912652239203453, -0.028592100366950035, -0.010442332364618778, -0.03017948940396309, -0.02914673089981079, 0.027176840230822563, 0.01918252743780613, 0.008166439831256866, 0.018599210307002068, 0.015453122556209564, 0.013492794707417488, 0.008811913430690765, 0.04555610939860344, 0.012957289814949036, -0.018101954832673073, 0.011656779795885086, 0.0364907905459404, -0.0032010721042752266, -0.015137556940317154, 0.023485686630010605, -0.05714595317840576, -0.007750467397272587, -0.06647902727127075, -0.009347417391836643, 0.011455965228378773, -0.022070424631237984, -0.022548552602529526, 0.0011636458802968264, 0.0036887635942548513, 0.02564682811498642, -0.041998833417892456, -0.051064152270555496, 0.0003272193716838956, 0.018742648884654045, 0.0021898297127336264, 0.01102564949542284, -0.0008851359016261995, -0.023217933252453804, 0.02564682811498642, -0.028745101764798164, -0.028324348852038383, 0.0028998511843383312, -0.022395553067326546, -0.009576919488608837, 0.017231760546565056, -0.03524765372276306, -0.019153838977217674, 0.014812429435551167, -0.07627110183238983, -0.03012211248278618, 0.024518443271517754, 0.06295999884605408, -0.04700962081551552, -0.0865221843123436, -0.02023440971970558, 0.018121080473065376, -0.024786196649074554, 0.020138785243034363, -0.010710084810853004, 0.038709305226802826, -0.004630677402019501, -0.032398007810115814, -0.07137506455183029, -0.0006454738322645426, -0.007831749506294727, -0.07420558482408524, -0.009438262321054935, 0.016457192599773407, 0.04945764318108559, 0.005871421657502651, 0.05102590471506119, -0.026928212493658066, -0.07910162955522537, -0.04800412803888321, 0.00047484165406785905, -0.03402364253997803, -0.03564928099513054, -0.0008612294914200902, -0.005675388500094414, -0.0208464153110981, 0.0060626729391515255, 0.00456134881824255, -0.013827484101057053, -0.047621626406908035, -0.05274716764688492, 0.005565418861806393, -0.016390254721045494, 0.06751178205013275, 0.08124364167451859, 0.011149963364005089, 0.011714154854416847, -0.0062873936258256435, 0.007281901314854622, -0.0813201442360878, -0.024116815999150276, -0.031671252101659775, -0.00027283222880214453, 0.001765490509569645, -0.025570327416062355, -0.014659428037703037, -0.04785113036632538, 0.0036672477144747972, 0.04153982922434807, 0.003040899056941271, -0.050911154597997665, 0.06192724034190178, -0.008577629923820496, 0.002746849786490202, -0.04827188327908516, 0.04880738630890846, -0.027329841628670692, -0.005785358138382435, -0.06058847904205322, -0.0037031073588877916, 0.0318051278591156, 0.020215284079313278, 0.015864312648773193, 0.02658396027982235, -0.0195554681122303, 0.045594360679388046, -0.048195380717515945, -0.00024190328258555382, -0.006163080222904682, -0.060091227293014526, -0.07864262163639069, 0.033335138112306595, 0.04731562361121178, -0.00925179198384285, -0.007511403411626816, -0.03888143226504326, -0.003619434777647257, 0.004236220847815275, -0.09868577867746353, -0.04356709495186806, 0.007683529518544674, 0.04884563758969307, -0.042763836681842804, -0.029471857473254204, -0.06433700770139694, 0.07596509903669357, 0.01725088618695736, 0.05764320492744446, 0.005699295084923506, -0.01157071627676487, -0.06510201841592789, 0.01206797081977129, 0.04972539469599724, 0.008185564540326595, 0.018541833385825157, -0.021802673116326332, -0.022433802485466003, -0.04138682782649994, 0.00008262663322966546, 0.03147999942302704, 0.02513044886291027, 0.03270401060581207, -0.05806395784020424, -0.015682624652981758, 0.020827289670705795, 0.06368675082921982, -0.018991274759173393, 0.02147754468023777, 0.0002333866141270846, 0.030332490801811218, -0.05041389912366867, 0.003638559952378273, 0.0007165955030359328, -0.007764811627566814, 0.04414084926247597, -0.01063358411192894, -0.026660460978746414, -0.005641919560730457, 0.010987399145960808, -0.03981856629252434, 0.0833856612443924, -0.05569244176149368, 0.06846804171800613, -0.045747362077236176, -0.00551282474771142, 0.027291590347886086, -0.041731081902980804, 0.02132454328238964, 0.05764320492744446, 0.01394223514944315, 0.0016077080508694053, 0.0025938486214727163, 0.032761383801698685, -0.014047423377633095, 0.020922916010022163, 0.06950079649686813, 0.02951010875403881, 0.03585965931415558, -0.02643095888197422, 0.004377269186079502, 0.008391160517930984, 0.04681837186217308, 0.027042964473366737, -0.016753632575273514, -0.00012035397958243266, 0.01798720471560955, -0.056227944791316986, 0.06456650793552399, 0.02513044886291027, 0.016352005302906036, -0.005034696310758591, 0.003581184661015868, 0.042725589126348495, -0.032971762120723724, 0.014181300066411495, 0.008238159120082855, -0.007932156324386597, -0.003456871025264263, -0.0002525117597542703, 0.0153766218572855, 0.046627119183540344, 0.00011168789205839857, -0.03350726515054703, 0.008649350143969059, -0.051905661821365356, 0.02340918593108654, -0.015481810085475445, -0.008147314190864563, 0.016199003905057907, -0.0033134324476122856, 0.0007088259444572031, 0.009452605620026588, 0.03869017958641052, 0.03947431221604347, 0.041998833417892456, -0.007917813025414944, 0.014401239342987537, 0.012383535504341125, -0.037982549518346786, -0.026679586619138718, 0.024575820192694664, -0.06751178205013275, -0.044179100543260574, -0.07317283004522324, -0.0797901302576065, 0.0008839406073093414, 0.051905661821365356, 0.016485881060361862, 0.005049040075391531, 0.011398590169847012, 0.03585965931415558, 0.03060024231672287, -0.03970381245017052, 0.03748529776930809, -0.0005014375783503056, 0.0037007168866693974, 0.04915164038538933, 0.05844646319746971, -0.0009096399880945683, 0.014850679785013199, -0.0091226976364851, -0.04249608516693115, 0.009801640175282955, 0.00909879058599472, 0.02465232089161873, 0.009242229163646698, 0.00449441047385335, 0.008276409469544888, 0.09891528636217117, -0.04655061662197113, 0.019354652613401413, 0.04008631780743599, -0.04945764318108559, 0.027616718783974648, -0.0030002580024302006, -0.032665759325027466, 0.009753827005624771, -0.04020106792449951, 0.06529326736927032, 0.033239513635635376, -0.015634810552001, 0.03924481198191643, -0.02434631809592247, -0.019985783845186234, 0.040315818041563034, -0.009390449151396751, 0.0589054673910141, 0.00743968365713954, -0.03473127633333206, -0.13387605547904968, 0.0521351620554924, -0.038651932030916214, 0.005230729002505541, -0.0007136071799322963, -0.06250099092721939, 0.06104748323559761, 0.0015921688172966242, -0.04383484646677971, -0.04968714341521263, -0.02924235723912716, -0.006000516004860401, -0.04096607491374016, 0.0071814944967627525, -0.034119270741939545, -0.02555120177567005, 0.04865438491106033, -0.07110731303691864, -0.01673450693488121, -0.07718911021947861, 0.060703229159116745, -0.01578781194984913, -0.0017093104543164372, -0.012163596227765083, -0.018599210307002068, 0.010757897980511189, 0.01415261160582304, -0.031460873782634735, 0.04635936766862869, 0.002089422894641757, 0.042725589126348495, -0.0672440305352211, 0.04421734809875488, 0.044332101941108704, 0.02935710735619068, -0.012727788649499416, -0.024212442338466644, 0.039283059537410736, -0.012154033407568932, -0.024824446067214012, 0.0755826011300087, 0.044026099145412445, 0.010987399145960808, 0.016342442482709885, 0.020980291068553925, 0.025302575901150703, -0.04096607491374016, 0.00805168878287077, -0.025455577298998833, 0.03989506512880325, 0.051523156464099884, -0.008027782663702965, -0.026717836037278175, -0.026201456785202026, 0.05511868745088577, -0.08384466171264648, 0.027081213891506195, 0.004059313330799341, 0.0056610447354614735, 0.03205375373363495, 0.009710795246064663, -0.026928212493658066, -0.015386184677481651, -0.04004806652665138, -0.04111907631158829, -0.04655061662197113, 0.020310910418629646, -0.044905856251716614, 0.0030432897619903088, 0.015328808687627316, 0.012364410795271397, 0.021286293864250183, -0.004518317058682442, 0.036356911063194275, 0.02830522321164608, -0.0391109362244606, 0.012651287950575352, -0.03304826095700264, 0.0281522236764431 ]
729,325
tinytuya.core
_recv_all
null
def _recv_all(self, length): tries = 2 data = b'' while length > 0: newdata = self.socket.recv(length) if not newdata or len(newdata) == 0: log.debug("_recv_all(): no data? %r", newdata) # connection closed? tries -= 1 if tries == 0: raise DecodeError('No data received - connection closed?') if self.sendWait is not None: time.sleep(self.sendWait) continue data += newdata length -= len(newdata) tries = 2 return data
(self, length)
[ -0.04696296527981758, 0.029955347999930382, -0.06722579896450043, 0.013222049921751022, -0.029498154297471046, -0.018360909074544907, -0.05325395241379738, -0.03313741832971573, 0.0650678426027298, -0.055521633476018906, -0.004098743665963411, 0.021506404504179955, -0.017931146547198296, 0.0185437873005867, 0.004539935849606991, 0.05193723365664482, -0.0007795157143846154, -0.01811402477324009, -0.006505870260298252, 0.035990308970212936, -0.01768426224589348, 0.06462893635034561, -0.020939484238624573, 0.0023076864890754223, -0.03061370737850666, 0.02200017310678959, 0.010698338970541954, -0.03591715916991234, 0.05416833981871605, 0.013030027970671654, 0.014209588058292866, -0.02662697620689869, 0.01377068180590868, 0.012316805310547352, -0.05094969645142555, 0.043744318187236786, 0.0004226186720188707, -0.0678110122680664, 0.03997704014182091, 0.06744525581598282, -0.03961128368973732, 0.0008903852431103587, -0.008055757731199265, -0.0278705433011055, -0.008069473318755627, -0.048096805810928345, -0.038184840232133865, 0.06466551125049591, -0.02046400122344494, 0.04206184297800064, -0.0044073499739170074, 0.10080212354660034, 0.003822141559794545, 0.0028003130573779345, 0.06316591799259186, 0.034161534160375595, -0.058301374316215515, 0.05756986513733864, -0.0020790896378457546, 0.03156467154622078, -0.04674351215362549, -0.009189598262310028, -0.019330160692334175, -0.045646246522665024, -0.02349977008998394, 0.01591949351131916, -0.007790585048496723, -0.01221622247248888, 0.040342796593904495, -0.0000181091672857292, 0.012234510853886604, 0.1356220245361328, -0.04396377131342888, 0.03595373407006264, -0.05592396482825279, 0.02136010117828846, 0.041586361825466156, -0.02201846055686474, 0.040306221693754196, 0.010936079546809196, 0.04272020235657692, 0.013459790498018265, 0.05233956500887871, 0.045024462044239044, 0.03811169043183327, -0.0060486760921776295, -0.05014503374695778, 0.028016846626996994, -0.05372943356633186, -0.03410666808485985, 0.01176817249506712, 0.011228683404624462, -0.01945817470550537, 0.03315570577979088, -0.01315804198384285, -0.06159317120909691, -0.03214988112449646, 0.029827333986759186, -0.017995154485106468, -0.032899677753448486, -0.045902274549007416, 0.06609196215867996, -0.023700935766100883, -0.011960194446146488, 0.016879601404070854, -0.011502999812364578, 0.01299345213919878, -0.021469827741384506, -0.0046725221909582615, 0.00640528742223978, 0.05482669919729233, -0.012929445132613182, -0.004073598422110081, 0.0014630206860601902, -0.05544848367571831, 0.04257390275597572, -0.01484051626175642, 0.0076579987071454525, -0.05219326168298721, 0.005696636624634266, 0.029242126271128654, 0.02348148263990879, 0.0030060503631830215, 0.006130971014499664, 0.013194617815315723, 0.03928210586309433, -0.037636205554008484, -0.03792881220579147, 0.046268031001091, -0.023591209203004837, 0.012682560831308365, 0.0865376740694046, 0.0028186007402837276, 0.04820653051137924, -0.04144006222486496, 0.0050611370243132114, -0.009866246022284031, 0.009079871699213982, 0.058008771389722824, -0.06214180216193199, -0.008791839703917503, -0.01052460540086031, 0.07556501775979996, 0.057350412011146545, -0.00013965847028885037, -0.0008846702985465527, 0.034124959260225296, -0.0231705904006958, -0.024651898071169853, -0.054643820971250534, -0.019970232620835304, 0.02159784361720085, -0.03655723109841347, -0.01731850765645504, 0.046524059027433395, 0.004331912845373154, -0.027468213811516762, -0.014703357592225075, -0.043232262134552, -0.05285162106156349, -0.0588500089943409, 0.006428147200495005, -0.013176330365240574, -0.06067878380417824, 0.009692512452602386, -0.00625441363081336, 0.03213159367442131, -0.049596402794122696, 0.019330160692334175, 0.052705321460962296, -0.010670906864106655, 0.0647752434015274, 0.019641052931547165, -0.05497300252318382, -0.02108578570187092, 0.035094209015369415, -0.05815507099032402, -0.027651090174913406, 0.00988453347235918, -0.02417641691863537, -0.04575597122311592, -0.023682646453380585, -0.03339344635605812, -0.013130610808730125, 0.0524858683347702, 0.027669379487633705, 0.00449421675875783, 0.01574576087296009, 0.020957771688699722, -0.03149152174592018, -0.07066389918327332, -0.023572921752929688, -0.03767278417944908, 0.03165610879659653, 0.020976059138774872, -0.019641052931547165, 0.040306221693754196, 0.06005699932575226, -0.004423351492732763, 0.021817296743392944, -0.02843746542930603, -0.04122060909867287, -0.026114920154213905, -0.04297623410820961, -0.0803198367357254, -0.014429041184484959, -0.03150980919599533, 0.006076107732951641, 0.03399694338440895, -0.037160724401474, -0.010936079546809196, 0.05599711835384369, 0.08134394884109497, 0.0036826974246650934, 0.02849232777953148, -0.03218645602464676, -0.02905924804508686, -0.06265386193990707, 0.061812624335289, -0.014337603002786636, -0.04732871800661087, -0.05157148092985153, -0.057972196489572525, 0.016943607479333878, -0.018726665526628494, 0.031052613630890846, -0.05420491471886635, -0.0004494788299780339, 0.01762939989566803, 0.048096805810928345, 0.006428147200495005, 0.028693493455648422, 0.0617394745349884, -0.0013761537848040462, 0.043488290160894394, 0.02128695137798786, -0.031052613630890846, -0.01866265758872032, 0.0039021505508571863, 0.009345044381916523, -0.06104453653097153, -0.09392593055963516, -0.03189384937286377, -0.0433419868350029, 0.007507124915719032, 0.009994260035455227, 0.030156513676047325, 0.0370144248008728, 0.05416833981871605, 0.04213499650359154, -0.00047919643111526966, -0.0006252127350308001, -0.0019305015448480844, -0.027340199798345566, 0.02073831856250763, -0.08456259220838547, -0.029296988621354103, -0.04052567481994629, -0.001019542571157217, 0.006190406158566475, 0.04729214310646057, -0.0018356337677687407, -0.08792754262685776, 0.06576278060674667, -0.030229665338993073, 0.0060806795954704285, -0.005111428443342447, -0.0036895552184432745, 0.0014801654033362865, 0.04092800244688988, 0.060751933604478836, -0.03502105921506882, -0.014072430320084095, 0.012353381142020226, 0.0011704165954142809, 0.028821507468819618, 0.043451715260744095, -0.011036662384867668, -0.0006846479373052716, -0.046853236854076385, 0.026444099843502045, 0.059910695999860764, 0.015133120119571686, -0.05471697449684143, -0.022402504459023476, 0.012591121718287468, -0.000700649747159332, -0.06920088082551956, 0.009294752962887287, 0.04754817113280296, 0.043232262134552, -0.03339344635605812, -0.012490538880228996, -0.013679243624210358, -0.0009709656587801874, -0.0021682423539459705, -0.008906138129532337, 0.0200616717338562, 0.025163955986499786, -0.0016596141504123807, -0.05343683063983917, -0.041001155972480774, -0.0074248299933969975, 0.016705866903066635, -0.02695615589618683, -0.07871051132678986, 0.004432495683431625, -0.0433054119348526, 0.019567901268601418, -0.009628504514694214, -0.0010875501902773976, 0.0008858133223839104, 0.049047768115997314, -0.015773192048072815, 0.08075874298810959, 0.003072343533858657, -0.004098743665963411, 0.05709438398480415, 0.009207886643707752, 0.03796538710594177, -0.0016779018333181739, -0.008526667021214962, 0.0370509997010231, -0.005746928043663502, -0.0010955510661005974, 0.07578447461128235, 0.03065028414130211, 0.0021248089615255594, 0.008540383540093899, -0.025566287338733673, 0.001188704278320074, -0.03432612121105194, -0.023591209203004837, -0.014758220873773098, 0.037636205554008484, 0.02873006835579872, 0.0028186007402837276, -0.0043090530671179295, 0.0495232492685318, -0.04571939632296562, 0.047511596232652664, -0.007744865957647562, 0.061373718082904816, 0.017428234219551086, 0.052668746560811996, 0.015498875640332699, -0.022493943572044373, 0.004215328488498926, -0.019567901268601418, 0.008398653008043766, 0.009509634226560593, -0.056106843054294586, 0.022128187119960785, 0.05746013671159744, 0.018818102777004242, 0.014575343579053879, 0.029809046536684036, 0.03427125886082649, 0.049669552594423294, 0.011475568637251854, -0.011676734313368797, 0.05753329023718834, 0.019000981003046036, 0.009793094359338284, -0.01976906694471836, 0.00780887296423316, -0.005975524894893169, 0.024651898071169853, -0.03858717158436775, 0.02873006835579872, -0.0802466869354248, -0.00988453347235918, -0.005646345671266317, -0.040050189942121506, -0.006821333896368742, -0.04239102452993393, 0.010424022562801838, 0.00016716154641471803, 0.0216527059674263, -0.023737510666251183, -0.06927403062582016, -0.06437291204929352, 0.0006183548248372972, -0.017364226281642914, 0.08244121819734573, 0.008357505314052105, -0.03472845256328583, 0.00534459762275219, -0.06532387435436249, 0.01795857958495617, -0.04261047765612602, -0.006611024960875511, 0.015114832669496536, -0.016742443665862083, -0.050620514899492264, 0.027632802724838257, 0.05098627135157585, 0.031125765293836594, 0.016340112313628197, -0.04352486506104469, -0.03562455251812935, -0.016934463754296303, -0.0020813755691051483, 0.03271679952740669, -0.009221602231264114, 0.030485693365335464, 0.05076681822538376, -0.05468039959669113, -0.03286310285329819, -0.026736702769994736, -0.007296815514564514, 0.03732531517744064, 0.004062168300151825, -0.025218818336725235, 0.02565772458910942, -0.01193276233971119, 0.04261047765612602, 0.023444905877113342, 0.0990464985370636, 0.02819972299039364, 0.010734913870692253, 0.002139667747542262, 0.030796585604548454, 0.033228855580091476, -0.005129716359078884, 0.039428409188985825, -0.0055229030549526215, 0.018050016835331917, -0.04882831498980522, 0.036100033670663834, 0.01669672317802906, -0.0525955930352211, -0.07384596765041351, -0.032607074826955795, 0.03282652795314789, 0.03185727447271347, -0.010762345977127552, -0.030485693365335464, 0.022036749869585037, 0.01914728246629238, -0.011951049789786339, 0.05479012429714203, 0.016724154353141785, 0.030375966802239418, 0.06572620570659637, -0.05193723365664482, 0.03001021221280098, -0.02841917611658573, -0.028309449553489685, -0.01452962402254343, -0.05819164961576462, -0.019055845215916634, 0.01795857958495617, -0.022420791909098625, -0.02412155270576477, 0.02664526365697384, -0.012472251430153847, 0.0711393803358078, -0.05193723365664482, -0.03183898702263832, -0.009162167087197304, -0.01283800695091486, -0.029955347999930382, 0.004274763632565737, -0.03280824050307274, -0.02657211385667324, -0.00664302846416831, -0.00451479060575366, -0.029626168310642242, 0.019330160692334175, -0.0028894657734781504, -0.03346659988164902, 0.01667843572795391, -0.015983501449227333, 0.054570671170949936, -0.03655723109841347, 0.03341173380613327, 0.0033260860946029425, -0.034161534160375595, -0.057716164737939835, -0.04239102452993393, 0.0006440720171667635, -0.019549613818526268, -0.016769874840974808, -0.014502192847430706, -0.04699954017996788, -0.03247905895113945, -0.025474848225712776, -0.04144006222486496, -0.0031774980016052723, -0.06985923647880554, 0.028071708977222443, -0.015224559232592583, 0.03363118693232536, 0.05636287108063698, 0.02688300423324108, -0.014127293601632118, -0.01889125443994999, 0.047438446432352066, -0.06305619329214096, 0.0009315327042713761, -0.0036438358947634697, 0.02322545275092125, 0.024670185521245003, 0.0007263669394887984, -0.021853871643543243, -0.03403351828455925, 0.01889125443994999, 0.0402330681681633, -0.0036369781009852886, -0.028693493455648422, 0.03310084342956543, 0.052120111882686615, -0.0002968903281725943, -0.004619944840669632, -0.0001518741191830486, 0.02439587004482746, 0.00845351628959179, -0.07636968046426773, 0.03748990595340729, 0.005385744851082563, 0.06824991852045059, 0.003662123577669263, 0.049925580620765686, -0.03950155898928642, 0.014273595996201038, -0.01795857958495617, 0.004535363987088203, -0.018141455948352814, -0.029260413721203804, -0.004094171803444624, 0.05848425254225731, 0.07600392401218414, 0.03066857159137726, -0.012472251430153847, -0.039428409188985825, 0.02688300423324108, 0.001714477315545082, -0.13379323482513428, -0.025822315365076065, 0.015709184110164642, 0.021195512264966965, 0.034527286887168884, -0.07541871815919876, -0.10387446731328964, 0.04553651809692383, 0.0277973935008049, 0.0555582121014595, 0.0005654917913489044, -0.029516441747546196, -0.04487815871834755, 0.04392719641327858, 0.008800983428955078, -0.012719135731458664, 0.0028140288777649403, -0.08244121819734573, -0.014090717770159245, -0.0018550645327195525, 0.013057460077106953, 0.02501765452325344, 0.03924553096294403, -0.023316891863942146, -0.04264705255627632, 0.039135802537202835, -0.015343429520726204, 0.06616511195898056, -0.009079871699213982, 0.04231787472963333, -0.0036941273137927055, -0.004647376481443644, -0.054241493344306946, 0.04103773087263107, -0.04557309299707413, -0.04882831498980522, 0.06693319976329803, -0.005673777312040329, -0.06426318734884262, -0.039794161915779114, -0.016687579452991486, -0.02322545275092125, 0.04765789955854416, -0.007804301101714373, -0.024633610621094704, -0.027687666937708855, -0.005157147999852896, -0.009409051388502121, -0.048974618315696716, 0.010597756132483482, 0.028364313766360283, 0.011475568637251854, 0.04268362745642662, -0.018708376213908195, 0.014630206860601902, -0.014182156883180141, 0.03469187766313553, 0.033247146755456924, 0.01312146708369255, 0.027321910485625267, -0.07304130494594574, -0.013843833468854427, 0.026535537093877792, 0.04849913716316223, 0.021908733993768692, 0.0201348215341568, 0.019348448142409325, 0.010296008549630642, -0.07636968046426773, 0.11535917967557907, 0.010698338970541954, 0.027029307559132576, -0.018626082688570023, 0.02108578570187092, 0.049925580620765686, -0.005842939019203186, -0.010862928815186024, 0.0032552210614085197, -0.03935525566339493, 0.013980991207063198, -0.016001788899302483, 0.01345064677298069, 0.013999279588460922, 0.01559945847839117, -0.020866332575678825, 0.014703357592225075, -0.07351678609848022, 0.005934377666562796, -0.024322718381881714, 0.005161719862371683, -0.022073324769735336, -0.0008972431533038616, -0.003262078855186701, -0.014886235818266869, 0.041257183998823166, 0.0185072124004364, 0.023902099579572678, 0.028967808932065964, -0.007616851478815079, 0.018342621624469757, -0.002003652509301901, 0.009491346776485443, 0.05500957742333412, -0.018708376213908195, -0.05669205263257027, -0.053656283766031265, -0.026681840419769287, 0.014429041184484959, 0.018178032711148262, 0.06162974610924721, -0.03472845256328583, -0.024030115455389023, 0.007932315580546856, 0.02565772458910942, 0.05138860270380974, 0.039721012115478516, 0.026389235630631447, -0.03748990595340729, 0.07841791212558746, 0.020555440336465836, 0.025474848225712776, -0.014685070142149925, -0.0037969958502799273, -0.005148004274815321, 0.04118403419852257, -0.02691958099603653, 0.018296902999281883, 0.020006807520985603, -0.022420791909098625, 0.001889354083687067, 0.03562455251812935, -0.014941099099814892, 0.009619360789656639, 0.03672181814908981, -0.006158402655273676, 0.0021499546710401773, 0.006656744051724672, 0.030540557578206062, -0.021524691954255104, -0.045975424349308014, 0.04213499650359154, 0.0524858683347702, 0.01611151546239853, 0.035423386842012405, -0.08829329907894135, -0.07885681837797165, 0.009294752962887287, -0.04729214310646057, 0.021232087165117264, -0.0069310604594647884, 0.003079201327636838, -0.06298304349184036, 0.03619147464632988, -0.02509080432355404, 0.018315190449357033, 0.041001155972480774, -0.041878968477249146, -0.012929445132613182, -0.022146476432681084, -0.019860506057739258, -0.026188069954514503, 0.01652299053966999, 0.02293284982442856, -0.014182156883180141, -0.01918385922908783, -0.007443117909133434, 0.031985290348529816, 0.041952118277549744, -0.03732531517744064, 0.00197964976541698, -0.047767624258995056, 0.00649672606959939, 0.0032552210614085197, 0.02690129354596138, -0.0370144248008728, -0.006547017488628626, -0.05299792438745499, 0.018278615549206734, 0.010789777152240276, 0.02534683421254158, -0.03218645602464676, 0.05819164961576462, -0.045280490070581436, 0.036319486796855927, -0.0042199003510177135, 0.01375239435583353, -0.054936427623033524, 0.03160124644637108, -0.02284141071140766, 0.014374177902936935, 0.013871264643967152, 0.06711607426404953, -0.01716306060552597, 0.006368712056428194, 0.04568282142281532, 0.004951410461217165, -0.022055037319660187, -0.04242759943008423, -0.015361716970801353, -0.01562689058482647, 0.002736305817961693, -0.0231705904006958, -0.005148004274815321, -0.05347340553998947, 0.03770935907959938, 0.028035134077072144, -0.06364139914512634, -0.04546336829662323, 0.0026197214610874653, 0.029278701171278954, -0.001161844120360911, -0.008311786688864231, -0.004377632401883602, -0.02933356538414955, -0.05497300252318382, -0.04447582736611366, -0.007726578041911125, 0.037892237305641174, -0.10263089835643768, 0.031400080770254135, -0.011210395954549313, 0.04059882462024689, 0.029589593410491943, 0.012472251430153847, 0.03898950293660164, 0.06704292446374893, -0.06839621812105179, -0.0018916400149464607, -0.005815507378429174, 0.02318887785077095 ]
729,326
tinytuya.core
_register_child
null
def _register_child(self, child): if child.id in self.children and child != self.children[child.id]: log.debug('Replacing existing child %r!', child.id) self.children[child.id] = child # disable device22 detection as some gateways return "json obj data unvalid" when the gateway is polled without a cid self.disabledetect = True self.payload_dict = None
(self, child)
[ 0.02258240059018135, -0.017452547326683998, -0.010535997338593006, 0.030465979129076004, -0.04645416885614395, 0.015076423063874245, 0.02512430213391781, 0.1197272464632988, 0.009596599265933037, -0.04288077354431152, 0.007971071638166904, 0.03107382543385029, -0.013354192487895489, -0.022158749401569366, 0.005148271564394236, -0.024332260712981224, 0.04564370959997177, 0.041775599122047424, -0.008127638138830662, -0.027150453999638557, -0.024516455829143524, 0.02435067854821682, -0.007100746501237154, -0.018115652725100517, -0.020777281373739243, 0.07334674894809723, -0.01961684785783291, 0.03359730541706085, 0.002058387501165271, 0.007897392846643925, 0.0018822504207491875, -0.06693673878908157, 0.019948400557041168, -0.002176963724195957, -0.013308143243193626, 0.01943265274167061, -0.07279416173696518, 0.02768462337553501, -0.08841396123170853, 0.06516846269369125, 0.05864793062210083, 0.021643001586198807, -0.04534899443387985, -0.010029459372162819, -0.0040361895225942135, 0.07736221700906754, -0.008615756407380104, 0.10116031020879745, 0.019635267555713654, -0.035862915217876434, -0.02794249728322029, -0.03188428655266762, -0.015675058588385582, 0.04844348505139351, -0.017120996490120888, 0.00787897314876318, 0.0196536872535944, 0.03041072003543377, 0.027168873697519302, 0.028992412611842155, 0.0018718894571065903, 0.030576495453715324, -0.042586058378219604, -0.04630681499838829, 0.005908078979700804, -0.00833485834300518, 0.005484428722411394, -0.025474272668361664, -0.029397644102573395, 0.06741564720869064, -0.0023507983423769474, -0.06726828962564468, 0.012912122532725334, 0.00910848006606102, 0.037262801080942154, 0.054964013397693634, 0.031055405735969543, 0.013759423047304153, 0.01891690492630005, 0.02908451110124588, 0.028108272701501846, -0.006262655835598707, 0.003884228179231286, -0.007777665741741657, -0.051722168922424316, 0.08576154708862305, 0.0668262243270874, -0.027334650978446007, -0.02512430213391781, -0.0021101925522089005, -0.051759008318185806, -0.023779671639204025, 0.043101806193590164, 0.05746907740831375, 0.051722168922424316, -0.015601380728185177, -0.012405584566295147, 0.006792218424379826, 0.02812669239938259, 0.0062027922831475735, -0.043175484985113144, 0.0009474569233134389, -0.034610383212566376, -0.043249163776636124, 0.026966258883476257, -0.07854107022285461, 0.01777489110827446, -0.007961861789226532, -0.019966820254921913, 0.01136487815529108, -0.008841396309435368, -0.00023010079166851938, -0.021587742492556572, 0.043101806193590164, 0.008164476603269577, -0.01622764579951763, 0.011843787506222725, -0.011650381609797478, 0.02276659570634365, -0.010839920490980148, 0.028881894424557686, -0.01664208620786667, 0.0004239380650687963, -0.014312010258436203, -0.012847654521465302, 0.05699016898870468, 0.0019029724644497037, 0.04660152643918991, 0.06071092188358307, 0.026579448953270912, -0.012267437763512135, -0.0030806739814579487, -0.012009563855826855, -0.04409646615386009, -0.02768462337553501, -0.01932213455438614, 0.008017120882868767, -0.0628107562661171, -0.005198925267904997, -0.06951548159122467, -0.035384006798267365, -0.0389389842748642, 0.041517723351716995, -0.042033471167087555, 0.022232428193092346, -0.0010907842079177499, -0.06336334347724915, 0.04825928807258606, -0.07743589580059052, -0.06929444521665573, -0.031055405735969543, 0.051464296877384186, -0.01114384364336729, -0.004660152830183506, -0.018456414341926575, 0.04943814128637314, -0.026726804673671722, 0.024295421317219734, -0.016771024093031883, 0.016025030985474586, -0.0022644565906375647, -0.06107931211590767, -0.00684747751802206, -0.012820024974644184, -0.0033431530464440584, -0.020906219258904457, 0.004540425259619951, -0.04980653151869774, 0.016992058604955673, 0.07986728101968765, -0.015665849670767784, -0.0014885319396853447, 0.01913793943822384, 0.004945656284689903, 0.020611505955457687, 0.04719095304608345, 0.04490692541003227, -0.04685940220952034, 0.04579106718301773, 0.041959792375564575, 0.0503222830593586, 0.00786055438220501, 0.06048988550901413, 0.017719632014632225, 0.05757959559559822, -0.0017913037445396185, 0.03639708086848259, 0.054964013397693634, 0.06233184412121773, 0.029766034334897995, 0.05757959559559822, 0.04807509481906891, 0.031902704387903214, -0.036157626658678055, 0.017028898000717163, 0.014901436865329742, 0.011558284051716328, -0.020114177837967873, -0.036268144845962524, 0.053564127534627914, -0.034868258982896805, -0.022342946380376816, 0.01795908622443676, -0.03838639706373215, 0.014109395444393158, 0.033726245164871216, -0.0009198275511153042, 0.013400241732597351, 0.0026178823318332434, -0.04571738839149475, -0.0045335181057453156, -0.010517577640712261, -0.000903134816326201, 0.01649473048746586, 0.005263393744826317, -0.06126350909471512, -0.0649842619895935, 0.0019052749266847968, -0.006663281470537186, -0.028439825400710106, -0.00484895333647728, 0.03282368555665016, -0.040891457349061966, -0.025179559364914894, -0.07386250048875809, 0.017249932512640953, 0.01932213455438614, -0.026118958368897438, -0.012313486076891422, 0.03875478729605675, 0.010517577640712261, 0.029618678614497185, -0.001511556445620954, -0.018935324624180794, 0.02486642822623253, -0.02298763021826744, 0.023484960198402405, -0.010139976628124714, 0.028734538704156876, 0.015177730470895767, 0.026339992880821228, -0.034720901399850845, 0.010112347081303596, -0.025253238156437874, 0.008316438645124435, 0.0187234990298748, 0.03048439882695675, 0.008869025856256485, 0.006004781927913427, -0.020795701071619987, 0.014744870364665985, -0.05816902220249176, -0.0029494345653802156, -0.004630221053957939, -0.009057826362550259, -0.12215862423181534, -0.02985813282430172, -0.007984885945916176, 0.03812852129340172, -0.021495645865797997, -0.040559906512498856, 0.041701920330524445, 0.014063346199691296, 0.0060738553293049335, -0.040633585304021835, 0.007123771123588085, -0.0005358945345506072, 0.008988752961158752, -0.03632340207695961, -0.010443899780511856, 0.09276098757982254, -0.03426041081547737, -0.028145112097263336, 0.001822386751882732, -0.026892580091953278, -0.026339992880821228, -0.013575226999819279, 0.04420698061585426, -0.005438379943370819, -0.04601209983229637, 0.040523067116737366, -0.02934238500893116, 0.05058015510439873, 0.017461758106946945, -0.06340017914772034, -0.026468930765986443, 0.016623666509985924, 0.07662543654441833, -0.02820037119090557, -0.040780942887067795, -0.10020249336957932, 0.039528410881757736, -0.0738256573677063, 0.07773061096668243, -0.021256189793348312, 0.021495645865797997, -0.09592915326356888, 0.039970479905605316, -0.02214032970368862, 0.0016370398225262761, -0.018152492120862007, 0.052422113716602325, -0.040007319301366806, 0.02460855431854725, -0.04335968196392059, -0.008293414488434792, 0.03153431415557861, -0.026910999789834023, -0.07242577522993088, 0.010821500793099403, 0.021016735583543777, 0.03221583738923073, -0.018778758123517036, 0.010139976628124714, 0.054669301956892014, 0.028292467817664146, 0.0007615343201905489, -0.027187293395400047, 0.014873807318508625, 0.06752616167068481, -0.03938105329871178, -0.0337815023958683, -0.08863499760627747, 0.04630681499838829, 0.04685940220952034, 0.021164093166589737, 0.06527897715568542, -0.002220710041001439, 0.0006015143007971346, 0.015122471377253532, -0.04726463183760643, -0.04759618267416954, 0.0163381639868021, -0.033652566373348236, 0.03621288761496544, 0.017249932512640953, -0.03916001692414284, -0.042217668145895004, -0.006221211981028318, 0.034499865025281906, -0.02398228831589222, 0.06480006873607635, -0.04343336075544357, 0.008233550004661083, -0.0027629362884908915, -0.039602089673280716, 0.04660152643918991, 0.0029793663416057825, -0.0290108323097229, 0.012239808216691017, -0.06480006873607635, -0.04962233826518059, 0.0042065707966685295, 0.008638781495392323, 0.04424382001161575, -0.06251604110002518, -0.023521797731518745, 0.01653156988322735, -0.020095758140087128, -0.030502818524837494, 0.05636390298604965, -0.022085070610046387, -0.008988752961158752, -0.006921155843883753, -0.04475956782698631, -0.02512430213391781, -0.03879162669181824, 0.021329868584871292, 0.018456414341926575, -0.031902704387903214, -0.007524396758526564, 0.021900875493884087, 0.027334650978446007, 0.015113262459635735, 0.029434481635689735, -0.0012916728155687451, -0.031350117176771164, 0.03223425894975662, 0.01247005257755518, -0.009191368706524372, -0.016881540417671204, 0.007330991327762604, -0.0006907340721227229, 0.001068911049515009, -0.014523835852742195, -0.031165922060608864, 0.06012149527668953, 0.034241992980241776, 0.04818560928106308, -0.021016735583543777, 0.0198378823697567, 0.06896289438009262, -0.034499865025281906, -0.0046094986610114574, -0.042033471167087555, -0.03396569937467575, 0.05006440728902817, -0.023337602615356445, -0.016181597486138344, -0.0008530566119588912, -0.0299318116158247, -0.00307146436534822, -0.03171851113438606, 0.00894270371645689, 0.031865864992141724, 0.023300763219594955, 0.009085455909371376, 0.01641184277832508, -0.006787613499909639, -0.07157847285270691, -0.04299129173159599, -0.03752067685127258, 0.04538583382964134, -0.010333382524549961, -0.001270950771868229, 0.005410750396549702, 0.06955231726169586, 0.018824806436896324, -0.0701417475938797, -0.0006515925051644444, -0.006382382940500975, 0.042217668145895004, -0.04685940220952034, 0.0337999202311039, -0.02845824509859085, 0.01228585746139288, -0.009260442107915878, -0.02438751794397831, 0.01195430476218462, -0.010112347081303596, -0.011171473190188408, 0.0576532743871212, -0.030318621546030045, 0.00610608933493495, 0.06203713268041611, -0.03140537813305855, 0.051906365901231766, -0.01165959145873785, -0.040338870137929916, 0.03787064924836159, -0.0363602414727211, -0.00010425767686683685, -0.029766034334897995, -0.017213093116879463, -0.014201493002474308, 0.03282368555665016, 0.001806269632652402, 0.02254556119441986, 0.07474663853645325, -0.051280099898576736, 0.014275171793997288, -0.0675998404622078, 0.06771036237478256, 0.022379783913493156, -0.03041072003543377, -0.06634731590747833, 0.017323611304163933, -0.030576495453715324, 0.04682256281375885, -0.01480012945830822, -0.07139427959918976, 0.041075654327869415, -0.04988021031022072, 0.010324172675609589, -0.06406328827142715, 0.07905682176351547, 0.05956890806555748, -0.023558637127280235, 0.013455499894917011, 0.03063175454735756, 0.05879528820514679, 0.017434129491448402, 0.08097245544195175, -0.053674645721912384, -0.025934763252735138, -0.01641184277832508, 0.015582961030304432, -0.03037388063967228, -0.053858838975429535, 0.01472645066678524, 0.009486082009971142, -0.012958171777427197, 0.0172591432929039, -0.01910110004246235, -0.011337248608469963, -0.053785160183906555, 0.014708030968904495, 0.0009526374633423984, 0.03492351621389389, 0.008565102703869343, -0.03319207578897476, -0.040817778557538986, -0.003598724724724889, -0.0005825191037729383, 0.06270023435354233, 0.021366707980632782, -0.014486996456980705, 0.007505977060645819, 0.06737881153821945, -0.05975310504436493, -0.0716153085231781, -0.023374442011117935, -0.016476310789585114, -0.019119519740343094, -0.04439117759466171, -0.02875295840203762, -0.055516600608825684, 0.041333530098199844, -0.04991704970598221, 0.08878235518932343, 0.007906602695584297, 0.0017038107616826892, 0.009596599265933037, 0.0055535021238029, -0.01667892560362816, 0.008053959347307682, 0.002838917076587677, 0.010222864337265491, -0.009992619976401329, -0.026745224371552467, 0.07375197857618332, -0.018972164019942284, 0.05746907740831375, -0.052201077342033386, 0.07389933615922928, 0.0030438348185271025, -0.043617554008960724, -0.009020986966788769, 0.024774329736828804, -0.017360450699925423, -0.007054697722196579, -0.0002221861359430477, -0.014238332398235798, -0.010996486991643906, 0.021624581888318062, -0.0022989932913333178, 0.0609687976539135, -0.013612066395580769, -0.026284735649824142, -0.06726828962564468, -0.0022057441528886557, -0.024516455829143524, -0.026910999789834023, -0.03978628292679787, -0.051759008318185806, -0.017682792618870735, 0.01162275206297636, -0.03882846608757973, 0.019230037927627563, -0.03702334687113762, 0.0009768131421878934, 0.021550903096795082, -0.041223011910915375, -0.006391592789441347, -0.009255836717784405, 0.00393948657438159, -0.021808777004480362, -0.0026501165702939034, 0.008542078547179699, 0.003796735079959035, 0.03985996171832085, 0.06561052799224854, 0.04836980625987053, -0.03284210339188576, 0.0609687976539135, -0.019414233043789864, -0.07533606886863708, 0.03927053511142731, -0.001818933174945414, -0.013280514627695084, -0.002560321008786559, 0.020758861675858498, 0.0023807301186025143, 0.007275732699781656, -0.021808777004480362, -0.02801617421209812, 0.06177925691008568, 0.05006440728902817, -0.030760692432522774, -0.020924638956785202, -0.06675254553556442, 0.03875478729605675, -0.035273488610982895, -0.008017120882868767, 0.02446119673550129, -0.019745785742998123, 0.023227084428071976, 0.10292859375476837, 0.03228951618075371, -0.053674645721912384, -0.04354387894272804, 0.023116568103432655, 0.03074227273464203, -0.05850057303905487, 0.005677834153175354, 0.008730879053473473, -0.027666203677654266, -0.03809168189764023, 0.0019202408147975802, 0.0022138028871268034, 0.008238155394792557, 0.013169996440410614, 0.025400595739483833, -0.0506906732916832, 0.0069395750761032104, -0.004816719330847263, -0.021643001586198807, -0.07338359206914902, -0.04247554391622543, -0.019414233043789864, 0.015196150168776512, 0.041112493723630905, 0.035531360656023026, 0.040633585304021835, -0.0374469980597496, -0.022637659683823586, -0.036783892661333084, -0.009467662312090397, -0.023374442011117935, -0.027260972186923027, -0.03221583738923073, 0.012442423962056637, -0.01208324171602726, -0.0063363341614604, -0.04954865947365761, -0.0233191829174757, -0.019543170928955078, 0.03164483234286308, -0.017231512814760208, 0.01496590580791235, 0.020224694162607193, 0.000013400960597209632, -0.016863122582435608, -0.05120642110705376, -0.033615726977586746, -0.03787064924836159, -0.025419015437364578, -0.01173327025026083, -0.005889659281820059, 0.06822610646486282, -0.010278123430907726, -0.02845824509859085, -0.004563449881970882, -0.04925394430756569, -0.01119910180568695, -0.021016735583543777, 0.02549269236624241, -0.0233191829174757, -0.0752992257475853, -0.04630681499838829, 0.008620361797511578, 0.05599550902843475, -0.04836980625987053, 0.015104052610695362, 0.06071092188358307, -0.013464709743857384, -0.01160433329641819, 0.05687965080142021, -0.020814120769500732, 0.051980044692754745, 0.006396197713911533, -0.013391031883656979, 0.03776013106107712, -0.002610974945127964, 0.0019144846592098475, 0.03853375464677811, 0.040191516280174255, -0.05636390298604965, -0.07898314297199249, -0.005963337607681751, -0.008965728804469109, -0.01961684785783291, -0.0609687976539135, -0.016771024093031883, -0.020187854766845703, -0.08450901508331299, -0.025511112064123154, 0.04730147123336792, 0.02783197909593582, 0.06343702226877213, -0.017019689083099365, -0.0018154794815927744, 0.0393073745071888, 0.016807863488793373, 0.01289370283484459, 0.036857571452856064, 0.04435433819890022, 0.0028435220010578632, -0.016513150185346603, -0.0723520964384079, 0.041112493723630905, -0.010443899780511856, 0.02247188240289688, 0.011724060401320457, -0.06148454546928406, 0.02339286170899868, -0.007381645031273365, 0.03763119503855705, -0.010591256432235241, 0.026634706184267998, 0.004572659730911255, 0.010517577640712261, -0.021237771958112717, -0.0323079377412796, 0.04836980625987053, -0.023595476523041725, -0.042549218982458115, 0.0323079377412796, 0.07544658333063126, -0.00584821542724967, 0.007538211531937122, 0.022121910005807877, 0.00429636612534523, -0.023816511034965515, -0.0572848804295063, -0.012534521520137787, -0.0007385098724626005, 0.0016462495550513268, 0.00875850860029459, 0.01888006553053856, 0.010489948093891144, 0.0444280169904232, 0.09121374040842056, 0.0036885200534015894, -0.01234111562371254, -0.003188889008015394, 0.0870140790939331, -0.007768456358462572, 0.03326575458049774, 0.0028504293877631426, 0.018824806436896324, 0.04457537457346916, -0.05621654540300369, 0.009039406664669514, -0.00077592465095222, -0.021311448886990547, 0.026726804673671722, 0.0034260412212461233, -0.010370220988988876, 0.012792395427823067, 0.024626972153782845, -0.01276476588100195, 0.039933640509843826, -0.0038220619317144156, 0.03812852129340172, 0.06111615151166916, 0.007321781478822231, 0.03171851113438606, 0.005917288828641176, 0.05787430703639984, 0.01660524681210518, 0.013713374733924866, -0.016071079298853874, 0.06833662837743759, -0.0009883253369480371, 0.010867550037801266, -0.026284735649824142, 0.06045304983854294, 0.023669155314564705, -0.021035155281424522, -0.01136487815529108, -0.04722779244184494, -0.04807509481906891, -0.03081594966351986, 0.03496035560965538, 0.03890214487910271, 0.004798299632966518, 0.018428785726428032 ]
729,327
tinytuya.BulbDevice
_rgb_to_hexvalue
Convert an RGB value to the hex representation expected by Tuya Bulb. Index (DPS_INDEX_COLOUR) is assumed to be in the format: (Type A) Index: 5 in hex format: rrggbb0hhhssvv (Type B) Index: 24 in hex format: hhhhssssvvvv While r, g and b are just hexadecimal values of the corresponding Red, Green and Blue values, the h, s and v values (which are values between 0 and 1) are scaled: Type A: 360 (h) and 255 (s and v) Type B: 360 (h) and 1000 (s and v) Args: r(int): Value for the colour red as int from 0-255. g(int): Value for the colour green as int from 0-255. b(int): Value for the colour blue as int from 0-255.
@staticmethod def _rgb_to_hexvalue(r, g, b, bulb="A"): """ Convert an RGB value to the hex representation expected by Tuya Bulb. Index (DPS_INDEX_COLOUR) is assumed to be in the format: (Type A) Index: 5 in hex format: rrggbb0hhhssvv (Type B) Index: 24 in hex format: hhhhssssvvvv While r, g and b are just hexadecimal values of the corresponding Red, Green and Blue values, the h, s and v values (which are values between 0 and 1) are scaled: Type A: 360 (h) and 255 (s and v) Type B: 360 (h) and 1000 (s and v) Args: r(int): Value for the colour red as int from 0-255. g(int): Value for the colour green as int from 0-255. b(int): Value for the colour blue as int from 0-255. """ rgb = [r, g, b] hsv = colorsys.rgb_to_hsv(rgb[0] / 255.0, rgb[1] / 255.0, rgb[2] / 255.0) # Bulb Type A if bulb == "A": # h:0-360,s:0-255,v:0-255|hsv| hexvalue = "" for value in rgb: temp = str(hex(int(value))).replace("0x", "") if len(temp) == 1: temp = "0" + temp hexvalue = hexvalue + temp hsvarray = [int(hsv[0] * 360), int(hsv[1] * 255), int(hsv[2] * 255)] hexvalue_hsv = "" for value in hsvarray: temp = str(hex(int(value))).replace("0x", "") if len(temp) == 1: temp = "0" + temp hexvalue_hsv = hexvalue_hsv + temp if len(hexvalue_hsv) == 7: hexvalue = hexvalue + "0" + hexvalue_hsv else: hexvalue = hexvalue + "00" + hexvalue_hsv # Bulb Type B if bulb == "B": # h:0-360,s:0-1000,v:0-1000|hsv| hexvalue = "" hsvarray = [int(hsv[0] * 360), int(hsv[1] * 1000), int(hsv[2] * 1000)] for value in hsvarray: temp = str(hex(int(value))).replace("0x", "") while len(temp) < 4: temp = "0" + temp hexvalue = hexvalue + temp return hexvalue
(r, g, b, bulb='A')
[ -0.01774352788925171, -0.11169569939374924, -0.08298274874687195, -0.011989390477538109, -0.01739712432026863, 0.008924686349928379, -0.023844068869948387, 0.03935522213578224, -0.042684540152549744, -0.02601870894432068, 0.02819334901869297, 0.032023027539253235, 0.06608597934246063, 0.005446224007755518, -0.01735863648355007, -0.01300935447216034, 0.0827518105506897, 0.04457050934433937, 0.055309001356363297, -0.047341734170913696, 0.016733186319470406, -0.014491189271211624, -0.00871780700981617, 0.044147130101919174, -0.027558276429772377, 0.004269897006452084, 0.02761601097881794, 0.005768571048974991, -0.06250648200511932, 0.006759668234735727, 0.01647338457405567, -0.035833459347486496, 0.009853239171206951, 0.008082735352218151, -0.016627339646220207, -0.02417122572660446, 0.01097904797643423, 0.017849372699856758, -0.08544605225324631, -0.021400002762675285, 0.036930400878190994, -0.06477734446525574, 0.0407215878367424, 0.0019665583968162537, 0.0005632054526358843, -0.03483273833990097, -0.039720870554447174, 0.030868349596858025, -0.03129173070192337, -0.05057482793927193, 0.027500543743371964, -0.04637950286269188, -0.025883996859192848, 0.06015864014625549, 0.014375721104443073, 0.021765651181340218, -0.03646853193640709, 0.057156484574079514, 0.02519119158387184, 0.03371655195951462, -0.007928778417408466, 0.022824104875326157, 0.054154325276613235, 0.004974730778485537, -0.0000851724180392921, 0.012008634395897388, -0.02141924761235714, -0.01685827597975731, -0.007890288718044758, 0.03288903459906578, 0.022189032286405563, 0.027269607409834862, 0.008972798474133015, -0.019090650603175163, -0.0046138945035636425, 0.002973291790112853, -0.03881637379527092, 0.03442860022187233, -0.007158993743360043, -0.016733186319470406, 0.08829426020383835, 0.0033124780748039484, 0.0690496489405632, -0.025017989799380302, 0.035121407359838486, -0.04083705693483353, -0.00650467723608017, -0.0011396416230127215, -0.013182556256651878, 0.012951620854437351, -0.04934317246079445, -0.0827518105506897, -0.03610288351774216, 0.03487122803926468, -0.0049458639696240425, -0.05484712868928909, 0.022631658241152763, -0.006533544044941664, 0.019090650603175163, -0.06104389205574989, -0.01995665766298771, -0.013269156217575073, -0.04918921738862991, -0.01739712432026863, -0.011027160100638866, 0.008698562160134315, -0.03964389115571976, 0.010420954786241055, 0.025325903668999672, -0.0005018632509745657, -0.033755041658878326, 0.024998744949698448, 0.020245326682925224, -0.06296835094690323, -0.026538312435150146, -0.06046655401587486, 0.037065114825963974, 0.004601866472512484, 0.01583831198513508, -0.02216978743672371, 0.035737235099077225, 0.010036062449216843, 0.026134176179766655, 0.035910435020923615, 0.008097168058156967, 0.08175109326839447, -0.00011930152686545625, 0.014981926418840885, 0.0012761580292135477, 0.039143532514572144, 0.003735859412699938, 0.06343022733926773, -0.022727880626916885, -0.003456812584772706, 0.04510935768485069, -0.010584534145891666, -0.0069376807659864426, 0.03727680444717407, 0.06912662833929062, -0.010334353893995285, 0.009458724409341812, -0.03279281035065651, 0.014895325526595116, -0.0460330992937088, 0.022689390927553177, 0.04672590643167496, 0.07617015391588211, 0.0005006605060771108, -0.02955971658229828, 0.05315360426902771, -0.003471245989203453, 0.03514065220952034, 0.03487122803926468, 0.05642518773674965, 0.03040647879242897, -0.0296559389680624, 0.03344712778925896, -0.03313921391963959, 0.01212410256266594, 0.03700738027691841, 0.02213129773736, 0.014520055614411831, 0.016964120790362358, -0.05196043848991394, -0.031407199800014496, 0.0019088244298473, -0.012172213755548, 0.05319209396839142, 0.05076727271080017, 0.0019437053706496954, -0.016146225854754448, -0.02128453552722931, -0.10392087697982788, 0.07640109211206436, 0.04122195020318031, -0.01865764707326889, -0.05219137296080589, -0.035429321229457855, 0.05746439844369888, -0.0052489666268229485, -0.04191475361585617, 0.00042247926467098296, -0.014962681569159031, -0.016694696620106697, 0.04399317130446434, 0.02850126288831234, 0.04218417778611183, -0.005417356733232737, 0.0039908504113554955, -0.02615342102944851, 0.022342989221215248, 0.0015768549637869, 0.03560252487659454, 0.07355289161205292, 0.060081664472818375, -0.007539074867963791, 0.005542446859180927, -0.027154140174388885, -0.016088491305708885, -0.04333885386586189, 0.01886933669447899, -0.022150542587041855, -0.036718711256980896, 0.007596808485686779, 0.03906655311584473, -0.07620864361524582, 0.03854694962501526, -0.030329501256346703, -0.009352878667414188, -0.025518348440527916, -0.019225362688302994, 0.005037276074290276, -0.00773633224889636, 0.03133022040128708, 0.018542179837822914, -0.05588633939623833, 0.023959536105394363, 0.03483273833990097, 0.023112773895263672, 0.012557106092572212, 0.0026052386965602636, -0.022419966757297516, 0.06577806919813156, 0.007399551570415497, 0.025999464094638824, 0.012441638857126236, -0.0073514399118721485, 0.025999464094638824, 0.007163804955780506, -0.024864032864570618, 0.043608278036117554, 0.009011287242174149, -0.029290292412042618, 0.06235252693295479, -0.05196043848991394, 0.030367989093065262, 0.058888498693704605, -0.027231119573116302, -0.02039928361773491, -0.025479860603809357, 0.004714928567409515, 0.02828957326710224, 0.055385980755090714, 0.018003329634666443, 0.012133724987506866, -0.049420151859521866, 0.044493529945611954, 0.03625683858990669, -0.11662232130765915, -0.03421691060066223, -0.06743310391902924, -0.024132737889885902, 0.03904730826616287, 0.003680531168356538, -0.03881637379527092, -0.03235018625855446, -0.015386063605546951, 0.030387233942747116, 0.02274712547659874, -0.041837774217128754, -0.017820505425333977, -0.06801044195890427, 0.027211874723434448, 0.05230684205889702, 0.001894391025416553, -0.024325182661414146, 0.0042121633887290955, 0.06558562070131302, -0.064161516726017, 0.0016430083196610212, 0.12154893577098846, -0.022535433992743492, -0.09006476402282715, 0.0011492639314383268, -0.021092088893055916, 0.008501305244863033, 0.024864032864570618, 0.0031296543311327696, 0.02819334901869297, -0.004616300109773874, -0.017512591555714607, -0.046264033764600754, 0.031099285930395126, 0.04045216366648674, 0.044993892312049866, 0.03477500379085541, -0.001012146007269621, -0.06208310276269913, 0.03111852891743183, -0.027904679998755455, -0.008972798474133015, -0.04838094115257263, -0.06470037251710892, 0.02403651364147663, 0.047996051609516144, 0.0606205128133297, -0.011922034434974194, 0.008823652751743793, -0.003305261256173253, -0.0225739236921072, -0.006730801425874233, -0.005879227537661791, 0.040298208594322205, -0.02938651479780674, -0.06985792517662048, -0.016704319044947624, 0.05965828150510788, 0.005114254541695118, 0.02778921276330948, -0.039105042815208435, -0.04741871356964111, -0.012585973367094994, 0.06142878532409668, 0.0021962907630950212, 0.026442090049386024, -0.05784928798675537, 0.002254024613648653, 0.007086826488375664, 0.01142167393118143, 0.03300449997186661, -0.028693709522485733, -0.031137773767113686, -0.0073225731030106544, 0.01907140575349331, 0.06219857186079025, -0.00965117011219263, -0.0216886717826128, 0.0022335771936923265, 0.004729362204670906, -0.014394965954124928, -0.06820289045572281, -0.003497707424685359, 0.019321585074067116, 0.03415917605161667, 0.06323777884244919, -0.08213598281145096, -0.016425272449851036, 0.06535468250513077, -0.03964389115571976, -0.03000234253704548, -0.013971584849059582, 0.032330941408872604, -0.008183768950402737, 0.04368525743484497, 0.04838094115257263, -0.013346134684979916, -0.047072310000658035, -0.013105577789247036, -0.0021926823537796736, 0.06804893165826797, 0.03610288351774216, -0.0433773435652256, -0.016223203390836716, 0.04922770336270332, 0.044185616075992584, 0.006663445383310318, -0.01137356273829937, -0.07413022965192795, 0.03960540145635605, 0.044493529945611954, 0.012874642387032509, 0.021130578592419624, -0.01500117126852274, 0.023478420451283455, -0.036045148968696594, -0.017185434699058533, -0.08790936321020126, 0.014683634974062443, 0.05230684205889702, 0.0034135121386498213, 0.028712954372167587, 0.039412956684827805, 0.02734658680856228, -0.023478420451283455, 0.0002922774583566934, 0.04260756075382233, -0.004974730778485537, 0.01500117126852274, 0.0021481793373823166, -0.05819569155573845, 0.02349766530096531, 0.023478420451283455, -0.05523202195763588, 0.0029083413537591696, 0.051537059247493744, -0.04522482678294182, 0.019321585074067116, -0.04457050934433937, -0.013182556256651878, 0.013336512260138988, -0.038354501128196716, -0.020957376807928085, 0.07751727849245071, -0.029290292412042618, 0.04045216366648674, 0.0015107016079127789, 0.004714928567409515, 0.05669461190700531, 0.03579496964812279, 0.009987951256334782, -0.0015600159531459212, -0.059465836733579636, -0.03331241384148598, -0.031214753165841103, -0.017185434699058533, -0.03344712778925896, 0.05172950401902199, 0.05573238059878349, -0.02213129773736, -0.009179677814245224, 0.0018414683872833848, -0.010228509083390236, -0.03273507580161095, -0.021707916632294655, -0.038085076957941055, -0.008236692287027836, -0.02979065105319023, -0.04672590643167496, -0.0424920916557312, 0.06139029562473297, -0.017483726143836975, -0.023844068869948387, -0.04283849522471428, 0.030868349596858025, 0.022593168541789055, 0.0478036031126976, 0.015386063605546951, 0.07740180939435959, 0.0014289120445027947, 0.021092088893055916, 0.05426979064941406, -0.00016643578419461846, 0.010209264233708382, -0.07355289161205292, 0.02186187356710434, 0.01665620692074299, 0.022901082411408424, 0.030637415125966072, 0.05911943316459656, 0.028077881783246994, 0.03646853193640709, 0.004880913533270359, -0.0029925364069640636, 0.018513312563300133, 0.026134176179766655, -0.0633147582411766, -0.04811151698231697, 0.0027423566207289696, 0.03329316899180412, -0.03031025640666485, -0.01930234022438526, 0.01480872556567192, -0.009165244176983833, -0.01893669366836548, 0.0672406554222107, -0.04280000552535057, -0.022208277136087418, 0.008578283712267876, -0.007327384315431118, -0.0069376807659864426, 0.048919789493083954, 0.04526331648230553, -0.04838094115257263, 0.001937691355124116, -0.018994426354765892, -0.038970328867435455, 0.0832136794924736, -0.05569389462471008, -0.0011119775008410215, -0.03433237969875336, -0.015183994546532631, -0.013538581319153309, 0.020149104297161102, 0.04718777537345886, 0.02315126173198223, -0.04376223683357239, -0.0007228755275718868, -0.0008221055613830686, -0.061621230095624924, -0.0601971298456192, -0.0007036309689283371, -0.017753150314092636, -0.008082735352218151, 0.004469559993594885, 0.0119509007781744, 0.043531302362680435, 0.03881637379527092, -0.019427431747317314, 0.015886422246694565, -0.03619910776615143, -0.030214034020900726, -0.07740180939435959, -0.048265475779771805, 0.03390899673104286, -0.04718777537345886, -0.04453201964497566, 0.003569874679669738, -0.01389460638165474, -0.06866475939750671, 0.016569606959819794, 0.01967761106789112, -0.03252338618040085, -0.01974496617913246, -0.04210720211267471, 0.008977608755230904, -0.01995665766298771, 0.04014424979686737, -0.005710836965590715, -0.033042989671230316, -0.003844110295176506, -0.07617015391588211, -0.02128453552722931, 0.02757752127945423, -0.05126763507723808, -0.00038699700962752104, -0.011787321418523788, -0.036410797387361526, -0.015174373053014278, 0.004269897006452084, -0.024363672360777855, -0.02247770130634308, 0.04437806457281113, -0.0006326664588414133, -0.0013278778642416, -0.004265086259692907, 0.040606122463941574, -0.01787823997437954, -0.016290560364723206, -0.009987951256334782, 0.014433455653488636, -0.055616915225982666, -0.029271047562360764, -0.0001930474682012573, 0.0017801261274144053, 0.012711063027381897, -0.02846277318894863, 0.011469786055386066, -0.04876583442091942, -0.016492627561092377, -0.06189065799117088, 0.03177284449338913, -0.02216978743672371, 0.005946583580225706, -0.06189065799117088, -0.0672406554222107, -0.002879474312067032, 0.011402430012822151, 0.027327341958880424, -0.0061967633664608, -0.034101445227861404, -0.006119784899055958, 0.016935253515839577, 0.044724468141794205, 0.02403651364147663, -0.026538312435150146, 0.0012075990671291947, -0.01936969719827175, -0.01621358096599579, -0.02070719748735428, 0.0018715379992499948, -0.02128453552722931, -0.019841190427541733, -0.00783255510032177, -0.016059624031186104, -0.12532088160514832, 0.01606924645602703, -0.026576802134513855, 0.012056746520102024, -0.011883544735610485, -0.05669461190700531, -0.008385837078094482, 0.012865019962191582, 0.01763768307864666, -0.01767617091536522, -0.04280000552535057, 0.009319201111793518, -0.025422126054763794, -0.06831835210323334, 0.07120504975318909, -0.022227521985769272, -0.014818347059190273, 0.04630252346396446, -0.033562593162059784, -0.05869605019688606, 0.022901082411408424, 0.03504442796111107, 0.04753417894244194, 0.031080041080713272, 0.0016670640325173736, 0.009939839132130146, -0.020303061231970787, 0.004895346704870462, -0.007418795954436064, -0.06677878648042679, -0.03298525512218475, -0.03235018625855446, 0.004284330643713474, 0.012239569798111916, 0.004936241544783115, 0.03298525512218475, 0.02018759213387966, -0.015386063605546951, 0.02805863693356514, -0.0017945596482604742, 0.04634101316332817, -0.012691818177700043, 0.07416871935129166, -0.07028130441904068, -0.02509496733546257, -0.05965828150510788, 0.030656659975647926, 0.01865764707326889, 0.006514299660921097, 0.04049065336585045, -0.0038104322738945484, 0.016848653554916382, -0.009526080451905727, 0.0181476641446352, -0.04218417778611183, 0.06631691753864288, -0.05492410808801651, 0.04083705693483353, -0.04099101200699806, 0.028116371482610703, -0.007928778417408466, -0.03387050703167915, 0.025017989799380302, -0.0016670640325173736, -0.018619157373905182, -0.05469317361712456, 0.025730039924383163, -0.0016790919471532106, 0.026769248768687248, -0.026057198643684387, -0.04599460959434509, 0.014818347059190273, 0.038392990827560425, 0.037950366735458374, 0.008895820006728172, 0.05527051165699959, 0.050035979598760605, 0.0015540020540356636, -0.020129859447479248, 0.019023293629288673, 0.045571230351924896, 0.04830396547913551, -0.028212593868374825, -0.05865756422281265, -0.028655219823122025, -0.003139276523143053, -0.008073112927377224, -0.009785883128643036, -0.008684128522872925, 0.002007453003898263, -0.04049065336585045, 0.03223471716046333, 0.027385076507925987, -0.03156115487217903, -0.02226600982248783, -0.0004047381517011672, -0.04256907105445862, 0.043569792062044144, -0.01644451729953289, -0.009372123517096043, 0.014520055614411831, -0.0008936714148148894, 0.05057482793927193, 0.043261878192424774, -0.02823183871805668, -0.031099285930395126, -0.0018739436054602265, -0.06015864014625549, -0.058272670954465866, -0.04049065336585045, -0.01348084770143032, 0.0030502702575176954, -0.028578242287039757, 0.059157922863960266, 0.0628528892993927, -0.031618889421224594, 0.030926084145903587, 0.011922034434974194, -0.01436609961092472, 0.037469249218702316, 0.05642518773674965, 0.03238867223262787, -0.0027183007914572954, 0.004714928567409515, 0.008477249182760715, -0.03183057904243469, -0.05765684321522713, -0.03594892472028732, -0.02961745113134384, 0.03948993235826492, -0.022208277136087418, 0.005595369730144739, -0.010700001381337643, -0.023266730830073357, -0.008130846545100212, 0.004993975628167391, 0.012739930301904678, -0.08590792864561081, -0.02651906944811344, 0.04483993351459503, 0.017387501895427704, 0.011075271293520927, 0.057772308588027954, -0.018099553883075714, -0.012441638857126236, -0.025691550225019455, -0.005893660709261894, 0.02447913959622383, -0.02107284404337406, 0.012441638857126236, -0.03133022040128708, -0.012557106092572212, -0.07128202170133591, -0.00685108033940196, -0.018407465890049934, 0.020572485402226448, 0.011209983378648758, 0.02996385283768177, 0.05811871215701103, 0.04368525743484497, -0.03606439381837845, -0.031137773767113686, 0.04614856839179993, 0.029328782111406326, 0.0008521752315573394, -0.0495741069316864, 0.009728148579597473, -0.004558566492050886, -0.0208034198731184, 0.013471225276589394, 0.002450078958645463, 0.016165470704436302, 0.033966731280088425, 0.019523654133081436, -0.004457531962543726, 0.0014758207835257053, 0.02898237854242325, -0.010459443554282188, -0.05761835351586342, -0.016906388103961945, 0.027231119573116302, 0.0579647570848465, 0.08375252783298492, 0.011922034434974194, 0.014317987486720085, -0.03935522213578224, 0.054231300950050354, 0.030560435727238655, -0.03448633477091789, 0.079672671854496, 0.0986863449215889, -0.06077446788549423, 0.01604037918150425, 0.02730809710919857, -0.025922486558556557, -0.049420151859521866, 0.033966731280088425, 0.018580667674541473, 0.01256672851741314, 0.023574642837047577, 0.04661043733358383, 0.052383821457624435, -0.019504409283399582, -0.004370931535959244 ]
729,328
tinytuya.core
_send_receive
Send single buffer `payload` and receive a single buffer. Args: payload(bytes): Data to send. Set to 'None' to receive only. minresponse(int): Minimum response size expected (default=28 bytes) getresponse(bool): If True, wait for and return response.
def _send_receive(self, payload, minresponse=28, getresponse=True, decode_response=True, from_child=None): """ Send single buffer `payload` and receive a single buffer. Args: payload(bytes): Data to send. Set to 'None' to receive only. minresponse(int): Minimum response size expected (default=28 bytes) getresponse(bool): If True, wait for and return response. """ if self.parent: return self.parent._send_receive(payload, minresponse, getresponse, decode_response, from_child=self) if (not payload) and getresponse and self.received_wrong_cid_queue: if (not self.children) or (not from_child): r = self.received_wrong_cid_queue[0] self.received_wrong_cid_queue = self.received_wrong_cid_queue[1:] return r found_rq = False for rq in self.received_wrong_cid_queue: if rq[0] == from_child: found_rq = rq break if found_rq: self.received_wrong_cid_queue.remove(found_rq) return found_rq[1] success = False partial_success = False retries = 0 recv_retries = 0 #max_recv_retries = 0 if not self.retry else 2 if self.socketRetryLimit > 2 else self.socketRetryLimit max_recv_retries = 0 if not self.retry else self.socketRetryLimit dev_type = self.dev_type do_send = True msg = None while not success: # open up socket if device is available sock_result = self._get_socket(False) if sock_result is not True: # unable to get a socket - device likely offline self._check_socket_close(True) return error_json( sock_result if sock_result else ERR_OFFLINE ) # send request to device try: if payload is not None and do_send: log.debug("sending payload") enc_payload = self._encode_message(payload) if type(payload) == MessagePayload else payload self.socket.sendall(enc_payload) if self.sendWait is not None: time.sleep(self.sendWait) # give device time to respond if getresponse: do_send = False rmsg = self._receive() # device may send null ack (28 byte) response before a full response # consider it an ACK and do not retry the send even if we do not get a full response if rmsg: payload = None partial_success = True msg = rmsg if (not msg or len(msg.payload) == 0) and recv_retries <= max_recv_retries: log.debug("received null payload (%r), fetch new one - retry %s / %s", msg, recv_retries, max_recv_retries) recv_retries += 1 if recv_retries > max_recv_retries: success = True else: success = True log.debug("received message=%r", msg) else: # legacy/default mode avoids persisting socket across commands self._check_socket_close() return None except (KeyboardInterrupt, SystemExit) as err: log.debug("Keyboard Interrupt - Exiting") raise except socket.timeout as err: # a socket timeout occurred if payload is None: # Receive only mode - return None self._check_socket_close() return None do_send = True retries += 1 # toss old socket and get new one self._check_socket_close(True) log.debug( "Timeout in _send_receive() - retry %s / %s", retries, self.socketRetryLimit ) # if we exceed the limit of retries then lets get out of here if retries > self.socketRetryLimit: log.debug( "Exceeded tinytuya retry limit (%s)", self.socketRetryLimit ) # timeout reached - return error return error_json(ERR_KEY_OR_VER) # wait a bit before retrying time.sleep(0.1) except DecodeError as err: log.debug("Error decoding received data - read retry %s/%s", recv_retries, max_recv_retries, exc_info=True) recv_retries += 1 if recv_retries > max_recv_retries: # we recieved at least 1 valid message with a null payload, so the send was successful if partial_success: self._check_socket_close() return None # no valid messages received self._check_socket_close(True) return error_json(ERR_PAYLOAD) except Exception as err: # likely network or connection error do_send = True retries += 1 # toss old socket and get new one self._check_socket_close(True) log.debug( "Network connection error in _send_receive() - retry %s/%s", retries, self.socketRetryLimit, exc_info=True ) # if we exceed the limit of retries then lets get out of here if retries > self.socketRetryLimit: log.debug( "Exceeded tinytuya retry limit (%s)", self.socketRetryLimit ) log.debug("Unable to connect to device ") # timeout reached - return error return error_json(ERR_CONNECT) # wait a bit before retrying time.sleep(0.1) # except # while # could be None or have a null payload if not decode_response: # legacy/default mode avoids persisting socket across commands self._check_socket_close() return msg return self._process_message( msg, dev_type, from_child, minresponse, decode_response )
(self, payload, minresponse=28, getresponse=True, decode_response=True, from_child=None)
[ 0.00578027218580246, -0.031147794798016548, -0.05875132977962494, 0.021390654146671295, -0.022016111761331558, -0.022016111761331558, -0.06759113073348999, 0.027520140632987022, -0.028750207275152206, -0.08873160183429718, 0.005157420411705971, 0.011477150022983551, -0.024142669513821602, -0.0034999572671949863, -0.014594013802707195, 0.029542453587055206, 0.042635370045900345, -0.029750939458608627, 0.016188930720090866, -0.029042087495326996, -0.006108637433499098, 0.07000956684350967, 0.0008495801012031734, 0.023809092119336128, -0.0152403200045228, 0.043907131999731064, -0.018982643261551857, -0.03066827729344368, 0.033211804926395416, 0.006014818791300058, -0.014573165215551853, -0.026060739532113075, 0.03623485192656517, -0.00029497500509023666, -0.048785705119371414, -0.0070676724426448345, -0.04128021001815796, -0.018534397706389427, -0.02232884056866169, -0.0201918613165617, -0.020129315555095673, -0.03704794868826866, 0.007870343513786793, -0.010658842511475086, -0.009439200162887573, 0.022954300045967102, -0.05545725300908089, 0.10507690161466599, -0.010471205227077007, 0.07638923823833466, -0.026644499972462654, 0.021557442843914032, -0.05391445755958557, 0.0034348054323345423, -0.015396684408187866, 0.04995322600007057, -0.04607538878917694, 0.0201918613165617, -0.024747278541326523, -0.0024940127041190863, -0.02541443333029747, 0.05775059759616852, -0.052455056458711624, 0.01080999430269003, -0.05153771862387657, -0.024476246908307076, -0.023558909073472023, 0.0012027031043544412, 0.026727894321084023, 0.018534397706389427, 0.00731785548850894, 0.03417083993554115, -0.01072659995406866, 0.029542453587055206, 0.03781934455037117, 0.016689296811819077, 0.0304806400090456, -0.0030595308635383844, 0.0021304653491824865, 0.037068795412778854, 0.05933509021997452, 0.017293905839323997, 0.07897446304559708, -0.006421366240829229, 0.0585845410823822, 0.07659772783517838, 0.03414999321103096, 0.03523411974310875, -0.05258014798164368, -0.05262184515595436, -0.03802783042192459, 0.01702287420630455, 0.005404997151345015, 0.029021238908171654, 0.02430945821106434, -0.014594013802707195, -0.01760663464665413, -0.010987207293510437, -0.003252380294725299, -0.03396235406398773, -0.03854904696345329, 0.04503295570611954, -0.07647263258695602, -0.05103735253214836, 0.0321902260184288, -0.00836549699306488, -0.0018672519363462925, 0.04457428678870201, -0.002539619104936719, 0.032523803412914276, -0.004180142655968666, -0.02134895697236061, -0.012707216665148735, 0.033211804926395416, -0.022162051871418953, 0.008646952919661999, -0.03500478342175484, 0.007938100956380367, -0.026227528229355812, 0.01781512051820755, -0.01112272311002016, 0.004758690949529409, -0.002397587988525629, -0.05228826776146889, 0.0016939480556175113, 0.0794331356883049, 0.01776299998164177, 0.0013616735814139247, 0.07317855954170227, -0.028062203899025917, -0.030709974467754364, 0.02401757799088955, 0.03225276991724968, 0.0659649446606636, -0.020462892949581146, 0.03066827729344368, -0.05616610497236252, 0.0041358391754329205, 0.01681438833475113, -0.0530388168990612, 0.04294809699058533, -0.007630584295839071, 0.03633909299969673, -0.012196426279842854, -0.015521775931119919, 0.008464528247714043, 0.00510790478438139, -0.04007099196314812, -0.056541379541158676, -0.03781934455037117, -0.015803232789039612, -0.015063107013702393, -0.03877837955951691, 0.003987293224781752, 0.008031919598579407, 0.06508930027484894, -0.06146164610981941, -0.043031491339206696, -0.01760663464665413, -0.03304501622915268, -0.05099565535783768, -0.05103735253214836, 0.04086323827505112, -0.03585957735776901, 0.025456130504608154, 0.006259789690375328, -0.03646418824791908, 0.010559811256825924, 0.03398320451378822, 0.06771622598171234, -0.004568447824567556, 0.1058274507522583, -0.03264889493584633, -0.062087103724479675, -0.010768297128379345, 0.040758997201919556, -0.04415731504559517, -0.04080069437623024, -0.05012001469731331, 0.015594745986163616, -0.01683523692190647, 0.014760802499949932, 0.024080123752355576, -0.035171572118997574, 0.014656559564173222, 0.05545725300908089, 0.04786836728453636, 0.022787511348724365, 0.06325462460517883, 0.018774157389998436, -0.05441482365131378, 0.01921197772026062, 0.04795176163315773, 0.029333967715501785, 0.017137542366981506, 0.04682593792676926, 0.05729192867875099, 0.025268493220210075, 0.05624949932098389, 0.0327322892844677, -0.038653288036584854, 0.005649968050420284, 0.027415897697210312, -0.0073647648096084595, -0.04457428678870201, -0.0535808801651001, -0.01862821727991104, 0.002762438263744116, 0.027916263788938522, 0.01176903024315834, -0.057708900421857834, 0.022307991981506348, 0.04228094220161438, 0.0292922705411911, 0.10624442249536514, -0.041155118495225906, 0.0002150010986952111, 0.014229163527488708, 0.001795584917999804, -0.022787511348724365, 0.02105707675218582, -0.029604999348521233, -0.047993458807468414, 0.015949172899127007, -0.042635370045900345, 0.024163518100976944, -0.01578238420188427, -0.02531019039452076, 0.06342141330242157, 0.08556261658668518, 0.02599819377064705, 0.02987603098154068, 0.06429705768823624, 0.02531019039452076, 0.01255085226148367, -0.01862821727991104, -0.02351721189916134, -0.01834676042199135, 0.02789541520178318, -0.026456862688064575, -0.03164816275238991, -0.031210340559482574, 0.047910064458847046, -0.04891079664230347, 0.029604999348521233, 0.0265194084495306, 0.055248767137527466, 0.023579757660627365, 0.0285000242292881, 0.020462892949581146, 0.0013421280309557915, -0.011393755674362183, -0.024184366688132286, -0.03829886391758919, -0.002955287927761674, -0.09089985489845276, 0.024184366688132286, 0.009856171905994415, 0.012248547747731209, 0.007906828075647354, -0.010695327073335648, 0.011393755674362183, -0.08939875662326813, 0.028833601623773575, -0.05337239429354668, -0.020754773169755936, -0.0008085344452410936, 0.020838167518377304, -0.015469654463231564, 0.03971656784415245, 0.1277601718902588, 0.004409477114677429, -0.0041645062156021595, 0.04374034330248833, -0.05149602144956589, 0.01892009750008583, -0.002707710722461343, -0.03654758259654045, 0.005524876527488232, -0.057917386293411255, -0.025247644633054733, 0.03473375365138054, 0.01533413864672184, 0.01072659995406866, -0.034692056477069855, -0.02322533167898655, 0.01061193272471428, -0.0607110969722271, -0.01942046359181404, -0.0009681564406491816, -0.055540647357702255, -0.020806893706321716, -0.03711049258708954, -0.0028588632121682167, -0.034295931458473206, -0.0015571292024105787, -0.03942468762397766, 0.037173040211200714, 0.012696792371571064, -0.004521538037806749, -0.02341296896338463, 0.019931253045797348, -0.0017434634501114488, 0.005821969360113144, 0.03233616426587105, -0.03781934455037117, -0.007760887965559959, -0.0277077779173851, -0.008401982486248016, 0.001576674752868712, -0.013228431344032288, -0.0033540171571075916, 0.055332161486148834, -0.046909332275390625, 0.06638191640377045, 0.047493092715740204, 0.03990420326590538, 0.039445534348487854, 0.04109257459640503, 0.09823856502771378, -0.01876373216509819, 0.013395220041275024, -0.014885894022881985, 0.07113539427518845, 0.026936380192637444, 0.050578683614730835, 0.052079781889915466, 0.000992262619547546, -0.0088398028165102, -0.012446609325706959, -0.03977911174297333, -0.020515013486146927, -0.0654645785689354, -0.06204540655016899, 0.01915985532104969, 0.008297739550471306, 0.004602326545864344, -0.0028301961719989777, 0.02129683643579483, -0.015751110389828682, -0.00972586777061224, -0.00980405043810606, 0.02272496372461319, 0.016345296055078506, 0.017137542366981506, -0.018034031614661217, 0.03929959610104561, 0.02591479942202568, 0.00006673992174910381, 0.06604833900928497, 0.006791428662836552, -0.035088177770376205, 0.04499125853180885, 0.03652673214673996, 0.023079391568899155, -0.007609735708683729, -0.017752574756741524, 0.03346198797225952, 0.03681861236691475, -0.032023437321186066, -0.02560207061469555, 0.02847917564213276, 0.00506099546328187, 0.016897782683372498, -0.06796640902757645, 0.015188198536634445, -0.019034763798117638, 0.001143414992839098, 0.04786836728453636, -0.01542795728892088, -0.03556769713759422, -0.03973741456866264, -0.01673099398612976, -0.0088398028165102, -0.027853718027472496, 0.007036399561911821, -0.07580547779798508, -0.005905363708734512, -0.01673099398612976, -0.0030673490837216377, 0.0034634722396731377, -0.019013915210962296, -0.0061346981674432755, -0.0432816743850708, 0.03465035930275917, -0.017794271931052208, -0.0074742198921740055, -0.014177042059600353, -0.03938299044966698, 0.002838014392182231, 0.035776183009147644, 0.04167633503675461, 0.0253310389816761, -0.009032651782035828, -0.06162843480706215, 0.0033540171571075916, 0.03106440044939518, 0.04027947783470154, 0.0025565584655851126, -0.07884937524795532, -0.025664616376161575, -0.012801035307347775, -0.015542624518275261, 0.05328899994492531, 0.018378034234046936, 0.06342141330242157, 0.10632781684398651, -0.016751842573285103, -0.03233616426587105, 0.012404912151396275, -0.049494557082653046, 0.03711049258708954, -0.019013915210962296, 0.009517381899058819, -0.037173040211200714, 0.014416800811886787, -0.01255085226148367, 0.09056627750396729, 0.041259363293647766, 0.02900039032101631, -0.044699378311634064, -0.026269225403666496, 0.018774157389998436, 0.051287535578012466, -0.026227528229355812, 0.025685464963316917, -0.04811855033040047, -0.02145319990813732, -0.07509662955999374, 0.02285005711019039, 0.031523071229457855, 0.00885543879121542, 0.0005863666301593184, -0.0329824723303318, 0.047493092715740204, 0.00990829337388277, -0.02343381755053997, -0.02341296896338463, -0.001209869864396751, -0.01255085226148367, 0.023475514724850655, 0.026164982467889786, -0.0026764378417283297, 0.014979712665081024, 0.03314926102757454, -0.0064630634151399136, 0.00505317747592926, 0.017752574756741524, -0.044824469834566116, 0.009470473043620586, -0.016929056495428085, -0.012206850573420525, 0.01132078468799591, 0.00962162483483553, -0.05499858409166336, -0.030814217403531075, 0.0026998925022780895, 0.056124407798051834, -0.02699892595410347, -0.024538792669773102, 0.0015336745418608189, 0.0019089491106569767, 0.00286668143235147, 0.05512367561459541, -0.0265194084495306, 0.08698032051324844, 0.01633487083017826, -0.009032651782035828, -0.003789231413975358, -0.0006717155338265002, -0.001630099257454276, -0.03485884517431259, -0.029417362064123154, -0.0013447341043502092, -0.0018424942390993237, -0.04428240656852722, 0.026540257036685944, -0.021317685022950172, -0.018325911834836006, -0.046909332275390625, -0.01683523692190647, -0.050286803394556046, 0.04009184241294861, -0.021203016862273216, -0.019983375445008278, -0.04782667011022568, 0.01736687682569027, -0.04251027852296829, -0.006020030938088894, -0.002762438263744116, -0.07292837649583817, -0.0034191689919680357, 0.016428690403699875, 0.037485767155885696, 0.0472429096698761, 0.013405644334852695, -0.07897446304559708, -0.04228094220161438, -0.005352875683456659, -0.08981572836637497, -0.02282920852303505, -0.04753478989005089, -0.046700846403837204, 0.041738878935575485, 0.014166617766022682, -0.007687917910516262, -0.05149602144956589, 0.050078317523002625, 0.008584407158195972, 0.0035338362213224173, -0.016376568004488945, 0.025456130504608154, 0.014375103637576103, -0.02114047110080719, -0.018200820311903954, -0.0077713122591376305, 0.046408966183662415, -0.011497998610138893, -0.04394882917404175, -0.018878400325775146, 0.0670490711927414, 0.01707499660551548, -0.009877020493149757, 0.018117425963282585, 0.010419083759188652, 0.007745251525193453, -0.008125738240778446, 0.018096577376127243, 0.03704794868826866, -0.02939651347696781, -0.039153654128313065, 0.017877666279673576, 0.05103735253214836, -0.008276890963315964, 0.061503343284130096, -0.03373302146792412, 0.005232996307313442, -0.036776915192604065, -0.12092182785272598, -0.048785705119371414, 0.002707710722461343, 0.02066095359623432, -0.032899077981710434, -0.09148362278938293, -0.06829998642206192, 0.006994702387601137, 0.0030282579828053713, 0.06204540655016899, 0.016376568004488945, -0.07267818599939346, -0.009444411844015121, 0.04150954633951187, 0.04991152882575989, 0.017377300187945366, -0.025956496596336365, -0.05232996493577957, 0.004438143689185381, -0.0422183983027935, 0.027853718027472496, 0.012571700848639011, -0.016720570623874664, 0.021682534366846085, -0.02589395083487034, -0.026978077366948128, 0.015521775931119919, 0.016397416591644287, -0.02998027391731739, 0.04807685315608978, 0.02055671066045761, -0.020598407834768295, -0.026623651385307312, 0.04111342132091522, -0.03233616426587105, 0.008787681348621845, -0.0047899638302624226, 0.0014854621840640903, -0.020462892949581146, 0.009048288688063622, -0.009470473043620586, 0.018805429339408875, 0.04544992744922638, 0.020702650770545006, -0.0021304653491824865, -0.03494223952293396, -0.00403159623965621, 0.027832869440317154, 0.0028953482396900654, 0.024455398321151733, 0.03671437129378319, -0.04811855033040047, -0.02541443333029747, 0.04140530154109001, 0.013363947160542011, -0.036068063229322433, 0.029834333807229996, 0.0944858193397522, 0.04109257459640503, 0.03604721277952194, 0.008944045752286911, -0.003601594129577279, 0.027415897697210312, 0.056041013449430466, 0.023162785917520523, -0.05099565535783768, 0.0488274022936821, -0.012894853949546814, -0.06200370937585831, 0.05908490717411041, 0.0265194084495306, -0.0015597352758049965, -0.002039252780377865, 0.005785484332591295, 0.04002929478883743, 0.006681973580271006, -0.06258746981620789, -0.012978248298168182, -0.051871296018362045, 0.04349016025662422, 0.020942410454154015, -0.02591479942202568, 0.02860426716506481, 0.006160758901387453, -0.04369864612817764, -0.026936380192637444, -0.08506225049495697, 0.004018566105514765, -0.015469654463231564, -0.023058542981743813, -0.056833259761333466, -0.008203920908272266, 0.011779454536736012, -0.004200991243124008, 0.06796640902757645, 0.011081025935709476, -0.01434383075684309, -0.0193996150046587, 0.0010417780140414834, 0.0036068062763661146, -0.05174620449542999, 0.05320560559630394, 0.06379669159650803, -0.04836873337626457, -0.03552599996328354, -0.11224881559610367, -0.04357355460524559, 0.03973741456866264, 0.0448661670088768, 0.00328625924885273, 0.017877666279673576, 0.01633487083017826, -0.0056082708761096, 0.02998027391731739, -0.03177325427532196, 0.014479346573352814, 0.02720741182565689, 0.028416629880666733, 0.011425028555095196, 0.031106097623705864, 0.026748742908239365, 0.021807625889778137, -0.0011857636272907257, -0.012206850573420525, 0.02601904235780239, -0.041634637862443924, -0.03314926102757454, 0.02285005711019039, 0.03485884517431259, -0.0577922947704792, 0.04982813447713852, -0.01817997172474861, 0.002759832190349698, -0.03206513449549675, -0.028020506724715233, -0.0008202617755159736, -0.004404264967888594, -0.00005053340282756835, 0.010559811256825924, -0.0261232852935791, 0.00032331605325452983, -0.008745984174311161, 0.020285679027438164, 0.03206513449549675, -0.06183692067861557, 0.0066611249931156635, 0.028270689770579338, -0.03533836081624031, 0.060502611100673676, -0.009173380210995674, -0.022995997220277786, -0.09798838198184967, 0.03035554848611355, -0.021807625889778137, -0.0010039899498224258, 0.04132190719246864, -0.0786408856511116, -0.05099565535783768, -0.025831405073404312, 0.00203534378670156, -0.0654645785689354, -0.011675211600959301, 0.025956496596336365, -0.04298979416489601, -0.03752746433019638, -0.022078657522797585, 0.028645964339375496, 0.07113539427518845, -0.0863131657242775, -0.00019496690947562456, 0.009147319942712784, -0.005722938571125269, 0.014927591197192669, -0.026769591495394707, 0.0638800859451294, -0.0224330835044384, -0.07480474561452866, 0.0014346437528729439, -0.006671549286693335, 0.018857551738619804, -0.006113849580287933, 0.04259367287158966, -0.03396235406398773, 0.01334309857338667, 0.0480351559817791, -0.020379498600959778, 0.013405644334852695, -0.010523326694965363, 0.01802360638976097, 0.012936551123857498, 0.02599819377064705, 0.0148441968485713, -0.0028927421662956476, 0.01945173554122448, 0.0022060414776206017, 0.033878959715366364, -0.018273791298270226, -0.07267818599939346, 0.07092690467834473, -0.044032223522663116, -0.007552402094006538, 0.030939308926463127, 0.0028328022453933954, -0.0448661670088768, -0.02995942533016205, -0.005816757213324308, -0.05353918299078941, 0.01463571097701788, 0.03212767839431763, 0.03035554848611355, 0.005321602802723646, -0.040758997201919556, 0.0406339056789875, -0.0583343580365181, -0.04086323827505112, -0.014270860701799393, -0.015448805876076221, -0.0017382513033226132, -0.05816756933927536, 0.052955422550439835, 0.02253732644021511, 0.02285005711019039, 0.035692788660526276, -0.00536329997703433, 0.013436917215585709, 0.030293002724647522, -0.030293002724647522, 0.03133543208241463, -0.011602241545915604, 0.052872028201818466 ]
729,329
tinytuya.core
_send_receive_quick
null
def _send_receive_quick(self, payload, recv_retries, from_child=None): # pylint: disable=W0613 if self.parent: return self.parent._send_receive_quick(payload, recv_retries, from_child=self) log.debug("sending payload quick") if self._get_socket(False) is not True: return None enc_payload = self._encode_message(payload) if type(payload) == MessagePayload else payload try: self.socket.sendall(enc_payload) except: self._check_socket_close(True) return None if not recv_retries: return True while recv_retries: try: msg = self._receive() except: msg = None if msg and len(msg.payload) != 0: return msg recv_retries -= 1 if recv_retries == 0: log.debug("received null payload (%r) but out of recv retries, giving up", msg) else: log.debug("received null payload (%r), fetch new one - %s retries remaining", msg, recv_retries) return False
(self, payload, recv_retries, from_child=None)
[ -0.025800103321671486, -0.045998748391866684, -0.055235590785741806, 0.05441948398947716, -0.012009753845632076, -0.03772639110684395, -0.01541328988969326, -0.003978520631790161, 0.014634278602898121, -0.03839411586523056, 0.017379365861415863, 0.03674335405230522, 0.009487241506576538, -0.0042405095882713795, 0.004667110741138458, 0.0306411013007164, -0.01360487099736929, -0.04299398884177208, 0.024112246930599213, 0.011008167639374733, 0.0233332347124815, 0.06480629742145538, 0.027821822091937065, 0.03396117314696312, 0.0031995095778256655, 0.04570198059082031, 0.04176982864737511, 0.00047094232286326587, -0.018900291994214058, 0.09103300422430038, -0.00007382926560239866, -0.0343506783246994, 0.06246926635503769, -0.015116523951292038, -0.010368266142904758, 0.03462889418005943, -0.07333832234144211, -0.02233164943754673, 0.006844168528914452, -0.026912976056337357, -0.04091662913560867, 0.03587160259485245, 0.026894429698586464, -0.05074700340628624, -0.0356304794549942, -0.015172167681157589, -0.013215365819633007, 0.10928411781787872, 0.04559069499373436, 0.05111796408891678, 0.017639035359025, 0.04050857573747635, -0.05742424353957176, 0.0002873472694773227, 0.0037258057855069637, 0.03154994547367096, -0.025150928646326065, -0.0024274541065096855, -0.0005546975880861282, 0.014708470553159714, -0.012890777550637722, 0.035389360040426254, -0.01945672743022442, 0.00977473333477974, -0.02971370704472065, -0.016108835116028786, -0.024520300328731537, -0.00945942010730505, -0.009366679936647415, 0.011944836005568504, -0.023407427594065666, 0.029491132125258446, -0.05705328658223152, 0.014754840172827244, -0.017852336168289185, 0.04310527816414833, 0.02177521400153637, -0.011175098828971386, 0.0064732106402516365, 0.01863134652376175, 0.05645975098013878, -0.01570078171789646, 0.015849165618419647, -0.04855835437774658, 0.006283095106482506, 0.06747719645500183, -0.00003963160634157248, 0.03746671974658966, 0.018214020878076553, -0.05623717978596687, 0.022813895717263222, 0.0496712289750576, -0.0192712489515543, -0.026894429698586464, 0.02739522233605385, -0.010052951984107494, -0.006259910296648741, 0.012927873991429806, -0.019048674032092094, 0.01232506800442934, -0.04926317557692528, 0.08376223593950272, -0.05078409984707832, -0.01352140586823225, 0.05178568512201309, 0.02158973552286625, -0.002986209001392126, 0.005786939058452845, -0.003911284729838371, 0.03073384054005146, 0.02242438867688179, -0.024112246930599213, -0.04722290858626366, 0.017880158498883247, -0.05475334823131561, 0.025354955345392227, -0.01130493450909853, 0.004896640777587891, -0.02492835372686386, -0.0047018881887197495, 0.01074849721044302, 0.007344961166381836, 0.02223891019821167, -0.016674546524882317, -0.004212687723338604, 0.049151886254549026, 0.023110661655664444, 0.008165705017745495, 0.07344961166381836, -0.06024352088570595, -0.017323721200227737, 0.027896014973521233, 0.0010554904583841562, 0.05427110195159912, 0.02822987549006939, 0.04870673641562462, 0.014105664566159248, 0.017230981960892677, 0.04358752444386482, -0.08376223593950272, -0.004544231109321117, -0.04069405421614647, 0.023741288110613823, 0.015570946969091892, -0.007280043791979551, -0.03312651813030243, -0.013076256960630417, -0.009997308254241943, -0.009988034144043922, -0.010998894460499287, 0.009190475568175316, -0.04002632945775986, -0.06324827671051025, 0.013317379169166088, 0.03527807071805, 0.03184671327471733, -0.04169563949108124, -0.03351602330803871, 0.005499447230249643, -0.032069288194179535, -0.0385424979031086, -0.06629013270139694, 0.04559069499373436, -0.026041226461529732, 0.025503337383270264, -0.0022384976036846638, 0.000942464277613908, -0.030251596122980118, -0.014152034185826778, 0.09756185859441757, 0.010637210682034492, 0.04659228026866913, 0.011295660398900509, -0.05731295421719551, -0.05189697444438934, -0.008086876943707466, -0.04058276489377022, -0.04911478981375694, -0.07612051069736481, -0.023110661655664444, -0.08405900001525879, -0.027432316914200783, 0.0212373249232769, -0.09652318060398102, 0.05019056797027588, 0.03340473398566246, -0.010006582364439964, 0.022442936897277832, 0.022591320797801018, -0.005745206493884325, -0.10186497122049332, -0.0006897493731230497, 0.027988754212856293, 0.006139348726719618, -0.011100907810032368, 0.02314775623381138, 0.033998265862464905, 0.02314775623381138, 0.022832442075014114, 0.04266012832522392, -0.017935801297426224, -0.04629551246762276, 0.050376046448946, -0.0012067715870216489, -0.06536273658275604, -0.031123345717787743, -0.020736532285809517, 0.04392138496041298, 0.025688815861940384, -0.029880637302994728, -0.07812368124723434, -0.02446465566754341, -0.010210609063506126, -0.006844168528914452, 0.04955993965268135, -0.03772639110684395, -0.016591079533100128, -0.022999374195933342, 0.010980346240103245, -0.011657344177365303, 0.04930027201771736, -0.0332007072865963, -0.07908816635608673, 0.02058814838528633, -0.007052832283079624, 0.044440723955631256, -0.04662937670946121, -0.030381429940462112, 0.0415472574532032, 0.028489546850323677, 0.018863195553421974, -0.011379125528037548, 0.07552697509527206, 0.02585574798285961, 0.006932270713150501, 0.01540401577949524, -0.02546624280512333, 0.0009337699157185853, 0.0647692009806633, 0.013113352470099926, -0.03397972136735916, -0.019048674032092094, 0.00727076968178153, 0.0007390171522274613, 0.028100041672587395, 0.016952764242887497, 0.06829330325126648, 0.005893589463084936, 0.025892842561006546, 0.04681485518813133, 0.05868550017476082, -0.00436338922008872, -0.03423938900232315, -0.016377780586481094, 0.02446465566754341, -0.014745566062629223, 0.02068088762462139, 0.012389984913170338, 0.0021550320088863373, -0.012427081353962421, 0.026968620717525482, 0.014810483902692795, -0.04533102363348007, 0.03292249143123627, -0.05074700340628624, -0.017407186329364777, -0.03334909304976463, -0.026189608499407768, -0.03642804175615311, 0.037615105509757996, 0.0005164425820112228, -0.018677717074751854, 0.029194366186857224, 0.06922069191932678, -0.03396117314696312, -0.0016924942610785365, -0.007994136773049831, -0.02528076246380806, 0.049411557614803314, -0.039915043860673904, -0.040174711495637894, 0.039915043860673904, 0.017796693369746208, -0.04815030097961426, 0.022591320797801018, -0.011685165576636791, 0.030696744099259377, -0.06621593981981277, -0.015385468490421772, -0.012491998262703419, -0.010210609063506126, -0.0042405095882713795, 0.007780836429446936, -0.04303108528256416, -0.02379693277180195, 0.007136297412216663, -0.027840370312333107, -0.009241482242941856, 0.025076735764741898, 0.040100522339344025, -0.030566910281777382, -0.03681754693388939, -0.0696287453174591, -0.015468933619558811, 0.035667575895786285, -0.036594972014427185, -0.006890538148581982, 0.0013203773414716125, -0.026912976056337357, 0.026004130020737648, -0.06439824402332306, 0.014958866871893406, 0.015144345350563526, -0.08331708610057831, 0.08769438415765762, 0.022962277755141258, 0.038616690784692764, 0.026430731639266014, 0.05137763172388077, 0.04440363124012947, 0.013298830948770046, 0.009167290292680264, -0.05775810405611992, 0.0633595660328865, 0.006677237339317799, -0.005109941586852074, 0.028100041672587395, 0.018019266426563263, 0.0023254407569766045, -0.01845514215528965, -0.0076602753251791, -0.040174711495637894, 0.03961827605962753, -0.024854162707924843, 0.007794747594743967, 0.03984085097908974, 0.04080533981323242, 0.03129027783870697, 0.03353457152843475, 0.022832442075014114, -0.0029143360443413258, -0.0009256552439182997, 0.07834625244140625, -0.020050261169672012, 0.09733928740024567, 0.008643313311040401, 0.03145720809698105, 0.0015255633043125272, 0.025039641186594963, 0.008003410883247852, -0.027339577674865723, -0.12041284888982773, 0.03976665809750557, -0.050376046448946, -0.026912976056337357, 0.023184852674603462, 0.021663926541805267, 0.030863676220178604, 0.03251443803310394, 0.011406947858631611, 0.040545668452978134, 0.004956921562552452, 0.01577497273683548, 0.02667185477912426, -0.06165315955877304, 0.028396807610988617, -0.051822781562805176, -0.006533491425216198, 0.019215606153011322, 0.021367160603404045, -0.02133006416261196, -0.006329464726150036, -0.03305232524871826, -0.05657104030251503, -0.04176982864737511, 0.004080533981323242, -0.04818739742040634, 0.009607803076505661, 0.028007302433252335, -0.030566910281777382, 0.022832442075014114, -0.04384719207882881, -0.024705778807401657, -0.037986062467098236, 0.048780929297208786, 0.022276006639003754, 0.0027543604373931885, -0.007201215252280235, -0.03303377702832222, -0.0096912682056427, 0.02509528398513794, 0.06376761943101883, 0.02047686092555523, -0.021014750003814697, -0.0031206810381263494, -0.04403267055749893, 0.0485212579369545, 0.004729710053652525, -0.009978760965168476, -0.03407245874404907, -0.0265791155397892, -0.018473690375685692, -0.04355042800307274, 0.026412183418869972, 0.022405842319130898, 0.07760433852672577, 0.02999192476272583, -0.05924193561077118, 0.004082852508872747, 0.0387650728225708, 0.004112992901355028, 0.012566190212965012, 0.014866127632558346, -0.00727076968178153, -0.017676131799817085, -0.029787898063659668, -0.014699196442961693, 0.034647442400455475, 0.05189697444438934, 0.01352140586823225, -0.05278727039694786, 0.003769857110455632, 0.019864780828356743, 0.003190235700458288, -0.029231462627649307, 0.041324682533741, -0.07207706570625305, -0.03466599062085152, -0.02685733325779438, 0.014958866871893406, 0.0016565576661378145, 0.013985102996230125, 0.0015209263656288385, 0.07901398092508316, 0.063841812312603, 0.0036608881782740355, -0.013948007486760616, -0.01554312463849783, -0.0206623412668705, -0.003134591970592737, 0.04566488415002823, -0.029008887708187103, -0.033182159066200256, -0.04091662913560867, 0.04833577945828438, -0.010488827712833881, 0.021830856800079346, 0.01624794490635395, -0.06788524985313416, 0.06517725437879562, 0.01901157945394516, -0.003959972877055407, -0.003635384840890765, 0.012918599881231785, -0.0756753608584404, -0.024409012869000435, 0.034109555184841156, 0.031716879457235336, -0.02767344005405903, -0.0475938655436039, 0.03987794741988182, -0.022684060037136078, -0.054604966193437576, 0.04384719207882881, -0.006408293265849352, 0.06710623949766159, -0.028174232691526413, -0.0006816346431151032, -0.01540401577949524, 0.006009513977915049, 0.023574357852339745, -0.06217249855399132, 0.018900291994214058, -0.034387774765491486, 0.03082657977938652, 0.02409369871020317, 0.033998265862464905, 0.027710536494851112, 0.006130075082182884, -0.002656984142959118, -0.05093248561024666, -0.060948338359594345, -0.007038921117782593, -0.015441111288964748, 0.002499327063560486, -0.03481437265872955, -0.02105184644460678, 0.017657583579421043, 0.007817932404577732, 0.026133965700864792, -0.016637450084090233, 0.008351183496415615, 0.04473749175667763, 0.0951877310872078, 0.04981961101293564, -0.005657103843986988, -0.044069766998291016, -0.01745355688035488, -0.003487001871690154, -0.04870673641562462, -0.03440631926059723, 0.06692075729370117, -0.011842822656035423, 0.07582373917102814, 0.018789004534482956, -0.0640643835067749, -0.015079428441822529, 0.0629144161939621, 0.010145691223442554, -0.01342866662889719, 0.0010694012744352221, 0.021849405020475388, -0.0016310543287545443, -0.036669161170721054, -0.036687709391117096, -0.013484310358762741, 0.0396924689412117, 0.024705778807401657, -0.054679155349731445, -0.04681485518813133, 0.07975589483976364, 0.0051934071816504, -0.03162413835525513, -0.03090077079832554, -0.003957654349505901, 0.0028517369646579027, 0.005490173120051622, 0.046926140785217285, 0.02095910720527172, -0.02388967201113701, -0.02160828188061714, 0.024427561089396477, 0.06988842040300369, -0.05401143059134483, 0.05816615745425224, 0.02131151594221592, -0.0073403241112828255, -0.004896640777587891, -0.0754527822136879, -0.03943279758095741, -0.004354115109890699, -0.02207197993993759, -0.02722829021513462, -0.04381009563803673, -0.08509768545627594, 0.02270260825753212, 0.023203400894999504, 0.05608879402279854, 0.006899812258780003, -0.028823409229516983, 0.023129208013415337, 0.03653932735323906, 0.005054297856986523, 0.032440245151519775, -0.015246358700096607, 0.013039161451160908, -0.02711700275540352, -0.03071529231965542, 0.0306411013007164, 0.019067222252488136, 0.03735543414950371, 0.007242947816848755, 0.028545189648866653, 0.011972657404839993, -0.012835134752094746, -0.03442486748099327, -0.03360876068472862, 0.012760942801833153, 0.05241631343960762, -0.018751908093690872, -0.02767344005405903, 0.06888683140277863, -0.05649684742093086, 0.01269602496176958, 0.057832296937704086, -0.021997788920998573, -0.01595117896795273, -0.0387650728225708, -0.036594972014427185, -0.022684060037136078, 0.0019173872424289584, -0.022480033338069916, 0.02594848722219467, -0.03958117961883545, -0.015283455140888691, -0.025484789162874222, -0.03459180146455765, 0.030399978160858154, -0.024334821850061417, -0.03831992298364639, -0.0033988994546234608, 0.08502349257469177, 0.00983037706464529, -0.03314506635069847, 0.04266012832522392, 0.005068208556622267, 0.050338950008153915, 0.05723876506090164, 0.01264038123190403, -0.010980346240103245, -0.00717339338734746, 0.031123345717787743, -0.0047250729985535145, -0.05022766441106796, 0.004059667699038982, 0.005555090494453907, -0.05119215324521065, 0.07597212493419647, 0.060391902923583984, 0.042697224766016006, 0.020736532285809517, 0.018659168854355812, 0.05564364418387413, 0.015097975730895996, -0.050376046448946, 0.0028934695292264223, -0.08969755470752716, 0.01652616262435913, 0.006593772210180759, -0.015524577349424362, -0.013400844298303127, -0.01226942427456379, -0.025503337383270264, 0.009765460155904293, -0.06298860907554626, -0.0008723300998099148, -0.0008874002378433943, -0.02158973552286625, -0.013178270310163498, -0.029954830184578896, -0.013252461329102516, 0.016016095876693726, 0.07200288027524948, 0.03232895955443382, -0.030121760442852974, -0.07619469612836838, -0.018659168854355812, 0.04985670745372772, -0.06692075729370117, 0.005596823524683714, 0.010145691223442554, -0.009255393408238888, -0.12486433982849121, -0.09207168966531754, -0.032607175409793854, -0.0020970699843019247, 0.04113920405507088, 0.006547402124851942, -0.024038055911660194, -0.007548987865447998, -0.0037930419202893972, 0.019530920311808586, -0.03746671974658966, 0.0009401457500644028, 0.07133515179157257, 0.029917733743786812, 0.08175906538963318, 0.027840370312333107, 0.0039136032573878765, 0.03909893333911896, 0.016563259065151215, -0.045998748391866684, 0.04510844871401787, -0.022183267399668694, 0.03154994547367096, 0.046666469424963, 0.027562152594327927, -0.04440363124012947, 0.015097975730895996, -0.07393185794353485, -0.012343615293502808, -0.022906634956598282, -0.025800103321671486, 0.01882610097527504, 0.005276872310787439, 0.0024877346586436033, -0.033441830426454544, -0.024242082610726357, 0.01541328988969326, -0.020551053807139397, 0.010859784670174122, 0.012213780544698238, -0.05842582881450653, 0.05627427250146866, -0.0031531399581581354, -0.015348372049629688, 0.03544500097632408, -0.012121041305363178, -0.04321656376123428, -0.0810171514749527, 0.063841812312603, -0.030010472983121872, -0.0207736287266016, 0.04117629677057266, -0.04911478981375694, -0.025410598143935204, -0.015218537300825119, 0.0035913337487727404, 0.005916774272918701, -0.020513957366347313, 0.00027010354097001255, -0.0020646110642701387, -0.014458074234426022, -0.032347507774829865, 0.014569361694157124, 0.04892931133508682, -0.06339666247367859, 0.04955993965268135, 0.01426332164555788, 0.026059774681925774, -0.023852575570344925, -0.022535676136612892, 0.0006219336646609008, -0.0030835852958261967, -0.0468890443444252, -0.026820236817002296, 0.054085623472929, 0.015339097939431667, -0.039915043860673904, -0.011267838068306446, -0.029917733743786812, 0.040100522339344025, 0.00794313009828329, -0.04299398884177208, 0.00532787898555398, -0.03288539499044418, 0.0020495408680289984, 0.011295660398900509, 0.029491132125258446, 0.04622132331132889, 0.008258444257080555, -0.007794747594743967, 0.07893978804349899, -0.004154725465923548, 0.00890761986374855, -0.04981961101293564, 0.020513957366347313, -0.031327374279499054, -0.02630089595913887, 0.009719090536236763, 0.0306411013007164, -0.014977415092289448, -0.0011940199183300138, -0.0013238551327958703, -0.010451731272041798, 0.027525056153535843, 0.041844021528959274, 0.012668203562498093, 0.0001663513103267178, -0.045182641595602036, 0.030752388760447502, -0.007739103864878416, -0.024316273629665375, -0.013002065010368824, 0.02205343171954155, 0.028860503807663918, -0.08042361587285995, 0.004500180017203093, -0.009709816426038742, -0.009821103885769844, 0.011165824718773365, -0.04143596813082695, -0.028118589892983437, 0.06788524985313416, -0.07393185794353485, 0.03119753673672676, -0.006445388775318861, 0.05111796408891678 ]
729,330
tinytuya.core
add_dps_to_request
Add a datapoint (DP) to be included in requests.
def add_dps_to_request(self, dp_indicies): """Add a datapoint (DP) to be included in requests.""" if isinstance(dp_indicies, int): self.dps_to_request[str(dp_indicies)] = None else: self.dps_to_request.update({str(index): None for index in dp_indicies})
(self, dp_indicies)
[ -0.03094371035695076, 0.0033615236170589924, -0.05587206035852432, -0.01986837387084961, -0.053041305392980576, 0.03499523177742958, 0.0025941231288015842, -0.011402642354369164, 0.02575988695025444, -0.030483711510896683, -0.03361523523926735, -0.002342008985579014, 0.004829978570342064, -0.02184990420937538, 0.02354835718870163, 0.009659957140684128, -0.004471710883080959, 0.016666080802679062, -0.016091082245111465, -0.04249673709273338, 0.03327908366918564, -0.009863417595624924, 0.006780547089874744, 0.06181665137410164, -0.06298433989286423, 0.03356216102838516, 0.04147058725357056, -0.0420721210539341, 0.027387572452425957, -0.00192955881357193, -0.004458441864699125, -0.013826477341353893, -0.046247489750385284, 0.018789147958159447, 0.0059843966737389565, 0.034039851278066635, -0.01135841105133295, 0.0420721210539341, -0.05838435888290405, 0.06737200915813446, -0.029457561671733856, -0.014843780547380447, -0.0038126755971461535, -0.024698352441191673, 0.010500337928533554, 0.07635966688394547, -0.027104495093226433, 0.024999121204018593, 0.06680586189031601, -0.009244189597666264, -0.0016907136887311935, 0.009960724972188473, 0.003839213866740465, -0.015091472305357456, -0.022132979705929756, 0.03782598674297333, 0.010650722309947014, 0.03991366922855377, -0.01595839112997055, -0.01402993779629469, -0.04150597006082535, 0.001989270094782114, 0.004949401132762432, -0.03839213773608208, -0.022221440449357033, 0.024574507027864456, -0.03345600515604019, -0.01645377278327942, 0.0033172930125147104, -0.004013924393802881, 0.04352288693189621, -0.0495736263692379, -0.06896430999040604, 0.011694563552737236, 0.04638902470469475, 0.029846791177988052, 0.06167511269450188, -0.002777680056169629, -0.003447773167863488, -0.017718767747282982, -0.007824388332664967, -0.011234565638005733, -0.0020003276877105236, 0.05930435284972191, 0.027741415426135063, 0.03917059674859047, 0.009244189597666264, 0.022557592019438744, 0.0009194430895149708, 0.0037330605555325747, 0.002689218847081065, 0.005002478137612343, -0.0446905717253685, -0.01614416018128395, 0.07303352653980255, 0.013233787380158901, -0.02294682152569294, -0.00884169153869152, -0.05350130423903465, 0.026414498686790466, -0.00275556487031281, -0.09143344312906265, 0.007461697794497013, -0.010916105471551418, -0.011199180968105793, -0.1032518520951271, 0.05902127921581268, -0.018718378618359566, 0.0016088871052488685, 0.03262447193264961, 0.006647855509072542, 0.001546964282169938, -0.018258381634950638, -0.0551997572183609, -0.040692128241062164, 0.06588586419820786, 0.0014087437884882092, -0.014578397385776043, 0.006050742696970701, 0.03274831548333168, -0.05863204970955849, 0.038356754928827286, -0.056685902178287506, 0.03439369425177574, 0.0008569673518650234, -0.022858360782265663, -0.011632640846073627, 0.07140583544969559, 0.03655214607715607, -0.05803051218390465, 0.004883055575191975, -0.06178126484155655, -0.02689218893647194, 0.03168678283691406, -0.03998443856835365, -0.029457561671733856, 0.014374936930835247, 0.005228053778409958, 0.0018399918917566538, -0.00422623148187995, -0.025600656867027283, 0.023371435701847076, -0.012800328433513641, 0.07374121248722076, 0.0322883203625679, 0.033668313175439835, -0.018417611718177795, 0.047521330416202545, -0.0612151138484478, 0.013853016309440136, -0.07027353346347809, 0.058561280369758606, -0.07402428984642029, -0.017303001135587692, 0.003710945136845112, -0.015029549598693848, 0.0036379648372530937, -0.011880332604050636, 0.006267472170293331, -0.03350908309221268, -0.020894523710012436, -0.056084368377923965, 0.02418527752161026, -0.024344507604837418, -0.018081458285450935, 0.004949401132762432, -0.03386292606592178, -0.007169776130467653, 0.03448215499520302, 0.05459821969270706, 0.03623368591070175, -0.024167586117982864, 0.0227168221026659, -0.045009031891822815, 0.028749873861670494, -0.006855738814920187, 0.037790603935718536, -0.015100318007171154, -0.009624573402106762, -0.015684161335229874, 0.05806589871644974, -0.024079125374555588, -0.015215317718684673, -0.011942255310714245, 0.04653056338429451, -0.01359647884964943, -0.0068911234848201275, -0.005772090051323175, -0.0006988430977798998, 0.046141333878040314, 0.055518217384815216, 0.03485369309782982, 0.004533634055405855, -0.01956760697066784, -0.021690674126148224, 0.004232865758240223, 0.0077845812775194645, -0.042001351714134216, -0.01997452788054943, 0.0306075569242239, -0.02335374243557453, 0.009253036230802536, 0.000005580654487857828, -0.02489296719431877, -0.014949934557080269, 0.04642441123723984, -0.04907824471592903, -0.003527388209477067, -0.04433672875165939, -0.015206471085548401, 0.06620432436466217, 0.001325811492279172, 0.012189946137368679, -0.04787517338991165, 0.01541877817362547, 0.03909982740879059, -0.01625915989279747, 0.0017880209488794208, -0.028926795348525047, -0.042673658579587936, -0.007125545293092728, -0.021584520116448402, 0.012782636098563671, -0.04235519841313362, 0.03414600342512131, -0.014693397097289562, 0.02448604628443718, -0.002151817549020052, -0.021619904786348343, -0.002364124171435833, -0.0062807416543364525, 0.016082236543297768, -0.037153683602809906, -0.014366090297698975, 0.05806589871644974, 0.004728248342871666, -0.005953435320407152, -0.04182443022727966, 0.029492946341633797, 0.007926118560135365, -0.012473021633923054, 0.036445993930101395, 0.02207990176975727, 0.0066920858807861805, -0.035702917724847794, 0.03902905806899071, 0.005807474255561829, 0.04458441957831383, -0.024061432108283043, 0.025706809014081955, 0.0841442421078682, -0.04398288205265999, -0.02505219727754593, -0.04161212593317032, 0.011968793347477913, 0.0020069621969014406, -0.046813640743494034, 0.03747214376926422, 0.0002194942208006978, -0.05795974284410477, -0.0563320592045784, 0.032235242426395416, -0.062241263687610626, 0.018682993948459625, -0.05403206869959831, 0.03147447481751442, -0.0032000821083784103, -0.003248735563829541, -0.03616291657090187, -0.016117621213197708, 0.001746001886203885, 0.030589865520596504, 0.04369980841875076, -0.013791092671453953, 0.0409398190677166, 0.05887974053621292, 0.06482432782649994, 0.025282196700572968, -0.06701816618442535, 0.009208805859088898, 0.06726586073637009, -0.007129968609660864, 0.024680661037564278, 0.04578749090433121, -0.027122188359498978, 0.006519586779177189, 0.03849829360842705, 0.0919995978474617, -0.00840823259204626, -0.04423057287931442, -0.01697569526731968, 0.09709495306015015, 0.03800290822982788, 0.044973649084568024, -0.02561834827065468, 0.054208990186452866, 0.027016034349799156, -0.005519975442439318, 0.01334878709167242, 0.06397510319948196, -0.008417078293859959, -0.009836879558861256, 0.030359866097569466, 0.0035848880652338266, 0.0017128289910033345, -0.06772585213184357, 0.039524439722299576, -0.008509962819516659, -0.004067001398652792, -0.03959520906209946, -0.00888149905949831, 0.030324481427669525, -0.043841343373060226, -0.02977602183818817, 0.01269417442381382, -0.006068434566259384, -0.02354835718870163, 0.04486749321222305, -0.003710945136845112, 0.1017657071352005, -0.014251090586185455, -0.02913910150527954, -0.039418287575244904, -0.0067893932573497295, 0.03030679002404213, 0.04699056223034859, 0.06889354437589645, -0.018488379195332527, 0.009102651849389076, 0.019249146804213524, 0.0002591635275166482, -0.051732078194618225, -0.05757051706314087, -0.0007226170273497701, 0.027387572452425957, -0.00839496310800314, -0.010863029398024082, -0.04854747653007507, -0.012968404218554497, 0.04660133272409439, -0.05576590821146965, -0.019496837630867958, -0.02039914019405842, 0.03534907475113869, 0.03083755634725094, -0.0657443255186081, 0.01693146303296089, 0.0084524629637599, 0.04766286537051201, 0.03168678283691406, -0.04589364305138588, 0.045822873711586, 0.020859139040112495, 0.01986837387084961, 0.12434098869562149, 0.04235519841313362, 0.009208805859088898, 0.00882399920374155, 0.005148438736796379, -0.013578786514699459, 0.04285058006644249, 0.0018134535057470202, 0.047521330416202545, 0.011765332892537117, 0.01348147913813591, 0.03308447077870369, 0.048087481409311295, -0.04026751592755318, 0.004843248054385185, -0.00485209422186017, -0.07459043711423874, -0.020682215690612793, -0.021283753216266632, 0.03665829822421074, -0.009553804062306881, -0.00016323846648447216, 0.02054067887365818, 0.04235519841313362, -0.0533243790268898, 0.0255298875272274, -0.0476982519030571, -0.08456885814666748, 0.003965271171182394, 0.07275044918060303, 0.009730726480484009, -0.015241855755448341, 0.03338523581624031, -0.01674569584429264, 0.01836453378200531, -0.013693786226212978, 0.06588586419820786, -0.03508369252085686, 0.02184990420937538, 0.03589753434062004, -0.028820641338825226, -0.07536889612674713, 0.003217774210497737, -0.03439369425177574, -0.0612151138484478, 0.0014352821744978428, 0.017771843820810318, -0.06447048485279083, -0.023937586694955826, 0.05530590936541557, 0.0003955872089136392, -0.02361912652850151, 0.006170165259391069, -0.009323804639279842, 0.023530665785074234, 0.00036352002643980086, -0.009376881644129753, -0.027582185342907906, 0.05764128267765045, -0.004546903073787689, 0.015498393215239048, 0.02294682152569294, -0.062135111540555954, 0.018187612295150757, 0.011163797229528427, -0.011305334977805614, 0.07409505546092987, -0.050599776208400726, -0.03294293209910393, 0.08124271780252457, -0.003991809207946062, -0.051130544394254684, 0.014888010919094086, 0.013189557008445263, 0.02000991255044937, 0.04302750155329704, -0.04246135056018829, 0.005723436363041401, 0.016020314767956734, -0.0694596916437149, 0.024079125374555588, 0.010323416441679, 0.028643719851970673, 0.0071874684654176235, 0.004246135242283344, 0.03598599508404732, -0.009429958648979664, -0.0022634996566921473, 0.022539900615811348, -0.017621461302042007, -0.012561483308672905, -0.024804506450891495, -0.03593291714787483, -0.010801106691360474, -0.025901423767209053, -0.045610569417476654, 0.08633808046579361, -0.05403206869959831, 0.05077669769525528, 0.016135312616825104, 0.006103819236159325, -0.002521142829209566, 0.02275220677256584, -0.036375224590301514, -0.03294293209910393, 0.005139592569321394, 0.013826477341353893, -0.002152923261746764, -0.04062135890126228, 0.013171864673495293, 0.00489190174266696, 0.0551997572183609, -0.025105273351073265, -0.01697569526731968, -0.008815153501927853, 0.030501404777169228, -0.02144298329949379, -0.002910371869802475, -0.012579175643622875, -0.06666432321071625, -0.00837284792214632, 0.01967375911772251, 0.02395527809858322, 0.0019627318251878023, 0.0026029692962765694, 0.02167298085987568, 0.03736598789691925, -0.03672906756401062, 0.015365701168775558, -0.008173810318112373, -0.03349139168858528, -0.04097520560026169, -0.05261668935418129, 0.008563038893043995, -0.100633405148983, 0.0390644446015358, 0.057924360036849976, -0.0014021091628819704, 0.010978028178215027, -0.06372740864753723, 0.05410283803939819, 0.08032272011041641, 0.0136141711845994, -0.002527777338400483, 0.06804431229829788, -0.004604402929544449, -0.03536676615476608, -0.029086025431752205, -0.0030408520251512527, -0.024698352441191673, 0.015595700591802597, -0.011429180391132832, -0.014985318295657635, 0.0965288057923317, -0.06316126137971878, 0.030059099197387695, 0.023831432685256004, -0.02084144577383995, 0.014578397385776043, 0.04331057891249657, 0.024167586117982864, 0.04532749205827713, 0.009925341233611107, -0.016498005017638206, -0.02103606052696705, -0.036445993930101395, 0.07388275116682053, 0.0905134454369545, 0.02335374243557453, -0.025335272774100304, 0.0168960802257061, 0.01919606886804104, -0.05587206035852432, -0.07310429215431213, -0.01274725142866373, 0.04822901636362076, 0.00006824639422120526, 0.02204451896250248, 0.0390644446015358, 0.01701107807457447, 0.057287439703941345, 0.0563320592045784, 0.04829978570342064, -0.07968579977750778, 0.0121103310957551, -0.0045911334455013275, -0.02692757360637188, 0.010668414644896984, 0.00702381506562233, -0.09107960015535355, 0.03616291657090187, 0.02080606296658516, -0.04423057287931442, 0.007550159003585577, 0.05611975118517876, -0.032164473086595535, -0.04306288808584213, -0.0345529243350029, 0.013092249631881714, 0.00048653632984496653, 0.008810730651021004, 0.00505113136023283, 0.0033040239941328764, 0.015639930963516235, 0.002291143639013171, 0.029209870845079422, -0.0272283423691988, -0.0750858262181282, 0.062276650220155716, -0.02613142319023609, -0.08322425186634064, -0.012013023719191551, -0.015675315633416176, -0.0345529243350029, -0.014428013004362583, -0.031049862504005432, -0.02793603017926216, -0.05098900571465492, -0.05275822803378105, 0.0006800451083108783, -0.06018896400928497, -0.05611975118517876, -0.014366090297698975, -0.057216670364141464, 0.010190724395215511, 0.007227275986224413, -0.04451365023851395, 0.06436432898044586, -0.005634975153952837, -0.05764128267765045, 0.043239809572696686, 0.06464740633964539, 0.025246812030673027, -0.019886065274477005, 0.038285985589027405, -0.028856026008725166, -0.03499523177742958, -0.0627366453409195, -0.013145326636731625, 0.03412831202149391, -0.03027140535414219, 0.03177524358034134, -0.0705919936299324, 0.012667636387050152, -0.010518030263483524, -0.017674537375569344, -0.03320831432938576, 0.043169040232896805, -0.07119353115558624, -0.013508017174899578, 0.06238280236721039, 0.0038347907830029726, -0.053041305392980576, 0.02144298329949379, -0.07175968587398529, -0.050493624061346054, 0.03934751823544502, 0.06701816618442535, 0.03037755750119686, 0.04221365973353386, -0.02805987559258938, -0.055412065237760544, 0.0030762364622205496, 0.019213762134313583, -0.02568911761045456, -0.010447261855006218, -0.05268745869398117, 0.019709143787622452, -0.003343831514939666, 0.0015359066892415285, -0.03292524069547653, -0.03251831978559494, 0.03363293036818504, -0.014958780258893967, 0.003779502585530281, -0.010748029686510563, 0.014525320380926132, 0.04458441957831383, -0.02241605520248413, 0.021902980282902718, -0.028820641338825226, 0.03000602126121521, 0.026644498109817505, -0.03740137442946434, 0.022964514791965485, 0.035172153264284134, 0.04369980841875076, 0.028820641338825226, -0.0010493703885003924, -0.04596441239118576, 0.022433746606111526, 0.02482219785451889, -0.046813640743494034, -0.0755104348063469, -0.013357633724808693, 0.011190335266292095, -0.0345529243350029, -0.021991441026329994, -0.02809526026248932, -0.039524439722299576, 0.030554480850696564, 0.06443510204553604, -0.05803051218390465, 0.010748029686510563, 0.01983298920094967, -0.029599100351333618, -0.024539122357964516, 0.0037684449926018715, 0.03934751823544502, -0.06850431114435196, 0.0007933859014883637, 0.02786526270210743, -0.02823679894208908, -0.10686106979846954, 0.019213762134313583, 0.020664524286985397, -0.02361912652850151, -0.003219985868781805, 0.012251868844032288, 0.07310429215431213, 0.03363293036818504, -0.022504515945911407, -0.007855350151658058, 0.03345600515604019, -0.002607392380014062, -0.0043788268230855465, 0.002651622984558344, -0.04472595825791359, 0.059658199548721313, 0.001546964282169938, -0.03817983344197273, -0.00970418844372034, 0.00830207858234644, -0.06086127087473869, -0.0420721210539341, 0.035950612276792526, 0.05307668820023537, -0.02974063903093338, 0.024946043267846107, -0.008987653069198132, 0.02204451896250248, -0.07494428753852844, -0.062276650220155716, 0.0101376473903656, -0.00009675438195699826, 0.030200636014342308, 0.00385911762714386, 0.04709671437740326, 0.02448604628443718, -0.006970738526433706, -0.0004898536135442555, 0.007129968609660864, -0.029227564111351967, -0.01681646518409252, 0.011535333469510078, -0.011738794855773449, -0.022469131276011467, 0.046849023550748825, -0.010279185138642788, -0.0020644620526582003, -0.02669757418334484, 0.06885816156864166, 0.024079125374555588, 0.026149114593863487, -0.025476811453700066, 0.02275220677256584, 0.05024593323469162, 0.011783025227487087, 0.0272283423691988, -0.014693397097289562, -0.018037227913737297, 0.00008756271563470364, 0.035702917724847794, -0.0405505895614624, -0.01081879809498787, -0.021301444619894028, -0.0026096038054674864, 0.030412942171096802, 0.011031105183064938, -0.06546124815940857, 0.014525320380926132, -0.011314180679619312, 0.004604402929544449, 0.02031067945063114, -0.04224904626607895, 0.015595700591802597, -0.04585826024413109, -0.009111498482525349, 0.02913910150527954, 0.02080606296658516, -0.01813453622162342, -0.008492270484566689, 0.046212103217840195, -0.016807617619633675, -0.018576841801404953, 0.011721102520823479, 0.07041507214307785, 0.06634586304426193, -0.01829376630485058, 0.0022281152196228504, -0.012340330518782139, -0.04851209372282028, 0.02257528528571129, 0.036074455827474594, 0.043239809572696686, 0.01346378680318594, -0.07236121594905853, -0.003204505192115903, 0.005135169718414545, 0.026786034926772118, 0.013145326636731625, 0.06316126137971878, 0.016807617619633675, 0.0176479984074831 ]
729,331
tinytuya.BulbDevice
brightness
Return brightness value
def brightness(self): """Return brightness value""" return self.status()[self.DPS][self.DPS_INDEX_BRIGHTNESS[self.bulb_type]]
(self)
[ 0.030699901282787323, -0.07401429116725922, -0.0066252201795578, 0.0656859427690506, 0.037251073867082596, -0.026988733559846878, 0.008215098641812801, -0.027964439243078232, 0.025246400386095047, 0.0011194488033652306, -0.046276357024908066, -0.0342194139957428, 0.038819171488285065, -0.01020135823637247, -0.011246757581830025, 0.0012446788605302572, 0.025978179648518562, 0.02603045105934143, 0.031867265701293945, 0.012701605446636677, 0.013424673117697239, 0.0005126269534230232, 0.01204823050647974, 0.0004268714983481914, -0.0030795729253441095, 0.036554139107465744, 0.0383661650121212, -0.0145571893081069, -0.015829091891646385, -0.042931076139211655, 0.0045997584238648415, -0.034567881375551224, 0.03861009329557419, 0.0061330110765993595, -0.031257446855306625, 0.027424316853284836, 0.008437246084213257, 0.04871562123298645, -0.10126437246799469, 0.020960262045264244, -0.04070089012384415, -0.029497692361474037, -0.011447126045823097, -0.007330864667892456, 0.01672639325261116, -0.04380224272608757, 0.02547290362417698, -0.013067495077848434, 0.02840002253651619, -0.03854040056467056, 0.008768289349973202, 0.0389237105846405, -0.04115389660000801, 0.0049612922593951225, 0.00883362628519535, -0.003850555280223489, -0.0017140198033303022, 0.04634604975581169, -0.01675252802670002, 0.03742530569434166, -0.005958777852356434, 0.008297859691083431, 0.023085907101631165, -0.06495416164398193, 0.05481378734111786, 0.020350445061922073, -0.013729581609368324, 0.05045795440673828, -0.008990436792373657, 0.04209475591778755, 0.0076096379198133945, 0.004464727360755205, -0.014086759649217129, 0.012701605446636677, -0.04822776839137077, -0.025507749989628792, -0.016935473307967186, 0.01101154275238514, 0.01832933910191059, 0.015480625443160534, 0.03913279250264168, 0.030316589400172234, 0.05028372257947922, 0.003269051667302847, -0.01890430971980095, -0.08453798294067383, -0.053698692470788956, -0.010122952982783318, -0.023643454536795616, 0.02815609611570835, -0.023869957774877548, 0.01403449010103941, -0.019531549885869026, 0.039237331598997116, 0.02594333328306675, -0.009826756082475185, -0.0060981642454862595, 0.05693943053483963, 0.05930900573730469, 0.003199358470737934, -0.06443146616220474, 0.034045182168483734, 0.011098659597337246, -0.0277379360049963, -0.010175222530961037, 0.0059631336480379105, -0.013076206669211388, 0.004294849932193756, -0.011499395594000816, 0.016769951209425926, -0.012570930644869804, -0.022807134315371513, -0.01691805012524128, -0.0392024852335453, -0.016682835295796394, 0.015376086346805096, 0.005170372314751148, -0.003140554763376713, -0.019949709996581078, 0.038575246930122375, 0.018869463354349136, -0.005226998124271631, 0.018172530457377434, -0.017301363870501518, 0.05007464066147804, 0.08920743316411972, -0.019932284951210022, 0.017963450402021408, -0.006442274898290634, 0.04101451113820076, -0.0039028252940624952, 0.009765774942934513, -0.047844454646110535, -0.015201852656900883, 0.05268814042210579, -0.08119270205497742, 0.037076838314533234, 0.03350505605340004, 0.05721820518374443, 0.026187259703874588, -0.005122458096593618, -0.0007862276397645473, 0.023660877719521523, -0.04979586973786354, 0.03353990241885185, 0.02486308664083481, 0.043871935456991196, -0.006333379074931145, 0.004364543594419956, 0.038296472281217575, 0.008981725201010704, 0.025786522775888443, 0.017074860632419586, 0.026988733559846878, 0.0003027303027920425, -0.005414298735558987, 0.0004551844031084329, -0.038714632391929626, 0.014635594561696053, -0.019322469830513, -0.03766923397779465, -0.0035238678101450205, 0.019479278475046158, -0.06234066188335419, -0.010297185741364956, 0.030316589400172234, -0.04843685030937195, 0.023521490395069122, 0.035038311034440994, -0.0013045716332271695, 0.01937473937869072, -0.04895954951643944, -0.02900983951985836, 0.06439661234617233, 0.013590195216238499, 0.06467539072036743, -0.021413268521428108, 0.02655315026640892, 0.02867879532277584, 0.005052764900028706, 0.0227722879499197, 0.01554160751402378, -0.04735660180449486, -0.027476586401462555, 0.012928108684718609, -0.037494998425245285, 0.015349950641393661, -0.0073047298938035965, -0.013729581609368324, 0.007775159552693367, 0.04888985678553581, 0.007078226655721664, 0.04237353056669235, -0.021186765283346176, 0.03155364468693733, -0.03052566945552826, 0.013311421498656273, -0.045056723058223724, 0.03833131864666939, -0.0054622129537165165, 0.023399528115987778, -0.04369770362973213, -0.04624151065945625, 0.08056546002626419, 0.004743500612676144, -0.021239034831523895, 0.01271031703799963, 0.02942799963057041, -0.019827745854854584, -0.07373552024364471, -0.06812521070241928, 0.0265008807182312, -0.0017140198033303022, -0.0004129872831981629, 0.024270694702863693, -0.11603935807943344, 0.0007345021003857255, -0.0020243728067725897, 0.012814857065677643, 0.0392024852335453, -0.03183241933584213, -0.013050071895122528, 0.031396836042404175, -0.00274635199457407, -0.034184567630290985, 0.03941156342625618, -0.024113884195685387, -0.009957430884242058, 0.011246757581830025, -0.0019895262084901333, -0.014548477716743946, 0.017066149041056633, -0.045753657817840576, -0.002478468231856823, -0.01446136087179184, 0.02470627799630165, 0.008611478842794895, 0.016769951209425926, -0.03113548457622528, -0.03148395195603371, 0.055301640182733536, 0.010663076303899288, 0.05418654531240463, 0.055963724851608276, -0.030891558155417442, -0.11408794671297073, 0.018730076029896736, 0.012292156927287579, -0.04634604975581169, -0.04422040283679962, -0.05565010756254196, -0.037251073867082596, 0.04509156942367554, 0.04150236397981644, -0.011299027130007744, -0.018538419157266617, -0.03190211206674576, 0.015419644303619862, -0.011238045990467072, -0.02853940986096859, -0.0004796859575435519, -0.029515115544199944, 0.022371551021933556, 0.06572078913450241, -0.046380896121263504, 0.021570079028606415, 0.051433660089969635, -0.000051827591960318387, 0.023521490395069122, -0.0003250539302825928, 0.12161482125520706, 0.01098540797829628, -0.07234165072441101, -0.05348961427807808, -0.04429009556770325, -0.012274733744561672, 0.061399802565574646, 0.013241728767752647, 0.017118418589234352, -0.01167362928390503, -0.0039028252940624952, -0.03972518444061279, -0.006834299769252539, 0.04728690907359123, 0.0038962913677096367, -0.01223988737910986, 0.022092778235673904, -0.01923535205423832, -0.020576948300004005, 0.00856792088598013, 0.04275684431195259, 0.004917733836919069, -0.007400557864457369, 0.019200505688786507, 0.07338704913854599, -0.02420100010931492, 0.017815351486206055, -0.028278060257434845, -0.009365038014948368, -0.016273386776447296, -0.0023064129054546356, -0.04899439588189125, -0.008276079781353474, 0.03359217569231987, -0.06997208297252655, 0.0024828240275382996, 0.09722216427326202, -0.020542101934552193, -0.027058426290750504, -0.008384975604712963, 0.0006724315462633967, 0.026344070211052895, 0.04725206270813942, 0.03944641351699829, -0.01871265284717083, -0.0924830213189125, 0.02045498602092266, 0.027302352711558342, -0.011865285225212574, 0.04871562123298645, -0.00902528315782547, -0.0021038667764514685, 0.03212861344218254, 0.0593438521027565, 0.04125843942165375, -0.022336704656481743, 0.03212861344218254, 0.04258261248469353, 0.015036331489682198, 0.015463202260434628, -0.07861404865980148, -0.048924703150987625, 0.05875145643949509, 0.0004851307603530586, 0.04843685030937195, -0.04209475591778755, 0.010907002724707127, -0.006442274898290634, -0.01829449273645878, -0.004778347443789244, 0.003003346035256982, -0.0029031618032604456, 0.005719207227230072, 0.032337695360183716, 0.060981642454862595, 0.025978179648518562, 0.025385787710547447, 0.00778387114405632, 0.035038311034440994, -0.020942838862538338, 0.006716692354530096, -0.01391252689063549, -0.07126140594482422, 0.030438551679253578, 0.003754726843908429, -0.028940144926309586, -0.014043201692402363, -0.025507749989628792, 0.017623694613575935, 0.05258360132575035, 0.027947016060352325, -0.0002425653801765293, -0.028887875378131866, 0.019305046647787094, -0.021291306242346764, 0.031867265701293945, -0.0761747881770134, 0.0015779000241309404, 0.05084126815199852, -0.019444432109594345, 0.0007437582826241851, 0.02707584947347641, -0.027947016060352325, -0.013459520414471626, 0.002961965510621667, 0.03378383070230484, 0.006864790804684162, -0.037878312170505524, 0.044394638389348984, 0.016787376254796982, 0.001606212928891182, 0.0047914148308336735, -0.0549183264374733, -0.00011365998216206208, 0.041606903076171875, 0.006956263445317745, -0.015445779077708721, -0.07192349433898926, -0.06767220050096512, -0.0006119943573139608, -0.0049612922593951225, -0.003445462789386511, -0.051573045551776886, 0.0066905575804412365, -0.024322964251041412, -0.01217019371688366, 0.025194130837917328, -0.022528361529111862, 0.06906607002019882, -0.03061278536915779, -0.021517809480428696, -0.01386896800249815, -0.04258261248469353, -0.023364681750535965, -0.04564911499619484, -0.05362899973988533, -0.01424356922507286, 0.06868275254964828, -0.038157086819410324, -0.03315659239888191, -0.025350941345095634, 0.04756568372249603, -0.05585918575525284, 0.03739045932888985, 0.005771476775407791, -0.026378916576504707, 0.04031758010387421, -0.039620645344257355, -0.013424673117697239, -0.006420495919883251, -0.020733758807182312, -0.004283960442990065, 0.01672639325261116, -0.006956263445317745, -0.017153264954686165, 0.019967133179306984, 0.058089371770620346, 0.08077454566955566, 0.010706634260714054, 0.04805353656411171, 0.02301621437072754, -0.010358167812228203, -0.04376739636063576, -0.06829944252967834, 0.016055595129728317, -0.027041003108024597, 0.006481477525085211, -0.011917555704712868, 0.06613894551992416, -0.018886886537075043, 0.026344070211052895, 0.04432494193315506, 0.03434137627482414, -0.006795097608119249, 0.004800126422196627, -0.05909992381930351, -0.058333296328783035, -0.017353633418679237, 0.03899340704083443, -0.06941453367471695, -0.06854336708784103, -0.024270694702863693, 0.07129625231027603, -0.01769338920712471, 0.024061614647507668, -0.00840675551444292, -0.10997603833675385, -0.032389964908361435, 0.02986358292400837, -0.027650820091366768, -0.007718533743172884, 0.008297859691083431, -0.09617676585912704, -0.028887875378131866, -0.013172035105526447, 0.01824222318828106, 0.06937968730926514, -0.04331438988447189, 0.016578296199440956, 0.016360504552721977, 0.012919397093355656, 0.003778683952987194, 0.028940144926309586, 0.00029483536491170526, 0.003062149742618203, -0.017458174377679825, -0.008428534492850304, 0.0005700694746337831, 0.008537430316209793, -0.04296592250466347, -0.061260417103767395, 0.015306392684578896, -0.02447977475821972, -0.02150038443505764, -0.026431186124682426, -0.005331538151949644, -0.045997582376003265, 0.039760030806064606, 0.07331735640764236, -0.053977467119693756, -0.024410080164670944, 0.01101154275238514, 0.020960262045264244, -0.01937473937869072, -0.07638386636972427, -0.002052685711532831, 0.010471419431269169, -0.004730433225631714, 0.06767220050096512, 0.04209475591778755, -0.004118438810110092, -0.014644306153059006, -0.03746015205979347, -0.023556338623166084, -0.015628723427653313, -0.04822776839137077, -0.002034173347055912, -0.019409585744142532, 0.03679806739091873, 0.0000021949308575131, -0.007309085689485073, -0.008236877620220184, -0.021988239139318466, -0.004166353028267622, -0.03955095261335373, -0.032389964908361435, 0.035125426948070526, 0.06028471142053604, 0.020542101934552193, -0.023747993633151054, -0.010959272272884846, -0.015994613990187645, 0.014931791462004185, -0.002859603613615036, -0.020942838862538338, 0.020960262045264244, -0.022946521639823914, -0.03930702432990074, -0.05474409461021423, 0.044534023851156235, 0.005100679118186235, -0.02721523679792881, 0.010000989772379398, -0.0034933770075440407, -0.010514977388083935, 0.007431048899888992, -0.022232165560126305, -0.051015499979257584, -0.13813214004039764, -0.005166016519069672, 0.03507315739989281, -0.13227789103984833, 0.07610508799552917, -0.009243074804544449, 0.0145571893081069, -0.04753083735704422, -0.041362978518009186, -0.03509058058261871, 0.026675112545490265, -0.0038396655581891537, 0.07000692933797836, -0.014835963025689125, -0.03275585547089577, -0.047077830880880356, 0.04181598499417305, 0.024775970727205276, -0.00975706335157156, -0.003375769592821598, -0.0020701091270893812, -0.009452154859900475, 0.023364681750535965, -0.05666065961122513, 0.01634308136999607, 0.05052764713764191, -0.0662434920668602, -0.012056942097842693, -0.04794899374246597, 0.045718807727098465, -0.008371908217668533, -0.08830142021179199, -0.003998653497546911, 0.036972299218177795, 0.022598054260015488, -0.021204188466072083, 0.008559209294617176, 0.04286138340830803, 0.044777948409318924, -0.009033994749188423, -0.017675964161753654, 0.0043253409676253796, -0.01846872642636299, -0.01647375524044037, -0.0212564580142498, -0.02371314726769924, -0.03542162477970123, -0.000762815005145967, 0.026396339759230614, 0.033801253885030746, 0.005666937213391066, -0.0064379191026091576, 0.008724730461835861, -0.02503732033073902, -0.012448967434465885, -0.0416765995323658, -0.00398776400834322, -0.0317452996969223, -0.026344070211052895, -0.03169303014874458, 0.015376086346805096, 0.03798285126686096, 0.03104836866259575, -0.03930702432990074, 0.009826756082475185, -0.003722058143466711, -0.013807986862957478, 0.0028400023002177477, 0.05711366608738899, -0.04296592250466347, -0.017841486260294914, -0.029602231457829475, -0.0032908308785408735, -0.019740629941225052, -0.04767022281885147, 0.06474508345127106, 0.02669253759086132, -0.0021550478413701057, 0.025769099593162537, 0.005004850681871176, -0.023277563974261284, 0.05456985905766487, -0.0033539903815835714, 0.0646056979894638, -0.0068255881778895855, 0.006093808449804783, 0.010933137498795986, -0.02716296724975109, 0.01717068813741207, -0.02489793486893177, 0.016377927735447884, -0.04606727510690689, -0.002696259878575802, 0.05070188269019127, -0.004327518865466118, -0.021848851814866066, -0.05937869846820831, 0.01384283322840929, 0.0353345051407814, -0.013320133090019226, 0.008685528300702572, 0.03676322102546692, 0.04422040283679962, 0.031867265701293945, 0.008524362929165363, 0.02782505378127098, 0.05390777438879013, 0.023138178512454033, -0.1120668351650238, 0.02381768822669983, -0.04000395908951759, -0.03331340104341507, -0.03610113263130188, -0.041362978518009186, -0.006259330082684755, 0.036832913756370544, -0.027511432766914368, 0.007857920601963997, 0.07035539299249649, 0.039341870695352554, -0.008524362929165363, 0.01661314256489277, -0.12663273513317108, -0.008136693388223648, -0.02301621437072754, -0.009304056875407696, 0.021796582266688347, -0.03397548571228981, -0.026431186124682426, -0.0095915412530303, -0.028853029012680054, -0.06397845596075058, 0.05230482667684555, 0.008537430316209793, -0.014278416521847248, -0.029271189123392105, -0.012492525391280651, 0.012753874994814396, -0.002146336017176509, 0.028940144926309586, 0.12091788649559021, 0.002352149225771427, 0.05798483267426491, 0.024584313854575157, 0.011647493578493595, 0.02381768822669983, 0.07652325183153152, 0.04662482440471649, -0.0560334175825119, 0.002818223088979721, 0.0011695408029481769, 0.010314609855413437, -0.08460767567157745, -0.08523491770029068, -0.003728591836988926, 0.030630208551883698, -0.015010195784270763, 0.010602094233036041, 0.034567881375551224, -0.005571108777076006, 0.009852890856564045, 0.02674480713903904, -0.0028530696872621775, -0.03658898547291756, -0.057287897914648056, 0.0058281030505895615, 0.025681983679533005, -0.018277069553732872, 0.047182369977235794, -0.028278060257434845, 0.04010849818587303, 0.004586690571159124, 0.0013437740271911025, 0.07331735640764236, -0.007374423090368509, -0.0027594193816184998, 0.056068263947963715, 0.036693524569272995, -0.11227592080831528, -0.016665412113070488, -0.04077058658003807, 0.03979487717151642, -0.053838081657886505, 0.01909596659243107, 0.057531826198101044, 0.0389237105846405, -0.011333874426782131, 0.03627536818385124, 0.05052764713764191, 0.04192052409052849, -0.0325641967356205, 0.02169204130768776, -0.013058783486485481, -0.022563207894563675, -0.028905298560857773, -0.0048131938092410564, 0.011028965935111046, 0.016465043649077415, 0.04432494193315506, -0.008215098641812801, 0.03822677955031395, -0.013999642804265022, 0.06732373684644699, -0.016621854156255722, -0.03500346466898918, -0.04488249123096466, 0.004861108027398586, 0.008676816709339619, 0.024654006585478783, 0.0208382997661829, 0.02150038443505764, -0.013990931212902069, 0.059274159371852875, 0.0226329006254673, 0.0029184073209762573, 0.04233868420124054, 0.08209871500730515, -0.010549824684858322, 0.01015779934823513, 0.012631911784410477, 0.01273645181208849, 0.006838655564934015, 0.0347769595682621, -0.026709960773587227, -0.032808125019073486, 0.03812224045395851, -0.007343932054936886, 0.06690557301044464, -0.06122557073831558, -0.0095915412530303 ]
729,332
tinytuya.core
close
null
def close(self): self.__del__()
(self)
[ 0.019966455176472664, -0.013121766969561577, 0.02096811681985855, 0.012779532931745052, -0.043338559567928314, -0.04163573309779167, -0.03709486871957779, 0.09355519711971283, -0.0018290758598595858, 0.020150093361735344, -0.03569254279136658, -0.050717465579509735, 0.03766247630119324, 0.025442205369472504, -0.03929852321743965, 0.0051919459365308285, -0.040066465735435486, -0.016560805961489677, -0.0035120761021971703, -0.019515706226229668, -0.03452393785119057, 0.014782856218516827, 0.00046952886623330414, -0.07258708029985428, -0.018614212051033974, 0.033922940492630005, -0.015450630336999893, 0.023956406861543655, -0.001882289070636034, -0.030717622488737106, -0.08487413078546524, -0.015550796873867512, 0.03676098212599754, 0.056259993463754654, 0.008864705450832844, 0.0014659735606983304, -0.03325516730546951, -0.0368945375084877, 0.02951562963426113, 0.036260150372982025, 0.03856397047638893, 0.004920662846416235, 0.014891369268298149, -0.04176928848028183, 0.02983282133936882, 0.01752907782793045, -0.005300459451973438, -0.00401499355211854, 0.00533802155405283, -0.022604163736104965, 0.008931483142077923, 0.01974942721426487, -0.00022172197350300848, -0.00548827089369297, -0.0325373075902462, 0.05449039116501808, 0.03038373589515686, 0.028714299201965332, 0.020100010558962822, -0.021535724401474, 0.026293616741895676, 0.02318846620619297, -0.03469087928533554, -0.02873099409043789, 0.007867217063903809, 0.0012979864841327071, -0.0075416769832372665, 0.057662319391965866, 0.08006615191698074, -0.00019133301975671202, -0.004962398670613766, -0.026126673445105553, -0.005254549905657768, 0.03722842410206795, 0.0071410126984119415, -0.05021663382649422, -0.01844726875424385, -0.01663593016564846, 0.02135208621621132, -0.057962819933891296, 0.014849632978439331, 0.034290216863155365, -0.029231823980808258, 0.06063391640782356, 0.04504138231277466, -0.04183606803417206, 0.05599288269877434, -0.006974068935960531, -0.03702808916568756, 0.03956563398241997, -0.001043397467583418, 0.02816338650882244, -0.00851412396878004, -0.02792966365814209, 0.03629354014992714, -0.043405335396528244, -0.04417327791452408, 0.02238713763654232, 0.004478262271732092, -0.05058391019701958, -0.013881360180675983, 0.009465701878070831, -0.03198639303445816, 0.005037523340433836, 0.01079290360212326, -0.0012969430536031723, 0.006439849268645048, -0.06073408201336861, -0.06063391640782356, 0.011260345578193665, -0.08587578684091568, -0.014256983995437622, -0.019448930397629738, 0.042904507368803024, 0.008209452033042908, -0.027829498052597046, -0.038597360253334045, 0.040333572775125504, 0.02595973014831543, -0.013180197216570377, -0.02878107689321041, 0.03425682708621025, -0.08206947147846222, -0.056493714451789856, 0.04040035232901573, 0.07252030074596405, 0.0028484752401709557, 0.02330532670021057, 0.023889629170298576, 0.024624181911349297, -0.0026251880917698145, 0.04527510330080986, -0.004453220404684544, 0.008714456111192703, 0.016961470246315002, -0.005930671468377113, 0.02582617476582527, -0.03599303960800171, -0.01393144391477108, 0.02073439583182335, -0.059264980256557465, 0.032453835010528564, 0.007812961004674435, 0.0032783548813313246, 0.015500713139772415, 0.03542543202638626, -0.031702589243650436, -0.018547434359788895, -0.08433990925550461, -0.03926513344049454, -0.009173550643026829, -0.012729449197649956, 0.03722842410206795, 0.005976581014692783, -0.026126673445105553, -0.006878076586872339, -0.03926513344049454, 0.044507164508104324, -0.014181858859956264, -0.03280441835522652, 0.03846380487084389, 0.04717826098203659, -0.024824513122439384, -0.017879659309983253, -0.027846192941069603, -0.024824513122439384, 0.03522510081529617, 0.022570775821805, -0.018063297495245934, -0.006277079228311777, -0.07459039986133575, -0.03605981916189194, 0.015350463800132275, 0.019298680126667023, -0.06273740530014038, 0.06413973122835159, 0.015959808602929115, -0.004737024661153555, -0.011327123269438744, 0.008839664049446583, -0.010425628162920475, -0.0776621624827385, -0.056493714451789856, 0.0005383930983953178, 0.024824513122439384, -0.019081654027104378, -0.0008388916030526161, 0.005312980152666569, 0.0025688447058200836, -0.01208671648055315, 0.0022120026405900717, -0.009056690149009228, -0.004970745649188757, 0.026160063222050667, 0.07038342207670212, -0.01208671648055315, -0.019348762929439545, -0.017245274037122726, 0.018547434359788895, 0.03525848686695099, -0.027712637558579445, 0.06250368803739548, 0.017996519804000854, -0.07065053284168243, 0.02589295245707035, 0.022153416648507118, 0.011594233103096485, -0.03686114773154259, -0.038530584424734116, 0.00850160326808691, 0.0325373075902462, 0.0339062437415123, -0.0050750854425132275, 0.0074456846341490746, 0.07525817304849625, -0.045308493077754974, -0.02098480984568596, -0.027695942670106888, -0.029131658375263214, 0.03093464858829975, 0.028196774423122406, 0.014757814817130566, -0.0007762877503409982, -0.0007392471306957304, -0.045308493077754974, 0.015634268522262573, 0.014799550175666809, 0.011051665991544724, 0.051452018320560455, -0.03350558131933212, -0.016894692555069923, 0.042837727814912796, 0.0226876363158226, -0.03076770529150963, 0.0020398420747369528, -0.0012249486753717065, -0.05198623612523079, 0.041001349687576294, -0.09368874877691269, -0.02332202158868313, -0.00036492827348411083, -0.04310483857989311, 0.0028276073280721903, 0.010158518329262733, 0.03086787275969982, 0.08787911385297775, 0.04397294297814369, 0.029565712437033653, 0.06911464780569077, -0.026427172124385834, 0.014816245064139366, -0.0918857604265213, 0.053722452372312546, -0.019215209409594536, 0.021185142919421196, -0.09909772127866745, -0.010392239317297935, -0.06884754449129105, 0.014590870589017868, 0.020033232867717743, 0.013514084741473198, 0.03285450115799904, 0.02121853269636631, 0.04914819821715355, 0.04367244616150856, 0.02403987944126129, 0.06517478078603745, -0.026226839050650597, 0.008906440809369087, -0.02933199144899845, 0.07666049897670746, -0.03056737408041954, -0.02055075764656067, -0.047144874930381775, -0.03499137982726097, 0.020016537979245186, -0.02626022882759571, -0.02403987944126129, -0.08781233429908752, -0.008413957431912422, 0.08954855054616928, 0.020650923252105713, 0.04557560384273529, 0.011034972034394741, -0.017913049086928368, 0.029165048152208328, -0.011260345578193665, 0.013263668864965439, 0.0037896197754889727, -0.022170109674334526, -0.03639370575547218, -0.020216871052980423, -0.0004100552177987993, 0.06721149384975433, 0.07338840514421463, -0.008831316605210304, -0.04534188285470009, 0.03876430541276932, 0.003948216326534748, 0.015893030911684036, -0.016251958906650543, -0.03746214509010315, -0.008050855249166489, 0.060366805642843246, -0.012278702110052109, 0.0072119636461138725, 0.03539204224944115, 0.02355574257671833, 0.042103175073862076, 0.04657726362347603, 0.04016663134098053, 0.018480656668543816, -0.03833024948835373, 0.045174937695264816, 0.04096795991063118, -0.011427289806306362, -0.014549135230481625, -0.007896432653069496, -0.01974942721426487, 0.06400617957115173, -0.012620936147868633, -0.06373906880617142, 0.02983282133936882, 0.012529117055237293, 0.0054131462238729, -0.014816245064139366, -0.023038217797875404, 0.06073408201336861, 0.02213672176003456, -0.028397107496857643, -0.01851404458284378, -0.017996519804000854, 0.0298995990306139, -0.052253346890211105, -0.012721102684736252, -0.0329880565404892, 0.01821354776620865, -0.05836348235607147, 0.0012948563089594245, -0.041368626058101654, -0.054724112153053284, -0.0005827374989166856, -0.010275378823280334, -0.016327084973454475, -0.11245320737361908, 0.04243706539273262, -0.021752750501036644, -0.05031680315732956, 0.05906464532017708, -0.003088456578552723, 0.04784603789448738, 0.04113490507006645, 0.022103331983089447, 0.023889629170298576, 0.015016577206552029, -0.015517408028244972, 0.025325344875454903, 0.059264980256557465, 0.008656025864183903, -0.04564237967133522, 0.03796297684311867, -0.042904507368803024, -0.033922940492630005, -0.012111757881939411, 0.022954745218157768, -0.02465756982564926, -0.035158321261405945, -0.011051665991544724, -0.0058221579529345036, 0.013246974907815456, -0.009449007920920849, -0.0845402404665947, -0.007483246736228466, 0.06250368803739548, 0.03565915301442146, 0.013764499686658382, 0.0334554985165596, 0.06407295167446136, 0.027595777064561844, 0.01217853557318449, 0.013764499686658382, 0.016594193875789642, 0.01981620490550995, -0.028463883325457573, 0.00024741562083363533, -0.053388562053442, 0.002176527166739106, -0.0019156777998432517, -0.015458977781236172, 0.03050059638917446, 0.051151517778635025, -0.05812976136803627, 0.006494106259196997, -0.019348762929439545, 0.0032867020927369595, 0.02442384883761406, 0.00914016179740429, -0.009090078994631767, 0.010375544428825378, 0.005154383834451437, 0.014165164902806282, 0.031051509082317352, -0.04781264811754227, -0.004250801634043455, 0.043138228356838226, 0.024557404220104218, 0.0010000965557992458, -0.001943849609233439, 0.0614018552005291, -0.027094947174191475, -0.02424021065235138, -0.010317114181816578, 0.006239517126232386, -0.036694202572107315, 0.05632677301764488, -0.020584145560860634, 0.03038373589515686, 0.03646048158407211, 0.11592563986778259, 0.05916481092572212, -0.010542488656938076, 0.045976266264915466, -0.0014273677952587605, -0.000661514000967145, -0.09248675405979156, -0.064607173204422, -0.029799433425068855, 0.001267727930098772, 0.01100993063300848, 0.014532440342009068, -0.07612628489732742, -0.0453752726316452, 0.006322988774627447, 0.0028881242033094168, -0.03111828677356243, 0.027762720361351967, -0.04691115394234657, -0.006231170147657394, -0.0027650033589452505, 0.049849361181259155, 0.05302128940820694, -0.020801173523068428, 0.020517367869615555, -0.028831159695982933, 0.03579270839691162, -0.06193607673048973, 0.05485766753554344, 0.03407318890094757, 0.021919695660471916, 0.009073385037481785, -0.010817945003509521, 0.013864666223526001, 0.0011748656397685409, -0.040500517934560776, 0.008656025864183903, -0.027579082176089287, 0.007733662147074938, -0.040634073317050934, 0.0070283254608511925, 0.029849516227841377, -0.028380412608385086, 0.06567561626434326, 0.01640220917761326, -0.047144874930381775, -0.055525440722703934, 0.009983227588236332, 0.016260307282209396, -0.006080920808017254, -0.014398885890841484, 0.011752829886972904, -0.017679328098893166, -0.0034035625867545605, -0.04724504053592682, -0.03407318890094757, -0.043639056384563446, 0.01543393637984991, -0.017145108431577682, 0.045909490436315536, 0.0274956114590168, -0.04267078638076782, 0.0027044862508773804, -0.09041665494441986, 0.03093464858829975, -0.015266992151737213, -0.05238690227270126, 0.03160242363810539, 0.07525817304849625, -0.07231996953487396, -0.0050500440411269665, -0.011093402281403542, -0.02403987944126129, -0.0073288241401314735, -0.021185142919421196, -0.04657726362347603, 0.059131424874067307, 0.002108706394210458, -0.05559222027659416, -0.053722452372312546, -0.04871414229273796, -0.12767846882343292, 0.004649379290640354, 0.008401436731219292, -0.07272063195705414, -0.014198553748428822, 0.04891447350382805, -0.028313634917140007, 0.045675769448280334, -0.013664334081113338, -0.0298995990306139, -0.043639056384563446, -0.073321633040905, -0.028564050793647766, 0.019582483917474747, 0.026894614100456238, 0.05158557370305061, -0.011585885658860207, -0.05091779679059982, 0.004920662846416235, 0.020083315670490265, 0.003274181392043829, 0.04580932483077049, 0.028463883325457573, -0.0013094638707116246, -0.025993118062615395, -0.023038217797875404, -0.06267062574625015, -0.011185221374034882, 0.019782816991209984, 0.03789619728922844, 0.06440684199333191, 0.055391885340213776, -0.022620858624577522, -0.026126673445105553, -0.04951547086238861, -0.00024480713182128966, 0.0007762877503409982, -0.05425667017698288, -0.07412295788526535, 0.058597203344106674, 0.019882982596755028, -0.021986471489071846, -0.01695312187075615, 0.038964636623859406, -0.003470340045168996, -0.030367041006684303, 0.011377206072211266, 0.0053797573782503605, 0.0009766201255843043, 0.040867794305086136, 0.0469779297709465, 0.03260408714413643, 0.002378946403041482, 0.06931498646736145, -0.0050291758961975574, -0.007646016776561737, 0.045174937695264816, 0.03562576323747635, -0.02337210439145565, 0.0485805869102478, -0.03489121422171593, -0.029165048152208328, 0.0829375833272934, 0.025909647345542908, -0.015801211819052696, 0.04397294297814369, 0.018480656668543816, 0.05302128940820694, -0.007224484346807003, 0.038897860795259476, -0.021251920610666275, -0.01938215270638466, -0.0662098303437233, 0.08026648312807083, -0.029632490128278732, 0.017195191234350204, 0.0224539153277874, -0.007583413273096085, 0.0055884369648993015, -0.005630172789096832, -0.04053390771150589, -0.013814583420753479, 0.030116625130176544, -0.03522510081529617, -0.07018309086561203, -0.02403987944126129, 0.029382074251770973, 0.02909827046096325, 0.008747844956815243, -0.012721102684736252, -0.014231941662728786, 0.03267086297273636, 0.0029215130489319563, -0.0004577906511258334, -0.0517859049141407, -0.0018687249394133687, 0.007746183313429356, 0.021084977313876152, -0.01491641066968441, -0.01695312187075615, 0.04644370824098587, 0.040433742105960846, 0.01232878491282463, -0.009891408495604992, 0.011953162029385567, -0.022921357303857803, 0.09615951776504517, -0.02946554496884346, 0.03555898740887642, -0.018614212051033974, 0.02589295245707035, -0.048447031527757645, -0.034106578677892685, 0.009891408495604992, -0.0192485973238945, -0.03093464858829975, -0.004628511145710945, -0.01389805506914854, -0.0009813153883442283, -0.03365582972764969, 0.02676105871796608, -0.020767783746123314, -0.03045051358640194, 0.004154808819293976, 0.009273717179894447, -0.01640220917761326, 0.03499137982726097, -0.03445715829730034, 0.0352918766438961, -0.031518951058387756, 0.05038357898592949, -0.01821354776620865, -0.03338871896266937, 0.03599303960800171, 0.016894692555069923, 0.01702824793756008, 0.01085968129336834, -0.007099276874214411, 0.01583459973335266, 0.03400641307234764, -0.0167277492582798, 0.02676105871796608, -0.010767862200737, 0.011619274504482746, -0.007416469510644674, -0.05719487741589546, -0.028897937387228012, 0.005980754736810923, -0.04016663134098053, 0.03652726113796234, -0.06173574551939964, -0.030066542327404022, 0.03899802640080452, 0.019098348915576935, -0.053388562053442, 0.016368819400668144, -0.0529211200773716, 0.040133241564035416, -0.007061714306473732, -0.01709502562880516, 0.05676082521677017, -0.02412335015833378, -0.013923096470534801, 0.004100552294403315, 0.005809637252241373, 0.016068322584033012, 0.00846821442246437, -0.0008717586169950664, 0.0481131449341774, -0.04317161440849304, -0.011686052195727825, -0.013029947876930237, 0.018313713371753693, -0.03038373589515686, 0.00532132713124156, -0.005630172789096832, 0.03702808916568756, 0.017879659309983253, -0.010208601132035255, -0.038296863436698914, 0.0265774205327034, -0.05045035481452942, 0.08380568772554398, -0.007758704014122486, -0.03455732390284538, 0.052320126444101334, 0.07499106228351593, -0.036694202572107315, 0.03445715829730034, -0.00950743816792965, -0.07045020163059235, -0.0240565724670887, 0.0022808669600635767, -0.00035162497078999877, -0.03636031597852707, -0.09014954417943954, 0.010559182614088058, 0.005463229492306709, -0.0701163113117218, 0.0069824159145355225, -0.017128413543105125, 0.012913087382912636, -0.0400998517870903, 0.03883108124136925, -0.012195230461657047, 0.034356992691755295, 0.03156903386116028, 0.021051587536931038, -0.007733662147074938, -0.017579160630702972, 0.02570931427180767, 0.05045035481452942, 0.03796297684311867, -0.0027816977817565203, 0.03569254279136658, 0.06824654340744019, 0.028797771781682968, -0.05198623612523079, -0.03106820397078991, 0.0002744135563261807, 0.007641843520104885, 0.023655908182263374, 0.01576782390475273, 0.043939556926488876, -0.011327123269438744, 0.006164392456412315, -0.023221854120492935, -0.05412311479449272, 0.01119356881827116, -0.030901260673999786, 0.025559065863490105, -0.06687760353088379, -0.06694438308477402, -0.03171928599476814, 0.0657423883676529, -0.06046697124838829, -0.057061322033405304, 0.07211963832378387, 0.040567293763160706, 0.06267062574625015, 0.008747844956815243, -0.054523780941963196, -0.003804227337241173, -0.0009124511270783842, 0.007015804760158062, 0.060934413224458694, 0.00947404932230711, -0.02325524389743805, 0.06357212364673615, -0.006681917700916529, -0.0051001268438994884, 0.03205317258834839, 0.01064265426248312, 0.03449054807424545, 0.06033341586589813, 0.013998220674693584, -0.006477411836385727, -0.019899677485227585, 0.012462340295314789, -0.03522510081529617, 0.0031990567222237587, -0.01232878491282463, 0.026594115421175957, 0.022120026871562004, -0.03153564780950546, 0.03442377224564552, 0.02565923146903515, 0.026710975915193558, 0.005913977045565844 ]
729,333
tinytuya.BulbDevice
colour_hsv
Return colour as HSV value
def colour_hsv(self): """Return colour as HSV value""" hexvalue = self.status()[self.DPS][self.DPS_INDEX_COLOUR[self.bulb_type]] return BulbDevice._hexvalue_to_hsv(hexvalue, self.bulb_type)
(self)
[ -0.016152868047356606, -0.10103294253349304, -0.07194086909294128, -0.01851142942905426, -0.00036881910637021065, 0.0009073654655367136, 0.010045034810900688, 0.03831959888339043, -0.004735919181257486, 0.0016162263927981257, -0.021123703569173813, -0.03950358182191849, 0.06292007118463516, -0.020860595628619194, 0.01207471452653408, -0.01528837438672781, 0.07077568024396896, 0.018915487453341484, 0.02971225418150425, -0.012892224825918674, 0.01879332959651947, 0.0012309631565585732, 0.005591015797108412, -0.01652873307466507, -0.012525754980742931, -0.011135048232972622, 0.03461731597781181, -0.00798716489225626, -0.02384873665869236, -0.03281315416097641, -0.025408582761883736, -0.0064132241532206535, -0.02330372855067253, 0.03256884217262268, -0.011548501439392567, 0.03191107511520386, 0.007921388372778893, 0.0033593077678233385, -0.03901495411992073, 0.005684982519596815, -0.03418506681919098, -0.04664504528045654, 0.022946655750274658, 0.020296797156333923, -0.0032676903065294027, -0.02971225418150425, 0.0035683836322277784, 0.01401042751967907, 0.026592561975121498, -0.04826127365231514, -0.002457228023558855, 0.00043694491614587605, -0.05363616347312927, 0.04002979397773743, 0.04931369796395302, -0.020108863711357117, -0.0017595255048945546, 0.04777264595031738, -0.020108863711357117, 0.08208926767110825, -0.01499707717448473, -0.006432017311453819, 0.05081716552376747, -0.014536640606820583, 0.03315143287181854, 0.03059554100036621, 0.01680123805999756, 0.022533202543854713, 0.01962023600935936, 0.02717515453696251, -0.009847705252468586, 0.022627169266343117, -0.0028683319687843323, 0.010326934978365898, -0.008433506824076176, -0.00024945210316218436, -0.02273993007838726, 0.0076817735098302364, 0.01180221140384674, -0.014555434696376324, 0.05585377663373947, 0.02240164950489998, 0.03649664670228958, -0.002501862123608589, -0.003634160151705146, -0.047284018248319626, -0.025107888504862785, 0.008503981865942478, -0.07152741402387619, 0.025690482929348946, -0.0030210278928279877, -0.025013921782374382, -0.09471838176250458, 0.04487847164273262, 0.01136996503919363, -0.0483364462852478, 0.032380908727645874, 0.020597489550709724, 0.0404808335006237, -0.028998108580708504, -0.028490688651800156, 0.023397695273160934, 0.00011283338972134516, -0.027551021426916122, -0.058447256684303284, -0.009359078481793404, -0.00784621573984623, 0.0437132865190506, 0.00041873889858834445, -0.03339574858546257, 0.007371683605015278, 0.050591643899679184, 0.01136996503919363, -0.040292900055646896, -0.009716151282191277, -0.02465684898197651, 0.03792494162917137, -0.015025267377495766, -0.007489142008125782, 0.006671632174402475, -0.023059416562318802, -0.004719474818557501, 0.020635075867176056, 0.017177103087306023, 0.01119142770767212, 0.07757886499166489, -0.05130579322576523, -0.009678564965724945, -0.012450581416487694, 0.03504956141114235, 0.016322007402777672, 0.04818609729409218, -0.02606634981930256, -0.06720495223999023, 0.03305746614933014, -0.04326224699616432, 0.011539104394614697, 0.03339574858546257, 0.06555113941431046, 0.004002979490906, -0.010467885062098503, -0.000009736192623677198, -0.018389273434877396, -0.051493722945451736, 0.02802085503935814, 0.03726717457175255, 0.0392780601978302, -0.002966996980831027, -0.015044060535728931, 0.07107637822628021, -0.007216638885438442, 0.020428350195288658, 0.049764737486839294, 0.039127714931964874, 0.0049614389427006245, -0.022627169266343117, -0.015917951241135597, -0.027099981904029846, 0.051193032413721085, 0.01528837438672781, -0.008555663749575615, 0.009396664798259735, 0.056004125624895096, -0.02689325623214245, -0.034354206174612045, 0.0035824785009026527, -0.043337419629096985, 0.013559387996792793, 0.018633587285876274, 0.0012521055759862065, -0.009133558720350266, -0.048712313175201416, -0.06976084411144257, 0.07141465693712234, 0.003077407833188772, -0.0017841918161138892, -0.02828396111726761, 0.03147882968187332, 0.05273408442735672, -0.02948673442006111, -0.016998566687107086, 0.026818081736564636, -0.020860595628619194, -0.014856127090752125, 0.055440325289964676, 0.001875809277407825, 0.030388815328478813, -0.006525984033942223, -0.009020798839628696, -0.03397833928465843, 0.021537156775593758, -0.015523291192948818, 0.03305746614933014, 0.03260642662644386, 0.06634045392274857, -0.05769552290439606, -0.0005150546785444021, -0.012234457768499851, -0.022063368931412697, -0.03136606886982918, 0.026141522452235222, -0.03591405227780342, -0.06355904042720795, 0.024205809459090233, -0.008395920507609844, -0.02302183024585247, 0.02360442280769348, -0.05194476619362831, 0.02409304864704609, -0.037436313927173615, -0.059650029987096786, 0.024825988337397575, -0.0028072537388652563, 0.0471336729824543, 0.041382912546396255, -0.08329203724861145, -0.026498595252633095, 0.01962023600935936, 0.014489657245576382, 0.016735460609197617, -0.018004009500145912, -0.03621474653482437, 0.025295821949839592, 0.028772588819265366, -0.03285074234008789, -0.00708508538082242, -0.045893311500549316, -0.012835844419896603, 0.003004583762958646, -0.015325960703194141, 0.012685498222708702, 0.03538784012198448, -0.009781928732991219, 0.03920288756489754, -0.0632583498954773, 0.05912381783127785, 0.02943035587668419, 0.0017642239108681679, -0.02078542299568653, 0.003833839436993003, -0.005713172256946564, 0.03499317914247513, 0.0785561203956604, 0.03681613504886627, 0.025277029722929, -0.04656987264752388, 0.025709275156259537, 0.03893978148698807, -0.054012030363082886, 0.00512588070705533, -0.08088649064302444, -0.07242949306964874, 0.04844920337200165, 0.01302377786487341, -0.03754907473921776, -0.00617360882461071, -0.04401398077607155, 0.04506640508770943, 0.0040828511118888855, -0.023698389530181885, -0.03591405227780342, -0.02550254948437214, 0.07265501469373703, 0.04487847164273262, 0.011708244681358337, 0.018041597679257393, 0.028396721929311752, 0.0566055104136467, -0.008607345633208752, 0.001173408585600555, 0.15560877323150635, -0.008809373714029789, -0.08336721360683441, -0.03471128270030022, -0.009002004750072956, -0.007803930435329676, -0.01556087750941515, -0.02777654118835926, 0.03860149905085564, 0.024769609794020653, 0.015072250738739967, -0.06637804210186005, 0.007592505309730768, 0.022345269098877907, 0.01877453736960888, 0.03692889213562012, 0.014132584445178509, -0.08201409131288528, 0.017534177750349045, 0.0025300520937889814, 0.004984930623322725, -0.025671688839793205, -0.06795667856931686, 0.03612077981233597, 0.05814656242728233, 0.042097058147192, 0.018097976222634315, 0.029655875638127327, -0.02050352282822132, 0.008114020340144634, 0.02273993007838726, -0.06107832491397858, -0.015382341109216213, -0.0011387583799660206, -0.0954701155424118, -0.006765598896890879, 0.04931369796395302, 0.0007881452911533415, 0.007334097288548946, -0.07385778427124023, -0.04296155273914337, 0.02803964912891388, 0.022213716059923172, 0.01319291815161705, -0.0015187360113486648, -0.030670715495944023, -0.025953589007258415, -0.011858591809868813, 0.02747584879398346, 0.035481806844472885, -0.05292201787233353, -0.010637025348842144, 0.008987910114228725, 0.041119806468486786, 0.042773619294166565, -0.006276972126215696, -0.01417017076164484, -0.0027156362775713205, 0.02024041675031185, 0.016359593719244003, -0.032136593014001846, -0.05871036276221275, 0.06758081167936325, 0.015241391025483608, 0.09118523448705673, -0.09832670539617538, 0.028227582573890686, 0.04878748580813408, -0.02691204845905304, -0.005266830790787935, 0.007413968909531832, 0.019714202731847763, 0.014668194577097893, -0.00043900046148337424, 0.050591643899679184, -0.010580644942820072, -0.03339574858546257, -0.015419927425682545, -0.0022082163486629725, 0.04829885810613632, 0.0010025067022070289, -0.0483364462852478, -0.0359516404569149, 0.04792299121618271, 0.015401134267449379, -0.02976863458752632, -0.007465650327503681, -0.06814461201429367, 0.03162917494773865, 0.018633587285876274, 0.005666188895702362, 0.02751343511044979, -0.013042571023106575, 0.031854692846536636, -0.036646995693445206, -0.006690425332635641, -0.10238606482744217, -0.009772531688213348, 0.036609407514333725, 0.013258694671094418, -0.024581676349043846, 0.05743241682648659, 0.019000057131052017, -0.02522064931690693, -0.008691915310919285, 0.013296280987560749, -0.010326934978365898, 0.011849194765090942, 0.03286953270435333, -0.024468915536999702, 0.007150862365961075, -0.004301323555409908, -0.02550254948437214, -0.04438984766602516, 0.04074393957853317, 0.006850169040262699, 0.0013766114134341478, -0.027306709438562393, -0.037436313927173615, 0.005684982519596815, -0.06374697387218475, 0.021123703569173813, 0.007601901888847351, -0.018633587285876274, 0.04732160642743111, -0.006483698729425669, 0.012102904729545116, 0.01152031123638153, 0.07096361368894577, -0.014405087567865849, 0.004399988334625959, -0.020014896988868713, 0.027644988149404526, -0.025728069245815277, -0.05716931074857712, -0.08103684335947037, 0.005529937334358692, 0.0566055104136467, -0.007841517217457294, -0.07998441159725189, 0.028377927839756012, 0.012864034622907639, -0.06946014612913132, 0.007357588969171047, -0.014658797532320023, 0.005022517405450344, 0.047885406762361526, -0.017816077917814255, 0.0001546045095892623, 0.027870507910847664, -0.03416627272963524, 0.004193261731415987, -0.007014610338956118, -0.013766114600002766, -0.010505471378564835, 0.03527507930994034, 0.03488042205572128, 0.09441769123077393, 0.009904084727168083, -0.036891307681798935, 0.060740042477846146, 0.03644026815891266, 0.010204778052866459, -0.084194116294384, 0.008640233427286148, 0.005919898860156536, 0.030990201979875565, -0.0023139286786317825, 0.056793443858623505, 0.029843809083104134, -0.005948089063167572, 0.009429553523659706, -0.02721274271607399, 0.015401134267449379, 0.027287915349006653, -0.0644611194729805, -0.05220787227153778, -0.03144124150276184, 0.05559067055583, -0.06761839985847473, -0.013221107423305511, -0.01334326434880495, 0.0077146622352302074, -0.008231478743255138, 0.04044324532151222, -0.03984186053276062, -0.04822368547320366, 0.009124161675572395, 0.011614277958869934, -0.03315143287181854, 0.018934279680252075, 0.03234332054853439, -0.10163433104753494, -0.035218700766563416, -0.046156417578458786, -0.017289863899350166, 0.08051062375307083, -0.05480135232210159, 0.0229654498398304, -0.035237494856119156, -0.020259210839867592, -0.008870451711118221, 0.03305746614933014, 0.030370021238923073, -0.030482782050967216, -0.017816077917814255, 0.015758207067847252, -0.027795335277915, -0.058447256684303284, -0.028509482741355896, -0.037398725748062134, 0.008870451711118221, -0.0326252207159996, -0.02020283043384552, 0.010561851784586906, 0.05186958983540535, -0.000866842339746654, 0.035801295191049576, 0.04093187302350998, -0.03335816040635109, -0.015636051073670387, -0.0632583498954773, -0.05664309859275818, -0.009161748923361301, 0.020597489550709724, -0.0007176703074947, 0.01930074952542782, -0.0032559444662183523, 0.017740903422236443, 0.03471128270030022, 0.033527299761772156, -0.027626195922493935, -0.008771786466240883, -0.03187348693609238, -0.0232661422342062, -0.06235627084970474, 0.04859955236315727, 0.004371798597276211, -0.01595553755760193, -0.011858591809868813, -0.01713951677083969, 0.019178593531250954, -0.0036881910637021065, -0.034091100096702576, 0.02129284292459488, 0.016087090596556664, -0.016603907570242882, 0.030783474445343018, -0.004684237763285637, -0.004627857357263565, -0.02973104827105999, -0.014470864087343216, 0.007376382127404213, -0.003415687708184123, -0.04544227197766304, 0.06145418807864189, -0.048937831073999405, -0.01053366158157587, -0.018652379512786865, 0.011867987923324108, -0.03897736594080925, -0.02632945589721203, -0.02356683649122715, 0.0004052311705891043, -0.019451096653938293, -0.021274050697684288, -0.007536125369369984, -0.024562882259488106, -0.08720105141401291, -0.06442353874444962, 0.007413968909531832, -0.09509424865245819, 0.04175877943634987, -0.0014083251589909196, -0.06194281578063965, -0.01679184101521969, 0.00361536699347198, 0.010392711497843266, -0.05273408442735672, -0.012319028377532959, 0.012497564777731895, 0.020879389718174934, 0.03221176937222481, -0.04581813886761665, -0.011586087755858898, 0.01995851658284664, -0.02189422957599163, -0.012600927613675594, -0.026874462142586708, -0.005797742400318384, -0.0008057640516199172, -0.010326934978365898, 0.0050882939249277115, 0.019582649692893028, -0.05953726917505264, 0.02411184273660183, -0.0341474823653698, 0.0009907608618959785, -0.006901850458234549, -0.0773533433675766, 0.011680054478347301, 0.02802085503935814, 0.013860081322491169, -0.01179281435906887, -0.002255199709907174, 0.049200937151908875, 0.029956568032503128, -0.015269581228494644, 0.027344295755028725, -0.03692889213562012, -0.042209818959236145, 0.00981011800467968, -0.014865524135529995, -0.01207471452653408, -0.029524322599172592, 0.01555148046463728, 0.029843809083104134, 0.054049618542194366, 0.01218747440725565, 0.03027605451643467, 0.03422265499830246, -0.030990201979875565, -0.0038432360161095858, -0.045592617243528366, -0.023792356252670288, -0.0509675107896328, 0.01180221140384674, 0.006356843747198582, 0.010045034810900688, 0.054275136440992355, 0.008814072236418724, -0.011285394430160522, 0.04213464632630348, 0.011182031594216824, 0.04574296623468399, -0.016885807737708092, 0.0745343491435051, -0.07840577512979507, -0.00937787164002657, -0.05743241682648659, -0.0060044690035283566, 0.009725548326969147, -0.017769094556570053, 0.05179441720247269, 0.025352202355861664, 0.039729099720716476, 0.026818081736564636, 0.0017466051504015923, -0.04514157772064209, 0.06299524009227753, 0.027663782238960266, 0.03644026815891266, 0.011388758197426796, 0.015466910786926746, 0.0404808335006237, -0.01445207092911005, 0.01091892458498478, 0.011247808113694191, -0.014132584445178509, -0.06705459952354431, 0.003984185867011547, 0.02272113598883152, -0.015476307831704617, -0.013098951429128647, -0.023416489362716675, -0.005360797513276339, 0.01846444606781006, 0.002727382117882371, 0.03758665919303894, 0.05014060437679291, 0.05750758945941925, 0.028189994394779205, 0.013596974313259125, 0.03290712088346481, 0.06314559280872345, 0.041082218289375305, -0.04299914091825485, -0.004451670218259096, -0.03706044703722, 0.009678564965724945, 0.018718156963586807, -0.028941728174686432, -0.03831959888339043, 0.012732481583952904, -0.03860149905085564, 0.009490631520748138, 0.0229654498398304, -0.0471336729824543, -0.01990213617682457, 0.009110067039728165, -0.07419607043266296, 0.046457111835479736, -0.010308141820132732, -0.015250787138938904, 0.03333936631679535, -0.00016121153021231294, 0.05465100333094597, 0.034899212419986725, -0.062393855303525925, -0.06472422927618027, -0.0033381653483957052, -0.024750815704464912, -0.08426929265260696, -0.0584096685051918, -0.006131323985755444, -0.027024809271097183, -0.01708313636481762, 0.04382604733109474, 0.10441574454307556, -0.012102904729545116, 0.047020912170410156, 0.021819056943058968, 0.014001031406223774, 0.027006015181541443, 0.07720299810171127, 0.033771615475416183, -0.03730475902557373, -0.02187543548643589, -0.004221451934427023, -0.03285074234008789, -0.07705265283584595, -0.03878943249583244, -0.04002979397773743, 0.037135619670152664, -0.015250787138938904, 0.021969402208924294, 0.014376897364854813, -0.051493722945451736, 0.0005878788651898503, 0.042097058147192, -0.01388827059417963, -0.07194086909294128, -0.033790405839681625, 0.03501197323203087, 0.059311751276254654, -0.0036224143113940954, 0.07524849474430084, -0.02467564307153225, 0.04510399326682091, -0.02213854342699051, -0.025615308433771133, 0.00777574023231864, -0.008165702223777771, -0.010326934978365898, 0.03694768622517586, 0.022100957110524178, -0.12418632954359055, -0.046118833124637604, -0.034072306007146835, 0.031027788296341896, -0.01937592402100563, -0.01207471452653408, 0.05807138979434967, 0.028377927839756012, -0.03644026815891266, -0.004439924377948046, 0.06367180496454239, 0.07656402885913849, -0.0021706295665353537, 0.013822494074702263, 0.004735919181257486, -0.018370479345321655, -0.022514410316944122, 0.01738383062183857, 0.005388987250626087, 0.031027788296341896, 0.023792356252670288, 0.060439348220825195, 0.002593479584902525, -0.010308141820132732, 0.05250856280326843, -0.03457972779870033, -0.045028820633888245, -0.06359662860631943, 0.028979314491152763, 0.037436313927173615, 0.06930980086326599, 0.016970377415418625, 0.01822013407945633, -0.04574296623468399, 0.014611814171075821, 0.035726118832826614, -0.012281441129744053, 0.07419607043266296, 0.06743046641349792, -0.02493874914944172, -0.005933993961662054, 0.018097976222634315, -0.005699077155441046, -0.027851715683937073, 0.0455174446105957, 0.017543572932481766, -0.019751790910959244, 0.02555892989039421, 0.025126682594418526, 0.05728207156062126, -0.005830630660057068, -0.013634560629725456 ]
729,334
tinytuya.BulbDevice
colour_rgb
Return colour as RGB value
def colour_rgb(self): """Return colour as RGB value""" hexvalue = self.status()[self.DPS][self.DPS_INDEX_COLOUR[self.bulb_type]] return BulbDevice._hexvalue_to_rgb(hexvalue, self.bulb_type)
(self)
[ -0.013655471615493298, -0.05106046050786972, -0.07863150537014008, 0.04305725172162056, 0.013985604047775269, -0.015706293284893036, 0.007843142375349998, 0.0252701248973608, 0.022408979013562202, -0.023969605565071106, -0.008053227327764034, -0.05938379466533661, 0.06854746490716934, 0.010009010322391987, 0.028731511905789375, -0.047419000416994095, 0.04161667451262474, 0.02907164953649044, 0.03691479191184044, -0.023009220138192177, -0.012414975091814995, 0.01892758347094059, 0.025670286267995834, 0.015406173653900623, -0.0269307903945446, 0.021868763491511345, 0.03875552862882614, 0.014495808631181717, -0.047859176993370056, 0.01607644185423851, -0.0016931784339249134, -0.019527824595570564, 0.01442578062415123, 0.018827544525265694, -0.013275319710373878, 0.011084442026913166, -0.02460986189544201, 0.027370966970920563, -0.05014009028673172, -0.054501838982105255, -0.043417397886514664, -0.0396558903157711, -0.004496802110224962, 0.011144465766847134, -0.00945879053324461, -0.04321731626987457, -0.026350559666752815, 0.023529428988695145, -0.014725900255143642, -0.05158066749572754, 0.014935985207557678, 0.02673071064054966, -0.062304966151714325, 0.05858347564935684, 0.043657492846250534, -0.031832754611968994, -0.04193680360913277, 0.06250504404306412, 0.009408770129084587, 0.05586238577961922, -0.03211286664009094, 0.007928176783025265, 0.04973993077874184, -0.04577834531664848, 0.06330536305904388, 0.0029086654540151358, -0.006777715869247913, 0.018847553059458733, 0.04089638590812683, 0.06398563832044601, -0.005202084314078093, 0.031772732734680176, -0.009373756125569344, -0.01795719563961029, -0.02957184985280037, -0.008478397503495216, -0.023749517276883125, 0.04097642004489899, 0.01918768882751465, 0.011424577794969082, 0.05090039595961571, 0.05466190353035927, 0.07114850729703903, -0.00572229316458106, 0.0051770745776593685, -0.06726695597171783, -0.03423371911048889, 0.021828746423125267, -0.08111250400543213, 0.009033619426190853, 0.014665876515209675, -0.046258535236120224, -0.07887160778045654, 0.015376160852611065, -0.015756312757730484, -0.06562629342079163, 0.033233318477869034, 0.03135256469249725, 0.05458186939358711, -0.012404970824718475, -0.04357746243476868, -0.009088641963899136, -0.03947581723332405, -0.0501801073551178, -0.03215288370847702, 0.004839439410716295, -0.037234921008348465, 0.019487809389829636, 0.026570646092295647, -0.01216487493366003, -0.016926782205700874, 0.03051222674548626, 0.03517409414052963, -0.027150878682732582, -0.018487408757209778, 0.004026613663882017, 0.017106855288147926, -0.019587848335504532, -0.0015906373737379909, 0.02054823376238346, 0.018987609073519707, -0.0057473029009997845, 0.043377380818128586, 0.04145660996437073, 0.025950398296117783, 0.10612252354621887, -0.043377380818128586, -0.011034421622753143, -0.0010960642248392105, 0.015776321291923523, 0.04793921113014221, 0.040816355496644974, -0.033453404903411865, -0.0638255774974823, 0.05870352312922478, -0.0262905340641737, 0.001998300664126873, 0.04489799216389656, 0.04017609730362892, 0.03361346945166588, 0.015936385840177536, -0.00031950301490724087, 0.04075632989406586, -0.05778315290808678, 0.03261306881904602, 0.03777513653039932, 0.019337749108672142, 0.02482995018362999, -0.035354167222976685, 0.04075632989406586, 0.028951600193977356, 0.023129267618060112, 0.06738699972629547, 0.030872371047735214, -0.027050839737057686, 0.03645460680127144, -0.01526611763983965, -0.028491416946053505, 0.05814329907298088, -0.021828746423125267, -0.013045227155089378, 0.021888770163059235, 0.05538219213485718, -0.041016437113285065, -0.010314133018255234, 0.030172090977430344, -0.07366952300071716, -0.007397964596748352, 0.0062324972823262215, -0.026410583406686783, -0.002534765750169754, -0.04561828076839447, -0.01611645705997944, 0.05862348899245262, -0.024789933115243912, 0.03549422323703766, -0.07430977374315262, 0.024309741333127022, 0.0378151535987854, 0.0018119760788977146, -0.000498012057505548, 0.01017907913774252, 0.002826132345944643, -0.013915576040744781, 0.03977593779563904, 0.00944378413259983, 0.01441577635705471, -0.004306725692003965, 0.023549435660243034, -0.022989211603999138, 0.053341373801231384, 0.004416769836097956, 0.030372170731425285, 0.03467389568686485, 0.03215288370847702, -0.03593439981341362, 0.009753908030688763, 0.0033838560339063406, -0.014865957200527191, -0.0007559278747066855, 0.02649061568081379, -0.05602244660258293, -0.07903166860342026, 0.03075232170522213, -0.018367359414696693, -0.04129654914140701, 0.019587848335504532, -0.03563427925109863, 0.05042020231485367, -0.02482995018362999, -0.01988796889781952, 0.018157275393605232, 0.007883158512413502, 0.058503441512584686, 0.030832353979349136, -0.06582637876272202, -0.03755505010485649, 0.013885564170777798, 0.00568727869540453, 0.029972009360790253, -0.01817728392779827, -0.05082036554813385, 0.06250504404306412, -0.024489812552928925, -0.017927182838320732, 0.015736306086182594, -0.04257706180214882, 0.00884854607284069, -0.008558429777622223, 0.0008803527452982962, 0.030852362513542175, 0.005542221013456583, -0.007878156378865242, 0.0477791465818882, -0.044337768107652664, 0.007122854236513376, 0.06214490160346031, 0.030572250485420227, -0.05702285096049309, 0.022849155589938164, -0.011894766241312027, 0.05966390669345856, 0.08483399450778961, 0.009313732385635376, 0.01490597240626812, -0.05186077952384949, 0.043857574462890625, 0.02314927615225315, -0.04497802257537842, -0.025170085951685905, -0.08163271099328995, -0.03151262551546097, 0.04877954721450806, 0.01912766508758068, -0.05630256235599518, -0.0007515511242672801, -0.032513029873371124, 0.023829547688364983, -0.0005399038200266659, -0.009598846547305584, -0.004849443212151527, 0.017196889966726303, 0.06238499656319618, 0.03317329287528992, 0.02196880243718624, 0.017106855288147926, 0.021368563175201416, 0.06790721416473389, 0.02106844261288643, 0.019677884876728058, 0.22168883681297302, 0.0006740200915373862, -0.052100878208875656, -0.008878557942807674, -0.045538246631622314, -0.04317730292677879, -0.005287118721753359, 0.018147271126508713, 0.03401362895965576, 0.006842741742730141, -0.0054621887393295765, -0.031152483075857162, -0.00444428063929081, 0.022629067301750183, -0.00003358767571626231, 0.02196880243718624, 0.01960785686969757, -0.014996008947491646, -0.02104843407869339, 0.01583634503185749, 0.03005204163491726, -0.01181473396718502, -0.042457014322280884, 0.022188890725374222, 0.06162469461560249, 0.010604249313473701, 0.019957996904850006, 0.027050839737057686, -0.011774717830121517, 0.025930389761924744, -0.0076030464842915535, -0.040796346962451935, 0.014665876515209675, -0.01773710735142231, -0.0682673528790474, 0.010474196635186672, 0.0625450611114502, -0.013275319710373878, -0.015206092968583107, -0.02599041536450386, -0.04513808712363243, 0.01699681021273136, 0.04889959469437599, 0.01608644612133503, -0.011494605801999569, -0.06686679273843765, 0.007077835965901613, -0.0053771547973155975, 0.03287317231297493, 0.014485804364085197, -0.04003604128956795, 0.004054124467074871, 0.029191697016358376, 0.045738328248262405, 0.023309340700507164, 0.024929989129304886, -0.03001202642917633, 0.03457385301589966, -0.015226101502776146, 0.03101242706179619, -0.04561828076839447, -0.0525810681283474, 0.014675880782306194, -0.003498902078717947, 0.0992397665977478, -0.09267713874578476, 0.015596249140799046, -0.0005064529250375926, -0.0252701248973608, -0.011994806118309498, -0.023969605565071106, 0.015446189790964127, 0.01799721084535122, 0.021108457818627357, 0.02154863439500332, 0.006182477343827486, -0.023829547688364983, 0.014935985207557678, 0.0029061646200716496, 0.027731111273169518, 0.014335744082927704, -0.03943580389022827, -0.06890761107206345, 0.045018039643764496, -0.010444184765219688, -0.0459384061396122, -0.036514632403850555, -0.03375352546572685, 0.03665468841791153, 0.07218892872333527, -0.006087439134716988, 0.007898164913058281, 0.020908378064632416, 0.028331352397799492, -0.026050439104437828, 0.0321929007768631, -0.11988803744316101, -0.014865957200527191, 0.00519208051264286, 0.0036214510910212994, -0.0042917197570204735, 0.07390961796045303, -0.018587447702884674, -0.025450197979807854, -0.008318332955241203, 0.011134461499750614, 0.003648962127044797, -0.0009003607556223869, 0.0009516313439235091, -0.03709486499428749, -0.043857574462890625, -0.01675671525299549, -0.001269883825443685, -0.014715896919369698, 0.019017620012164116, 0.01076431293040514, -0.02889157645404339, -0.03129253908991814, -0.0793117806315422, -0.003026212565600872, -0.05678275227546692, -0.01501601655036211, -0.022989211603999138, -0.03121250681579113, -0.010954389348626137, -0.0032613067887723446, 0.036994822323322296, 0.01054422464221716, 0.05278114974498749, -0.07114850729703903, -0.03023211471736431, -0.0008841042872518301, -0.0174770038574934, -0.03455384448170662, -0.04233696311712265, -0.024009620770812035, -0.0038290342781692743, 0.04305725172162056, -0.02106844261288643, -0.05418170988559723, 0.004101643338799477, 0.03855545073747635, -0.027330951765179634, 0.01160464994609356, -0.028531432151794434, -0.010914373211562634, 0.04533816874027252, -0.0435374453663826, 0.03199281916022301, 0.04329735040664673, -0.038635481148958206, -0.0018407375318929553, 0.004231695551425219, -0.03213287517428398, -0.0018207295797765255, 0.044817958027124405, 0.10436181724071503, 0.10100047290325165, 0.003101242706179619, -0.008673475123941898, 0.04153664410114288, 0.006887760013341904, 0.0008172024390660226, -0.054741933941841125, 0.015926381573081017, -0.005702285096049309, 0.02362946793437004, 0.01960785686969757, 0.027250919491052628, 0.01491597667336464, 0.01502602081745863, 0.01611645705997944, 0.0005799198988825083, -0.0009485050686635077, 0.003919070586562157, -0.070828378200531, -0.06122453138232231, -0.030132073909044266, 0.031092459335923195, -0.024549836292862892, -0.029751921072602272, -0.009913972578942776, 0.04945981875061989, -0.026110462844371796, 0.014065636321902275, -0.0027611064724624157, -0.07727096229791641, -0.004796922206878662, 0.025210101157426834, -0.04917970672249794, 0.01523610483855009, 0.026310542598366737, -0.09747906029224396, -0.051700714975595474, -0.049299754202365875, 0.019957996904850006, 0.06534618139266968, -0.023809541016817093, -0.0004714389215223491, -0.021808739751577377, 0.005267110653221607, -0.0057473029009997845, 0.016706693917512894, 0.0008553427178412676, -0.03999602794647217, 0.0027185892686247826, 0.007528016343712807, 0.01583634503185749, -0.02434975653886795, -0.055902399122714996, -0.0623449832201004, -0.017857154831290245, -0.0057473029009997845, -0.039395786821842194, -0.008708489127457142, 0.024169685319066048, -0.013295327313244343, 0.02436976507306099, 0.029751921072602272, -0.020988410338759422, -0.03729494288563728, -0.05138058960437775, -0.03411366790533066, -0.007222894113510847, -0.014375760219991207, -0.007127856370061636, 0.03429374098777771, -0.01606643758714199, 0.0025110060814768076, 0.058983635157346725, 0.05194081366062164, -0.024990012869238853, -0.0015593748539686203, -0.021128466352820396, 0.0016956795006990433, -0.09179678559303284, 0.0014005611883476377, -0.004844441078603268, -0.0021708698477596045, -0.025710301473736763, -0.05126053839921951, 0.022589052096009254, 0.033453404903411865, -0.06782718002796173, -0.0014168177731335163, -0.019978005439043045, 0.036054447293281555, 0.00466686999425292, -0.028311343863606453, -0.01846740022301674, -0.012194886803627014, 0.01652662269771099, -0.0024384770076721907, -0.003776513272896409, -0.03401362895965576, 0.05978395417332649, -0.020148074254393578, -0.0015906373737379909, -0.04821932315826416, 0.004016609396785498, -0.01298520341515541, 0.00955883041024208, -0.009123655967414379, -0.02953183278441429, -0.046218518167734146, -0.03407365456223488, 0.0017907175933942199, -0.01937776431441307, -0.08979598432779312, -0.024669885635375977, 0.03271310776472092, -0.08683479577302933, 0.09651867300271988, -0.017827143892645836, -0.07691081613302231, -0.018347352743148804, 0.0007009058608673513, 0.010464193299412727, -0.036554645746946335, -0.022569043561816216, 0.05090039595961571, 0.005302124656736851, 0.011304529383778572, -0.044817958027124405, 0.015446189790964127, 0.01984795369207859, -0.016236506402492523, 0.003301322925835848, -0.0031337556429207325, -0.020488210022449493, -0.011674677953124046, -0.010494205169379711, -0.030072050169110298, 0.0019632866606116295, -0.03199281916022301, -0.003243799787014723, -0.03705484792590141, -0.004901964217424393, -0.01603642664849758, -0.07386960089206696, -0.00005928156679146923, -0.0005808577407151461, -0.014145668596029282, -0.0050470223650336266, 0.007898164913058281, 0.019527824595570564, -0.0025860362220555544, -0.02763107232749462, -0.003941579256206751, -0.05794321745634079, -0.02102842554450035, 0.03331334888935089, -0.005392160732299089, -0.05606246367096901, -0.02226892299950123, -0.027150878682732582, 0.015896370634436607, 0.029371770098805428, 0.028671488165855408, -0.030312146991491318, 0.04381755739450455, -0.014335744082927704, -0.01984795369207859, -0.06614650785923004, -0.0050620283000171185, -0.011624658480286598, -0.005887358915060759, 0.0053071267902851105, -0.004439278971403837, 0.0462985523045063, 0.03849542513489723, -0.02266908437013626, 0.04569831117987633, -0.011614654213190079, 0.02274911478161812, -0.04253704473376274, 0.06486599147319794, -0.07751105725765228, 0.013025219552218914, -0.02338937297463417, -0.0044217719696462154, 0.005572232883423567, -0.041976820677518845, 0.03893560171127319, 0.009313732385635376, -0.017306935042142868, -0.009518814273178577, 0.05578235164284706, -0.04585837572813034, 0.08827537298202515, 0.014725900255143642, 0.028991617262363434, 0.00030918640550225973, 0.02837136760354042, 0.014965997077524662, -0.01943778805434704, 0.0003864048339892179, 0.005337138660252094, 0.009858950972557068, -0.029631873592734337, 0.013245307840406895, 0.015736306086182594, 0.004454284906387329, -0.048139289021492004, -0.02242898754775524, -0.04129654914140701, 0.03951583430171013, -0.0028561444487422705, 0.023709500208497047, 0.03569430112838745, 0.0486995130777359, 0.037715110927820206, -0.01729693077504635, -0.0010404168860986829, 0.04281715676188469, 0.04075632989406586, -0.04605845734477043, -0.0016656673979014158, -0.0034463810734450817, -0.01325531117618084, -0.02154863439500332, -0.03401362895965576, -0.00016006414080038667, 0.020338149741292, -0.07438980787992477, 0.03763508051633835, 0.009473796002566814, 0.001381803653202951, -0.039875976741313934, -0.009138661436736584, -0.08619453758001328, 0.03673471882939339, -0.003153763711452484, -0.02955184131860733, -0.02100841887295246, -0.009858950972557068, 0.04569831117987633, 0.04517810419201851, -0.06830736994743347, -0.058503441512584686, -0.016716698184609413, -0.01133454218506813, -0.034153684973716736, -0.05230095610022545, 0.0012336192885413766, 0.003651463193818927, -0.03239297866821289, 0.027571048587560654, 0.1051621362566948, -0.015716297551989555, 0.039575859904289246, 0.02106844261288643, -0.005557226948440075, 0.0420568510890007, 0.09467794001102448, 0.0535014383494854, -0.012625059112906456, -0.002971190493553877, 0.022569043561816216, -0.01004402432590723, -0.06402565538883209, -0.002676072297617793, -0.007938181050121784, 0.027811143547296524, -0.03639458492398262, 0.02320929989218712, 0.012254910543560982, -0.019757917150855064, -0.013905571773648262, 0.03887557610869408, -0.01752702333033085, -0.05550223961472511, -0.02533015049993992, 0.028451399877667427, 0.05182076618075371, -0.015486204996705055, 0.07054826617240906, -0.010009010322391987, -0.002204633317887783, -0.006942782085388899, -0.026310542598366737, 0.032533034682273865, -0.02907164953649044, -0.02599041536450386, -0.014175680465996265, 0.011574638076126575, -0.10452188551425934, -0.037935201078653336, -0.05346142128109932, 0.023989612236618996, -0.03627453371882439, 0.01631653867661953, 0.024669885635375977, 0.025110062211751938, 0.00971889402717352, 0.013135263696312904, 0.05514209717512131, 0.02579033374786377, -0.023489411920309067, 0.004276713822036982, 0.03811527416110039, -0.001363046234473586, -0.009723896160721779, 0.018097251653671265, 0.01501601655036211, 0.0453781820833683, 0.036974817514419556, 0.023449396714568138, 0.03385356441140175, -0.018837548792362213, 0.04465789347887039, -0.007703086826950312, -0.04497802257537842, -0.038215313106775284, -0.021128466352820396, 0.04873953014612198, 0.04897962510585785, 0.016946790739893913, 0.027611063793301582, -0.0396558903157711, 0.04725893586874008, 0.03411366790533066, 0.005827335175126791, 0.04897962510585785, 0.037935201078653336, 0.0011954790679737926, -0.032493021339178085, 0.012284922413527966, -0.010854349471628666, -0.010189082473516464, 0.05738299340009689, 0.02082834579050541, -0.048339370638132095, 0.019077643752098083, 0.0019595352932810783, 0.04845941811800003, -0.041976820677518845, -0.013805531896650791 ]
729,335
tinytuya.BulbDevice
colourtemp
Return colour temperature
def colourtemp(self): """Return colour temperature""" return self.status()[self.DPS][self.DPS_INDEX_COLOURTEMP[self.bulb_type]]
(self)
[ 0.04442645236849785, -0.05126677080988884, 0.03553760051727295, 0.031030826270580292, 0.030300479382276535, -0.027272213250398636, -0.03291903808712959, 0.01423285249620676, 0.04392767697572708, -0.02866165153682232, -0.00789575930684805, -0.0361076258122921, 0.00725002633407712, -0.02940981276333332, -0.005228213034570217, 0.006386079825460911, -0.002498319838196039, 0.04431957006454468, -0.0031395999249070883, -0.011899306438863277, 0.013591572642326355, 0.00046398164704442024, 0.01856149174273014, 0.000056779997976263985, 0.013555945828557014, 0.018347732722759247, 0.013066079467535019, -0.01957685314118862, -0.007303466554731131, -0.0551857054233551, -0.03229557350277901, -0.004299693275243044, -0.0127632524818182, 0.02499210648238659, -0.012273386120796204, -0.0004795683198608458, 0.006711172871291637, 0.04040063917636871, -0.032491520047187805, 0.01943434588611126, -0.019416533410549164, -0.04182570427656174, -0.025829331949353218, 0.015461972914636135, -0.0033756266348063946, -0.051694292575120926, 0.01694048009812832, -0.03776426613330841, 0.020823786035180092, -0.05760831758379936, 0.022694185376167297, 0.0005394099862314761, -0.04022250697016716, 0.024404264986515045, 0.022872319445014, -0.012095252983272076, -0.0013137332862243056, 0.02896447852253914, -0.04749034345149994, 0.040471892803907394, 0.0008461332763545215, 0.021447252482175827, 0.009993279352784157, -0.035662293434143066, 0.025811519473791122, 0.016958292573690414, 0.000983073259703815, 0.04809599742293358, 0.023460159078240395, 0.05828522518277168, 0.00786458607763052, 0.017599573358893394, -0.011810239404439926, -0.024885226041078568, 0.003339999821037054, -0.0427163727581501, -0.013235306367278099, -0.030104532837867737, -0.00848805345594883, -0.014339732937514782, -0.02196383848786354, 0.030460799112915993, 0.04809599742293358, 0.0427163727581501, 0.0027232132852077484, -0.03329312056303024, -0.027735358104109764, -0.006038719788193703, -0.0907054916024208, 0.060315944254398346, -0.013244212605059147, -0.030781438574194908, -0.06305919587612152, 0.016147786751389503, 0.019897492602467537, -0.05009109154343605, 0.005014453083276749, 0.03537727892398834, 0.03523477166891098, -0.007673093117773533, -0.008773066103458405, -0.021073171868920326, -0.017225492745637894, -0.04745471850037575, 0.005936292931437492, -0.022409172728657722, -0.04620778560638428, 0.036196693778038025, 0.0408281572163105, -0.02256949245929718, -0.02283669263124466, 0.03637482598423958, 0.026114346459507942, -0.0551857054233551, 0.00728565314784646, -0.011685546487569809, -0.003656186629086733, 0.010625652968883514, -0.04018687829375267, 0.028269758448004723, 0.03662421181797981, -0.04000874608755112, 0.02880415879189968, 0.03698047995567322, -0.020574398338794708, 0.089992955327034, 0.009815146215260029, -0.00789575930684805, -0.022783253341913223, 0.0008750799461267889, 0.010794879868626595, 0.042395733296871185, 0.015087893232703209, -0.014874132350087166, 0.03815615922212601, -0.007579572964459658, 0.003941199742257595, 0.018703998997807503, 0.046029653400182724, 0.04154069349169731, 0.02869727835059166, 0.034379731863737106, -0.0313870906829834, -0.03897557035088539, 0.0363035723567009, 0.02661311812698841, 0.00013318248966243118, -0.0012157600140199065, -0.0065285866148769855, 0.027503786608576775, -0.009690453298389912, 0.05440191924571991, 0.0016210132744163275, 0.011044266633689404, -0.011854772455990314, -0.0002975383249577135, 0.000485413329442963, 0.03633919730782509, 0.02786005288362503, -0.03095957264304161, -0.03201055899262428, -0.017403626814484596, 0.035484157502651215, -0.008755252696573734, -0.02604309283196926, -0.008991279639303684, -0.03625013306736946, 0.0018314332701265812, 0.011667733080685139, -0.011712266132235527, 0.0009351999615319073, -0.05119551718235016, -0.003511453280225396, 0.06070783734321594, 0.019416533410549164, 0.011694452725350857, -0.0293029323220253, -0.009503412991762161, 0.06234666332602501, 0.047169703990221024, -0.006960559636354446, -0.003834319766610861, -0.06134911626577377, 0.040543146431446075, 0.016557492315769196, -0.04944981262087822, 0.026470612734556198, -0.018044905737042427, -0.004386533051729202, -0.01576479896903038, 0.04321514442563057, 0.035252586007118225, -0.004221759736537933, 0.012255572713911533, 0.06669311970472336, -0.019754985347390175, 0.054651305079460144, -0.04927167668938637, 0.015533226542174816, -0.01785786636173725, -0.013377812691032887, -0.06109973043203354, -0.03243807703256607, 0.03947434574365616, 0.01565791852772236, 0.008060532622039318, 0.06612309068441391, -0.01738581247627735, -0.05005546659231186, -0.009423253126442432, -0.03231338411569595, 0.006297013256698847, 0.0010893966536968946, 0.052121810615062714, 0.02290794625878334, -0.0729634091258049, -0.034005653113126755, -0.0057715196162462234, -0.013466879725456238, 0.044818345457315445, -0.03354250639677048, -0.06669311970472336, 0.05572010576725006, 0.027539411559700966, -0.019630292430520058, 0.04396330565214157, -0.0351635180413723, 0.010670186020433903, -0.05055423825979233, -0.013422345742583275, 0.016584211960434914, 0.02940981276333332, -0.0014050266472622752, 0.020770346745848656, -0.027681918814778328, 0.009610293433070183, 0.031013011932373047, -0.01421503908932209, -0.026987198740243912, 0.006684453226625919, -0.014188319444656372, 0.006644373293966055, 0.08058751374483109, 0.014455519616603851, 0.005286106374114752, -0.04752597212791443, 0.0408281572163105, 0.04595839977264404, -0.0521574392914772, -0.032829973846673965, -0.05379626527428627, -0.005303919780999422, 0.036161065101623535, 0.03822741284966469, -0.024333013221621513, -0.021767891943454742, 0.022106345742940903, 0.02604309283196926, -0.007080799899995327, -0.011240213178098202, -0.040543146431446075, -0.01470490638166666, 0.04809599742293358, 0.07652607560157776, -0.012006185948848724, 0.0021754533518105745, -0.004618106409907341, 0.0328834131360054, -0.028536958619952202, 0.00988639984279871, 0.13395626842975616, 0.018418986350297928, -0.057216424494981766, -0.036196693778038025, -0.025829331949353218, -0.04948543757200241, 0.008635013364255428, 0.0007576232892461121, -0.013849866576492786, -0.03186805173754692, -0.05319061130285263, -0.03126239776611328, 0.007459333166480064, 0.03243807703256607, -0.06783317029476166, -0.04089941084384918, 0.010634559206664562, -0.029962025582790375, 0.00805162638425827, 0.006158959586173296, -0.00648405309766531, -0.00931637268513441, -0.023869866505265236, 0.029962025582790375, 0.09106175601482391, -0.04435519874095917, -0.027966931462287903, -0.01785786636173725, 0.01434863917529583, -0.010260479524731636, 0.020307200029492378, -0.08671530336141586, -0.024564586579799652, 0.00837226677685976, -0.07844991981983185, 0.025829331949353218, 0.05921151861548424, -0.009779519401490688, 0.021910399198532104, -0.022480426356196404, 0.0014551265630871058, -0.027396906167268753, 0.021465066820383072, 0.03331093117594719, -0.027966931462287903, -0.05871274322271347, -0.019327465444803238, -0.018721813336014748, 0.02506335824728012, 0.06772629171609879, -0.007739893160760403, -0.0419682115316391, 0.05579135939478874, 0.03152959793806076, 0.04097066447138786, 0.028786346316337585, -0.029534505680203438, -0.01741253212094307, 0.024030186235904694, 0.05379626527428627, -0.05871274322271347, -0.0032709732186049223, 0.036196693778038025, -0.012602932751178741, 0.050981760025024414, -0.0616341307759285, -0.011240213178098202, -0.0076463730074465275, -0.013208585791289806, -0.04510335996747017, -0.019559038802981377, -0.006145599763840437, 0.004778426606208086, 0.05450879782438278, 0.07210837304592133, 0.03530602529644966, 0.029534505680203438, -0.02809162624180317, 0.04884415864944458, 0.07980372756719589, -0.015844959765672684, 0.0005536049720831215, -0.05187242478132248, 0.05579135939478874, -0.007637466304004192, 0.0052415733225643635, 0.0015920666046440601, -0.0021999466698616743, 0.03486069291830063, 0.0506611168384552, -0.031743358820676804, 0.010563306510448456, 0.014562399126589298, -0.003887759754434228, 0.0038254132959991693, -0.01612997241318226, -0.03295466676354408, 0.01939871907234192, -0.028180692344903946, -0.005789333023130894, -0.014776159077882767, 0.024065813049674034, -0.014544585719704628, -0.04225322604179382, -0.01440207939594984, -0.038619305938482285, -0.0005485949805006385, -0.012736532837152481, 0.056575145572423935, -0.025188053026795387, 0.016584211960434914, -0.02034282684326172, -0.06491178274154663, 0.0259005855768919, 0.02452895976603031, 0.019612479954957962, -0.07802239805459976, -0.037336744368076324, -0.04467583820223808, 0.024101439863443375, -0.008991279639303684, -0.028447892516851425, 0.0019449932733550668, -0.03755050525069237, -0.006377173122018576, 0.0028902131598442793, 0.02132255956530571, -0.03872618451714516, -0.003242026548832655, 0.010483146645128727, -0.028911039233207703, -0.030460799112915993, -0.03197493404150009, -0.02226666547358036, -0.02112661302089691, -0.038690559566020966, 0.004221759736537933, -0.0014540132833644748, -0.031173331663012505, -0.04029375687241554, -0.00956575945019722, 0.07795114070177078, -0.03439754620194435, 0.010643466375768185, -0.016762346029281616, -0.011026453226804733, -0.029391998425126076, -0.06134911626577377, 0.030834879726171494, 0.02903573215007782, -0.04503210633993149, -0.0097349863499403, 0.03712298348546028, -0.022622931748628616, 0.000013655728253070265, 0.03539509326219559, 0.04702719673514366, 0.08236885070800781, -0.022551679983735085, 0.06890197098255157, 0.0016855866415426135, -0.027664106339216232, -0.02600746601819992, -0.040471892803907394, 0.056503891944885254, 0.017189865931868553, 0.0226763729006052, -0.030104532837867737, 0.02789567969739437, 0.016388265416026115, 0.05237119644880295, 0.05326186493039131, 0.020556585863232613, 0.006724533159285784, -0.01637045294046402, -0.04806037247180939, -0.053546879440546036, -0.050946131348609924, 0.004604746587574482, -0.026773439720273018, -0.02142944000661373, 0.03480725362896919, 0.05126677080988884, -0.023691732436418533, 0.02162538655102253, 0.016557492315769196, -0.10873258113861084, -0.01455349288880825, 0.027681918814778328, -0.02438645251095295, -0.02593621239066124, 0.05921151861548424, -0.0669068768620491, -0.0400799997150898, -0.00007107937562977895, -0.05148053169250488, 0.024671465158462524, -0.048487890511751175, -0.001767973299138248, -0.014589119702577591, 0.009610293433070183, -0.007330186199396849, -0.025081172585487366, 0.00007911624561529607, -0.036089811474084854, 0.01825866661965847, -0.05379626527428627, 0.051516156643629074, 0.0446045845746994, -0.06013781204819679, -0.049236051738262177, -0.012023999355733395, -0.00023421748483087867, -0.029463252052664757, 0.015586665831506252, 0.0567176528275013, -0.028679465875029564, 0.019024638459086418, 0.06737002730369568, -0.05019797012209892, -0.05023359879851341, -0.021714452654123306, -0.009824053384363651, 0.008394532836973667, -0.09099050611257553, 0.019078079611063004, 0.021375998854637146, -0.016014186665415764, 0.01570245251059532, 0.07538602501153946, 0.023335466161370277, 0.01001999992877245, -0.001725666574202478, -0.03391658514738083, 0.00416831998154521, -0.11706922203302383, -0.0036829065065830946, -0.009026906453073025, 0.0259005855768919, -0.009663732722401619, 0.01781333237886429, -0.007494959514588118, 0.02711189165711403, -0.031208958476781845, 0.021946026012301445, -0.03334655985236168, -0.004858586471527815, 0.012558399699628353, 0.03409471735358238, -0.03243807703256607, -0.04093503952026367, 0.035145703703165054, 0.0035849332343786955, 0.002720986492931843, -0.004604746587574482, 0.06801130622625351, -0.004658186342567205, -0.00735245319083333, -0.05796458572149277, 0.06794004887342453, -0.013484693132340908, -0.008096159435808659, 0.009708266705274582, 0.007802239619195461, -0.03315061330795288, -0.0801599994301796, -0.012032906524837017, -0.058427732437849045, -0.09362687915563583, -0.05009109154343605, 0.008871039375662804, -0.07481599599123001, 0.13338623940944672, -0.05946090444922447, -0.004604746587574482, -0.07652607560157776, -0.0351635180413723, 0.012709813192486763, -0.041790079325437546, 0.0026141065172851086, 0.06548181176185608, -0.05921151861548424, -0.05023359879851341, -0.031547412276268005, 0.02091285213828087, 0.06794004887342453, -0.02812725305557251, 0.055292584002017975, -0.008060532622039318, -0.022409172728657722, 0.0069694663397967815, 0.006737892981618643, 0.029819518327713013, 0.014134879224002361, -0.04139818623661995, -0.033061545342206955, -0.038049276918172836, 0.012745440006256104, -0.056646399199962616, -0.07966122031211853, -0.005437519866973162, 0.030781438574194908, 0.0506611168384552, 0.007739893160760403, 0.02014687843620777, 0.01704735867679119, 0.0506611168384552, -0.016958292573690414, 0.022711999714374542, 0.0006557533051818609, -0.019630292430520058, 0.03231338411569595, 0.0022678598761558533, -0.03500320017337799, 0.03167210519313812, 0.004511226434260607, 0.028572585433721542, 0.028234131634235382, 0.029872959479689598, -0.019630292430520058, 0.03163648024201393, -0.008479146286845207, 0.004304146394133568, -0.05921151861548424, -0.010527679696679115, -0.017457066103816032, 0.023976745083928108, 0.029694825410842896, 0.018775252625346184, 0.058356478810310364, -0.009173866361379623, -0.029552318155765533, -0.0013482465874403715, -0.04446207731962204, -0.01822303980588913, -0.06448426097631454, 0.06829632073640823, -0.04200384020805359, -0.015675732865929604, -0.036695465445518494, 0.04410581290721893, -0.038690559566020966, -0.0224982388317585, 0.05807146430015564, 0.05550634488463402, -0.004393212962895632, -0.004938746336847544, 0.013057173229753971, -0.004925386514514685, 0.0714670941233635, -0.05600511655211449, 0.04706282541155815, -0.011124426499009132, 0.00825202651321888, 0.0548294372856617, -0.015515413135290146, 0.023798612877726555, -0.04553087800741196, -0.005375172942876816, -0.02574026584625244, -0.007094159722328186, 0.03345343843102455, -0.019523411989212036, -0.02793130651116371, -0.0657668262720108, 0.021518506109714508, 0.0076597328297793865, -0.00648405309766531, 0.00146291998680681, 0.023994559422135353, 0.0012892399681732059, 0.07217962294816971, 0.020164692774415016, 0.028679465875029564, 0.03448661044239998, -0.003130693221464753, -0.03972373157739639, 0.00969935953617096, -0.0009006866603158414, -0.0016666599549353123, -0.06234666332602501, 0.005878399591892958, 0.016014186665415764, 0.03539509326219559, -0.10068095475435257, 0.01465146616101265, 0.01957685314118862, -0.004591386299580336, -0.006492959801107645, -0.012175412848591805, -0.08742783963680267, 0.025829331949353218, -0.031030826270580292, -0.016459519043564796, 0.03380970656871796, -0.04709845036268234, -0.005789333023130894, 0.010046719573438168, -0.05625450611114502, -0.035519786179065704, 0.018989013507962227, -0.001725666574202478, 0.0064573329873383045, -0.08464895933866501, -0.010117973200976849, 0.03254495933651924, 0.0067200795747339725, 0.04253823682665825, 0.06897322088479996, -0.0005427500000223517, 0.10630997270345688, 0.01825866661965847, 0.0004325299814809114, 0.07438847422599792, 0.07000640034675598, 0.1062387153506279, -0.05051861330866814, 0.006564212962985039, -0.008848773315548897, 0.019523411989212036, -0.05130239948630333, -0.032491520047187805, -0.020057812333106995, 0.04011562466621399, 0.01148959994316101, -0.00090625329175964, -0.01738581247627735, 0.022373545914888382, 0.009369812905788422, -0.005441972985863686, -0.015488692559301853, -0.033061545342206955, -0.028002558276057243, 0.02839445322751999, 0.05436629056930542, -0.027664106339216232, 0.0722152516245842, -0.03201055899262428, -0.023941118270158768, -0.0076330131851136684, 0.0194699726998806, 0.06345108896493912, -0.0035181331913918257, 0.036766719073057175, -0.05682453140616417, 0.016085440292954445, -0.09647700935602188, -0.04410581290721893, -0.02661311812698841, 0.05372501164674759, -0.02926730550825596, -0.004030266311019659, 0.0049209329299628735, 0.056646399199962616, 0.02166101336479187, 0.049770452082157135, 0.026524052023887634, 0.02351359836757183, -0.04681343957781792, 0.024582399055361748, 0.009645919315516949, -0.0126652792096138, -0.012522772885859013, 0.03277653083205223, 0.00931637268513441, 0.038619305938482285, 0.03316842392086983, 0.045459624379873276, 0.030407359823584557, 0.022248852998018265, 0.008505865931510925, -0.008635013364255428, -0.05693140998482704, -0.027966931462287903, 0.0291069857776165, 0.0234423466026783, 0.027628479525446892, 0.05205055698752403, -0.00786458607763052, 0.005392986349761486, 0.053368743509054184, 0.03281215950846672, -0.0291069857776165, 0.0025695732329040766, 0.08493397384881973, 0.016931572929024696, 0.01109770592302084, -0.03325749188661575, -0.019594665616750717, 0.023424532264471054, 0.04766847938299179, -0.018401172012090683, -0.007788879796862602, 0.05807146430015564, -0.021340372040867805, 0.05889087915420532, -0.07802239805459976, 0.010679093189537525 ]
729,336
tinytuya.core
detect_available_dps
Return which datapoints are supported by the device.
def detect_available_dps(self): """Return which datapoints are supported by the device.""" # device22 devices need a sort of bruteforce querying in order to detect the # list of available dps experience shows that the dps available are usually # in the ranges [1-25] and [100-110] need to split the bruteforcing in # different steps due to request payload limitation (max. length = 255) self.dps_cache = {} ranges = [(2, 11), (11, 21), (21, 31), (100, 111)] for dps_range in ranges: # dps 1 must always be sent, otherwise it might fail in case no dps is found # in the requested range self.dps_to_request = {"1": None} self.add_dps_to_request(range(*dps_range)) try: data = self.status() except Exception as ex: log.exception("Failed to get status: %s", ex) raise if data is not None and "dps" in data: for k in data["dps"]: self.dps_cache[k] = None if self.dev_type == "default": self.dps_to_request = self.dps_cache return self.dps_cache log.debug("Detected dps: %s", self.dps_cache) self.dps_to_request = self.dps_cache return self.dps_cache
(self)
[ 0.0536448135972023, -0.02457973174750805, -0.0829610750079155, 0.0006285100243985653, 0.0022213708143681288, 0.03986581042408943, -0.025153856724500656, -0.09724243730306625, -0.007867308333516121, -0.02294706366956234, -0.023036770522594452, 0.0022079148329794407, -0.021888520568609238, -0.020578796043992043, 0.004321637097746134, 0.011984861455857754, -0.008360696956515312, -0.00007155539060477167, 0.036241646856069565, -0.030751576647162437, 0.024454141035676003, 0.07158622145652771, 0.020524973049759865, 0.039758164435625076, -0.03622370585799217, 0.07025855779647827, 0.059493713080883026, -0.03896874189376831, -0.01330355554819107, 0.0023682659957557917, -0.0415881872177124, 0.00923085492104292, 0.041157592087984085, 0.024561790749430656, -0.02644563838839531, 0.011832359246909618, 0.06089314445853233, 0.007674437947571278, -0.1467607319355011, 0.02569209784269333, -0.07072503864765167, -0.0604984350502491, 0.0011319908080622554, -0.007104798220098019, -0.023736484348773956, 0.011966920457780361, -0.05296304076910019, 0.00006027192284818739, 0.035129278898239136, -0.01623697578907013, 0.042198196053504944, -0.006454422138631344, -0.02556650899350643, 0.012191187590360641, -0.013976357877254486, 0.03186394274234772, -0.020058495923876762, 0.07377507537603378, 0.008015324361622334, 0.002145119709894061, -0.02129645273089409, 0.02786300890147686, 0.030141567811369896, -0.052998922765254974, -0.0254050362855196, -0.0029782739002257586, -0.044745877385139465, -0.020363500341773033, -0.01519637368619442, 0.07564098387956619, 0.05655132234096527, -0.03886109218001366, -0.017690230160951614, 0.01464019063860178, 0.03968639671802521, 0.023969722911715508, 0.0028594122268259525, -0.007867308333516121, 0.03279689699411392, -0.023736484348773956, 0.01690080761909485, 0.018372002989053726, 0.08855880051851273, -0.027468297630548477, 0.04083464667201042, 0.033640142530202866, 0.015016959980130196, 0.045858241617679596, 0.03493192419409752, 0.001014810986816883, -0.017663318663835526, 0.03294042870402336, -0.004048030357807875, 0.05403952673077583, 0.03665430098772049, 0.006014857441186905, -0.05296304076910019, 0.01923319138586521, -0.04366939142346382, 0.006687660235911608, -0.0176094938069582, 0.018748773261904716, -0.021027332171797752, 0.0153040224686265, 0.018084941431879997, -0.08138223737478256, -0.031989533454179764, 0.022677941247820854, 0.004122038837522268, 0.030141567811369896, -0.046001773327589035, -0.010486753657460213, 0.011796477250754833, -0.0077148061245679855, -0.024256786331534386, 0.02734270878136158, -0.008360696956515312, 0.0010069615673273802, -0.04894416406750679, -0.003767695976421237, -0.05744839459657669, 0.03864579647779465, -0.014146801084280014, 0.019035834819078445, -0.0039000138640403748, -0.014837545342743397, 0.02108115702867508, 0.028042422607541084, 0.030356865376234055, 0.003767695976421237, 0.03846638277173042, -0.023485304787755013, 0.010423959232866764, 0.06893089413642883, 0.013787973672151566, -0.06107255816459656, -0.00041545575368218124, 0.005319627933204174, 0.005104330834001303, -0.004727561492472887, -0.011007054708898067, -0.004561603534966707, 0.003072466468438506, -0.014891370199620724, 0.053824227303266525, 0.024525906890630722, 0.019322898238897324, 0.041839368641376495, -0.00990365818142891, -0.011374853551387787, -0.03346072882413864, 0.04754473641514778, 0.0028481988701969385, -0.013393262401223183, -0.0034335372038185596, -0.024974443018436432, -0.018327150493860245, -0.011042937636375427, -0.04043993726372719, -0.03954286873340607, -0.0654502660036087, -0.046145305037498474, -0.042198196053504944, -0.04521235078573227, 0.013976357877254486, -0.007571274880319834, -0.09889304637908936, -0.01892818696796894, 0.04492529109120369, 0.04567882791161537, 0.017223753035068512, 0.027163295075297356, -0.0018423584988340735, -0.036169882863759995, 0.007024061866104603, 0.015662850812077522, 0.0030007008463144302, -0.04470999166369438, 0.001599028124473989, -0.02615857496857643, 0.01330355554819107, -0.0002862215624190867, -0.04944652318954468, 0.012020744383335114, 0.002007195260375738, 0.038932859897613525, 0.028221838176250458, -0.006512731779366732, -0.06559379398822784, 0.05737662687897682, -0.016972573474049568, -0.006732514128088951, 0.026625052094459534, 0.0016932205762714148, 0.007728262338787317, 0.006158388685435057, 0.001599028124473989, 0.04657590016722679, -0.033711910247802734, 0.021960284560918808, 0.001530626555904746, -0.014954164624214172, 0.008311358280479908, 0.021422043442726135, -0.052640095353126526, -0.008894453756511211, -0.007571274880319834, 0.012227070517838001, -0.0003591085260268301, 0.009598653763532639, -0.03764107823371887, -0.0028526841197162867, 0.004521235357969999, 0.009347474202513695, 0.04022464156150818, 0.004321637097746134, 0.0912141278386116, 0.004741017706692219, -0.04582235962152481, -0.04144465550780296, 0.004723076242953539, -0.1042037084698677, 0.014765780419111252, -0.006575526669621468, -0.005768163129687309, 0.027809185907244682, -0.020148202776908875, -0.0009733214974403381, -0.00021852075587958097, -0.0022101574577391148, 0.04976946860551834, -0.01846170984208584, 0.019179366528987885, 0.00810503214597702, 0.03324543312191963, 0.024830911308526993, 0.015887118875980377, -0.011948978528380394, 0.041085828095674515, -0.0029087511356920004, 0.011814418248832226, 0.02257029339671135, 0.03835873305797577, 0.03152305632829666, -0.014667102135717869, -0.04549941420555115, 0.0045503899455070496, 0.007347007282078266, 0.009589683264493942, -0.04036817327141762, 0.032079242169857025, -0.06326141208410263, 0.004915946163237095, -0.0055169835686683655, -0.02994421310722828, -0.0999695360660553, -0.0280065406113863, 0.035721346735954285, 0.04872886836528778, -0.03677988797426224, -0.0016932205762714148, 0.039363451302051544, -0.09092706441879272, 0.019789375364780426, -0.07144269347190857, 0.03322749212384224, 0.03328131511807442, 0.012316777370870113, -0.049948886036872864, 0.03677988797426224, 0.03277895599603653, 0.039901696145534515, -0.017788907513022423, -0.04244937375187874, 0.004299210384488106, 0.043920569121837616, 0.10032836347818375, -0.010791758075356483, 0.0016898565227165818, -0.01642535999417305, 0.041229359805583954, 0.0035658550914376974, 0.008549082092940807, 0.04621707275509834, -0.005458673927932978, -0.026858290657401085, 0.022480586543679237, -0.002675512805581093, 0.04686296358704567, -0.0033909264020621777, -0.06677792966365814, 0.008526654914021492, 0.037569310516119, -0.0017761995550245047, 0.059996072202920914, 0.05109713599085808, 0.02122468687593937, -0.06387142091989517, 0.03882521018385887, 0.024185020476579666, -0.0061539034359157085, -0.030966872349381447, -0.0005200205487199128, 0.05935018137097359, 0.0006486941128969193, -0.024615613743662834, 0.051958322525024414, -0.05378834530711174, -0.007459140848368406, -0.060175489634275436, -0.026499461382627487, 0.0018546931678429246, 0.10520842671394348, -0.016263887286186218, 0.029980095103383064, -0.02727094292640686, -0.036690182983875275, 0.10499312728643417, -0.013581647537648678, 0.08245871961116791, -0.02883184514939785, 0.1047060638666153, 0.0017952623311430216, 0.0652349665760994, 0.05066654086112976, 0.03939933702349663, 0.05310657247900963, -0.004503293894231319, 0.039076391607522964, 0.001560902688652277, -0.06397906690835953, -0.04661178216338158, 0.0014756809687241912, 0.025458861142396927, 0.05917076766490936, 0.006772882305085659, -0.005149184726178646, -0.03374779224395752, -0.007333551067858934, 0.02048908919095993, 0.007674437947571278, -0.001651730970479548, -0.035272810608148575, 0.02122468687593937, 0.052855391055345535, -0.02779124304652214, 0.06139550358057022, 0.009410269558429718, -0.022014109417796135, -0.005176096688956022, -0.04553529620170593, 0.051958322525024414, 0.0006335560465231538, 0.08188459277153015, 0.09623771905899048, -0.0207940936088562, 0.02802448160946369, 0.005063962657004595, 0.008894453756511211, -0.007867308333516121, 0.004920431412756443, 0.0023099565878510475, -0.03069775179028511, 0.021960284560918808, -0.01184133067727089, -0.009006587788462639, 0.014694014564156532, -0.013429145328700542, 0.05260421335697174, -0.014918281696736813, -0.0734880119562149, -0.03410661965608597, -0.025387095287442207, 0.007140681147575378, 0.001622576266527176, -0.013240760192275047, -0.016927719116210938, 0.01202971488237381, -0.03871756047010422, 0.03807166963815689, -0.02578180655837059, 0.012262953445315361, -0.03613400086760521, 0.04671943187713623, 0.06433789432048798, -0.02606886811554432, -0.04237760975956917, -0.013796944171190262, 0.023377656936645508, 0.003146474715322256, 0.033048078417778015, -0.003233939176425338, -0.05228126794099808, 0.06534261256456375, -0.027181236073374748, 0.0045055365189909935, -0.0014375554164871573, 0.008441433310508728, -0.045930009335279465, -0.04341820999979973, -0.02204999327659607, -0.04334644600749016, -0.004213988780975342, 0.029603326693177223, -0.011500443331897259, -0.05005653202533722, 0.0831763744354248, -0.0394711010158062, -0.0197355505079031, 0.029244497418403625, -0.060390785336494446, -0.007347007282078266, 0.0310745220631361, -0.03511133790016174, -0.05927841737866402, 0.01788758486509323, -0.06975620239973068, 0.04097817838191986, 0.04449469596147537, 0.02266000024974346, 0.056300144642591476, -0.07693276554346085, -0.018659066408872604, 0.022157641127705574, -0.004561603534966707, -0.015887118875980377, 0.004749988205730915, 0.024328552186489105, -0.020094377920031548, 0.024543847888708115, 0.025082090869545937, 0.027988599613308907, -0.029693033546209335, -0.08920469135046005, 0.0009043591562658548, -0.01206559780985117, 0.007741718087345362, 0.004382189363241196, 0.007625099271535873, -0.021798811852931976, -0.0048621222376823425, 0.02213970012962818, 0.046001773327589035, 0.048011213541030884, -0.012451338581740856, -0.06559379398822784, -0.061718448996543884, -0.055761899799108505, -0.05935018137097359, -0.04532000049948692, 0.0022527682594954967, -0.04661178216338158, 0.08755408227443695, 0.03864579647779465, 0.007575760129839182, 0.012478250078856945, -0.04449469596147537, -0.004220716655254364, -0.03548811003565788, -0.00018978647131007165, 0.02897537685930729, 0.008553567342460155, -0.06810559332370758, 0.05335775390267372, -0.012693547643721104, 0.06903854757547379, -0.005660514812916517, -0.009410269558429718, -0.010343222878873348, 0.016622716560959816, 0.026463579386472702, -0.0018042330630123615, -0.014765780419111252, -0.03477045148611069, -0.06577321141958237, 0.00314871734008193, -0.006772882305085659, 0.04341820999979973, 0.008885483257472515, -0.034393683075904846, -0.0029132363852113485, -0.06132373958826065, 0.016156239435076714, 0.01050469558686018, -0.02913684956729412, -0.07280623912811279, -0.0382869690656662, -0.01013689674437046, -0.1047060638666153, -0.01277428399771452, -0.052424799650907516, -0.056658972054719925, 0.018569359555840492, -0.045104704797267914, -0.028778020292520523, 0.008715040050446987, 0.04417175054550171, -0.019197307527065277, 0.07269859313964844, -0.012944727204740047, 0.002724851481616497, 0.004660281352698803, -0.02316235937178135, -0.02703770436346531, 0.05393187701702118, 0.002713638124987483, -0.03451927378773689, 0.08963528275489807, -0.017403166741132736, 0.06351259350776672, -0.0016371536767110229, -0.007853851653635502, 0.04237760975956917, 0.0284730177372694, -0.0040659718215465546, 0.03665430098772049, 0.042879968881607056, -0.011563238687813282, -0.04338232800364494, 0.009544829837977886, -0.002619445789605379, 0.09788832813501358, 0.046360600739717484, -0.018273325636982918, 0.012801195494830608, 0.02212175726890564, -0.012478250078856945, -0.06555791199207306, -0.0515277273952961, 0.00103835912887007, 0.03785637393593788, 0.005866840947419405, 0.05249656364321709, -0.00461542746052146, 0.03850226476788521, 0.03401691094040871, 0.0290650837123394, -0.051958322525024414, -0.09738597273826599, -0.010307339951395988, 0.053680699318647385, -0.03814343735575676, 0.0423058457672596, -0.056300144642591476, 0.014389010146260262, -0.017196841537952423, -0.012002803385257721, 0.009338503703474998, 0.05716133117675781, -0.03538046032190323, 0.03186394274234772, -0.023897957056760788, 0.06200551241636276, -0.05511600896716118, 0.051061250269412994, 0.03100275620818138, -0.0008931457996368408, 0.002729336963966489, 0.017358314245939255, -0.024902677163481712, -0.039973460137844086, -0.05185067281126976, -0.00011753025319194421, 0.01691874861717224, -0.07951632887125015, -0.03889697790145874, -0.021727047860622406, 0.03652871027588844, -0.05228126794099808, -0.026840349659323692, -0.005965518765151501, 0.01109676156193018, -0.043238796293735504, -0.008777834475040436, -0.007324580568820238, -0.029836563393473625, -0.0017739569302648306, -0.0552954263985157, -0.009670419618487358, -0.033048078417778015, 0.00421174569055438, 0.024759145453572273, 0.002096902346238494, -0.0697203204035759, 0.00923085492104292, 0.04252114146947861, -0.03843050077557564, -0.03224071487784386, 0.012881931848824024, 0.03324543312191963, -0.0035523991100490093, -0.018237443640828133, -0.0394711010158062, -0.009724244475364685, -0.036995187401771545, 0.0642661303281784, -0.03233041986823082, 0.0020206512417644262, 0.0059789749793708324, 0.01959201879799366, -0.038322851061820984, 0.0496259406208992, -0.016649628058075905, -0.06548614799976349, 0.05378834530711174, -0.005593234673142433, -0.026176515966653824, -0.0016371536767110229, -0.033640142530202866, -0.06423024833202362, 0.011724711395800114, 0.03161276504397392, 0.00979600939899683, 0.03864579647779465, 0.02370060235261917, -0.024167079478502274, -0.00405251607298851, 0.00986777525395155, 0.024525906890630722, 0.009446152485907078, 0.005391393788158894, 0.05249656364321709, 0.02122468687593937, -0.014747838489711285, -0.031774237751960754, -0.035129278898239136, -0.002128299791365862, 0.010926318354904652, -0.0019006681395694613, 0.0211529228836298, 0.04887240007519722, 0.013285613618791103, 0.06082138046622276, -0.006521702278405428, -0.04650413244962692, -0.003926925826817751, 0.026930056512355804, -0.03943521901965141, -0.019107600674033165, 0.03141540661454201, 0.01677521876990795, 0.05935018137097359, 0.008764378726482391, -0.016622716560959816, 0.012415455654263496, -0.01396738737821579, -0.04768826812505722, 0.026104751974344254, 0.04671943187713623, 0.03233041986823082, -0.041229359805583954, -0.007463626563549042, 0.012352660298347473, -0.03299425169825554, -0.029477735981345177, -0.002720366232097149, -0.01673036441206932, 0.0335504375398159, 0.012747371569275856, -0.06527084857225418, -0.08123870193958282, 0.05615661293268204, 0.018587300553917885, -0.06982796639204025, -0.01333943847566843, 0.002668784698471427, 0.0008107274770736694, -0.01490034069865942, -0.023000886663794518, 0.0531783364713192, 0.052640095353126526, -0.0254050362855196, 0.024974443018436432, 0.048549454659223557, -0.022624118253588676, -0.014765780419111252, -0.011787505820393562, -0.01426342036575079, -0.0044427416287362576, 0.009410269558429718, 0.03731813281774521, -0.010998084209859371, -0.01363547146320343, 0.0366363599896431, -0.006858103908598423, 0.04564294591546059, 0.018300237134099007, -0.07097622007131577, -0.025046207010746002, 0.010074101388454437, 0.02018408663570881, -0.0649837851524353, 0.0223370548337698, 0.001122459420002997, -0.004328364972025156, -0.08303284645080566, -0.03145129233598709, 0.03746166452765465, 0.007409802172333002, -0.04402821883559227, 0.0071451663970947266, -0.007804512977600098, -0.012128393165767193, 0.00745017034932971, -0.0039762649685144424, -0.00043928419472649693, -0.04546353220939636, 0.006423024460673332, -0.002639629878103733, -0.01630874164402485, 0.03324543312191963, 0.03188188374042511, 0.03613400086760521, -0.01642535999417305, -0.02719917707145214, 0.035416342318058014, -0.04445881396532059, 0.0004448909021448344, 0.024866793304681778, 0.03986581042408943, 0.005826472770422697, 0.029226556420326233, 0.020973507314920425, 0.008535625413060188, -0.05116889998316765, 0.052568331360816956, 0.017896555364131927, -0.034393683075904846, 0.0290650837123394, 0.04061935096979141, -0.05124066770076752, 0.009401299059391022, -0.027217118069529533, -0.02361089549958706, -0.013796944171190262, -0.03563163802027702, 0.02615857496857643, 0.014308273792266846, 0.005472130142152309, 0.029388029128313065, -0.00430145300924778, 0.016084473580121994, 0.019932905212044716, 0.015043872408568859, -0.03604429215192795, 0.000571882410440594, 0.011249263770878315, 0.0002715039881877601, -0.005521468818187714, -0.04438704624772072, 0.0725550577044487, 0.01036116387695074, 0.01690080761909485, 0.008979675360023975, 0.006835677195340395, -0.025135915726423264, -0.007589216344058514, -0.022821472957730293, 0.033496610820293427, 0.024705320596694946, -0.030895108357071877, 0.014119889587163925, -0.00037929261452518404, 0.06204139441251755, -0.05981665849685669, 0.014012240804731846, -0.03324543312191963, 0.001132551464252174 ]
729,337
tinytuya.core
find
Mainly here for backwards compatibility. Calling tinytuya.find_device() directly is recommended. Parameters: did = The specific Device ID you are looking for (returns only IP and Version) Response: (ip, version)
@staticmethod def find(did): """ Mainly here for backwards compatibility. Calling tinytuya.find_device() directly is recommended. Parameters: did = The specific Device ID you are looking for (returns only IP and Version) Response: (ip, version) """ bcast_data = find_device(dev_id=did) return (bcast_data['ip'], bcast_data['version'])
(did)
[ 0.049842942506074905, -0.08148809522390366, -0.030421003699302673, -0.03312509134411812, -0.008171647787094116, -0.033691488206386566, -0.017476089298725128, 0.012186672538518906, -0.010350449942052364, -0.06343647092580795, -0.03986704349517822, -0.010377855971455574, -0.014982116408646107, -0.009455177001655102, 0.002692669862881303, 0.0033892469946295023, 0.003053519641980529, 0.08631160110235214, 0.0014285538345575333, -0.014799407683312893, 0.0016889137914404273, 0.060038089752197266, 0.009573937393724918, 0.022929945960640907, -0.006801332347095013, 0.09829729795455933, 0.05649353936314583, -0.04786968603730202, 0.06303451210260391, -0.023258822038769722, 0.006719113793224096, -0.0327962189912796, 0.0332164466381073, 0.0418037585914135, -0.06997744739055634, 0.03782070800662041, 0.03084123320877552, 0.04662726819515228, -0.07586066424846649, 0.000041894541936926544, -0.03190094605088234, -0.08653085678815842, 0.09069661051034927, -0.015274450182914734, -0.0024368776939809322, -0.0047595626674592495, -0.011437566950917244, -0.018161248415708542, -0.05536074563860893, 0.03361840546131134, 0.010798086412250996, 0.04860052093863487, -0.006230367813259363, -0.0074225421994924545, -0.04589643329381943, -0.036011889576911926, -0.021413464099168777, 0.03557338938117027, -0.0010277365799993277, 0.07783392071723938, 0.001445682835765183, 0.0037295420188456774, 0.010313907638192177, 0.0435212180018425, -0.033746302127838135, -0.011748171411454678, -0.022381819784641266, 0.00196297699585557, -0.04761389642953873, 0.060951631516218185, 0.04436168074607849, -0.004334764555096626, -0.011665952391922474, 0.004700182005763054, 0.061280507594347, -0.02448296919465065, 0.0014388312119990587, -0.00006437627598643303, -0.0080528873950243, -0.010706732049584389, 0.03942854329943657, 0.03391074016690254, 0.03190094605088234, 0.026328328996896744, -0.005499532911926508, 0.013840186409652233, 0.04297309368848801, -0.004675059579312801, -0.034404054284095764, 0.008171647787094116, -0.05466645210981369, -0.014260416850447655, -0.018060758709907532, 0.07001398503780365, 0.004334764555096626, -0.013447362929582596, 0.0003714126069098711, 0.034349240362644196, -0.01944020949304104, -0.0296353567391634, -0.03427615761756897, 0.021577900275588036, -0.062011342495679855, -0.02897760458290577, 0.005111276637762785, -0.04253459349274635, -0.04392318055033684, 0.06694447994232178, 0.004777833353728056, 0.0692831501364708, -0.060549672693014145, 0.004391861148178577, -0.04673689231276512, 0.015585054643452168, 0.011464972980320454, -0.052875906229019165, 0.03378284350037575, 0.01745781861245632, -0.03095085918903351, -0.02225392311811447, -0.023898301646113396, 0.03957471251487732, -0.03718122839927673, -0.04275384172797203, 0.0017391587607562542, 0.02488492988049984, -0.005403610877692699, -0.016836609691381454, 0.029105501249432564, 0.00014445409760810435, -0.020061418414115906, -0.02145000547170639, 0.005531506612896919, 0.03946508467197418, 0.003841451136395335, -0.028758354485034943, 0.05291244760155678, -0.009829729795455933, 0.004355319309979677, 0.022016402333974838, -0.023788677528500557, 0.024464698508381844, 0.0296353567391634, -0.0544106587767601, -0.025414785370230675, -0.008139673620462418, -0.006011117249727249, -0.06420385092496872, 0.047065768390893936, -0.001851067878305912, -0.01249727699905634, -0.0049240002408623695, 0.01281701773405075, 0.051268070936203, -0.03345396742224693, 0.0028662432450801134, 0.03148071467876434, -0.0767376646399498, 0.026364870369434357, -0.03648693487048149, -0.04319234564900398, -0.03718122839927673, -0.024610865861177444, -0.03169996663928032, -0.00700231222435832, 0.009756646119058132, -0.0730104073882103, 0.04805239662528038, 0.01261603832244873, 0.000928388733882457, -0.04874669015407562, 0.03599362075328827, -0.045311763882637024, 0.012524683959782124, 0.03127973526716232, -0.013949811458587646, -0.01792372576892376, -0.03814958408474922, 0.04366738721728325, 0.005919762887060642, 0.0014502505073323846, 0.023843489587306976, -0.004104095045477152, 0.06424038857221603, 0.04107292369008064, 0.056712791323661804, 0.05872258543968201, 0.034952178597450256, 0.024702221155166626, 0.026492765173316002, 0.043082717806100845, 0.02937956340610981, 0.016526004299521446, 0.02674855850636959, -0.02159617282450199, 0.0093409838154912, 0.038441918790340424, 0.0461156852543354, -0.04395972192287445, -0.023861760273575783, 0.022838590666651726, 0.001998376799747348, -0.019111333414912224, 0.06475197523832321, 0.00028690980980172753, -0.020207585766911507, 0.03822266682982445, 0.033545322716236115, -0.07491058111190796, -0.016334161162376404, 0.0046111117117106915, 0.009436906315386295, -0.015384075231850147, 0.012250620871782303, 0.044142428785562515, -0.03144417330622673, 0.014863355085253716, 0.0486736074090004, -0.013474768958985806, -0.03498872369527817, 0.03997667133808136, -0.05890529602766037, 0.03297892585396767, 0.00758241256698966, -0.030567171052098274, 0.01049661636352539, 0.0007428252138197422, 0.016946235671639442, -0.009162843227386475, -0.05627428740262985, 0.0675656870007515, -0.030713338404893875, 0.05360674113035202, 0.047065768390893936, -0.010569700039923191, 0.003944224677979946, 0.008217325434088707, -0.02559749409556389, 0.04114600643515587, -0.04129217192530632, 0.02271069586277008, 0.006563811097294092, 0.0655924379825592, 0.03539068251848221, 0.005019922275096178, -0.05638391524553299, 0.006527269259095192, -0.0015792886260896921, -0.0031060483306646347, -0.09084278345108032, -0.03213846683502197, -0.009098894894123077, 0.059563048183918, 0.00489659421145916, 0.013639206998050213, -0.09383920580148697, -0.013995489105582237, 0.025506138801574707, 0.03155379742383957, -0.013474768958985806, -0.05145077779889107, 0.0020086541771888733, -0.025323430076241493, 0.014808543026447296, -0.11452183127403259, 0.03069506771862507, -0.008030048571527004, 0.06716372817754745, -0.06018425524234772, 0.007966100238263607, 0.04739464446902275, 0.040561337023973465, -0.029562272131443024, -0.035098347812891006, -0.02428198978304863, -0.03513488918542862, 0.020280668511986732, 0.0304940864443779, 0.010825492441654205, -0.05360674113035202, -0.04892939701676369, -0.013748832046985626, -0.014351771213114262, 0.03144417330622673, 0.0004910296993330121, -0.0833151787519455, -0.006180122960358858, 0.03685235232114792, -0.0472484789788723, -0.02800924889743328, -0.03155379742383957, -0.02715051732957363, -0.04713885113596916, -0.0010420107282698154, -0.027698643505573273, 0.040817130357027054, -0.08126884698867798, 0.06000154837965965, 0.08799252659082413, -0.05890529602766037, -0.09690871089696884, 0.03584745153784752, -0.04885631427168846, 0.03053062967956066, -0.007829069159924984, 0.06394805759191513, 0.031115297228097916, -0.015173960477113724, -0.011053877882659435, -0.03148071467876434, -0.019348854199051857, -0.034203074872493744, 0.08316901326179504, 0.009647021070122719, -0.014269552193582058, -0.003053519641980529, -0.06361918151378632, 0.06106125935912132, -0.0016774944961071014, 0.09413153678178787, 0.015913929790258408, 0.0325038842856884, 0.030457545071840286, 0.07264499366283417, 0.05517803505063057, -0.03135281801223755, 0.030457545071840286, -0.03358186408877373, -0.009295307099819183, 0.05769941583275795, -0.054447200149297714, 0.0057370541617274284, 0.02356942556798458, 0.006335425190627575, 0.058978378772735596, 0.01118177454918623, -0.0227655079215765, -0.012990591116249561, -0.011729900725185871, 0.006262341979891062, 0.005600022617727518, -0.06486160308122635, -0.020426835864782333, 0.02271069586277008, 0.05177965387701988, 0.009382093325257301, 0.008011777885258198, 0.005631996784359217, 0.004124649800360203, 0.012040505185723305, 0.04750426858663559, -0.0070388540625572205, -0.012396787293255329, 0.06219405308365822, 0.07041594386100769, 0.0014856504276394844, -0.047431185841560364, 0.0211942121386528, 0.012305432930588722, 0.03023829497396946, -0.06592130661010742, -0.0026332896668463945, 0.0021331245079636574, -0.043850094079971313, -0.030421003699302673, -0.04713885113596916, -0.033435698598623276, 0.000753673491999507, 0.024556053802371025, -0.009610479697585106, -0.06548281013965607, 0.027972707524895668, 0.01269825641065836, -0.032887570559978485, 0.06208442524075508, -0.027077434584498405, -0.010505751706659794, -0.006527269259095192, -0.020171044394373894, 0.041109465062618256, -0.02302129939198494, 0.015557648614048958, 0.0037386773619800806, 0.008285840973258018, 0.0389535017311573, -0.027278413996100426, -0.042278800159692764, 0.030019044876098633, -0.05601849779486656, 0.04158450663089752, 0.009153707884252071, 0.0015633015427738428, -0.04103638231754303, 0.01772274635732174, -0.04026900604367256, 0.006760222837328911, -0.028356395661830902, -0.013748832046985626, -0.031626880168914795, -0.04300963506102562, -0.038076501339673996, -0.04337505251169205, -0.035518579185009, 0.05305861681699753, -0.006856145337224007, 0.007559573743492365, 0.04973331838846207, -0.0022221950348466635, -0.05422795191407204, -0.06621364504098892, -0.047065768390893936, -0.0055041005834937096, -0.01006725151091814, -0.027497664093971252, 0.017658798024058342, 0.07078136503696442, 0.017147215083241463, 0.11379099637269974, 0.002731495536863804, 0.025707118213176727, -0.009537396021187305, -0.07173144817352295, -0.029598815366625786, 0.01887381263077259, 0.002569341566413641, 0.016178857535123825, 0.04311925917863846, 0.03084123320877552, 0.014141655527055264, 0.002022357191890478, 0.004937703255563974, -0.0017779843183234334, -0.04191338270902634, -0.042680758982896805, 0.019019978120923042, -0.001057997695170343, 0.034605033695697784, -0.07374124228954315, 0.04059787839651108, 0.04078058898448944, -0.02185196429491043, 0.04001321271061897, 0.014178197830915451, 0.023204008117318153, -0.02665720321238041, -0.039793960750103, -0.05952650308609009, 0.017603985965251923, 0.02634659968316555, -0.05879566818475723, 0.027296684682369232, -0.043850094079971313, 0.04765043780207634, -0.01973254233598709, 0.03127973526716232, -0.06350955367088318, -0.045311763882637024, 0.00913543626666069, -0.004656788893043995, -0.009400364011526108, -0.03148071467876434, 0.04765043780207634, -0.0307864211499691, -0.04392318055033684, -0.023295363411307335, 0.0010003303177654743, -0.008865941315889359, -0.046261850744485855, 0.0028045789804309607, -0.018206924200057983, 0.022527987137436867, -0.015511970967054367, -0.03378284350037575, 0.020554732531309128, 0.046809978783130646, 0.012515547685325146, -0.007285510655492544, -0.02347807213664055, -0.06537318229675293, -0.047321561723947525, -0.03906312584877014, -0.020755711942911148, -0.005115844309329987, 0.0030991968233138323, -0.02282031998038292, -0.05430103465914726, 0.030475815758109093, -0.020280668511986732, -0.030274836346507072, -0.07754158228635788, -0.03166342154145241, 0.0486736074090004, -0.0032933249603956938, -0.06255947053432465, 0.013511310331523418, 0.009427770972251892, -0.006116174627095461, 0.050244901329278946, -0.0270591638982296, -0.019202686846256256, 0.013913270086050034, -0.04659072682261467, 0.015603325329720974, -0.03961125388741493, -0.02594463899731636, -0.03241252899169922, -0.031023941934108734, 0.03312509134411812, 0.014653240330517292, 0.04432513937354088, -0.0015187662793323398, 0.019220959395170212, -0.014379177242517471, -0.006819603499025106, 0.024921471253037453, 0.019239230081439018, -0.03069506771862507, -0.02528688870370388, 0.003969347104430199, 0.025506138801574707, -0.0061207422986626625, 0.05828408524394035, 0.0458233505487442, -0.028137143701314926, 0.039501626044511795, 0.004142920486629009, -0.045713722705841064, 0.03745529055595398, -0.03286930173635483, 0.0030283972155302763, -0.042278800159692764, -0.0047321561723947525, -0.018252601847052574, -0.029050687327980995, 0.038843877613544464, -0.045604098588228226, -0.020554732531309128, -0.0013166448334231973, -0.058430250734090805, -0.009185681119561195, 0.02947091870009899, -0.036925435066223145, -0.061280507594347, -0.06763876974582672, -0.03931891918182373, -0.005147818475961685, -0.044946346431970596, 0.04790623113512993, -0.012561225332319736, 0.00784733984619379, -0.003243079874664545, -0.006180122960358858, 0.06394805759191513, -0.014214739203453064, -0.007207859307527542, 0.015274450182914734, -0.05316824093461037, -0.02095669135451317, -0.03073160909116268, -0.007427109871059656, -0.007468219380825758, 0.003119751578196883, -0.0029644491150975227, 0.055543452501297, -0.02367905154824257, 0.010962523519992828, -0.006531836930662394, 0.007929558865725994, -0.019513292238116264, -0.04578680917620659, 0.004220571834594011, 0.006376534700393677, 0.007586980238556862, 0.035609930753707886, -0.037272579967975616, 0.02402619831264019, 0.019093062728643417, -0.00208173762075603, 0.042571134865283966, -0.0008701503393240273, -0.019549833610653877, 0.0667252317070961, 0.032576967030763626, -0.006052226759493351, 0.01168422307819128, -0.009555666707456112, 0.03570128604769707, -0.019147874787449837, 0.00022239077952690423, -0.030110398307442665, 0.017585715278983116, -0.0317913182079792, -0.01574035733938217, 0.036925435066223145, -0.016617359593510628, 0.005627429112792015, -0.03796687349677086, 0.01584998331964016, 0.016288483515381813, -0.024647407233715057, -0.0031494416762143373, 0.01978735625743866, 0.04914864897727966, -0.0833151787519455, 0.05693203955888748, 0.0017722747288644314, -0.06720027327537537, -0.07107369601726532, -0.041365258395671844, -0.031170109286904335, 0.01355698797851801, -0.004421551246196032, 0.014799407683312893, 0.050500694662332535, 0.022655881941318512, -0.02225392311811447, 0.023532884195446968, 0.01660822331905365, -0.006591217592358589, -0.02402619831264019, 0.0007228414178825915, 0.06522701680660248, 0.031316276639699936, 0.0028571076691150665, -0.01837136223912239, 0.014543615281581879, 0.017001047730445862, -0.010843763127923012, 0.015466294251382351, 0.028539104387164116, 0.024263719096779823, 0.019001707434654236, 0.05422795191407204, 0.009619615040719509, -0.07586066424846649, -0.0492582730948925, 0.03310682252049446, -0.06084200739860535, -0.04607914015650749, 0.1019514724612236, 0.008203621953725815, 0.08850410580635071, 0.02095669135451317, 0.031170109286904335, 0.05506841093301773, 0.02629178576171398, -0.05082957074046135, -0.004259397275745869, 0.0033846793230623007, -0.009683562442660332, -0.014835949055850506, -0.003896263660863042, -0.019348854199051857, 0.05378945171833038, -0.0069840410724282265, 0.005380772054195404, 0.001706042792648077, 0.04286346957087517, 0.02947091870009899, -0.002386632841080427, -0.01812470704317093, 0.0000977777162916027, -0.02493974193930626, -0.07220648974180222, 0.002202782081440091, 0.0022553110029548407, -0.011857796460390091, -0.03814958408474922, -0.02574365958571434, -0.04074404761195183, 0.07439899444580078, 0.05748016759753227, 0.03829574957489967, -0.000580956693738699, -0.02877662517130375, -0.037784166634082794, -0.008294976316392422, 0.022089485079050064, 0.012981455773115158, -0.004531176760792732, 0.08543460071086884, -0.030274836346507072, 0.01998833566904068, -0.00041823170613497496, -0.026839911937713623, 0.017183756455779076, 0.03190094605088234, 0.027881352230906487, 0.0069840410724282265, -0.06661560386419296, -0.019769085571169853, -0.08112267404794693, -0.0065866499207913876, 0.09062352776527405, 0.006472456734627485, -0.0052071986719965935, 0.02645622380077839, 0.02811887301504612, -0.0056182933039963245, 0.011172639206051826, 0.017978539690375328, -0.023953115567564964, -0.00979318842291832, 0.010140334255993366, -0.003823180217295885, 0.004601976368576288, -0.05587232857942581, -0.02196159027516842, -0.025962911546230316, -0.0031859835144132376, 0.02302129939198494, -0.02024412713944912, 0.053825993090867996, -0.04830818995833397, 0.03619460016489029, 0.023843489587306976, -0.038076501339673996, 0.010030709207057953, 0.005230037495493889, 0.08280359953641891, 0.0023637942504137754, -0.01559418998658657, 0.05174311250448227, 0.04103638231754303, 0.025323430076241493, 0.07191415876150131, 0.029781524091959, 0.011921744793653488, -0.03811304271221161, 0.042169176042079926, -0.007993507198989391, -0.02302129939198494, -0.06924661248922348, -0.017138078808784485, 0.0034166532568633556, -0.007856475189328194, -0.0070890989154577255, -0.03148071467876434, 0.026182161644101143, 0.02135865017771721, 0.015000387094914913, 0.03436751291155815, 0.012067912146449089, 0.02972671017050743, -0.012323703616857529, 0.002758901799097657, 0.06376534700393677, -0.0007913571898825467, 0.02711397595703602, -0.008276705630123615, 0.06997744739055634, 0.022984758019447327, 0.017046725377440453, -0.003994469530880451, 0.08601927012205124, -0.034093450754880905, 0.02099323272705078, 0.03544549271464348, 0.013456498272716999, 0.019458480179309845, 0.01511914748698473, 0.002749766455963254, 0.005832976195961237, 0.019239230081439018, -0.02811887301504612, 0.012140994891524315, -0.024556053802371025, 0.03447713702917099 ]
729,338
tinytuya.core
generate_payload
Generate the payload to send. Args: command(str): The type of command. This is one of the entries from payload_dict data(dict, optional): The data to send. This is what will be passed via the 'dps' entry gwId(str, optional): Will be used for gwId devId(str, optional): Will be used for devId uid(str, optional): Will be used for uid
def generate_payload(self, command, data=None, gwId=None, devId=None, uid=None, rawData=None, reqType=None): """ Generate the payload to send. Args: command(str): The type of command. This is one of the entries from payload_dict data(dict, optional): The data to send. This is what will be passed via the 'dps' entry gwId(str, optional): Will be used for gwId devId(str, optional): Will be used for devId uid(str, optional): Will be used for uid """ # dicts will get referenced instead of copied if we don't do this def _deepcopy(dict1): result = {} for k in dict1: if isinstance( dict1[k], dict ): result[k] = _deepcopy( dict1[k] ) else: result[k] = dict1[k] return result # dict2 will be merged into dict1 # as dict2 is payload_dict['...'] we only need to worry about copying 2 levels deep, # the command id and "command"/"command_override" keys: i.e. dict2[CMD_ID]["command"] def _merge_payload_dicts(dict1, dict2): for cmd in dict2: if cmd not in dict1: # make a deep copy so we don't get a reference dict1[cmd] = _deepcopy( dict2[cmd] ) else: for var in dict2[cmd]: if not isinstance( dict2[cmd][var], dict ): # not a dict, safe to copy dict1[cmd][var] = dict2[cmd][var] else: # make a deep copy so we don't get a reference dict1[cmd][var] = _deepcopy( dict2[cmd][var] ) # start merging down to the final payload dict # later merges overwrite earlier merges # "default" - ("gateway" if gateway) - ("zigbee" if sub-device) - [version string] - ('gateway_'+[version string] if gateway) - # 'zigbee_'+[version string] if sub-device - [dev_type if not "default"] if not self.payload_dict or self.last_dev_type != self.dev_type: self.payload_dict = {} _merge_payload_dicts( self.payload_dict, payload_dict['default'] ) if self.children: _merge_payload_dicts( self.payload_dict, payload_dict['gateway'] ) if self.cid: _merge_payload_dicts( self.payload_dict, payload_dict['zigbee'] ) if self.version_str in payload_dict: _merge_payload_dicts( self.payload_dict, payload_dict[self.version_str] ) if self.children and ('gateway_'+self.version_str) in payload_dict: _merge_payload_dicts( self.payload_dict, payload_dict['gateway_'+self.version_str] ) if self.cid and ('zigbee_'+self.version_str) in payload_dict: _merge_payload_dicts( self.payload_dict, payload_dict['zigbee_'+self.version_str] ) if self.dev_type != 'default': _merge_payload_dicts( self.payload_dict, payload_dict[self.dev_type] ) log.debug( 'final payload_dict for %r (%r/%r): %r', self.id, self.version_str, self.dev_type, self.payload_dict ) # save it so we don't have to calculate this again unless something changes self.last_dev_type = self.dev_type json_data = command_override = None if command in self.payload_dict: if 'command' in self.payload_dict[command]: json_data = self.payload_dict[command]['command'] if 'command_override' in self.payload_dict[command]: command_override = self.payload_dict[command]['command_override'] if command_override is None: command_override = command if json_data is None: # I have yet to see a device complain about included but unneeded attribs, but they *will* # complain about missing attribs, so just include them all unless otherwise specified json_data = {"gwId": "", "devId": "", "uid": "", "t": ""} # make sure we don't modify payload_dict json_data = json_data.copy() if "gwId" in json_data: if gwId is not None: json_data["gwId"] = gwId elif self.parent: json_data["gwId"] = self.parent.id else: json_data["gwId"] = self.id if "devId" in json_data: if devId is not None: json_data["devId"] = devId else: json_data["devId"] = self.id if "uid" in json_data: if uid is not None: json_data["uid"] = uid else: json_data["uid"] = self.id if self.cid: json_data["cid"] = self.cid if "data" in json_data: json_data["data"]["cid"] = self.cid json_data["data"]["ctype"] = 0 #elif "cid" in json_data: # del json_data['cid'] if "t" in json_data: if json_data['t'] == "int": json_data["t"] = int(time.time()) else: json_data["t"] = str(int(time.time())) if rawData is not None and "data" in json_data: json_data["data"] = rawData elif data is not None: if "dpId" in json_data: json_data["dpId"] = data elif "data" in json_data: json_data["data"]["dps"] = data else: json_data["dps"] = data elif self.dev_type == "device22" and command == DP_QUERY: json_data["dps"] = self.dps_to_request if reqType and "reqType" in json_data: json_data["reqType"] = reqType # Create byte buffer from hex data if json_data == "": payload = "" else: payload = json.dumps(json_data) # if spaces are not removed device does not respond! payload = payload.replace(" ", "") payload = payload.encode("utf-8") log.debug("building command %s payload=%r", command, payload) # create Tuya message packet return MessagePayload(command_override, payload)
(self, command, data=None, gwId=None, devId=None, uid=None, rawData=None, reqType=None)
[ 0.008312447927892208, -0.029635682702064514, -0.04864393547177315, -0.00589001877233386, -0.01475923415273428, -0.0273109320551157, -0.04930815100669861, 0.008878983557224274, -0.010012054815888405, -0.07404036819934845, 0.007013322319835424, 0.026627182960510254, -0.027721181511878967, 0.023286575451493263, -0.035848040133714676, 0.006451670546084642, 0.003181879874318838, 0.023013073951005936, 0.048448577523231506, -0.057044293731451035, 0.03188228979706764, 0.03244882449507713, 0.019135234877467155, 0.09455286711454391, 0.01351871620863676, 0.04751086235046387, 0.014153626747429371, -0.005284411367028952, 0.043134864419698715, 0.007233099080622196, -0.030299896374344826, -0.06591350585222244, 0.06134214997291565, 0.006754474248737097, -0.021450217813253403, -0.0364341102540493, -0.025044789537787437, -0.015765324234962463, -0.14050087332725525, 0.005250223912298679, -0.03108132630586624, -0.02904961071908474, -0.012590769678354263, -0.033347468823194504, 0.02176278829574585, 0.03858304023742676, -0.04692479223012924, 0.10260158777236938, -0.005328366998583078, 0.007325893733650446, 0.01196562685072422, -0.022036287933588028, -0.04946443438529968, 0.026197396218776703, -0.04532286152243614, 0.009103643707931042, -0.04348650574684143, 0.0030329199507832527, -0.0332888625562191, -0.0014566319296136498, -0.01767982356250286, 0.061889152973890305, -0.033542826771736145, -0.01502296607941389, -0.02096182480454445, 0.0054016257636249065, -0.06419436633586884, -0.002568946685642004, 0.002297888742759824, 0.02754536084830761, 0.008532224223017693, 0.010959536768496037, -0.0012515068519860506, -0.00834175106137991, 0.034714970737695694, -0.008009644225239754, -0.007868009619414806, -0.02072739601135254, 0.0054016257636249065, -0.03694204241037369, 0.0451275072991848, -0.0364341102540493, 0.010500447824597359, 0.0028009333182126284, 0.03465636074542999, 0.06653865426778793, 0.018510092049837112, 0.049894221127033234, -0.05970115214586258, -0.09306815266609192, -0.02961614727973938, -0.013479644432663918, -0.024751752614974976, 0.04555729031562805, 0.06470229476690292, -0.014895983971655369, -0.03987239673733711, -0.002676393138244748, -0.0055188401602208614, 0.019301287829875946, -0.014769001863896847, -0.0010421084007248282, -0.0790415108203888, -0.05384043604135513, 0.02463453821837902, -0.03825093433260918, -0.012395412661135197, 0.06067793816328049, -0.014085251837968826, 0.0241070743650198, -0.06517115235328674, -0.023911718279123306, -0.009279465302824974, -0.024243824183940887, 0.04305671900510788, 0.01502296607941389, -0.01577509194612503, 0.022309789434075356, -0.011936322785913944, 0.022173037752509117, 0.013137769885361195, -0.007438224274665117, 0.026451360434293747, -0.013176840730011463, 0.01888127066195011, 0.01878359168767929, -0.016536984592676163, -0.006441902834922075, 0.06259243935346603, -0.03887607529759407, -0.05001143366098404, 0.008219652809202671, 0.00017856866179499775, 0.02326703816652298, 0.0010610335739329457, -0.048956505954265594, -0.037235077470541, 0.0005808823043480515, 0.01845148392021656, 0.002859540516510606, 0.048448577523231506, -0.025689467787742615, 0.04610429331660271, -0.061185866594314575, -0.02580668218433857, 0.012717751786112785, 0.027369540184736252, -0.009582269005477428, -0.06692936271429062, -0.03928632661700249, 0.014016876928508282, 0.018578466027975082, -0.02871750295162201, 0.023521002382040024, 0.019408734515309334, 0.034011684358119965, -0.06685122102499008, -0.05645822361111641, -0.06286593526601791, -0.020571110770106316, -0.02102043107151985, -0.06638236343860626, 0.014925288036465645, -0.038290005177259445, 0.010539519600570202, -0.007360081188380718, 0.0038119067903608084, -0.0054553491063416, 0.03280046954751015, 0.05505165085196495, -0.04122036322951317, 0.03827046975493431, -0.02186046727001667, -0.006017000880092382, -0.0050841704942286015, 0.07931501418352127, -0.028854254633188248, -0.07599394023418427, -0.05528607964515686, -0.020102253183722496, -0.0404389351606369, 0.013479644432663918, 0.046182435005903244, 0.017709126695990562, 0.024224288761615753, -0.010979073122143745, 0.054231151938438416, 0.019672466441988945, 0.04645593464374542, 0.03219486027956009, -0.04297857731580734, 0.014095019549131393, 0.021586967632174492, 0.005714197177439928, 0.018471021205186844, 0.025982502847909927, 0.03975518420338631, -0.006588420365005732, 0.03069061040878296, 0.028268182650208473, -0.03479311242699623, -0.044814933091402054, 0.024575931951403618, -0.0009902166202664375, -0.059779293835163116, -0.06294407695531845, 0.018764056265354156, 0.04817507788538933, 0.03610200434923172, -0.025220610201358795, -0.018627306446433067, 0.008126858621835709, 0.06704658269882202, 0.029225433245301247, 0.05372321978211403, -0.04911279305815697, 0.0347735770046711, 0.035750363022089005, -0.06153750792145729, -0.033914003521203995, 0.03868072107434273, -0.00173623685259372, -0.052394792437553406, -0.026724860072135925, -0.058177363127470016, 0.026685789227485657, 0.006505393888801336, 0.005538375582545996, 0.03362096846103668, 0.018138913437724113, 0.03576989844441414, -0.004595777485519648, 0.031608790159225464, 0.06192822381854057, 0.03618014603853226, -0.01999480649828911, -0.02199721708893776, -0.023481931537389755, 0.06907829642295837, -0.019076626747846603, 0.03319118171930313, -0.010432072915136814, 0.03586757555603981, -0.010021822527050972, 0.005621402524411678, -0.008854563347995281, 0.06743729114532471, 0.0118679478764534, -0.010695804841816425, -0.03270278871059418, 0.028424467891454697, -0.01721096597611904, -0.02703743241727352, 0.009313653223216534, -0.04395536333322525, -0.041572004556655884, 0.08455058187246323, -0.018832430243492126, 0.04329114779829979, -0.0379188247025013, -0.005684893578290939, 0.007570090238004923, -0.054270222783088684, 0.03416796773672104, -0.029166825115680695, -0.017640752717852592, 0.03827046975493431, -0.012239126488566399, -0.06169379502534866, 0.006886340212076902, 0.06536650657653809, 0.03125714883208275, 0.003662946866825223, 0.016957001760601997, -0.05044122040271759, 0.012092608958482742, 0.008795956149697304, -0.002360158832743764, 0.025591788813471794, -0.056106578558683395, 0.010539519600570202, -0.016556520015001297, 0.04161107540130615, 0.007198911625891924, -0.020063180476427078, -0.0436427928507328, 0.007277054712176323, -0.001844904269091785, 0.012160983867943287, -0.00790708139538765, -0.012239126488566399, 0.02590436115860939, -0.032038576900959015, 0.04262693598866463, 0.008585947565734386, 0.010744644328951836, -0.020981360226869583, 0.04676850512623787, 0.05669264867901802, -0.021880002692341805, 0.0027594200801104307, 0.05618472024798393, 0.05884157866239548, -0.04235343262553215, -0.045244719833135605, 0.017396556213498116, 0.06524929404258728, -0.046573150902986526, -0.012278198264539242, -0.022680968046188354, -0.008283143863081932, 0.005421161651611328, 0.08244072645902634, -0.004058544989675283, 0.031139932572841644, 0.0005872924812138081, 0.04602614790201187, 0.055872149765491486, 0.05110543593764305, 0.08822330087423325, -0.02393125370144844, 0.028385397046804428, 0.003807022934779525, 0.07036764919757843, 0.07482179254293442, -0.027193717658519745, 0.05442650616168976, 0.0011690905084833503, 0.00027304215473122895, 0.002052471274510026, -0.03041711077094078, 0.0029547770973294973, -0.0016300113638862967, 0.01875428855419159, 0.022348860278725624, 0.005489536561071873, -0.01144792977720499, -0.02186046727001667, -0.023540539667010307, 0.02266143076121807, -0.0056409384123981, 0.024849431589245796, 0.012287965975701809, 0.02223164588212967, 0.04055614769458771, -0.0758376494050026, 0.06900015473365784, 0.0075896261259913445, -0.011760501191020012, 0.011174430139362812, -0.02660764567553997, 0.0004532896855380386, 0.05993558093905449, 0.028092360123991966, 0.08337844163179398, -0.08462872356176376, -0.025728538632392883, -0.035047076642513275, 0.016058359295129776, 0.027799325063824654, 0.045479148626327515, 0.01034416165202856, -0.03078828938305378, 0.05618472024798393, -0.029694288969039917, -0.01447596587240696, -0.010070662014186382, 0.000018801219994202256, 0.05114450678229332, -0.0037117861211299896, 0.01351871620863676, -0.035652682185173035, 0.001103768008761108, 0.00540650961920619, -0.0077166082337498665, 0.03975518420338631, -0.058216437697410583, -0.006173286586999893, -0.0499332919716835, -0.0012624957598745823, -0.0042001791298389435, 0.018803127110004425, -0.019311055541038513, 0.031198540702462196, 0.06134214997291565, -0.008385706692934036, 0.02002410963177681, -0.016204876825213432, -0.010451608337461948, -0.0012856944231316447, 0.026685789227485657, 0.03752811253070831, 0.012170751579105854, 0.02942078933119774, -0.03944261372089386, -0.003562826430425048, -0.016126735135912895, 0.02877611108124256, -0.056341007351875305, -0.03985286131501198, -0.013635930605232716, -0.060717009007930756, 0.027389075607061386, 0.02402893267571926, 0.023892180994153023, -0.027721181511878967, 0.06653865426778793, 0.028092360123991966, -0.03309350460767746, 0.042939506471157074, -0.01951618120074272, 0.011994929984211922, -0.03901282697916031, 0.0197896808385849, -0.03578943386673927, -0.008532224223017693, 0.014212233945727348, 0.08845772594213486, 0.014778769575059414, 0.05305900797247887, -0.008883867412805557, 0.022680968046188354, -0.005372322164475918, 0.04305671900510788, -0.03629736229777336, 0.034949395805597305, -0.024927575141191483, -0.008024295791983604, -0.02510339580476284, 0.025630859658122063, 0.032370682805776596, 0.03666853904724121, -0.0008742233039811254, -0.01520855538547039, 0.05505165085196495, -0.010480912402272224, 0.03817279264330864, -0.04622150585055351, 0.023677289485931396, 0.0316283255815506, -0.017640752717852592, 0.007179375737905502, 0.01577509194612503, 0.009455286897718906, -0.025728538632392883, 0.006090259645134211, -0.03801650553941727, 0.0022832369431853294, 0.0056311702355742455, 0.008859447203576565, 0.03694204241037369, 0.006471206434071064, 0.03278093412518501, -0.02172371745109558, -0.028600290417671204, -0.06110772117972374, 0.0363755039870739, 0.019330590963363647, -0.034578219056129456, -0.04020450636744499, -0.01722073368728161, -0.007633581291884184, -0.032038576900959015, 0.07775215059518814, -0.032507434487342834, 0.09658458083868027, -0.008468733169138432, -0.01034416165202856, -0.05106636509299278, 0.03887607529759407, -0.006358875893056393, 0.016419770196080208, -0.03141343221068382, 0.03178461268544197, 0.020864145830273628, -0.004165991675108671, 0.057239651679992676, -0.040829647332429886, -0.0718914344906807, -0.056614506989717484, -0.004901023115962744, -0.038622111082077026, 0.011428394354879856, 0.013968037441372871, -0.014798305928707123, -0.033581897616386414, 0.0340312197804451, -0.02406800352036953, 0.0040731970220804214, -0.013294055126607418, -0.05255107954144478, -0.008693394251167774, -0.0025201074313372374, -0.0015323327388614416, 0.0022856788709759712, 0.03633643314242363, -0.03432425484061241, 0.0010158573277294636, 0.008913170546293259, -0.05133986473083496, -0.00366783095523715, 0.005953509826213121, -0.029459860175848007, -0.0017154801171272993, -0.009191554971039295, -0.0021733485627919436, -0.029166825115680695, 0.08290958404541016, -0.03342561051249504, 0.04712015017867088, -0.03432425484061241, 0.012483322992920876, 0.012756823562085629, -0.031843218952417374, -0.04028264805674553, -0.0033259557094424963, 0.03770393505692482, 0.02443918213248253, -0.04563543573021889, -0.03127668425440788, 0.06149843707680702, 0.02791653946042061, 0.00042337560444138944, -0.036688078194856644, 0.022114431485533714, 0.03221439570188522, -0.014778769575059414, -0.0265099685639143, 0.019848288968205452, 0.0032502547837793827, -0.03975518420338631, -0.005118357948958874, 0.009860653430223465, 0.007506599184125662, 0.06442879140377045, -0.000008027004696486983, 0.0020231676753610373, -0.042705077677965164, -0.0996321588754654, -0.0689220055937767, 0.021743252873420715, -0.03418750315904617, -0.04719829186797142, -0.08978615701198578, -0.041337575763463974, 0.02205582521855831, 0.028561217710375786, 0.027193717658519745, 0.0018229265697300434, -0.045049361884593964, -0.07818193733692169, 0.0023455070331692696, 0.011701893992722034, 0.07318079471588135, -0.0225637536495924, -0.032370682805776596, 0.01360662654042244, -0.004510308615863323, 0.05509072169661522, 0.012346573173999786, -0.0229349322617054, -0.0064125992357730865, -0.07384500652551651, -0.018099842593073845, -0.007364965043962002, 0.025728538632392883, -0.055872149765491486, 0.09189601242542267, -0.0403217189013958, 0.006905876100063324, -0.05411393567919731, 0.0388370044529438, -0.005977929569780827, -0.024224288761615753, -0.0073356619104743, -0.034578219056129456, -0.02369682490825653, 0.03975518420338631, 0.008922938257455826, -0.024185217916965485, 0.01741609163582325, 0.05743500590324402, -0.0021477078553289175, -0.02529875375330448, -0.0027887236792594194, -0.0034749156329780817, 0.037020184099674225, 0.04125943407416344, 0.06032629311084747, -0.05571586638689041, -0.042470648884773254, 0.05259015038609505, -0.01480807363986969, 0.01031485851854086, -0.008380822837352753, 0.09838186949491501, 0.04485400766134262, 0.011223269626498222, -0.018578466027975082, -0.018930109217762947, -0.026861609891057014, 0.03616061061620712, 0.034949395805597305, -0.03428518399596214, 0.042001791298389435, 0.012756823562085629, -0.043369293212890625, 0.03743043541908264, -0.01962362788617611, -0.014837376773357391, 0.0443851500749588, -0.005684893578290939, 0.012180519290268421, 0.02420475333929062, -0.027369540184736252, -0.0601700097322464, -0.014749466441571712, 0.02791653946042061, 0.03793836385011673, -0.06653865426778793, -0.0038998175878077745, 0.014515037648379803, -0.06353015452623367, -0.016790948808193207, -0.08595715463161469, 0.012571234256029129, -0.027096038684248924, 0.007897313684225082, -0.04563543573021889, -0.03332793340086937, 0.012698216363787651, -0.03276139870285988, 0.08126857876777649, 0.0044175139628350735, -0.01598021574318409, -0.0015872770454734564, -0.008649438619613647, -0.0059632775373756886, -0.023892180994153023, -0.0025909245014190674, 0.07908058166503906, -0.0059339739382267, -0.03158925473690033, -0.056614506989717484, -0.037684399634599686, 0.01802169904112816, -0.009196438826620579, -0.019809216260910034, -0.04536193609237671, 0.0007295369287021458, -0.027525825425982475, 0.025650396943092346, -0.02242700383067131, 0.008771536871790886, 0.042470648884773254, 0.033347468823194504, -0.013919197954237461, 0.03092503920197487, 0.027838395908474922, -0.003470031777396798, -0.017826341092586517, 0.028170503675937653, 0.04348650574684143, -0.05688800662755966, -0.04297857731580734, 0.0005995022947899997, 0.03151111304759979, -0.05688800662755966, 0.06290500611066818, 0.006490741856396198, 0.024888502433896065, -0.04047800600528717, 0.006314920261502266, 0.010940001346170902, 0.010988840833306313, -0.03186275437474251, 0.0419236496090889, 0.010031590238213539, 0.04493214935064316, -0.040595218539237976, 0.012961948290467262, 0.013088930398225784, 0.014222001656889915, -0.011506536975502968, -0.010285555385053158, -0.006876572500914335, 0.07704886794090271, -0.008336867205798626, -0.03616061061620712, -0.05063657835125923, 0.02012178860604763, -0.05993558093905449, -0.013567555695772171, 0.011565144173800945, -0.0297138262540102, -0.10385186970233917, -0.03121807612478733, -0.0035945719573646784, -0.042666006833314896, 0.008302679285407066, 0.018910573795437813, -0.04344743490219116, -0.01868591271340847, -0.03502754122018814, 0.010148804634809494, 0.03860257565975189, -0.05606750771403313, -0.028522146865725517, 0.025357360020279884, 0.0015787300653755665, 0.04020450636744499, 0.05970115214586258, 0.04719829186797142, -0.038758862763643265, -0.024790825322270393, -0.008302679285407066, -0.09158343821763992, 0.07646279782056808, -0.02744768187403679, 0.006793545559048653, -0.04235343262553215, 0.04735457897186279, 0.053293436765670776, 0.00777033157646656, 0.06575722247362137, -0.0008882646216079593, 0.03545732796192169, -0.008708045817911625, 0.00737961707636714, 0.01889103837311268, -0.02119625359773636, 0.0380360409617424, -0.015921609476208687, -0.04899557679891586, 0.04579171910881996, -0.05899786576628685, 0.03342561051249504, -0.03860257565975189, -0.024126609787344933, 0.06997694075107574, -0.029831038787961006, -0.015462519600987434, -0.016966769471764565, -0.01268844772130251, -0.017591912299394608, 0.0027984913904219866, 0.07482179254293442, -0.002705696737393737, -0.02039528824388981, -0.03491032496094704, 0.04442422091960907, 0.0201608594506979, -0.0553642213344574, -0.019496645778417587, 0.00935760885477066, 0.008507804945111275, -0.026451360434293747, 0.06067793816328049, 0.015892306342720985, -0.0013406386133283377, -0.023950789123773575, -0.05411393567919731, -0.003958424553275108, 0.03446100279688835, 0.029967790469527245, 0.026392754167318344, 0.012581001967191696, 0.020063180476427078 ]
729,339
tinytuya.core
heartbeat
Send a keep-alive HEART_BEAT command to keep the TCP connection open. Devices only send an empty-payload response, so no need to wait for it. Args: nowait(bool): True to send without waiting for response.
def heartbeat(self, nowait=True): """ Send a keep-alive HEART_BEAT command to keep the TCP connection open. Devices only send an empty-payload response, so no need to wait for it. Args: nowait(bool): True to send without waiting for response. """ # open device, send request, then close connection payload = self.generate_payload(HEART_BEAT) data = self._send_receive(payload, 0, getresponse=(not nowait)) log.debug("heartbeat received data=%r", data) return data
(self, nowait=True)
[ 0.03801944851875305, -0.06208879500627518, -0.021557604894042015, -0.06100459024310112, 0.05843864008784294, -0.02717740088701248, -0.026906348764896393, 0.06367896497249603, -0.0458618625998497, -0.06866630166769028, -0.017708677798509598, -0.06479930877685547, 0.01940726675093174, 0.0008876926731318235, 0.004535590298473835, -0.04091066122055054, -0.00233104033395648, -0.05366813763976097, -0.012567740865051746, -0.017500871792435646, 0.01969638653099537, 0.02240690030157566, 0.0011700376635417342, -0.01716657541692257, -0.006039924453943968, 0.026852138340473175, -0.005208700429648161, -0.018847092986106873, 0.026129335165023804, -0.026020916178822517, -0.0036207924131304026, -0.02950844168663025, -0.006035406608134508, -0.008754953742027283, 0.00013827846851199865, 0.050813063979148865, -0.00869622640311718, -0.05468006432056427, 0.006943428423255682, 0.010299945250153542, -0.011980462819337845, -0.05164428800344467, -0.010200560092926025, 0.029363879933953285, -0.001993355806916952, 0.019262704998254776, 0.011067924089729786, 0.06931682676076889, 0.04127206280827522, 0.04459695890545845, -0.01073362771421671, -0.0007600727258250117, -0.03420666232705116, 0.019009724259376526, -0.04365731403231621, 0.03196597099304199, 0.00730934739112854, 0.023274263367056847, -0.016525087878108025, 0.035905249416828156, -0.02448495849967003, 0.05880004167556763, 0.026852138340473175, -0.01966024748980999, -0.0036862962879240513, 0.025587232783436775, -0.04206714779138565, 0.031170887872576714, 0.025352321565151215, -0.019063934683799744, 0.06208879500627518, 0.023346543312072754, -0.015693863853812218, 0.03704366460442543, 0.015061412006616592, -0.00920670572668314, -0.08688094466924667, 0.01311887800693512, -0.056848473846912384, 0.0765448585152626, -0.0003122735652141273, 0.008077326230704784, 0.0650884285569191, -0.0010802519973367453, 0.041199781000614166, 0.015269218012690544, -0.016507018357515335, -0.007097024004906416, -0.07249715924263, 0.01588360033929348, 0.02721353992819786, 0.04141662269830704, -0.021575676277279854, 0.0719911977648735, 0.08456797152757645, -0.052294813096523285, -0.011393185704946518, 0.04709062725305557, 0.03935663402080536, -0.0046756332740187645, -0.0750269740819931, 0.048897635191679, -0.053089894354343414, -0.04987342283129692, 0.023581454530358315, -0.026815999299287796, 0.024882500991225243, -0.0048382640816271305, -0.012513530440628529, -0.0544632226228714, -0.016750963404774666, -0.052547793835401535, -0.01665157824754715, -0.023346543312072754, 0.010814943350851536, 0.03095404803752899, 0.027556871995329857, 0.01962410658597946, -0.0031080537009984255, -0.014284398406744003, -0.049548160284757614, 0.004490415100008249, 0.015775179490447044, -0.0664256140589714, 0.030411945655941963, 0.05739057436585426, -0.021358834579586983, -0.009175083599984646, 0.0387783907353878, -0.0013179865200072527, -0.012378005310893059, 0.0831223651766777, 0.012965282425284386, 0.028785638511180878, -0.052041832357645035, 0.018955513834953308, 0.013028527610003948, -0.0012592587154358625, 0.04163346439599991, -0.009848193265497684, -0.01157388649880886, -0.06024564802646637, 0.03950119391083717, 0.02869528718292713, 0.05410182103514671, 0.0022994177415966988, -0.03834471106529236, -0.05981196463108063, -0.021756377071142197, -0.005538479425013065, 0.013290544040501118, 0.006094134412705898, -0.04969272017478943, -0.00017166575707960874, 0.012558706104755402, -0.030393874272704124, -0.07365364581346512, 0.014284398406744003, -0.04033241793513298, -0.02446688897907734, -0.0726778656244278, -0.03398982062935829, 0.013263438828289509, 0.020364981144666672, -0.02699670009315014, 0.04578958451747894, -0.08305008709430695, 0.008845304138958454, 0.056089527904987335, 0.015802284702658653, 0.012450285255908966, 0.04539204016327858, -0.07524381577968597, -0.03632086142897606, 0.04105522111058235, 0.015242112800478935, -0.022135848179459572, -0.017952624708414078, 0.0635705441236496, -0.06573895364999771, 0.0010892869904637337, -0.0007346617057919502, -0.0650884285569191, -0.053089894354343414, 0.019606037065386772, -0.006627202033996582, 0.04647624492645264, 0.03397174924612045, 0.0196421779692173, 0.04289837181568146, -0.0043345605954527855, 0.03460420295596123, 0.025298113003373146, 0.0745210126042366, 0.07134068012237549, -0.02499091997742653, 0.026599157601594925, 0.028948267921805382, 0.02672564797103405, 0.040476977825164795, 0.020220419391989708, -0.012378005310893059, 0.02524390257894993, -0.022352689877152443, 0.040187858045101166, -0.04087452217936516, 0.020726382732391357, -0.021557604894042015, -0.0372605063021183, -0.043476611375808716, -0.06967823207378387, 0.01610947586596012, -0.020527610555291176, 0.010670382529497147, 0.022370759397745132, -0.039934877306222916, 0.0068440428003668785, 0.008140571415424347, -0.027683362364768982, -0.05742671340703964, -0.02040112018585205, -0.01385071687400341, -0.01788937859237194, 0.05898074060678482, -0.004138048272579908, 0.004160636104643345, -0.030195103958249092, -0.025261972099542618, -0.013841681182384491, -0.01510658673942089, 0.0017584447050467134, 0.06049862876534462, 0.027574941515922546, -0.020039718598127365, -0.016217896714806557, 0.012784581631422043, -0.01893744431436062, 0.005299050826579332, -0.05063236504793167, -0.01423922274261713, 0.01436571404337883, -0.012097918428480625, 0.04260924831032753, -0.036935243755578995, 0.02397899702191353, -0.05731829255819321, 0.04745202884078026, 0.02692442014813423, 0.018268851563334465, 0.022370759397745132, -0.02421390824019909, -0.06816034018993378, 0.05074078589677811, -0.03881453350186348, -0.01660640351474285, 0.005439094267785549, -0.042428549379110336, 0.03398982062935829, -0.04011557623744011, 0.014546414837241173, 0.009477756917476654, 0.05829408019781113, -0.08218272775411606, 0.08731462806463242, -0.008357412181794643, 0.023888645693659782, 0.0029996333178132772, -0.013688085600733757, -0.032941754907369614, -0.02970721200108528, 0.05095762759447098, -0.00719189178198576, -0.011528710834681988, -0.0691361278295517, -0.06132985278964043, -0.00699312100186944, 0.007521670777350664, -0.08883251249790192, -0.053017616271972656, -0.02771950326859951, -0.03630279004573822, -0.036718402057886124, 0.053053755313158035, 0.026129335165023804, -0.05616180971264839, 0.013552560470998287, -0.005719180218875408, 0.06053476780653, 0.016985874623060226, -0.013145983219146729, -0.05211411044001579, 0.0022689243778586388, -0.004644010681658983, -0.02289479225873947, 0.02392478659749031, 0.013182123191654682, -0.048030272126197815, 0.033176667988300323, 0.021846726536750793, -0.0036998488940298557, 0.045753441751003265, -0.04835553467273712, -0.12049129605293274, -0.019045865163207054, -0.00408835569396615, -0.04712677001953125, -0.008529078215360641, 0.034423504024744034, -0.05063236504793167, -0.011980462819337845, -0.011031784117221832, -0.04763273149728775, 0.02674371935427189, -0.06132985278964043, -0.0020972585771232843, 0.02063603140413761, -0.029147040098905563, 0.07025647163391113, 0.07307540625333786, 0.05522216483950615, -0.014004312455654144, 0.01246835570782423, 0.021864796057343483, 0.12070813775062561, -0.008818198926746845, 0.052583932876586914, 0.06223335489630699, 0.042428549379110336, -0.009260916151106358, -0.023870576173067093, -0.04304293170571327, -0.0015653206501156092, -0.035399287939071655, -0.07611117511987686, -0.011122134514153004, 0.014212118461728096, 0.0183772724121809, 0.008985347114503384, -0.04116364195942879, -0.02246110886335373, -0.022768301889300346, 0.02146725542843342, 0.003790199290961027, 0.046982210129499435, 0.005159007851034403, 0.009550037793815136, -0.033899471163749695, -0.008872409351170063, 0.036682263016700745, 0.04972885921597481, -0.014094662852585316, -0.0633898377418518, 0.0252077616751194, 0.017184646800160408, 0.055366724729537964, -0.018467621877789497, 0.015007201582193375, 0.03588717803359032, -0.01084204763174057, -0.039428915828466415, -0.025623373687267303, -0.01942533627152443, 0.009568107314407825, -0.0063651856034994125, -0.09410897642374039, -0.002254242543131113, -0.00009529144153930247, 0.06917226314544678, 0.040476977825164795, 0.03823629021644592, -0.06429334729909897, -0.014925885945558548, 0.004022851586341858, 0.03805558755993843, 0.023942856118083, -0.019280776381492615, -0.03830856829881668, -0.004607870243489742, -0.011881077662110329, 0.03612209111452103, -0.035941388458013535, -0.029634932056069374, -0.0145012391731143, -0.05453550070524216, 0.019551826640963554, -0.004074803087860346, -0.0055113742128014565, -0.0064781238324940205, -0.05540286749601364, -0.03355613723397255, 0.026291966438293457, 0.0030425498262047768, -0.050523944199085236, 0.020852873101830482, -0.0765448585152626, -0.00254788133315742, 0.03202018141746521, -0.008014080114662647, 0.03243579342961311, -0.026400387287139893, 0.023039352148771286, 0.0041199782863259315, -0.04618712514638901, 0.017446663230657578, -0.007539740763604641, 0.04127206280827522, 0.04604256525635719, -0.057860396802425385, 0.008343859575688839, -0.04304293170571327, 0.0044113583862781525, 0.04958429932594299, -0.04163346439599991, 0.06790736317634583, 0.019298845902085304, 0.013995276764035225, -0.00641939602792263, 0.03445964306592941, 0.06664245575666428, 0.019768668338656425, -0.018991654738783836, -0.002997374627739191, 0.013715190812945366, 0.05059622600674629, 0.003392657497897744, 0.012739406898617744, -0.027864063158631325, 0.009775913320481777, -0.02499091997742653, 0.01913621462881565, 0.03174912929534912, -0.012956247664988041, -0.03852540999650955, 0.014166942797601223, 0.015043341554701328, 0.04734361171722412, 0.027864063158631325, -0.05337901785969734, 0.015431848354637623, -0.03075527586042881, -0.039934877306222916, 0.04582572355866432, 0.014410888776183128, -0.02618354558944702, 0.023382684215903282, -0.042717669159173965, -0.0244488175958395, -0.04188644513487816, 0.06292001903057098, -0.01609140634536743, -0.012820721603929996, -0.023111632093787193, 0.02949037030339241, 0.033935610204935074, -0.032363515347242355, -0.04289837181568146, 0.008235438726842403, 0.028550727292895317, 0.009757842868566513, -0.016073336824774742, -0.01171844732016325, 0.0284965168684721, -0.06429334729909897, 0.0030380322132259607, 0.033646490424871445, 0.027032839134335518, 0.05019868165254593, -0.005533962044864893, -0.033628419041633606, 0.012676160782575607, 0.017238857224583626, -0.01864832267165184, -0.01638956181704998, 0.009920474141836166, 0.026508808135986328, -0.05074078589677811, 0.012730371206998825, 0.05402953922748566, -0.0014388301642611623, -0.06400422751903534, -0.03686296194791794, 0.020328840240836143, -0.017564117908477783, -0.0013112102169543505, -0.02193707786500454, -0.013155017979443073, -0.005981196649372578, -0.046006422489881516, -0.013679050840437412, -0.07181049883365631, -0.06801578402519226, 0.025569163262844086, 0.0022068084217607975, 0.006753692403435707, 0.08760374784469604, 0.02974335104227066, -0.05702917277812958, -0.03323087841272354, 0.010724592953920364, -0.02565951459109783, -0.0342247299849987, 0.03346578776836395, -0.037947166711091995, 0.03809173032641411, -0.0028415201231837273, -0.044777657836675644, -0.027159331366419792, 0.027141259983181953, 0.022641809657216072, 0.030195103958249092, -0.006320010405033827, 0.004562695045024157, 0.008632981218397617, 0.007499083410948515, -0.025840215384960175, 0.02114199288189411, 0.04915061965584755, 0.00005678663728758693, -0.004625940695405006, -0.004765983670949936, 0.01890130341053009, 0.09056723862886429, 0.04286222904920578, 0.019732527434825897, -0.037224363535642624, 0.008745918981730938, 0.050270963460206985, -0.0013179865200072527, -0.034911394119262695, 0.034369293600320816, 0.007481012959033251, -0.01511562243103981, 0.05402953922748566, 0.03370070084929466, 0.01566675864160061, -0.01741955801844597, 0.0016229191096499562, -0.0036433800123631954, -0.10964924842119217, -0.06017336621880531, 0.02421390824019909, -0.06487158685922623, 0.0047524310648441315, -0.049548160284757614, -0.04311520978808403, -0.029436159878969193, 0.03133351728320122, 0.05160814896225929, 0.0372605063021183, -0.022117778658866882, -0.03243579342961311, -0.034676484763622284, 0.002669854322448373, -0.03733278438448906, -0.011646166443824768, 0.0005325026577338576, 0.014745185151696205, -0.027845993638038635, 0.017347276210784912, -0.014121768064796925, -0.045500461012125015, -0.004415875766426325, 0.04365731403231621, 0.037152085453271866, 0.030448084697127342, 0.023292332887649536, 0.02197321690618992, 0.044235557317733765, 0.009297056123614311, -0.015992021188139915, 0.01058906689286232, 0.047235190868377686, 0.04557274281978607, 0.0042487275786697865, -0.011113099753856659, 0.03648349270224571, -0.007702371571213007, 0.011763622052967548, -0.003946053795516491, -0.011320904828608036, -0.013660980388522148, 0.01815139502286911, -0.060101088136434555, -0.04412713646888733, -0.007106059230864048, -0.004987342283129692, 0.020997432991862297, 0.028315816074609756, 0.0008385646506212652, 0.015720969066023827, -0.024792149662971497, -0.03295982629060745, 0.03659191355109215, -0.009902403689920902, 0.04466923698782921, 0.022822510451078415, 0.04965658113360405, 0.02844230644404888, 0.01587456464767456, 0.03402595967054367, 0.034441571682691574, 0.034441571682691574, 0.01423922274261713, -0.0473797507584095, 0.037405066192150116, 0.047488171607255936, -0.05012640357017517, 0.023346543312072754, -0.03230930492281914, -0.0519334115087986, -0.01095950324088335, 0.03144193813204765, -0.01868446357548237, 0.10856503993272781, -0.026093196123838425, 0.0408022403717041, -0.023599524050951004, 0.01222440879791975, -0.029327740892767906, 0.039465054869651794, 0.061076872050762177, -0.041994865983724594, -0.011772656813263893, -0.008632981218397617, -0.025822144001722336, -0.024539168924093246, -0.00650071119889617, -0.031893692910671234, -0.048030272126197815, -0.006333563011139631, 0.008876927196979523, -0.01664254441857338, -0.025261972099542618, 0.050054121762514114, -0.003765353001654148, -0.03736892715096474, -0.029634932056069374, -0.00041081197559833527, -0.0322912335395813, 0.03221895173192024, -0.01435667835175991, 0.004951201844960451, 0.0002685101062525064, -0.06765437871217728, 0.00909376796334982, 0.0021932560484856367, -0.024756010621786118, 0.015811320394277573, -0.007602986413985491, -0.0310263279825449, 0.034152451902627945, 0.003444608999416232, 0.04582572355866432, 0.04463309794664383, -0.008172193542122841, 0.002518517430871725, 0.006252247840166092, 0.04513905942440033, -0.00491957925260067, -0.017970694229006767, -0.008113466203212738, -0.013841681182384491, 0.0151336919516325, -0.0544632226228714, 0.023653734475374222, 0.04354889318346977, -0.011962393298745155, -0.01236896961927414, -0.026671437546610832, -0.011989498510956764, 0.03501981496810913, 0.009712668135762215, -0.01565772481262684, 0.009333196096122265, -0.00580953061580658, -0.07415960729122162, -0.03227316215634346, 0.009676528163254261, 0.010137314908206463, 0.03950119391083717, 0.10198753327131271, -0.009179600514471531, -0.01563965529203415, -0.025641443207859993, 0.055836547166109085, -0.046873789280653, 0.029905982315540314, -0.039175935089588165, -0.061871953308582306, -0.07893010973930359, -0.01019152533262968, -0.04896991699934006, 0.004255503881722689, 0.036682263016700745, 0.014952991157770157, -0.07596661895513535, -0.01991322822868824, 0.024015136063098907, -0.018576042726635933, -0.002518517430871725, 0.05377655848860741, 0.02020234987139702, -0.005777908023446798, 0.02045533061027527, 0.026653368026018143, 0.05135516822338104, -0.04325977340340614, 0.018612181767821312, -0.0252077616751194, 0.019551826640963554, 0.04712677001953125, 0.03221895173192024, -0.007173821795731783, 0.04969272017478943, 0.008479384705424309, -0.012793616391718388, -0.07791818678379059, -0.034875255078077316, -0.014546414837241173, 0.06938910484313965, -0.03250807523727417, 0.0065278164111077785, 0.04412713646888733, -0.013525455258786678, -0.005149972625076771, -0.01592877507209778, 0.0005138678825460374, 0.03295982629060745, 0.016723860055208206, 0.014374748803675175, -0.036935243755578995, -0.003257131902500987, -0.0006290646851994097, 0.06646175682544708, -0.001505463500507176, -0.02096129208803177, -0.0151336919516325, -0.026526877656579018, 0.07538837194442749, 0.038416989147663116, -0.017464732751250267, -0.02719547040760517, 0.0661003515124321, -0.0016206603031605482, -0.006374220829457045, -0.037152085453271866, 0.014862640760838985, -0.006667859386652708, 0.04405485466122627, 0.001879288349300623, 0.0006725458079017699, -0.01073362771421671, -0.013507384806871414, 0.015314392745494843, 0.08738690614700317, -0.0017844204558059573, -0.06505228579044342, 0.07246102392673492, 0.01525114756077528, 0.015260182321071625, 0.045717302709817886, 0.025063201785087585, 0.027087049558758736, 0.03509209677577019, -0.09309705346822739, 0.04506678134202957, 0.003943794872611761, 0.06422106176614761 ]
729,340
tinytuya.core
product
Request AP_CONFIG Product Info from device. [BETA]
def product(self): """ Request AP_CONFIG Product Info from device. [BETA] """ # open device, send request, then close connection payload = self.generate_payload(AP_CONFIG) data = self._send_receive(payload, 0) log.debug("product received data=%r", data) return data
(self)
[ 0.029115773737430573, -0.001644022180698812, -0.05686098337173462, -0.06290553510189056, 0.06431124359369278, -0.05190585181117058, -0.01565609872341156, -0.05777469277381897, 0.0518355667591095, -0.037497323006391525, -0.03386004641652107, -0.05471727252006531, 0.0033144012559205294, 0.004322559107095003, 0.0109469685703516, -0.021806081756949425, -0.020786941051483154, -0.03911389037966728, 0.028448062017560005, 0.043963588774204254, 0.01908251643180847, 0.06979351490736008, -0.025337928906083107, 0.003751489333808422, 0.014347030781209469, 0.07886034995317459, 0.038481321185827255, -0.005794161930680275, 0.030890483409166336, -0.05601755529642105, -0.009216188453137875, 0.00786319188773632, 0.07239408046007156, 0.052643850445747375, -0.017571378499269485, 0.04420958831906319, 0.04266330599784851, -0.06244868040084839, -0.06483838707208633, 0.0008631939999759197, -0.08448319137096405, -0.05608784034848213, 0.062237825244665146, -0.020523371174931526, 0.01116661075502634, 0.03605647012591362, -0.04090616852045059, 0.04912957549095154, 0.01843237690627575, 0.04558015614748001, 0.04955128952860832, 0.0624135360121727, -0.031118912622332573, -0.012493249960243702, -0.04350673407316208, 0.018854089081287384, -0.00916347373276949, -0.01765044964849949, -0.002284279325976968, 0.039395030587911606, -0.02521492913365364, 0.0448773019015789, 0.017492307350039482, -0.0408710278570652, -0.026515210047364235, -0.03386004641652107, -0.00509130721911788, 0.01069218385964632, 0.014206459745764732, 0.06880951672792435, 0.04266330599784851, 0.001117429812438786, -0.04730215296149254, -0.01941637322306633, 0.02361593395471573, -0.0119485380128026, 0.013969246298074722, -0.03697017952799797, 0.0067869448103010654, -0.018590519204735756, -0.04828614741563797, -0.005517412908375263, 0.06852837651968002, 0.02398493140935898, 0.02196422405540943, 0.06160525232553482, 0.007138372398912907, 0.026550352573394775, -0.04730215296149254, 0.025777213275432587, -0.00749858608469367, 0.08153119683265686, -0.04354187473654747, 0.08968431502580643, 0.04586130008101463, -0.04860243201255798, 0.028043920174241066, 0.025900213047862053, 0.027253208681941032, -0.015313456766307354, -0.04055474326014519, -0.010630683973431587, -0.06258925050497055, -0.02178850956261158, 0.034685902297496796, -0.08349919319152832, 0.024353930726647377, 0.07105865329504013, 0.03767303749918938, 0.018713518977165222, 0.04238216578960419, -0.0038854710292071104, -0.007700656540691853, -0.008974581956863403, -0.013714460656046867, 0.028272347524762154, 0.011122683063149452, 0.00536366319283843, -0.003044241340830922, 0.0248107872903347, -0.049691859632730484, -0.01089425478130579, 0.03865703195333481, -0.0061060539446771145, 0.04533415660262108, 0.05788012221455574, -0.037321608513593674, -0.046845294535160065, 0.03675932437181473, -0.026374639943242073, 0.0047354865819215775, 0.02358078956604004, 0.01789644919335842, 0.014882957562804222, -0.022052079439163208, -0.02649763971567154, 0.01684216596186161, -0.022965792566537857, 0.03459804505109787, -0.012871035374701023, -0.010630683973431587, -0.015295885503292084, -0.016016311943531036, -0.017676807940006256, -0.043295878916978836, -0.024547215551137924, 0.0235456470400095, -0.04586130008101463, -0.023018505424261093, -0.050675857812166214, 0.0018131466349586844, 0.022385936230421066, -0.003408847376704216, -0.03918417543172836, 0.006501410156488419, -0.01018261443823576, -0.01375838927924633, -0.040203314274549484, -0.012994034215807915, -0.04347158968448639, -0.02168308198451996, -0.011043611913919449, 0.0005996233085170388, -0.005649198312312365, -0.009901472367346287, -0.01724630780518055, -0.04842672124505043, -0.009620330296456814, 0.021261367946863174, -0.047056153416633606, -0.011851894669234753, -0.010938183404505253, 0.0016132722375914454, -0.07028551399707794, -0.027253208681941032, 0.037567608058452606, -0.010867897421121597, -0.08855974674224854, 0.027428921312093735, -0.03816503286361694, -0.03637275472283363, -0.0035560077521950006, -0.01948665827512741, 0.06982865929603577, 0.023018505424261093, 0.02876434661448002, 0.03530089929699898, 0.022473793476819992, 0.023738931864500046, 0.015875739976763725, 0.0015232189325615764, -0.0238970760256052, -0.01671038195490837, 0.007683085277676582, 0.016684023663401604, -0.01282710675150156, 0.06803637742996216, 0.03540632873773575, -0.018643232062458992, 0.03354376181960106, 0.016727952286601067, -0.022052079439163208, -0.023299647495150566, 0.053627848625183105, 0.006136803887784481, -0.05331156402826309, 0.07569749653339386, 0.00510887848213315, -0.009075617417693138, -0.008161905221641064, -0.0372161790728569, 0.024512073025107384, 0.06055097281932831, 0.005403198767453432, 0.01860808953642845, -0.004898021928966045, -0.016279881820082664, -0.01948665827512741, -0.01789644919335842, -0.037286464124917984, -0.016578596085309982, -0.041292741894721985, 0.04266330599784851, -0.007300907745957375, -0.024933787062764168, 0.020189514383673668, -0.034176331013441086, -0.03120676800608635, -0.053416989743709564, 0.017158450558781624, 0.005324127618223429, 0.015155314467847347, 0.05141385272145271, 0.03229619562625885, 0.011974894441664219, 0.017764663323760033, -0.004414808936417103, -0.004111702553927898, -0.02693692408502102, 0.017140880227088928, 0.03862189128994942, -0.01941637322306633, 0.008166298270225525, 0.008245369419455528, -0.08666203916072845, -0.003990899305790663, 0.04811043664813042, 0.0448773019015789, 0.02836020477116108, -0.053592704236507416, 0.028553489595651627, -0.025320356711745262, 0.025425784289836884, 0.013828675262629986, -0.01067461259663105, -0.06466267257928848, 0.007836834527552128, 0.0041512381285429, 0.01989080011844635, -0.04617758467793465, -0.02307122014462948, 0.024916214868426323, -0.04248759523034096, 0.08399119228124619, 0.025267641991376877, -0.014689672738313675, 0.01843237690627575, 0.004858486354351044, -0.0028245991561561823, 0.042171310633420944, 0.09066831320524216, 0.05485784262418747, 0.009585186839103699, -0.008847189135849476, -0.009971757419407368, -0.036513324826955795, 0.015884526073932648, 0.020786941051483154, -0.0006819891277700663, -0.021524939686059952, -0.020892368629574776, 0.0023150290362536907, -0.0003275414928793907, 0.03521304205060005, -0.04586130008101463, -0.03985188528895378, 0.022139936685562134, 0.029871344566345215, 0.04290930554270744, 0.024002503603696823, -0.025021642446517944, 0.06406524777412415, -0.04368244856595993, 0.004608094226568937, 0.05310070514678955, 0.02667335234582424, -0.003283651312813163, 0.05123814195394516, 0.04958643019199371, 0.016279881820082664, 0.02270222082734108, 0.002947598695755005, -0.06515467166900635, -0.06178096681833267, -0.009848757646977901, 0.01836208999156952, 0.1113322526216507, -0.00806526280939579, -0.07780606299638748, -0.0033122049644589424, -0.016824595630168915, 0.026550352573394775, 0.025812355801463127, -0.006822087801992893, -0.028237204998731613, -0.023387504741549492, 0.023422647267580032, 0.062062110751867294, 0.04867272078990936, 0.06961780041456223, -0.01985565759241581, 0.0664198100566864, 0.011254468001425266, 0.026234067976474762, 0.07900092005729675, 0.0029673664830625057, 0.006215875037014484, 0.009049260057508945, 0.014276744797825813, -0.02795606292784214, -0.0835694745182991, 0.03368433192372322, -0.020540941506624222, -0.006931908894330263, 0.03342076390981674, -0.012484464794397354, -0.007454657461494207, -0.04526387155056, -0.05324127897620201, -0.011386253871023655, -0.010305613279342651, -0.008324440568685532, -0.020540941506624222, 0.008781296201050282, -0.005614055320620537, -0.012299965135753155, 0.03897331655025482, -0.04248759523034096, -0.00300250924192369, -0.04097645357251167, -0.015243170782923698, -0.045896440744400024, 0.037532463669776917, 0.03900846093893051, 0.057388123124837875, -0.04543958604335785, -0.048953860998153687, 0.008807653561234474, -0.01302917767316103, 0.03243676573038101, -0.004814557731151581, 0.03609161078929901, -0.008412297815084457, 0.054400987923145294, -0.06403010338544846, -0.015085028484463692, -0.056404124945402145, 0.05991839990019798, 0.02981862984597683, 0.007920298725366592, -0.032612480223178864, -0.01330153364688158, 0.001030671177431941, 0.03073234111070633, -0.009014117531478405, 0.002264511538669467, -0.06332724541425705, -0.03018762916326523, -0.04835643246769905, -0.0011520235566422343, -0.004408219829201698, 0.01331910490989685, -0.016754308715462685, -0.0002494312066119164, 0.0558418408036232, -0.053416989743709564, -0.034141190350055695, -0.020681513473391533, -0.040379028767347336, 0.021331652998924255, -0.018168805167078972, 0.03296390548348427, -0.05675555393099785, 0.037532463669776917, -0.03422904759645462, -0.023053649812936783, -0.013714460656046867, -0.05499841645359993, -0.05404956266283989, -0.0379541777074337, -0.03995731472969055, -0.024547215551137924, -0.04199559614062309, 0.018924374133348465, 0.014575459063053131, -0.04073045775294304, 0.06062125787138939, -0.020804513245821, -0.015946026891469955, -0.023914646357297897, -0.04350673407316208, 0.04617758467793465, -0.03672417998313904, -0.016077810898423195, -0.017228737473487854, -0.014039531350135803, 0.02639221027493477, 0.06529524177312851, 0.045791011303663254, 0.040484458208084106, -0.0016022900817915797, 0.0020042352844029665, 0.024107931181788445, -0.012115465477108955, -0.016490738838911057, 0.014373388141393661, 0.008601189590990543, 0.03080262616276741, 0.01843237690627575, 0.005064949858933687, -0.0028487597592175007, 0.04638843983411789, -0.007037337403744459, -0.015541884116828442, 0.032348908483982086, -0.029467202723026276, 0.004414808936417103, -0.04473673179745674, -0.020417941734194756, -0.03812989220023155, -0.02690178155899048, -0.003562597092241049, -0.0022864756174385548, 0.005442734342068434, -0.027973635122179985, -0.015278314240276814, -0.016965165734291077, -0.06153496727347374, 0.027903350070118904, -0.010349541902542114, -0.04276873543858528, -0.014496387913823128, 0.07576778531074524, -0.033596474677324295, -0.005192342214286327, -0.06287039071321487, -0.023000935092568398, -0.0147775299847126, -0.0034395973198115826, -0.04522872716188431, 0.0046915579587221146, -0.004542201291769743, -0.07070723176002502, -0.022684650495648384, 0.05014871433377266, 0.052468135952949524, 0.019802944734692574, 0.020207084715366364, -0.033157192170619965, 0.00499905738979578, 0.02751677855849266, 0.005728269461542368, -0.009620330296456814, 0.04652900993824005, -0.006013804581016302, -0.02222779393196106, -0.0028311884962022305, 0.05524441599845886, -0.020997798070311546, -0.06540067493915558, -0.012510821223258972, -0.025337928906083107, 0.0022711006458848715, 0.028114205226302147, -0.033701904118061066, -0.04153873771429062, 0.05415498837828636, -0.012133036740124226, -0.004876057617366314, -0.008939438499510288, -0.00370975723490119, -0.0021052707452327013, 0.006470660213381052, 0.026216497644782066, 0.050675857812166214, 0.004019452724605799, -0.001078443368896842, -0.016754308715462685, 0.003918417263776064, 0.03201505169272423, -0.0319271944463253, 0.02901034615933895, 0.004324755631387234, -0.0020009407307952642, -0.0004774473200086504, -0.04431501775979996, -0.09116031229496002, 0.07569749653339386, 0.02744649350643158, 0.03784874826669693, -0.04041416943073273, 0.014821457676589489, 0.04628301039338112, -0.03897331655025482, -0.011904609389603138, 0.019258230924606323, 0.036478180438280106, 0.04828614741563797, -0.038305606693029404, 0.007893942296504974, 0.04536930099129677, 0.040203314274549484, 0.05225728079676628, -0.005750233773142099, -0.01792280562222004, 0.0019965479150414467, 0.0001532004534965381, -0.04153873771429062, -0.05229242146015167, 0.03466833010315895, -0.015085028484463692, 0.008052084594964981, 0.030099771916866302, -0.006571695674210787, 0.03076748363673687, -0.03763789311051369, -0.02897520363330841, -0.007160336710512638, -0.07211294025182724, -0.02069908380508423, 0.028992775827646255, -0.04266330599784851, -0.014118602499365807, -0.06083211302757263, -0.05187071114778519, 0.008363976143300533, 0.016780667006969452, 0.03445747494697571, 0.013881389051675797, -0.06181611120700836, 0.013661746867001057, 0.01158832386136055, 0.02196422405540943, 0.0020778155885636806, 0.028553489595651627, 0.009022902697324753, 0.04167931154370308, -0.032067764550447464, -0.012308751232922077, -0.02521492913365364, -0.01992594264447689, -0.015401313081383705, -0.0576692633330822, 0.05187071114778519, 0.034281760454177856, -0.011641038581728935, -0.03440475836396217, 0.038340747356414795, -0.012352678924798965, -0.04807529225945473, 0.04536930099129677, -0.025091929361224174, 0.0008181673474609852, 0.04649386927485466, -0.010999683290719986, -0.02718292362987995, 0.020207084715366364, -0.015005957335233688, -0.011518038809299469, -0.015831811353564262, 0.0332099050283432, 0.009242544881999493, -0.011280825361609459, -0.006844052113592625, 0.006356446072459221, -0.026796352118253708, -0.010815183632075787, -0.030995912849903107, 0.06557638198137283, -0.05478755757212639, -0.013442104682326317, -0.052468135952949524, -0.023879503831267357, -0.024107931181788445, -0.006242232397198677, 0.05018385872244835, 0.02525007165968418, 0.03616189584136009, 0.005961090326309204, 0.03459804505109787, -0.052538421005010605, 0.0330166220664978, 0.05338184908032417, -0.07752492278814316, 0.019029803574085236, -0.0060401614755392075, -0.04941071569919586, -0.007669906597584486, -0.002883902518078685, -0.007841227576136589, 0.015884526073932648, -0.04550987109541893, -0.041222453117370605, 0.03883274644613266, -0.01368810422718525, 0.003861310426145792, -0.03426418825984001, 0.0024336359929293394, 0.018555376678705215, -0.031663622707128525, 0.04058988392353058, 0.030011914670467377, -0.000731957727111876, 0.021524939686059952, -0.03241919353604317, 0.03387761861085892, -0.03897331655025482, -0.05665012449026108, -0.05050014331936836, 0.0050254142843186855, 0.05225728079676628, -0.01643802411854267, 0.08195290714502335, 0.025021642446517944, -0.04442044720053673, -0.052608709782361984, 0.03974645957350731, -0.0195218026638031, -0.03466833010315895, 0.03248947858810425, 0.03298147767782211, 0.07309693843126297, -0.031400054693222046, -0.07886034995317459, 0.030011914670467377, 0.0437878742814064, -0.05239785090088844, -0.03675932437181473, 0.010112328454852104, -0.04420958831906319, -0.0015144331846386194, -0.056333839893341064, 0.039289601147174835, 0.077384352684021, 0.011465325020253658, -0.031663622707128525, 0.03876246139407158, 0.052503280341625214, -0.03278819099068642, 0.0056404126808047295, -0.06838780641555786, -0.017562592402100563, 0.03368433192372322, -0.07281579077243805, 0.03672417998313904, -0.02649763971567154, 0.015401313081383705, -0.0704260841012001, -0.013160962611436844, 0.005539377219974995, 0.08047691732645035, 0.007379978895187378, 0.04568558558821678, 0.032612480223178864, 0.0037119537591934204, -0.014742386527359486, -0.010973325930535793, -0.021437082439661026, 0.052924994379282, 0.037497323006391525, 0.03823532164096832, -0.024371502920985222, 0.029871344566345215, -0.00369438249617815, 0.01867837645113468, 0.01177282352000475, 0.020084086805582047, -0.0009038277785293758, -0.05703669413924217, -0.05324127897620201, 0.03419390320777893, -0.07309693843126297, -0.045053016394376755, 0.006316910497844219, -0.012027609162032604, -0.05615812540054321, -0.008144333958625793, 0.015585812740027905, 0.023440219461917877, 0.029590202495455742, 0.044104158878326416, 0.014065888710319996, 0.05615812540054321, -0.015497956424951553, 0.026708494871854782, 0.015585812740027905, -0.06234325096011162, -0.05784497782588005, -0.07850892096757889, 0.0074107288382947445, 0.03039848431944847, 0.04716157913208008, -0.003733918070793152, -0.0653303861618042, 0.004555379971861839, 0.0719020813703537, -0.14717787504196167, 0.011922180652618408, -0.05935611575841904, 0.09544772654771805, -0.081039197742939, 0.002890491858124733, 0.023053649812936783, -0.009831186383962631, 0.04814557731151581, 0.04572072625160217, -0.0028509562835097313, 0.018643232062458992, 0.05225728079676628, 0.05004328489303589, -0.04937557503581047, -0.012739249505102634, -0.020189514383673668, 0.023159077391028404, -0.00578537629917264, -0.0013584871776401997, -0.0031782230362296104, -0.0008653904078528285, 0.07759521156549454, 0.007015373092144728, 0.01280953548848629, 0.0656818151473999, 0.05893440544605255, 0.04185502603650093, -0.016798237338662148, 0.015041099861264229, -0.01711452379822731, -0.010138685815036297, 0.006356446072459221, 0.010903040878474712, 0.0010542827658355236, 0.008016941137611866, 0.03637275472283363, -0.0017022272804751992, 0.01802823506295681, -0.023738931864500046, -0.006514588836580515, 0.0083024762570858, 0.0031013484112918377, -0.013547533191740513, -0.012633820995688438, 0.02243865095078945, -0.013512390665709972, 0.05956697463989258, -0.03992217406630516, 0.040484458208084106, 0.014443673193454742, -0.0025412605609744787 ]
729,341
tinytuya.core
receive
Poll device to read any payload in the buffer. Timeout results in None returned.
def receive(self): """ Poll device to read any payload in the buffer. Timeout results in None returned. """ return self._send_receive(None)
(self)
[ 0.012618943117558956, -0.023828232660889626, -0.04942277818918228, -0.02009180188179016, 0.04144040495157242, 0.007893208414316177, 0.007400678936392069, -0.009315598756074905, -0.021008925512433052, -0.05692960321903229, -0.006844460032880306, -0.018070733174681664, -0.004475223831832409, -0.00413554860278964, 0.004611094016581774, 0.03964012488722801, -0.002904225140810013, -0.027445776388049126, -0.005774482619017363, 0.0016102739609777927, -0.014546601101756096, -0.000008027485819184221, 0.017968831583857536, -0.02017672173678875, -0.04843771830201149, 0.02978953719139099, 0.011115878820419312, -0.06885221600532532, -0.00009327806037617847, 0.029687633737921715, -0.010037409141659737, -0.02187509834766388, 0.019887996837496758, -0.003723692148923874, -0.07411718368530273, 0.034137383103370667, -0.035088472068309784, 0.013162423856556416, -0.01863119751214981, -0.011234764941036701, -0.052955400198698044, -0.02895733155310154, 0.0434105210006237, 0.03148791193962097, -0.011277224868535995, -0.013680428266525269, -0.017765026539564133, 0.014189941808581352, -0.026919279247522354, 0.08403570204973221, 0.01749328523874283, 0.09463357925415039, -0.07112804055213928, 0.00009314537601312622, -0.031997427344322205, 0.029823504388332367, -0.012780288234353065, 0.042459432035684586, -0.01839342527091503, 0.03225218504667282, -0.052411921322345734, 0.05475568026304245, -0.035699889063835144, -0.012907667085528374, 0.007825273089110851, -0.01216038130223751, 0.017731057479977608, 0.0013151809107512236, 0.06260218471288681, 0.03913060948252678, 0.004492207895964384, 0.046467602252960205, -0.015259919688105583, 0.07303021848201752, 0.018495328724384308, -0.02440568059682846, 0.029076218605041504, 0.004938032012432814, -0.006012255325913429, 0.018002798780798912, 0.05091734975576401, 0.03135204315185547, 0.06661035120487213, 0.03096141666173935, 0.0403534434735775, 0.026358814910054207, 0.044395580887794495, 0.010946040973067284, -0.058424174785614014, 0.004517683293670416, -0.02632484771311283, 0.055638838559389114, -0.04589015245437622, 0.03573385626077652, 0.024762339890003204, -0.026936262845993042, -0.020737186074256897, 0.03308438882231712, -0.012389661744236946, 0.010929057374596596, -0.034850701689720154, 0.0979624018073082, -0.015090081840753555, -0.0194124523550272, 0.06182093173265457, 0.03303343802690506, 0.014410730451345444, 0.03335613012313843, 0.014538109302520752, 0.042934976518154144, 0.05197034403681755, 0.009077826514840126, -0.030248098075389862, 0.02849877066910267, -0.058627981692552567, 0.06392692029476166, -0.04279910773038864, 0.038451261818408966, -0.08281287550926208, 0.0051206075586378574, -0.003853193251416087, 0.03087649866938591, -0.011472538113594055, -0.06939569115638733, 0.009663766250014305, 0.08159004151821136, -0.006088682450354099, -0.016372356563806534, 0.05434807017445564, 0.0333900973200798, -0.021059878170490265, 0.06314566731452942, 0.04065915197134018, 0.06905601918697357, -0.04769043251872063, 0.057473085820674896, 0.043002910912036896, -0.012296251021325588, 0.059647008776664734, -0.053634751588106155, -0.013952168636023998, -0.019684191793203354, 0.07309815287590027, -0.049083102494478226, 0.016499735414981842, -0.0015720603987574577, 0.012788780964910984, -0.041474372148513794, -0.00912877731025219, 0.005222510080784559, 0.009587339125573635, -0.011939591728150845, 0.008262605406343937, 0.03087649866938591, 0.07683458924293518, 0.06834270060062408, -0.030689677223563194, -0.026155009865760803, -0.043546393513679504, -0.07690252363681793, -0.018053749576210976, 0.009740193374454975, -0.005523971747606993, -0.0259512048214674, -0.01690734550356865, 0.02179018035531044, -0.031997427344322205, 0.036549076437950134, 0.01539578940719366, 0.04711298272013664, 0.0058296797797083855, 0.05173256993293762, -0.03750016912817955, -0.07072042673826218, -0.0076766652055084705, 0.028294963762164116, -0.040081702172756195, 0.005774482619017363, -0.02442266419529915, -0.00155401520896703, -0.01086112204939127, -0.028464801609516144, -0.029212087392807007, -0.012763304635882378, 0.045788250863552094, 0.027157051488757133, 0.008729659020900726, 0.00932409055531025, -0.0018554771086201072, 0.03004429303109646, -0.0805710181593895, -0.015506183728575706, -0.003955096006393433, 0.002029560739174485, -0.026138026267290115, -0.0038213487714529037, 0.008950447663664818, 0.09076128154993057, -0.010920565575361252, -0.008950447663664818, 0.016525210812687874, -0.027751483023166656, -0.013221866451203823, -0.009179729036986828, -0.0534309484064579, -0.05998668447136879, 0.03563195466995239, 0.04059121757745743, -0.016024189069867134, -0.02170526050031185, -0.057405151426792145, 0.017968831583857536, 0.01467397902160883, 0.007770075928419828, 0.059035591781139374, -0.03688875213265419, -0.05377062410116196, -0.008627756498754025, -0.0008874021004885435, 0.010733744129538536, 0.011396110989153385, -0.0663725808262825, -0.06114158034324646, 0.006470817141234875, -0.01825755462050438, 0.037771910429000854, -0.010011933743953705, -0.05669183284044266, 0.011277224868535995, -0.00430963234975934, 0.018206603825092316, 0.046943146735429764, 0.037839844822883606, -0.020448461174964905, 0.03559798747301102, 0.022690320387482643, 0.009485436603426933, 0.017510268837213516, -0.044939059764146805, 0.0023989577312022448, -0.0025751644279807806, -0.028294963762164116, 0.014580568298697472, -0.024813290685415268, 0.0140540711581707, 0.0003855847171507776, 0.04915103688836098, 0.04707901552319527, 0.049388810992240906, 0.03678685054183006, -0.004424272570759058, -0.05675976723432541, 0.002114479662850499, -0.03906267508864403, 0.004216221626847982, -0.07846502959728241, -0.008105505257844925, -0.013969152234494686, 0.008924972265958786, 0.0033182045444846153, 0.0051206075586378574, 0.006551490165293217, -0.0748644694685936, 0.08220145851373672, -0.013255834579467773, 0.0026685751508921385, -0.0012737829238176346, -0.012797272764146328, 0.003468935377895832, 0.023114914074540138, 0.06419865787029266, -0.02231667749583721, -0.00841121282428503, -0.028379883617162704, -0.028430834412574768, -0.0209409911185503, 0.05930733308196068, 0.03096141666173935, 0.016244977712631226, -0.009782652370631695, 0.009935506619513035, 0.03933441638946533, 0.01854627951979637, -0.014962702989578247, -0.058254338800907135, 0.010453511960804462, 0.02409997209906578, 0.0028384129982441664, -0.04198388382792473, -0.016567669808864594, 0.028821460902690887, 0.0195483211427927, 0.005498496349900961, -0.01893690600991249, 0.05088338255882263, 0.01204998604953289, -0.06382501870393753, 0.03209932893514633, 0.07065249234437943, -0.0026239927392452955, -0.04052327945828438, -0.00502295047044754, -0.05543503165245056, 0.010232722386717796, -0.05754102021455765, -0.02578136697411537, -0.010784695856273174, 0.016915837302803993, -0.023301735520362854, 0.02009180188179016, 0.013230358250439167, -0.023114914074540138, 0.06426659226417542, -0.0649799108505249, 0.04843771830201149, 0.04697711393237114, 0.04144040495157242, 0.057642921805381775, 0.02571343071758747, 0.030248098075389862, -0.004861604887992144, 0.006466571241617203, 0.007927175611257553, 0.018053749576210976, -0.011548965238034725, 0.03648114204406738, -0.03386564180254936, 0.01869913376867771, 0.004184376914054155, -0.019293565303087234, -0.025424707680940628, -0.012253792025148869, -0.007379448972642422, -0.06036032736301422, -0.018987856805324554, 0.01539578940719366, 0.020907023921608925, 0.03447705879807472, 0.011047943495213985, 0.0020062080584466457, -0.02573041431605816, -0.025526609271764755, 0.019599273800849915, 0.04225562512874603, 0.06976933777332306, 0.03447705879807472, -0.0009808128233999014, -0.011311192065477371, 0.051800504326820374, -0.055706772953271866, 0.06008858606219292, -0.047622498124837875, 0.010495970956981182, 0.06392692029476166, 0.015047621913254261, -0.005129099357873201, 0.023080946877598763, 0.06633861362934113, -0.004555896855890751, -0.019684191793203354, -0.049932289868593216, 0.04891326278448105, 0.017917878925800323, -0.027530694380402565, -0.07051662355661392, -0.0038319635204970837, -0.04819994419813156, 0.06270408630371094, 0.007812535390257835, 0.018902938812971115, -0.08165797591209412, -0.027989257127046585, -0.017815977334976196, 0.02965366654098034, -0.03318629041314125, -0.0692937895655632, -0.03957219049334526, -0.03279566392302513, -0.013111472129821777, 0.05312523990869522, -0.032388053834438324, 0.020380526781082153, -0.04042137786746025, -0.05380459129810333, 0.009213696233928204, 0.011481029912829399, -0.1154896542429924, -0.009043858386576176, -0.06199076771736145, 0.010343117639422417, 0.02503408119082451, 0.019837046042084694, -0.04904913529753685, -0.01677996665239334, -0.061481256037950516, 0.016652587801218033, 0.0345110259950161, 0.019837046042084694, 0.00878060981631279, -0.050237998366355896, -0.0097062261775136, 0.02194303460419178, -0.07995960116386414, 0.02510201558470726, 0.02486424334347248, 0.06559132784605026, 0.11080212891101837, -0.07092422991991043, -0.02010878548026085, -0.027208002284169197, -0.029381925240159035, 0.023760298267006874, -0.025849301367998123, -0.02272428758442402, 0.0003386139578651637, -0.02634183131158352, 0.0057405149564146996, 0.062092673033475876, 0.05057767406105995, 0.032218217849731445, -0.03498657047748566, -0.0448031909763813, 0.002307669958099723, -0.004180131014436483, 0.019752128049731255, 0.028091158717870712, 0.002243980998173356, 0.0347827672958374, -0.009994950145483017, -0.004942277912050486, 0.0033139586448669434, 0.02286015823483467, -0.019684191793203354, -0.012763304635882378, 0.01725551299750805, 0.01654219441115856, -0.018002798780798912, -0.06701796501874924, -0.0049974750727415085, -0.009927014820277691, 0.03164076805114746, 0.06199076771736145, 0.04653553664684296, 0.009595830924808979, 0.025849301367998123, -0.04656950384378433, 0.03811158612370491, 0.008534345775842667, -0.02002386748790741, -0.041236598044633865, -0.019684191793203354, -0.014716438949108124, 0.07520414143800735, 0.011158338747918606, -0.051392894238233566, -0.06188886612653732, -0.06715383380651474, 0.035224344581365585, -0.03841729462146759, -0.08913083374500275, -0.020431477576494217, 0.012041494250297546, -0.031521882861852646, -0.05411029979586601, 0.02279222197830677, 0.05091734975576401, 0.03282963111996651, -0.03804365172982216, -0.06250028312206268, 0.016457274556159973, 0.016610128805041313, -0.03347501531243324, -0.03444309160113335, -0.006475063040852547, 0.02987445518374443, -0.04310481250286102, 0.025832317769527435, 0.03702462464570999, -0.02956874668598175, -0.027208002284169197, -0.018987856805324554, -0.03624337166547775, -0.02355649136006832, 0.007748845964670181, -0.056623898446559906, -0.016805442050099373, -0.017578205093741417, -0.003772520460188389, 0.03203139454126358, -0.04718092083930969, -0.07900851219892502, 0.016244977712631226, 0.02326776832342148, 0.0013279187260195613, 0.060326360166072845, -0.005146082956343889, -0.005222510080784559, -0.01317091565579176, 0.04076105356216431, 0.0040102931670844555, -0.053634751588106155, 0.015412773005664349, -0.012534024193882942, 0.030383968725800514, 0.000009470443728787359, -0.05506138876080513, -0.05546899884939194, 0.023624427616596222, 0.01708567515015602, 0.0403534434735775, 0.02603612281382084, 0.10720156878232956, 0.0008263666532002389, -0.0251869335770607, 0.006186339072883129, -0.0020136386156082153, 0.022520482540130615, -0.0037173230666667223, -0.04358036071062088, 0.019769111648201942, 0.02041449397802353, 0.057405151426792145, 0.04167817533016205, -0.007031281944364309, -0.011472538113594055, -0.03556402027606964, -0.034918636083602905, -0.027904337272047997, -0.002203644486144185, -0.06270408630371094, 0.009256156161427498, -0.0016145198605954647, 0.034697845578193665, -0.03157283365726471, 0.0018533541588112712, -0.03559798747301102, 0.019361499696969986, -0.005583415273576975, -0.18165843188762665, -0.03265979513525963, 0.023624427616596222, -0.01747630164027214, 0.029229072853922844, -0.031912509351968765, -0.053872525691986084, 0.030010325834155083, -0.038451261818408966, 0.037466201931238174, 0.07432098686695099, -0.02416790835559368, -0.019004840403795242, -0.019293565303087234, 0.03279566392302513, -0.016652587801218033, 0.006521768402308226, -0.011939591728150845, 0.021229716017842293, -0.01597323827445507, 0.017968831583857536, 0.025577561929821968, -0.011353651992976665, 0.007328497711569071, -0.046943146735429764, 0.03858713060617447, 0.031997427344322205, -0.013272818177938461, 0.009850587695837021, 0.02409997209906578, 0.029908422380685806, -0.038926806300878525, 0.0006252151215448976, 0.04065915197134018, 0.012525532394647598, 0.027309905737638474, 0.034697845578193665, 0.03658304363489151, -0.008992907591164112, -0.014546601101756096, -0.04089692234992981, -0.02141653746366501, 0.03374675661325455, -0.03872299939393997, 0.0009935506386682391, -0.07099217176437378, -0.034307219088077545, -0.02216382324695587, -0.03712652623653412, -0.027972273528575897, -0.01712813414633274, 0.01416446641087532, 0.04643363505601883, 0.03355993330478668, -0.00048244529170915484, -0.0029955129139125347, 0.014410730451345444, 0.05268366262316704, 0.03834935650229454, 0.018987856805324554, -0.00834752433001995, 0.025118999183177948, -0.014300336129963398, 0.03997980058193207, 0.017815977334976196, -0.05658992752432823, 0.02632484771311283, -0.005366872064769268, -0.07676664739847183, 0.03174266964197159, 0.015845859423279762, -0.006305225659161806, -0.014894768595695496, -0.006322209257632494, 0.030553806573152542, 0.06267011910676956, 0.008105505257844925, 0.02978953719139099, -0.034392137080430984, 0.025458674877882004, -0.009884555824100971, 0.03665098175406456, 0.049864355474710464, 0.054246168583631516, 0.002866011578589678, -0.01428335253149271, -0.0434105210006237, -0.03264281153678894, -0.04286704212427139, -0.05835624039173126, -0.07201119512319565, 0.01204998604953289, -0.01854627951979637, -0.028074175119400024, 0.0432746522128582, 0.025237886235117912, 0.004802161827683449, -0.04425971210002899, -0.0040039243176579475, -0.0195483211427927, -0.024388696998357773, 0.025900252163410187, -0.01120928954333067, -0.016049664467573166, -0.016635604202747345, -0.08192972093820572, -0.00858529657125473, 0.014096531085669994, -0.00044290494406595826, 0.0667801946401596, 0.006835968233644962, -0.006882673595100641, -0.009060842916369438, 0.01658465340733528, -0.008024832233786583, 0.05118909105658531, 0.03048587031662464, -0.008130980655550957, 0.038077618926763535, 0.050543706864118576, -0.009103301912546158, 0.01216038130223751, -0.017663123086094856, -0.009544880129396915, -0.009417501278221607, -0.04140643775463104, -0.014648503623902798, -0.006033485289663076, -0.014546601101756096, -0.005235247779637575, -0.02009180188179016, 0.045856185257434845, 0.024745356291532516, 0.010733744129538536, 0.019921964034438133, -0.0026558374520391226, 0.0002702808124013245, -0.027055149897933006, -0.022537466138601303, -0.04072708636522293, 0.03736430034041405, 0.024983128532767296, -0.00844518095254898, -0.009493928402662277, -0.03313533961772919, -0.005634366534650326, 0.018121685832738876, -0.022129856050014496, 0.014495649375021458, -0.031301092356443405, 0.005158820655196905, -0.09076128154993057, 0.029229072853922844, -0.030519839376211166, -0.030468886718153954, 0.04806407541036606, -0.07880470156669617, -0.046399664133787155, -0.03164076805114746, -0.01313694752752781, -0.00030013511423021555, 0.0018013413064181805, 0.04517683386802673, -0.020465444773435593, 0.002778969705104828, -0.03179362043738365, 0.00031791499350219965, 0.04303687810897827, -0.08091069012880325, -0.0020263763144612312, -0.032608844339847565, -0.018902938812971115, -0.02926304005086422, 0.0027959535364061594, 0.001040786737576127, -0.013799315318465233, -0.02926304005086422, 0.0076851570047438145, -0.04120263084769249, 0.031046336516737938, 0.020040851086378098, 0.05947716906666756, -0.049626581370830536, -0.006568473763763905, 0.039538223296403885, 0.0057914662174880505, 0.016151567921042442, 0.01677996665239334, -0.023369669914245605, 0.013722888194024563, 0.028685592114925385, 0.06671226024627686, 0.03364485129714012, 0.02449060045182705, 0.05142686143517494, 0.05349888280034065, -0.005596152972429991, -0.042459432035684586, -0.005566431209445, -0.0390966422855854, 0.03563195466995239, 0.009111793711781502, 0.01601569727063179, -0.017578205093741417, 0.08226939290761948, -0.011650867760181427, 0.0007695771637372673, -0.008950447663664818, -0.03566592186689377, 0.0023140390403568745, 0.029008282348513603, -0.024694405496120453, -0.006241536233574152, -0.046161893755197525, 0.020193705335259438, -0.013595509342849255, -0.01266989391297102, 0.03586972877383232, -0.06450437009334564, 0.01825755462050438, -0.02787037007510662, 0.07126390933990479, -0.009417501278221607, 0.041542306542396545, 0.020346559584140778, 0.04551650956273079, -0.08491886407136917, 0.021212732419371605, -0.018733100965619087, 0.047860268503427505 ]
729,342
tinytuya.core
send
Send single buffer `payload`. Args: payload(bytes): Data to send.
def send(self, payload): """ Send single buffer `payload`. Args: payload(bytes): Data to send. """ return self._send_receive(payload, 0, getresponse=False)
(self, payload)
[ -0.013845069333910942, -0.04760194942355156, -0.10029386729001999, 0.003960854839533567, 0.006138429045677185, -0.010619034059345722, -0.06344536691904068, 0.03960854932665825, -0.005730694159865379, -0.05530858784914017, 0.014615734107792377, -0.06380381435155869, -0.017124872654676437, 0.029769141227006912, -0.0359344519674778, -0.0036315303295850754, 0.02007311023771763, -0.05272776260972023, 0.026310112327337265, 0.04165170341730118, 0.03774461895227432, 0.08000568300485611, 0.02308407798409462, 0.0360957533121109, -0.05921567603945732, 0.042942117899656296, 0.028586260974407196, -0.011291124857962132, 0.02030610293149948, 0.002742130309343338, 0.02245679311454296, -0.10746283084154129, 0.012805568985641003, -0.013423892669379711, -0.04559463635087013, 0.013217785395681858, -0.0359882190823555, -0.004986913409084082, 0.02009103260934353, -0.018478015437722206, -0.04849806800484657, 0.008423537947237492, 0.055989641696214676, -0.027600526809692383, -0.0009504483314231038, 0.013800263404846191, 0.028317423537373543, 0.0723707303404808, 0.01734890230000019, 0.10990028083324432, -0.008065089583396912, 0.06763921678066254, -0.057781882584095, -0.027080778032541275, -0.009875253774225712, 0.05172410607337952, 0.011730223894119263, 0.0108699481934309, -0.040719740092754364, 0.05609717592597008, 0.008378731086850166, 0.03537885844707489, 0.02018064446747303, -0.04631153494119644, -0.01295791007578373, -0.04487774148583412, -0.01372857391834259, 0.031364236027002335, 0.0433364138007164, -0.014266246929764748, -0.001102228881791234, 0.05118643119931221, -0.024159422144293785, 0.02586205303668976, -0.04261951521039009, 0.04892820864915848, 0.04563048109412193, 0.04057636111974716, -0.0051571764051914215, 0.03089825250208378, 0.10043724626302719, -0.040755584836006165, 0.06710154563188553, 0.050218623131513596, -0.016748500987887383, 0.005524585954844952, -0.03550431504845619, 0.008083011955022812, -0.06677893549203873, -0.026310112327337265, 0.0009622099460102618, 0.05179579555988312, -0.010968521237373352, -0.006004010792821646, 0.06426979601383209, -0.04760194942355156, 0.007531897164881229, 0.019284524023532867, -0.04247613623738289, 0.04760194942355156, -0.050756294280290604, 0.09427192807197571, -0.022026654332876205, -0.03448273614048958, 0.02958991564810276, 0.03548639267683029, 0.0358089953660965, -0.005354322958737612, -0.01296687126159668, 0.07022004574537277, 0.045702170580625534, 0.018567627295851707, -0.06011179834604263, -0.03756539151072502, -0.03396298736333847, 0.044411756098270416, -0.008316002786159515, 0.036490049213171005, -0.010959560051560402, 0.027815597131848335, 0.032027363777160645, 0.03166891634464264, 0.028442882001399994, -0.03756539151072502, 0.046562448143959045, 0.0433005690574646, 0.0359165295958519, 0.013468698598444462, 0.011999060399830341, -0.011040210723876953, -0.010296430438756943, 0.0720839723944664, 0.029356924816966057, 0.05491429567337036, -0.008799908682703972, 0.07075771689414978, 0.004534372594207525, -0.041436634957790375, 0.03688434138894081, -0.05244100093841553, 0.009884214960038662, -0.056025486439466476, 0.0646999403834343, 0.03371207416057587, 0.025001777336001396, 0.012509849853813648, -0.010905792936682701, -0.025091389194130898, -0.035002488642930984, 0.015637312084436417, -0.005470818839967251, 0.020485326647758484, 0.013871953822672367, 0.031991519033908844, 0.009185240603983402, 0.04907158762216568, -0.021094689145684242, -0.011999060399830341, -0.03446481376886368, -0.0030983383767306805, -0.022080421447753906, -0.0359882190823555, 0.03304894268512726, -0.008602761663496494, 0.012554655782878399, 0.010233702138066292, -0.06351705640554428, 0.06043440103530884, -0.02591582015156746, 0.041436634957790375, 0.04710011929273605, 0.038604892790317535, -0.06419810652732849, -0.018567627295851707, 0.07412713021039963, 0.048748984932899475, -0.026256345212459564, 0.0015435684472322464, -0.022743551060557365, -0.03125670179724693, -0.0008737180032767355, -0.00793515145778656, 0.04444760084152222, -0.027546759694814682, 0.03810306638479233, -0.018513860180974007, 0.00737955654039979, 0.005166137591004372, 0.016183946281671524, 0.008463863283395767, -0.0018560906173661351, 0.03439312428236008, 0.01794034242630005, 0.0012254455359652638, 0.002426247578114271, -0.012205168604850769, 0.0362391322851181, -0.04616815596818924, 0.006196676753461361, 0.03985946252942085, -0.026220500469207764, -0.037852153182029724, 0.03256503865122795, -0.03089825250208378, -0.013459737412631512, -0.05003939941525459, 0.040110375732183456, 0.032798029482364655, -0.01473222952336073, -0.027152467519044876, -0.03125670179724693, 0.023478370159864426, 0.019750507548451424, 0.026220500469207764, 0.048677295446395874, -0.07455726712942123, -0.04276289418339729, -0.03817475587129593, 0.01155996136367321, -0.0217757411301136, 0.04122156649827957, -0.027044933289289474, -0.05211839824914932, 0.027761830016970634, -0.016856037080287933, -0.027761830016970634, 0.021972887217998505, -0.05928736552596092, -0.011783991008996964, -0.022241724655032158, 0.01587030291557312, 0.013979488052427769, 0.057961106300354004, 0.011846720241010189, 0.02222380042076111, -0.042153533548116684, -0.0252885352820158, -0.008831272833049297, -0.01517132855951786, -0.011111900210380554, 0.01887230947613716, -0.02023441344499588, 0.04104234278202057, 0.020682472735643387, -0.009041860699653625, 0.042189378291368484, 0.01191840972751379, 0.03493079915642738, 0.017617739737033844, 0.01589718647301197, -0.0053364005871117115, -0.025109311565756798, -0.07398375123739243, -0.03480533882975578, -0.004021343309432268, -0.018343597650527954, 0.011004365980625153, 0.017707351595163345, -0.04050467163324356, 0.014194556511938572, -0.08717465400695801, -0.008768544532358646, -0.034948721528053284, 0.044519294053316116, 0.026292189955711365, 0.0180747602134943, -0.06122298911213875, -0.00015612108109053224, 0.013603117316961288, 0.05638393387198448, 0.09728290140628815, 0.026328034698963165, 0.01738474704325199, -0.00243968958966434, -0.04416084289550781, -0.014149750582873821, 0.002656998811289668, 0.05186748504638672, 0.06136636808514595, -0.023550059646368027, -0.004054947756230831, -0.021793663501739502, 0.02731376886367798, -0.036382514983415604, -0.008701334707438946, 0.012016982771456242, 0.05430493503808975, 0.00860724225640297, -0.0005987208569422364, -0.042225223034620285, -0.0108699481934309, 0.0795755460858345, 0.0005351522704586387, -0.010619034059345722, -0.0010658239480108023, 0.01548497099429369, -0.05240515619516373, 0.037995532155036926, 0.07728147506713867, 0.02958991564810276, -0.024141499772667885, -0.00414679991081357, -0.027009086683392525, -0.018979843705892563, -0.014902492985129356, -0.028424959629774094, -0.004623984452337027, 0.0007953073945827782, -0.04408915340900421, -0.020341947674751282, -0.004870417527854443, 0.012850375846028328, 0.008374250493943691, -0.016748500987887383, 0.058749694377183914, 0.023567982017993927, 0.04122156649827957, 0.04896405339241028, 0.0013341001467779279, 0.03760123625397682, -0.010215779766440392, -0.045953087508678436, -0.01231270283460617, 0.035773150622844696, 0.02731376886367798, 0.024159422144293785, 0.01337012555450201, -0.01338804792612791, -0.018271908164024353, -0.01050253864377737, -0.0014898012159392238, 0.021811585873365402, 0.015422242693603039, -0.07534585893154144, 0.01303856074810028, -0.021363524720072746, 0.004386512562632561, 0.038640737533569336, 0.014346897602081299, -0.0026077120564877987, -0.003759227693080902, 0.00332684931345284, 0.07713809609413147, 0.030808640643954277, 0.014526121318340302, 0.00325067900121212, -0.016174985095858574, 0.011631650850176811, 0.029822908341884613, -0.035647694021463394, 0.02607712149620056, -0.055093519389629364, 0.055236898362636566, -0.009543688967823982, 0.005493221804499626, -0.0216682069003582, 0.011694379150867462, 0.012465042993426323, -0.03098786436021328, -0.01480391900986433, -0.0067029851488769054, -0.002054357435554266, -0.024087732657790184, 0.0004432998539414257, -0.09635093063116074, 0.01720552332699299, -0.013880915008485317, 0.01545808743685484, 0.00774696609005332, 0.061617281287908554, -0.03403467684984207, -0.004281218163669109, -0.06943145394325256, 0.060828693211078644, -0.036454204469919205, -0.009328619576990604, -0.043694861233234406, -0.029876675456762314, -0.03899918869137764, -0.00862516462802887, 0.028424959629774094, -0.04831884428858757, 0.009507844224572182, -0.016864998266100883, 0.03410636633634567, 0.009929020889103413, -0.005421532317996025, -0.033550772815942764, -0.05530858784914017, 0.0043685901910066605, 0.018289830535650253, -0.045702170580625534, -0.01232166402041912, 0.0029392768628895283, -0.08839337527751923, -0.013585194945335388, 0.006994224619120359, 0.03442896902561188, -0.034285590052604675, -0.019105300307273865, -0.000026971141778631136, 0.008638606406748295, -0.050935517996549606, 0.019033610820770264, 0.01733097992837429, 0.05387479439377785, 0.019983498379588127, -0.045917242765426636, -0.01049357745796442, 0.032260358333587646, -0.011309047229588032, 0.04968094825744629, -0.03109539858996868, -0.005291594658046961, 0.008109895512461662, -0.02372928522527218, -0.007442285306751728, 0.03439312428236008, 0.013450776226818562, 0.01584341935813427, -0.04057636111974716, 0.029697449877858162, 0.03392714262008667, 0.050827983766794205, -0.010350197553634644, -0.010735529474914074, -0.0020745201036334038, -0.030647339299321175, 0.011981138028204441, 0.03392714262008667, -0.00978564191609621, -0.02014479972422123, -0.03742201253771782, 0.01555666048079729, 0.03903503343462944, 0.029876675456762314, -0.025055544450879097, -0.04681336134672165, -0.0054439352825284, 0.03774461895227432, 0.020019343122839928, 0.03469780460000038, -0.024768784642219543, -0.04032544419169426, 0.02819196693599224, -0.02381889708340168, -0.00903738010674715, -0.053731415420770645, 0.00859828107059002, 0.032815951853990555, 0.00594576308503747, -0.0358627624809742, 0.046454913914203644, -0.0005735174636356533, -0.02813819982111454, -0.10975690186023712, -0.019947653636336327, -0.03464403748512268, -0.035737305879592896, -0.061079610139131546, 0.019033610820770264, 0.002195496577769518, -0.03752954676747322, -0.04165170341730118, 0.006174273788928986, 0.023603828623890877, -0.006380381528288126, 0.0126621900126338, 0.0004780245653819293, 0.009973826818168163, 0.021471058949828148, -0.007419881876558065, -0.01731305755674839, -0.007339231204241514, 0.049394190311431885, -0.0037278635427355766, 0.02389058656990528, 0.007303386460989714, -0.07154630124568939, -0.028371190652251244, -0.08151116967201233, -0.042189378291368484, -0.006039855536073446, 0.03027096763253212, 0.00908666756004095, 0.00615187082439661, 0.0358627624809742, 0.0013228986645117402, 0.06211910769343376, 0.008970171213150024, -0.0075363777577877045, 0.0008249914390034974, -0.03903503343462944, -0.00006591390410903841, 0.06129467859864235, 0.018603472039103508, -0.05143734812736511, -0.0217398963868618, -0.04613231122493744, -0.008580358698964119, -0.05462753772735596, -0.016022643074393272, -0.025378147140145302, -0.02236718125641346, 0.00788138434290886, -0.06989744305610657, 0.024768784642219543, 0.025826208293437958, -0.021273912861943245, 0.022152110934257507, -0.04025375470519066, 0.05982504040002823, -0.0435514822602272, -0.015422242693603039, 0.0125905005261302, 0.03727863356471062, 0.02032402530312538, -0.005206462927162647, -0.05613302066922188, -0.029840830713510513, 0.049430035054683685, 0.025557370856404305, -0.01300271600484848, -0.03233204782009125, 0.023478370159864426, -0.04699258506298065, -0.030880330130457878, -0.03518171235918999, 0.02091546542942524, -0.0014113906072452664, -0.003396298736333847, 0.020395714789628983, 0.05570288375020027, -0.006676101591438055, 0.05921567603945732, 0.0005343121592886746, 0.022761473432183266, -0.048748984932899475, -0.042798738926649094, -0.02089754305779934, -0.03455442562699318, -0.05337296798825264, -0.031418003141880035, -0.08968379348516464, -0.09685275703668594, 0.025467758998274803, -0.020395714789628983, -0.0011016688076779246, -0.006922534666955471, -0.05624055489897728, -0.03331777825951576, -0.039357636123895645, 0.029356924816966057, 0.03028889000415802, -0.036077830940485, 0.00006962440238567069, 0.01874685101211071, 0.014696384780108929, 0.026471415534615517, 0.024213189259171486, 0.0026547585148364305, -0.031453847885131836, -0.010538383387029171, 0.026148810982704163, 0.012429198250174522, 0.002600991167128086, 0.005900957155972719, 0.03989530727267265, -0.006178754381835461, -0.03889165073633194, -0.024105655029416084, 0.0792170986533165, -0.030826563015580177, 0.02967952750623226, 0.041508324444293976, 0.0036427320446819067, -0.029374847188591957, -0.01865723915398121, -0.05111474171280861, -0.03181229531764984, -0.039357636123895645, 0.01195425447076559, -0.03896334022283554, -0.05111474171280861, 0.001281453063711524, 0.03331777825951576, 0.0031341833528131247, -0.03950101509690285, -0.013889876194298267, -0.040827274322509766, -0.0021798142697662115, 0.02967952750623226, 0.029123933985829353, -0.028281578794121742, 0.03838982433080673, 0.06011179834604263, -0.008445940911769867, 0.009561611339449883, 0.028980553150177002, 0.032170746475458145, 0.027134545147418976, 0.0654526799917221, 0.016237713396549225, 0.0076080672442913055, 0.06849949061870575, 0.01302959956228733, -0.06925223022699356, 0.014992104843258858, 0.028353268280625343, -0.02460748329758644, -0.033443234860897064, 0.02747507020831108, 0.027976898476481438, 0.01958920620381832, -0.061760660260915756, 0.00646551325917244, -0.005009316373616457, 0.054591692984104156, 0.016103295609354973, 0.023567982017993927, 0.037887997925281525, 0.01225893571972847, -0.0726933404803276, -0.04165170341730118, -0.020395714789628983, 0.004467163234949112, -0.010224740952253342, -0.03091617487370968, -0.04853391274809837, -0.035074178129434586, -0.034966643899679184, -0.004198327194899321, 0.05132981389760971, 0.021811585873365402, 0.055201053619384766, -0.0721915066242218, -0.07556092739105225, -0.00000406929939344991, -0.054484158754348755, 0.03532509133219719, 0.03665135055780411, 0.030432268977165222, -0.029195623472332954, -0.10402172803878784, -0.03828229010105133, 0.024105655029416084, 0.008405615575611591, -0.007401959504932165, -0.007894826121628284, -0.018424248322844505, 0.03125670179724693, 0.0028541453648358583, 0.019929731264710426, 0.060255177319049835, 0.06251340359449387, 0.08237144351005554, 0.04545125737786293, 0.03183021768927574, 0.04677751660346985, -0.004366349894553423, 0.021363524720072746, -0.012429198250174522, 0.07398375123739243, -0.04849806800484657, -0.08323171734809875, -0.004789766855537891, 0.008468343876302242, -0.09204955399036407, 0.017886575311422348, -0.024768784642219543, -0.022116266191005707, 0.029912520200014114, -0.029106011614203453, -0.014687423594295979, 0.0430496521294117, 0.00417368346825242, -0.00004463102595764212, 0.024016043171286583, -0.024930085986852646, -0.005242308136075735, -0.03416013345122337, -0.00018636517052073032, -0.017752157524228096, -0.02018064446747303, -0.007531897164881229, -0.03985946252942085, -0.019338291138410568, 0.006940457504242659, 0.0045858994126319885, -0.086170993745327, 0.03828229010105133, -0.07154630124568939, 0.0074691688641905785, 0.012402314692735672, -0.05294283106923103, -0.02247471548616886, 0.020055187866091728, -0.02025233581662178, -0.01510860025882721, 0.014669501222670078, 0.009104589931666851, -0.0015570102259516716, 0.015565622597932816, 0.007433323655277491, 0.016847075894474983, 0.029984209686517715, -0.051580727100372314, 0.01576276868581772, 0.0024665731471031904, -0.027815597131848335, 0.019320368766784668, -0.016443820670247078, 0.026937397196888924, 0.04064805060625076, -0.04272704944014549, 0.016399014741182327, -0.06039855629205704, 0.026973241940140724, -0.021345602348446846, 0.05538027733564377, -0.09197786450386047, -0.0006659299251623452, 0.06437733769416809, 0.024858396500349045, 0.021847430616617203, -0.05326543375849724, 0.009239007718861103, 0.039429325610399246, 0.048784829676151276, 0.00036404916318133473, 0.01583445817232132, -0.004529891535639763, 0.016282519325613976, -0.03380168601870537, -0.01596887595951557, -0.040074530988931656, -0.006308692041784525, -0.09161940962076187, 0.022026654332876205, 0.005300555843859911, 0.01885438710451126, -0.029733294621109962, 0.02222380042076111, -0.0793604776263237, -0.0073571535758674145, 0.0017440755618736148, 0.042942117899656296, 0.023944353684782982, 0.006595450919121504, -0.041472479701042175, 0.013997410424053669, -0.01440962590277195, -0.07362530380487442, 0.036561738699674606, 0.07835682481527328, 0.019266601651906967, -0.05495014041662216, 0.05132981389760971, 0.012760763056576252, -0.005251269321888685, -0.01587926410138607, -0.005206462927162647, 0.0017631180817261338, 0.006685062777251005, -0.07308763265609741, 0.06796181946992874, 0.02079000696539879, 0.06681478023529053 ]
729,343
tinytuya.BulbDevice
set_brightness
Set the brightness value of an rgb bulb. Args: brightness(int): Value for the brightness (25-255). nowait(bool): True to send without waiting for response.
def set_brightness(self, brightness, nowait=False): """ Set the brightness value of an rgb bulb. Args: brightness(int): Value for the brightness (25-255). nowait(bool): True to send without waiting for response. """ if self.bulb_type == "A" and not 25 <= brightness <= 255: return error_json( ERR_RANGE, "set_brightness: The brightness needs to be between 25 and 255.", ) if self.bulb_type == "B" and not 10 <= brightness <= 1000: return error_json( ERR_RANGE, "set_brightness: The brightness needs to be between 10 and 1000.", ) # Determine which mode bulb is in and adjust accordingly state = self.state() data = None if "mode" in state: if state["mode"] == "white": # for white mode use DPS for brightness if not self.has_brightness: log.debug("set_brightness: Device does not appear to support brightness.") # return error_json(ERR_FUNCTION, "set_brightness: Device does not support brightness.") payload = self.generate_payload( CONTROL, {self.DPS_INDEX_BRIGHTNESS[self.bulb_type]: brightness} ) data = self._send_receive(payload, getresponse=(not nowait)) if state["mode"] == "colour": # for colour mode use hsv to increase brightness if self.bulb_type == "A": value = brightness / 255.0 else: value = brightness / 1000.0 (h, s, v) = self.colour_hsv() data = self.set_hsv(h, s, value, nowait=nowait) if data is not None or nowait is True: return data else: return error_json(ERR_STATE, "set_brightness: Unknown bulb state.")
(self, brightness, nowait=False)
[ 0.008521855808794498, -0.08079981803894043, -0.10995202511548996, 0.029917357489466667, 0.01786624826490879, -0.00797190424054861, -0.04097377136349678, -0.007670626975595951, -0.020448628813028336, -0.03921392932534218, -0.01821056567132473, -0.012022416107356548, 0.001334229949861765, 0.008258835412561893, -0.03714802488684654, 0.014289172366261482, 0.05268056318163872, 0.019320033490657806, 0.02056340128183365, -0.0254029743373394, 0.023777030408382416, 0.0066711497493088245, -0.006082940846681595, 0.08301875740289688, 0.00015437495312653482, 0.022801464423537254, 0.012529328465461731, 0.0033642679918557405, 0.00379705592058599, -0.023241424933075905, 0.06607068330049515, -0.051073748618364334, 0.04403437301516533, 0.020448628813028336, -0.003911828622221947, 0.024752596393227577, 0.030682507902383804, 0.027334976941347122, -0.08363087475299835, -0.01072166208177805, -0.03867832198739052, -0.06461690366268158, 0.037243667989969254, 0.010874691419303417, -0.0004055891768075526, -0.015140402130782604, -0.012835388071835041, 0.0665680319070816, 0.02863573282957077, -0.010568631812930107, -0.014776956290006638, 0.019473062828183174, -0.06465516239404678, 0.048280954360961914, 0.006986774038523436, 0.04173892363905907, -0.018181871622800827, 0.05715668946504593, 0.014652619138360023, -0.003940521739423275, -0.032002389430999756, 0.01977912336587906, 0.03037644736468792, -0.05773055553436279, -0.0033236194867640734, 0.030701637268066406, -0.06874871253967285, 0.04078248515725136, -0.0061642383225262165, 0.05382828786969185, 0.018717477098107338, 0.04300142079591751, -0.025689905509352684, 0.01636464148759842, -0.02239976078271866, 0.00717806164175272, -0.051609355956315994, 0.024312635883688927, -0.0315241739153862, 0.03688022121787071, 0.07069984078407288, 0.028769632801413536, 0.06897825747728348, 0.0029147425666451454, -0.014059627428650856, -0.049505192786455154, -0.024752596393227577, -0.01689068228006363, -0.03028080426156521, -0.021845027804374695, -0.0639282688498497, 0.003168198512867093, -0.014958678744733334, 0.043919600546360016, 0.0788104310631752, -0.016575057059526443, -0.016699394211173058, 0.014996936544775963, 0.021424194797873497, -0.008957034908235073, -0.08508466184139252, 0.035330791026353836, -0.004581334535032511, -0.06718015670776367, 0.03477605804800987, -0.013610102236270905, -0.021577224135398865, 0.01927221193909645, 0.006446387153118849, -0.018076663836836815, -0.03904176875948906, -0.04082074388861656, -0.03806620463728905, -0.02951565384864807, -0.02890353463590145, 0.04001733660697937, 0.01846880279481411, -0.003495778189972043, 0.0035651198122650385, 0.016355076804757118, -0.007603676524013281, -0.02075468935072422, 0.04323096573352814, -0.01997040957212448, 0.05884002149105072, 0.09250660985708237, -0.022533662617206573, 0.05053814500570297, 0.01102772168815136, 0.023413583636283875, -0.06446386873722076, 0.04632982239127159, -0.01150593999773264, 0.017550623044371605, 0.03341791778802872, -0.02205544337630272, -0.06105895712971687, 0.023777030408382416, 0.061518047004938126, 0.011496376246213913, 0.008607935160398483, -0.040246881544589996, 0.024561308324337006, -0.03161981701850891, 0.04342225193977356, 0.02134767919778824, 0.0367654487490654, -0.058610476553440094, -0.007388478145003319, 0.06136501580476761, 0.014069192111492157, 0.028597474098205566, -0.020697303116321564, 0.06897825747728348, -0.016355076804757118, 0.008598371408879757, -0.01908092387020588, -0.026321154087781906, -0.004865874536335468, -0.002678024349734187, -0.06542030721902847, -0.016967197880148888, 0.060026004910469055, -0.05700366199016571, 0.0008601957815699279, 0.034546513110399246, -0.04602375999093056, 0.042159754782915115, 0.04560292884707451, 0.0315432995557785, 0.016268998384475708, 0.0025608607102185488, -0.04544989764690399, 0.038142718374729156, 0.013610102236270905, 0.05199192836880684, -0.043728310614824295, -0.04751580208539963, 0.03255712613463402, -0.02582380548119545, 0.005188672337681055, 0.00735500268638134, -0.024044832214713097, -0.022112829610705376, 0.017120227217674255, -0.021481581032276154, -0.01251976378262043, 0.004366136156022549, -0.016049018129706383, 0.03334140405058861, 0.019473062828183174, 0.0009271464077755809, 0.06136501580476761, 0.0267037283629179, 0.04969647899270058, 0.018143614754080772, 0.03167720139026642, -0.01953044906258583, 0.04384308308362961, 0.0017729955725371838, 0.03169633075594902, -0.06798356026411057, -0.0028334453236311674, 0.03990256413817406, 0.036019425839185715, -0.08041724562644958, -0.004246581345796585, 0.0197026077657938, 0.05218321830034256, -0.0429249033331871, -0.10979899764060974, 0.02345184236764908, 0.02993648685514927, 0.03556033596396446, 0.051073748618364334, -0.07647672295570374, 0.018707912415266037, 0.02758365124464035, 0.035942912101745605, -0.02523081563413143, -0.015207353048026562, -0.026588955894112587, 0.027507135644555092, -0.007273705676198006, -0.013055368326604366, 0.04701845720410347, -0.029362624511122704, -0.008737054653465748, 0.02599596418440342, 0.05007905513048172, -0.0034336098469793797, 0.05325442552566528, -0.015302996151149273, -0.005504296626895666, -0.02513517066836357, -0.014231786131858826, 0.026302024722099304, 0.007015467155724764, -0.04969647899270058, -0.01501606497913599, 0.034450870007276535, 0.01321796327829361, 0.04965822398662567, -0.0011375625617802143, -0.032078906893730164, -0.07659149914979935, 0.030491219833493233, 0.021252036094665527, -0.06836613267660141, -0.0078762611374259, -0.06584113836288452, -0.021653739735484123, 0.016335949301719666, 0.03272928297519684, -0.009736531414091587, -0.033322274684906006, -0.0006736905197612941, 0.006795486900955439, -0.008913995698094368, -0.011305088177323341, 0.027813196182250977, -0.04935216158628464, -0.012911902740597725, 0.09464903175830841, -0.020601658150553703, -0.027181947603821754, 0.06109721213579178, 0.004373309202492237, 0.0030032130889594555, 0.031045954674482346, 0.06113547086715698, 0.009071807377040386, -0.05926085263490677, -0.03879309445619583, -0.042083241045475006, 0.017818426713347435, 0.03747321292757988, -0.051953673362731934, -0.013610102236270905, -0.03037644736468792, -0.010233879089355469, -0.025192556902766228, 0.03228932246565819, 0.05237450450658798, 0.00004274079037713818, -0.0065802885219454765, 0.015714263543486595, 0.022131958976387978, 0.029898229986429214, -0.00358903082087636, 0.004234625957906246, 0.017933199182152748, -0.023490099236369133, 0.019138310104608536, 0.07284226268529892, -0.002675633179023862, -0.021079877391457558, 0.0035507732536643744, 0.00305342604406178, -0.055817678570747375, 0.008019726723432541, -0.08347784727811813, -0.003663154784590006, -0.005470821168273687, -0.01716804876923561, -0.060905925929546356, 0.0726509764790535, -0.02083120308816433, -0.04499080777168274, -0.017225435003638268, 0.015647314488887787, -0.01086512766778469, 0.039711274206638336, -0.021596353501081467, 0.040935516357421875, -0.044876035302877426, 0.02993648685514927, 0.03712889552116394, 0.009860868565738201, 0.04456997662782669, -0.027698423713445663, -0.047286257147789, 0.025269072502851486, 0.0551673024892807, 0.02898005023598671, -0.01909048855304718, 0.06105895712971687, 0.07333961129188538, -0.029898229986429214, 0.014547411352396011, -0.10459598153829575, 0.013265784829854965, 0.014729133807122707, 0.013476201333105564, 0.034450870007276535, -0.047668833285570145, -0.002945826854556799, -0.01050168089568615, 0.01673765294253826, -0.00972218532115221, -0.00682896189391613, -0.007952775806188583, 0.005767316557466984, 0.03205977752804756, 0.03886961191892624, 0.008081895299255848, 0.04824269562959671, 0.03255712613463402, 0.03527340665459633, 0.03064425103366375, 0.010138235054910183, -0.012892774306237698, -0.013036239892244339, 0.07307180762290955, 0.012395426630973816, -0.006331614684313536, -0.005542553961277008, -0.04919913411140442, 0.028061868622899055, -0.013227527029812336, -0.004983038175851107, -0.015302996151149273, -0.0142222223803401, 0.031562428921461105, -0.044952552765607834, 0.02004692517220974, -0.07685930281877518, 0.014059627428650856, 0.07804527878761292, -0.0031897183507680893, 0.024446535855531693, -0.014327430166304111, -0.01742628775537014, -0.0017251736717298627, 0.02004692517220974, 0.023930059745907784, -0.04537338390946388, -0.0376262404024601, 0.0073502203449606895, 0.010702532716095448, 0.015790779143571854, -0.01784711889922619, -0.012787566520273685, -0.028348799794912338, 0.054937757551670074, -0.021558096632361412, 0.0310650821775198, -0.06205365061759949, -0.052565790712833405, -0.011219008825719357, 0.006226406432688236, -0.0019152656896039844, 0.018449675291776657, 0.04227452725172043, -0.04173892363905907, -0.001891354680992663, 0.05401957780122757, 0.014729133807122707, 0.07291878014802933, -0.04418740049004555, -0.032270193099975586, 0.01577164977788925, -0.05773055553436279, 0.004086378030478954, -0.004131808876991272, 0.004449824336916208, 0.0284444447606802, 0.04560292884707451, -0.02109900675714016, -0.028597474098205566, -0.016747215762734413, 0.03167720139026642, -0.05321617051959038, 0.013677053153514862, -0.0140022411942482, -0.003770753974094987, -0.02356661483645439, -0.030529478564858437, -0.004789359867572784, 0.02616812288761139, 0.020123440772294998, 0.012768437154591084, 0.01864096149802208, 0.02863573282957077, -0.008201449178159237, 0.03439348563551903, 0.050729431211948395, 0.04472300782799721, -0.026856757700443268, 0.02861660346388817, 0.052757080644369125, 0.018258387222886086, -0.035330791026353836, -0.06323963403701782, 0.01751236617565155, 0.00017141149146482348, 0.0019343943567946553, -0.015398640185594559, 0.08133542537689209, -0.03818097710609436, 0.01673765294253826, 0.022438017651438713, -0.013887468725442886, -0.011467683129012585, 0.020008668303489685, -0.060446836054325104, -0.04560292884707451, 0.0027282373048365116, 0.05822790041565895, -0.04212149605154991, -0.0840899646282196, -0.006546813063323498, -0.004148546606302261, 0.014566539786756039, 0.01646984927356243, -0.01697676070034504, -0.05884002149105072, 0.006259881891310215, 0.022170215845108032, -0.0026995441876351833, 0.03137114271521568, -0.020161697641015053, -0.05111200734972954, 0.02915220893919468, 0.022361503913998604, 0.037607114762067795, 0.11094672232866287, -0.07926952093839645, -0.022112829610705376, 0.0033044908195734024, -0.0227632075548172, -0.01690981164574623, 0.04831920936703682, 0.01865052618086338, 0.03116072714328766, -0.05524381622672081, 0.01846880279481411, 0.003079727990552783, -0.014738698489964008, -0.06174759194254875, -0.01883224956691265, -0.004963909275829792, 0.002582380548119545, 0.017894940450787544, -0.03546469286084175, -0.01182156428694725, 0.005389524158090353, 0.01785668358206749, 0.06630022823810577, -0.04219801351428032, -0.08278921246528625, -0.08041724562644958, 0.013791825622320175, 0.011018157005310059, -0.04866352677345276, -0.04319270700216293, -0.028865277767181396, -0.009832175448536873, 0.044072628021240234, -0.028654860332608223, -0.0006987969973124564, -0.017741911113262177, -0.043919600546360016, -0.00617380253970623, 0.006623328197747469, -0.03334140405058861, -0.03573249652981758, -0.015025629661977291, -0.003610550658777356, 0.0026947620790451765, -0.013887468725442886, 0.015341253951191902, -0.00954524427652359, -0.03433609753847122, -0.024140477180480957, -0.036287229508161545, 0.052910108119249344, 0.038907866925001144, -0.01749323680996895, -0.061326757073402405, 0.011171187274158001, 0.027086302638053894, 0.057577524334192276, 0.023528356105089188, -0.020620787516236305, 0.034546513110399246, 0.019033102318644524, -0.039519988000392914, -0.04361353814601898, -0.015121273696422577, -0.02163461036980152, -0.02582380548119545, 0.05172412842512131, 0.014126578345894814, 0.030223418027162552, -0.03556033596396446, 0.020639916881918907, -0.05960517004132271, -0.10176492482423782, -0.07406650483608246, 0.017378464341163635, -0.04319270700216293, 0.009487858042120934, -0.02065904438495636, -0.049772996455430984, -0.04369005560874939, -0.03858267888426781, 0.013935291208326817, 0.02285885065793991, -0.050652917474508286, -0.0046530673280358315, 0.02251453325152397, 0.041624151170253754, 0.004105506930500269, -0.03223193436861038, -0.024905625730752945, -0.0032303668558597565, -0.04602375999093056, 0.019033102318644524, -0.021940670907497406, -0.02599596418440342, -0.006288575008511543, -0.021519837900996208, 0.01072166208177805, -0.025096913799643517, 0.0023086003493517637, -0.04430217295885086, 0.05681237205862999, 0.016871552914381027, -0.08906343579292297, 0.033226631581783295, 0.06947560608386993, -0.004755884408950806, 0.011094672605395317, -0.0197026077657938, 0.025077784433960915, 0.03385787829756737, -0.05876350775361061, 0.014700440689921379, -0.012098931707441807, 0.0030103863682597876, -0.0184018537402153, -0.05007905513048172, -0.08363087475299835, -0.0240830909460783, -0.006876783911138773, -0.005953821819275618, 0.04238929972052574, 0.016479413956403732, 0.012443249113857746, -0.010472987778484821, 0.016871552914381027, -0.014690876938402653, -0.06698886305093765, -0.00718284398317337, 0.043383993208408356, 0.013887468725442886, -0.010731225833296776, 0.00006190689600771293, 0.059758201241493225, -0.008239706978201866, -0.021385937929153442, -0.013074497692286968, -0.024389149621129036, -0.013801389373838902, 0.006015990395098925, -0.009105282835662365, -0.025288201868534088, -0.0006252708844840527, -0.020697303116321564, 0.005475603509694338, -0.020448628813028336, 0.0035459911450743675, 0.08194754272699356, -0.018000150099396706, -0.0014705222565680742, -0.0007555854390375316, 0.02898005023598671, 0.018593139946460724, 0.03345617651939392, 0.010826869867742062, -0.0068337442353367805, -0.008383172564208508, -0.007101546507328749, -0.046100277453660965, -0.08546723425388336, 0.008746618404984474, -0.0402851365506649, -0.02389180287718773, -0.036555033177137375, 0.0027282373048365116, -0.0032375401351600885, 0.03385787829756737, -0.005112157203257084, 0.0024532615207135677, 0.01699589006602764, 0.04150937870144844, 0.030663378536701202, 0.0032638420816510916, 0.02023821324110031, 0.055817678570747375, -0.0016402899054810405, -0.0033714412711560726, -0.03932870179414749, 0.04686542600393295, 0.04479952156543732, -0.06343092024326324, 0.04655936732888222, -0.015628185123205185, -0.011314652860164642, -0.02450392208993435, -0.028253156691789627, 0.017120227217674255, 0.012185011059045792, -0.029745198786258698, 0.005427781492471695, 0.05451692268252373, 0.04265710338950157, 0.025364715605974197, 0.02085033245384693, -0.0884513184428215, 0.030759023502469063, 0.027201075106859207, -0.020984234288334846, 0.006905477028340101, -0.01203198079019785, 0.003959650173783302, -0.0043996116146445274, -0.0124815059825778, -0.012644100934267044, 0.03749234229326248, -0.026302024722099304, -0.035942912101745605, -0.0032423222437500954, 0.021864155307412148, 0.004545467905700207, -0.036918479949235916, -0.010606889612972736, 0.08034072816371918, 0.011754614301025867, 0.041012030094861984, 0.015216916799545288, -0.028865277767181396, 0.03142852708697319, 0.07502293586730957, 0.017894940450787544, -0.010645146481692791, -0.009129193611443043, -0.01866009086370468, -0.03081640973687172, -0.03196413442492485, -0.08347784727811813, -0.05451692268252373, 0.03546469286084175, -0.06105895712971687, -0.04935216158628464, -0.022610176354646683, -0.03485257551074028, -0.0027067174669355154, 0.027813196182250977, 0.06086766719818115, -0.046521108597517014, -0.0402851365506649, -0.01934872567653656, 0.00031950982520356774, 0.024465665221214294, -0.01724456436932087, -0.004987820517271757, 0.016967197880148888, -0.01506388746201992, 0.03569423779845238, 0.05577941983938217, -0.007684973534196615, 0.02014256827533245, 0.031830232590436935, 0.030491219833493233, -0.10015811026096344, -0.03429783880710602, -0.01890876516699791, 0.025670776143670082, -0.05872524902224541, 0.0367654487490654, 0.05034685879945755, -0.0014705222565680742, -0.015599492006003857, -0.03290144354104996, 0.023490099236369133, 0.06446386873722076, 0.029362624511122704, 0.010712097398936749, -0.0006659194477833807, 0.003684674622491002, -0.04319270700216293, -0.0026206381153315306, 0.010214749723672867, -0.06695061177015305, 0.0464063361287117, -0.005714712664484978, 0.04483778029680252, -0.00033804078702814877, 0.0007902563083916903, -0.05218321830034256, -0.011314652860164642, -0.03353269025683403, -0.0014693267876282334, 0.009621758945286274, 0.04456997662782669, -0.012577150017023087, 0.026722857728600502, 0.005915564484894276, 0.05264230817556381, -0.01672808825969696, -0.010492117144167423, 0.06897825747728348, 0.12410730123519897, -0.04001733660697937, -0.0249630119651556, 0.06756272912025452, 0.014442202635109425, -0.0032160202972590923, 0.041547633707523346, 0.02327968366444111, 0.005480385385453701, 0.024370022118091583, 0.00693895248696208, 0.07674452662467957, -0.04560292884707451, 0.016747215762734413 ]
729,344
tinytuya.BulbDevice
set_brightness_percentage
Set the brightness value of an rgb bulb. Args: brightness(int): Value for the brightness in percent (0-100) nowait(bool): True to send without waiting for response.
def set_brightness_percentage(self, brightness=100, nowait=False): """ Set the brightness value of an rgb bulb. Args: brightness(int): Value for the brightness in percent (0-100) nowait(bool): True to send without waiting for response. """ if not 0 <= brightness <= 100: return error_json( ERR_RANGE, "set_brightness_percentage: Brightness percentage needs to be between 0 and 100.", ) b = int(25 + (255 - 25) * brightness / 100) if self.bulb_type == "B": b = int(10 + (1000 - 10) * brightness / 100) data = self.set_brightness(b, nowait=nowait) return data
(self, brightness=100, nowait=False)
[ -0.023884199559688568, -0.05296694114804268, -0.09255582094192505, 0.03944346681237221, 0.014650430530309677, -0.0029900691006332636, -0.024538561701774597, -0.026010874658823013, -0.01136044505983591, -0.03442669287323952, 0.0036966889165341854, -0.019939852878451347, 0.019140077754855156, -0.0019108268897980452, -0.027446836233139038, 0.006593602243810892, 0.051985397934913635, 0.020594215020537376, 0.024956626817584038, 0.0006208483246155083, -0.007370656821876764, -0.0018063108436763287, -0.01398698054254055, 0.05529356002807617, -0.002278905361890793, -0.001985805807635188, 0.03275443613529205, 0.012614638544619083, 0.013750682584941387, -0.00957912765443325, 0.07310673594474792, -0.0613282285630703, 0.026719767600297928, 0.0201216209679842, -0.002340251812711358, 0.031064001843333244, 0.008329478092491627, 0.035280998796224594, -0.10258936136960983, -0.009733629412949085, -0.01583191566169262, -0.047695692628622055, -0.0197399090975523, 0.013478032313287258, 0.02502933330833912, -0.022430062294006348, 0.0279739610850811, 0.0521308109164238, 0.05725664272904396, -0.01721334643661976, -0.03722590580582619, 0.03084588050842285, -0.06721748411655426, 0.04147925600409508, -0.006711751222610474, 0.050640322268009186, -0.008384008891880512, 0.06950774788856506, 0.025392867624759674, 0.014841285534203053, -0.0187765434384346, 0.007334303576499224, 0.03966158628463745, -0.06765372306108475, 0.016468102112412453, 0.02077598311007023, -0.06856255978345871, 0.055620741099119186, -0.02437497116625309, 0.04195185378193855, 0.00044504544348455966, 0.0360262431204319, -0.026228995993733406, 0.022011999040842056, -0.037880267947912216, 0.0241386741399765, -0.04784110561013222, 0.03388139232993126, -0.038461923599243164, 0.07852339744567871, 0.086593858897686, 0.018076740205287933, 0.06467274576425552, -0.016495365649461746, -0.0402432419359684, -0.06845349818468094, -0.05380306765437126, -0.03126394376158714, -0.008043195120990276, 0.003894360736012459, -0.04616884887218475, 0.007048020139336586, -0.0026628882624208927, 0.03882545605301857, 0.0777963325381279, -0.016995226964354515, -0.006393658462911844, 0.02862832136452198, 0.0226118303835392, -0.006466365419328213, -0.07114364951848984, 0.03648066148161888, 0.013605269603431225, -0.07961399853229523, 0.05089479312300682, -0.010242577642202377, -0.00358308432623744, -0.007493349723517895, 0.016113655641674995, -0.000512356054969132, -0.020339740440249443, -0.04951336607336998, -0.029173623770475388, -0.021357636898756027, -0.03766214847564697, 0.08564867079257965, 0.04540542885661125, -0.024465855211019516, 0.06699936091899872, 0.021321283653378487, 0.02997339889407158, 0.009470066986978054, 0.044932834804058075, -0.0033536034170538187, 0.06318224966526031, 0.09357371926307678, -0.0067026629112660885, 0.0594014972448349, -0.011433152481913567, 0.031754717230796814, -0.02862832136452198, 0.033336091786623, -0.028991855680942535, -0.002303898334503174, 0.03159112483263016, -0.030555052682757378, -0.05605698004364967, 0.016658956184983253, 0.05936514213681221, -0.003932985942810774, -0.010951469652354717, -0.030555052682757378, 0.03955252468585968, -0.025738224387168884, 0.07179801166057587, 0.011542212218046188, 0.02233918011188507, -0.023629726842045784, -0.01793132722377777, 0.04889535531401634, 0.011914835311472416, 0.026338055729866028, -0.023120777681469917, 0.04885900393128395, -0.01126956194639206, 0.026010874658823013, 0.014841285534203053, -0.03729861229658127, 0.002205062424764037, -0.0007111638551577926, -0.040752191096544266, -0.009815424680709839, 0.06790819764137268, -0.03551729768514633, -0.0038920885417610407, 0.028446555137634277, -0.06154634803533554, 0.04871359094977379, 0.01720425859093666, 0.011224119924008846, 0.020485155284404755, -0.04122478514909744, -0.04511459916830063, 0.026701590046286583, 0.048277348279953, 0.03648066148161888, -0.02552010491490364, -0.03740767389535904, 0.026574352756142616, 0.012714610435068607, 0.022175589576363564, 0.006670853588730097, 0.011969365179538727, -0.05798371136188507, 0.024193204939365387, -0.04609614238142967, -0.019685380160808563, 0.02015797421336174, -0.03758944198489189, 0.012132955715060234, 0.04231538623571396, 0.01375977136194706, 0.050458554178476334, 0.027992136776447296, 0.04874994233250618, -0.002549283904954791, 0.033208854496479034, -0.02579275518655777, 0.031373005360364914, 0.020376095548272133, 0.006116463802754879, -0.05663863569498062, 0.007611498236656189, 0.03551729768514633, 0.05002231150865555, -0.07503347098827362, -0.010397079400718212, 0.02859196811914444, 0.044969186186790466, -0.07183437049388885, -0.09473702311515808, 0.03379051014780998, 0.03331791236996651, 0.023502489551901817, 0.005702943541109562, -0.05707487836480141, 0.029064564034342766, 0.008633938618004322, 0.06765372306108475, -0.012523754499852657, -0.013696152716875076, -0.02506568655371666, 0.04442388564348221, -0.018503893166780472, -0.004107937216758728, 0.03660789877176285, -0.03620801120996475, -0.030227873474359512, 0.01011534035205841, 0.02942809835076332, -0.022739067673683167, 0.03706231713294983, -0.03073682077229023, -0.0015915983822196722, -0.030900411307811737, -0.028264787048101425, 0.02586546167731285, 0.031482066959142685, -0.07990482449531555, -0.005339409224689007, 0.023666080087423325, 0.025211099535226822, 0.01356891542673111, 0.017985856160521507, -0.03802568092942238, -0.08303122222423553, 0.02651982381939888, 0.006707206834107637, -0.052712466567754745, -0.0032013733871281147, -0.06587240844964981, -0.005489367060363293, 0.003598988987505436, 0.02410232089459896, 0.0071207270957529545, 0.019867146387696266, -0.0241386741399765, 0.01624998077750206, -0.03620801120996475, 0.026356233283877373, 0.00775236776098609, -0.08804799616336823, 0.013668887317180634, 0.07285226136445999, -0.01777682453393936, -0.015459293499588966, 0.036698780953884125, 0.019285492599010468, -0.0048577263951301575, 0.02150305174291134, 0.031900130212306976, 0.0118784811347723, -0.02590181492269039, -0.04602343589067459, -0.029064564034342766, 0.017313318327069283, 0.05362130329012871, -0.035662710666656494, -0.0029559878166764975, -0.03204554319381714, -0.007479717023670673, -0.04107936844229698, 0.04711403697729111, 0.05034949257969856, 0.029482627287507057, 0.008415818214416504, 0.03160930424928665, 0.04180643707513809, -0.007929590530693531, -0.007452452089637518, 0.021757524460554123, -0.005762017797678709, -0.03028240241110325, 0.009897219948470592, 0.06252788752317429, 0.006261877249926329, -0.00157342164311558, -0.01258737314492464, 0.0008082956774160266, -0.03004610538482666, 0.002853743964806199, -0.10331643372774124, -0.002944627311080694, -0.009029282256960869, -0.0027378674130886793, -0.0371713787317276, 0.0651453360915184, -0.023938730359077454, -0.05816547945141792, 0.006484542042016983, 0.010233488865196705, 0.017685940489172935, 0.031718362122774124, 0.0014109673211351037, 0.03551729768514633, -0.05144009739160538, 0.04787746071815491, 0.024284087121486664, 0.010397079400718212, 0.008733910508453846, -0.017004314810037613, -0.05074938014149666, 0.06423649936914444, 0.03160930424928665, 0.02084868960082531, -0.007107094395905733, 0.0544210784137249, 0.09117438644170761, -0.06845349818468094, -0.013305353932082653, -0.08005024492740631, -0.0045032803900539875, 0.02572004869580269, -0.005516631994396448, 0.017576880753040314, -0.01789497397840023, 0.004092032555490732, -0.02226647362112999, 0.012314722873270512, 0.008497613482177258, 0.0007049156120046973, -0.015013964846730232, 0.04616884887218475, 0.04667779803276062, 0.015141201205551624, 0.018494805321097374, 0.02724689245223999, 0.03195466101169586, 0.022411886602640152, 0.007411554455757141, -0.0012564652133733034, -0.005053126253187656, -0.019412728026509285, 0.046895917505025864, 0.0029060018714517355, -0.000668562192004174, 0.012187485583126545, -0.06689029932022095, -0.0022914018481969833, 0.0006975313299335539, -0.006802634801715612, -0.028882795944809914, -0.006502718664705753, 0.01720425859093666, -0.04805922880768776, 0.0528942346572876, -0.0728159099817276, 0.02299354039132595, 0.07023482024669647, 0.009052002802491188, 0.03153659775853157, -0.0018210794078186154, -0.026847004890441895, 0.002312986645847559, 0.008470348082482815, 0.026192642748355865, -0.044205766171216965, -0.035735417157411575, -0.0030150620732456446, 0.005802915431559086, -0.000752629479393363, -0.04609614238142967, -0.0013007710222154856, -0.02755589596927166, 0.05351224169135094, -0.008506701327860355, 0.06776278465986252, -0.08310393244028091, -0.07372474670410156, -0.004725945182144642, -0.013405325822532177, -0.015222996473312378, 0.01743146777153015, 0.008274948224425316, -0.032936204224824905, -0.0068662529811263084, 0.05736570432782173, -0.0038830002304166555, 0.08441264927387238, -0.05256705358624458, -0.03308161720633507, -0.008470348082482815, -0.061110105365514755, -0.007965943776071072, 0.00024410756304860115, -0.007107094395905733, 0.020248858258128166, 0.03720773011445999, -0.020248858258128166, -0.036008067429065704, -0.04038865491747856, 0.03028240241110325, -0.02908273972570896, 0.04616884887218475, 0.02146669663488865, 0.000899747246876359, -0.01479584351181984, -0.09451890736818314, -0.02272089011967182, 0.008570319972932339, 0.026465293020009995, -0.007779632695019245, 0.018649306148290634, -0.0009446210460737348, 0.015913711860775948, 0.008270404301583767, 0.0651453360915184, 0.016568074002861977, -0.005812003742903471, 0.043296929448843, 0.022357355803251266, -0.007975032553076744, -0.04620520398020744, -0.05071302875876427, 0.01431416068226099, -0.009442802518606186, 0.004423757549375296, -0.010169870220124722, 0.0674355998635292, -0.04547813534736633, 0.03802568092942238, 0.008933854289352894, 0.01935819908976555, -0.036771487444639206, 0.016495365649461746, -0.039952412247657776, -0.05460284277796745, 0.013923361897468567, 0.04391493648290634, -0.051912691444158554, -0.08128625899553299, -0.03682601824402809, 0.0055757067166268826, -0.002742411568760872, 0.039952412247657776, -0.012260192073881626, -0.08026836067438126, -0.018940133973956108, 0.04289704188704491, 0.00415792316198349, 0.0289373267441988, -0.0032263663597404957, -0.04609614238142967, 0.010706083849072456, 0.016568074002861977, 0.001245104824192822, 0.10644283145666122, -0.05856536701321602, -0.005107656121253967, 0.007179801352322102, -0.027701308950781822, -0.008847515098750591, 0.03955252468585968, 0.009879043325781822, 0.03637159988284111, -0.04809558019042015, 0.017885884270071983, 0.010451609268784523, -0.00025461596669629216, -0.040679480880498886, -0.03377233073115349, -0.0057392967864871025, 0.029482627287507057, 0.03648066148161888, -0.03339062258601189, -0.012396518141031265, -0.016050036996603012, 0.010124429129064083, 0.05503908544778824, -0.045005541294813156, -0.062491536140441895, -0.045732609927654266, 0.02648347057402134, 0.027301421388983727, -0.0417700856924057, -0.028337495401501656, 0.0025038421154022217, 0.009088356047868729, 0.03437216207385063, -0.010442521423101425, -0.005752929486334324, -0.018831074237823486, -0.02157575823366642, -0.016922518610954285, -0.00004210464976495132, -0.020321564748883247, -0.01030619628727436, -0.048422761261463165, 0.014250542968511581, -0.008915677666664124, -0.011469505727291107, 0.017004314810037613, -0.037116847932338715, -0.005534809082746506, -0.03522646799683571, -0.03904357925057411, 0.06390932202339172, 0.027301421388983727, 0.00837492011487484, -0.07045293599367142, -0.003828470129519701, 0.0048077404499053955, 0.05253069847822189, -0.0073797451332211494, -0.0006498174625448883, -0.0014030149905011058, 0.03146388754248619, -0.041442904621362686, -0.0689624473452568, 0.0015870542265474796, -0.015395675785839558, -0.02092139609158039, 0.04958607256412506, -0.0022084705997258425, 0.021775702014565468, -0.009415537118911743, 0.019230961799621582, -0.04929524287581444, -0.04609614238142967, -0.04213361814618111, -0.004396492149680853, -0.03958887979388237, 0.027010595425963402, -0.004001148976385593, -0.010206224396824837, -0.02997339889407158, -0.05638416111469269, -0.010524316690862179, 0.029918868094682693, -0.04591437429189682, 0.03686237335205078, 0.014532282017171383, -0.01310540921986103, -0.00988813117146492, -0.03039146400988102, -0.013496208935976028, -0.020866865292191505, -0.05082208663225174, 0.012696433812379837, -0.00042573269456624985, -0.0036126216873526573, 0.0008270404068753123, 0.018331214785575867, 0.01602277159690857, -0.04027959331870079, -0.018213065341114998, -0.06296413391828537, 0.04725945368409157, -0.007956855930387974, -0.1034618467092514, 0.040534067898988724, 0.06619958579540253, 0.012560108676552773, 0.0039511630311608315, -0.019140077754855156, 0.013641622848808765, 0.030155165120959282, -0.06372755020856857, -0.0019324116874486208, -0.0035126495640724897, -0.010542493313550949, -0.011387710459530354, -0.06856255978345871, -0.06376390904188156, -0.018531158566474915, 0.001950588426552713, 0.024574914947152138, 0.05351224169135094, 0.0029582600109279156, -0.009006560780107975, -0.022557299584150314, -0.004707768559455872, 0.006098287180066109, -0.061110105365514755, 0.00959730427712202, 0.0008548735058866441, -0.04693227261304855, -0.026301702484488487, 0.0027446835301816463, 0.043369635939598083, 0.026465293020009995, -0.01427780743688345, -0.03262719884514809, 0.03275443613529205, -0.007616042625159025, 0.01597733050584793, 0.01065155304968357, -0.024193204939365387, -0.004430573433637619, -0.0037830283399671316, -0.002143715973943472, 0.005021316930651665, -0.0092928446829319, 0.07092553377151489, -0.04242444783449173, 0.0005541057325899601, 0.00735702458769083, 0.01109688263386488, -0.03050052374601364, 0.05391212925314903, -0.0235751960426569, -0.001985805807635188, 0.007079829461872578, -0.0011826223926618695, -0.039952412247657776, -0.0862303227186203, 0.003439942840486765, -0.04093395546078682, -0.00039988767821341753, -0.059037961065769196, -0.02119404636323452, 0.00032292064861394465, 0.004526001401245594, 0.0031672921031713486, 0.0070252991281449795, -0.002247096039354801, 0.034517575055360794, 0.005034949164837599, 0.013959715142846107, 0.0033354267943650484, 0.046968623995780945, 0.023484311997890472, -0.010587935335934162, -0.02793760783970356, 0.06380026042461395, 0.034626636654138565, -0.07154353708028793, 0.04711403697729111, -0.027355952188372612, -0.016277246177196503, -0.012669168412685394, -0.026010874658823013, 0.031209414824843407, 0.04380587860941887, -0.030791351571679115, 0.030227873474359512, 0.0509675033390522, 0.03464481234550476, 0.01583191566169262, 0.005812003742903471, -0.09909943491220474, 0.012505577877163887, 0.01348712109029293, 0.00810226984322071, 0.00888841226696968, 0.004994051530957222, -0.014677694998681545, -0.02873738296329975, -0.03904357925057411, -0.029228152707219124, 0.03737132251262665, 0.008038651198148727, -0.02115769311785698, -0.013478032313287258, 0.024974802508950233, 0.025701871141791344, -0.06503627449274063, -0.008038651198148727, 0.07154353708028793, 0.019612671807408333, 0.028337495401501656, -0.011969365179538727, -0.021412167698144913, 0.03419039770960808, 0.057002171874046326, 0.04805922880768776, -0.03824380412697792, 0.008906588889658451, -0.02088504284620285, 0.006166449747979641, -0.03233637288212776, -0.08579408377408981, -0.05362130329012871, 0.034971993416547775, -0.06674488633871078, -0.0032422710210084915, -0.014904904179275036, -0.025356514379382133, 0.013677976094186306, 0.04391493648290634, 0.04260621219873428, -0.031754717230796814, -0.06699936091899872, -0.009679099544882774, -0.01324173528701067, 0.004550994373857975, 0.01970355585217476, -0.0006537936278618872, -0.008693012408912182, -0.0113059151917696, 0.02679247409105301, 0.050603967159986496, -0.0222301185131073, 0.00777054438367486, 0.036008067429065704, 0.05394848436117172, -0.07706926017999649, -0.03835286200046539, -0.012850935570895672, -0.0007662620046176016, -0.06154634803533554, 0.03544458746910095, 0.060455746948719025, 0.00957912765443325, -0.017186081036925316, -0.05027678608894348, 0.0348629355430603, 0.07808715850114822, 0.004994051530957222, 0.005961961578577757, 0.01919460855424404, -0.003439942840486765, -0.031718362122774124, -0.04685956612229347, 0.027337774634361267, -0.03762579336762428, 0.03126394376158714, -0.005502999760210514, 0.0551844984292984, -0.01758596859872341, 0.017413290217518806, -0.027846723794937134, -0.03164565563201904, -0.04013418033719063, -0.021775702014565468, 0.00787506066262722, 0.02330254577100277, -0.015359321609139442, 0.037807561457157135, -0.0038989048916846514, 0.0410066619515419, 0.004323785658925772, -0.020666921511292458, 0.08005024492740631, 0.1464315950870514, -0.05074938014149666, 0.0028401112649589777, 0.09829965978860855, 0.01563197188079357, 0.004516913089901209, 0.0235751960426569, 0.01454136986285448, -0.006220979616045952, 0.004137474112212658, 0.0013144034892320633, 0.07736008614301682, -0.02572004869580269, -0.006566337309777737 ]
729,345
tinytuya.BulbDevice
set_bulb_type
null
def set_bulb_type(self, type): self.bulb_type = type
(self, type)
[ 0.003732899436727166, 0.016832798719406128, -0.006021962966769934, -0.018832646310329437, -0.053951047360897064, -0.05778932198882103, -0.009227996692061424, 0.01706596463918686, -0.0870247632265091, -0.02342422492802143, -0.04896488040685654, -0.012008054181933403, -0.020805589854717255, 0.024231338873505592, -0.007976970635354519, -0.005353852175176144, -0.005806732457131147, 0.007066726218909025, 0.035459183156490326, -0.04821157455444336, -0.012788264080882072, 0.04397871345281601, 0.042436230927705765, 0.019854990765452385, 0.0083805276080966, 0.03169265389442444, -0.025953181087970734, 0.023944364860653877, -0.004327024798840284, -0.03169265389442444, 0.01661756820976734, -0.06367228180170059, -0.014572881162166595, -0.05359233170747757, 0.023011701181530952, 0.007833484560251236, -0.008286364376544952, 0.04110897704958916, -0.01902994140982628, 0.055780503898859024, 0.007411991711705923, -0.0061564818024635315, -0.031567104160785675, 0.017343970015645027, -0.007779676467180252, -0.0012992284027859569, -0.014115517027676105, 0.011613464914262295, -0.019783247262239456, 0.019083747640252113, -0.017343970015645027, 0.006443455349653959, 0.008295332081615925, -0.0007185551221482456, -0.014671528711915016, -0.01476120762526989, -0.007591350004076958, 0.02342422492802143, 0.01587323099374771, 0.07127708196640015, -0.03002461977303028, 0.021863805130124092, -0.026150474324822426, -0.07941996306180954, 0.04756588488817215, -0.0029257861897349358, -0.03511840105056763, 0.049718186259269714, 0.019621824845671654, 0.07418268918991089, 0.040140438824892044, 0.021576831117272377, -0.03506459295749664, 0.06686486303806305, -0.0029168182518333197, -0.03558473289012909, -0.04982580244541168, 0.06202218309044838, -0.03741418942809105, 0.03391670063138008, 0.07848729938268661, 0.057000141590833664, 0.001312680309638381, -0.017693718895316124, -0.03788052126765251, 0.0041925059631466866, -0.022114908322691917, -0.008591273799538612, 0.0014124484732747078, -0.04455266147851944, -0.05409453436732292, -0.07231736183166504, 0.006891851779073477, 0.0477452427148819, 0.002712797839194536, -0.004977199248969555, 0.02780057303607464, -0.05588812008500099, -0.042507972568273544, 0.032284535467624664, -0.018527736887335777, -0.030616501346230507, 0.02945067174732685, -0.04562881216406822, -0.021505089476704597, -0.0236932635307312, 0.01699422113597393, -0.003721689572557807, -0.05190636217594147, 0.0021926581393927336, -0.005734989419579506, -0.04397871345281601, 0.000030319299185066484, -0.032248664647340775, -0.02582762949168682, 0.06080254539847374, 0.007703449111431837, -0.01476120762526989, 0.02837452106177807, 0.07027267664670944, -0.00007867954263929278, 0.003979517612606287, 0.004995135124772787, 0.04046328738331795, 0.06478430330753326, 0.06496366113424301, -0.014025837182998657, 0.02654506266117096, 0.027280433103442192, 0.008923087269067764, -0.0029011243022978306, -0.011909406632184982, -0.08444199711084366, 0.030993154272437096, 0.01329046767205, 0.022527432069182396, -0.06697247922420502, 0.010878095403313637, 0.004248555283993483, 0.05710775777697563, -0.04136008024215698, 0.02085939794778824, 0.07698068767786026, -0.09111413359642029, 0.034885235130786896, 0.06073080003261566, -0.0013900286285206676, -0.02430308237671852, -0.07468489557504654, 0.030526822432875633, -0.0113444272428751, -0.019173428416252136, -0.023926429450511932, 0.02437482587993145, -0.036176618188619614, 0.009461162611842155, -0.033432431519031525, 0.0014505621511489153, 0.014644624665379524, 0.032822612673044205, -0.013720927760004997, 0.020195771008729935, 0.01949627324938774, -0.018599480390548706, -0.03727070242166519, 0.022706789895892143, -0.031567104160785675, 0.0369119867682457, 0.03393463417887688, 0.008183233439922333, -0.014483202248811722, -0.03393463417887688, -0.02464386261999607, 0.05900895968079567, 0.050256263464689255, 0.049108367413282394, 0.008102522231638432, -0.014501137658953667, 0.03239215165376663, -0.010725640691816807, 0.05369994416832924, 0.017245322465896606, -0.027782637625932693, 0.020303387194871902, 0.012250187806785107, -0.05057910829782486, -0.002127640647813678, 0.0015817180974408984, 0.027746764943003654, 0.022437753155827522, 0.05380756035447121, 0.038310982286930084, 0.002766605466604233, -0.07898949831724167, 0.03626629710197449, -0.005703601520508528, 0.019585952162742615, -0.05969052016735077, -0.06381576508283615, 0.012842071242630482, 0.02478734962642193, 0.03527982532978058, 0.009124865755438805, 0.03535156697034836, 0.07561755925416946, -0.012626840732991695, 0.06087428703904152, -0.021343665197491646, 0.0558522492647171, -0.04451679065823555, -0.04688432067632675, -0.0021993841510266066, 0.030562695115804672, -0.005080330651253462, 0.017182547599077225, -0.1239008754491806, -0.06725945323705673, -0.001907926402054727, 0.015075084753334522, 0.03676849976181984, 0.03354004770517349, 0.034687940031290054, 0.005291076842695475, -0.026347769424319267, -0.015532448887825012, 0.03967410698533058, -0.007721384987235069, -0.029845260083675385, -0.02163063921034336, 0.03501078486442566, -0.05283902585506439, 0.02677823044359684, -0.01754126511514187, 0.01367608830332756, -0.04659734666347504, -0.040140438824892044, 0.002636570483446121, -0.005909863859415054, -0.10079950094223022, -0.026652678847312927, 0.0626320019364357, 0.02295789308845997, -0.006779752671718597, 0.004479479510337114, -0.08889009058475494, -0.021110499277710915, 0.01634853146970272, 0.023406289517879486, -0.05947529152035713, -0.014689464122056961, -0.023101380094885826, -0.06542999297380447, 0.0030513370875269175, 0.011200940236449242, 0.0352080799639225, -0.025576528161764145, 0.019012004137039185, -0.05703601613640785, -0.016142267733812332, -0.022258395329117775, -0.029665902256965637, -0.02491290122270584, 0.03264325484633446, 0.03676849976181984, 0.01754126511514187, 0.0010761512676253915, 0.03899254649877548, -0.005134138278663158, 0.00790522713214159, -0.0270831398665905, 0.1591268926858902, 0.004793357104063034, 0.019747374579310417, 0.03233834356069565, -0.023854685947299004, -0.05161938816308975, 0.01661756820976734, 0.03734244778752327, -0.01798069290816784, -0.05495545640587807, 0.04688432067632675, -0.04408632963895798, 0.056354451924562454, 0.03354004770517349, -0.05291076749563217, -0.01415138877928257, -0.014949534088373184, 0.05373581871390343, -0.017155643552541733, 0.0032037917990237474, 0.010913967154920101, 0.02925337664783001, 0.0036992698442190886, 0.03963823616504669, 0.0014371102442964911, -0.011326491832733154, 0.036104872822761536, 0.04153943806886673, 0.020967012271285057, -0.03630216792225838, -0.035835836082696915, -0.022132843732833862, 0.04275907576084137, 0.010322083719074726, -0.0038360306061804295, -0.030150169506669044, 0.06342118233442307, -0.0585784986615181, -0.026867909356951714, 0.02830277755856514, 0.003508701454848051, 0.0558522492647171, -0.0714564397931099, 0.027441855520009995, 0.027549471706151962, -0.0036118326243013144, -0.008183233439922333, 0.008322236128151417, -0.01956801675260067, 0.04627450183033943, -0.036176618188619614, -0.09254900366067886, 0.01035795547068119, -0.009452194906771183, -0.02109256386756897, 0.02780057303607464, 0.03788052126765251, 0.04889313876628876, -0.041216593235731125, 0.02075178362429142, -0.031262192875146866, 0.010097885504364967, 0.03544124588370323, 0.0024034043308347464, -0.00270831398665905, -0.030078426003456116, -0.01222328469157219, -0.04623863101005554, -0.0017610766226425767, -0.02227633073925972, 0.005578050389885902, 0.031907882541418076, 0.01327253133058548, -0.00012646177492570132, 0.03375527635216713, 0.012492322362959385, -0.00951497070491314, 0.010035109706223011, 0.06858670711517334, 0.13961268961429596, -0.01899406872689724, -0.03237421438097954, 0.014958501793444157, 0.008416399359703064, 0.006775268819183111, -0.06862257421016693, 0.01763991266489029, -0.02376500703394413, -0.02128985896706581, 0.0027397016528993845, 0.020088156685233116, 0.020841462537646294, 0.018169019371271133, 0.018976133316755295, 0.017891013994812965, 0.02600698731839657, -0.01012478955090046, -0.010384859517216682, 0.0805678516626358, 0.01892232522368431, 0.05140415579080582, -0.015362058766186237, -0.04946708306670189, 0.03752180561423302, 0.012250187806785107, 0.05161938816308975, 0.02417753078043461, -0.012824135832488537, 0.010671832598745823, 0.02460799179971218, -0.038239240646362305, -0.04824744537472725, 0.013209756463766098, 0.05136828497052193, 0.0008654049597680569, 0.012169476598501205, 0.03490317240357399, -0.03524395078420639, -0.011416170746088028, -0.009398387745022774, 0.03264325484633446, 0.00044839634210802615, 0.021074628457427025, -0.0038427566178143024, -0.0014920388348400593, -0.03658914193511009, -0.02146921679377556, -0.02433895319700241, 0.05717950314283371, 0.02857181429862976, 0.003401086200028658, -0.009461162611842155, -0.0470636785030365, 0.03348623961210251, -0.01276136003434658, 0.01800759695470333, -0.026634743437170982, 0.031100770458579063, 0.002365290652960539, -0.09046844393014908, 0.011165068484842777, 0.012940718792378902, -0.03208724409341812, -0.04799634590744972, 0.007232632953673601, -0.0010666227899491787, 0.05373581871390343, -0.0815722644329071, 0.016169171780347824, 0.013604344800114632, 0.04620276018977165, 0.05488371104001999, 0.04458853229880333, 0.008407431654632092, 0.0565338097512722, 0.04864203557372093, 0.07784160226583481, 0.033844955265522, 0.018303539603948593, 0.037055473774671555, 0.04075026139616966, 0.05319774150848389, -0.047888729721307755, -0.015335154719650745, 0.03680437058210373, -0.0073312800377607346, -0.007237116806209087, -0.047350652515888214, 0.0009029581560753286, 0.006071286275982857, 0.005676697473973036, 0.00317016220651567, -0.02589937299489975, -0.028966404497623444, 0.021415408700704575, -0.05258792266249657, -0.03111870586872101, 0.00035143064451403916, 0.05850675329566002, -0.03097521886229515, -0.0534847155213356, -0.009604649618268013, 0.02989906817674637, -0.050292134284973145, 0.05499132722616196, -0.003250873414799571, -0.041826412081718445, -0.02041100151836872, 0.06449732929468155, -0.054596737027168274, -0.017101837322115898, -0.013236659578979015, -0.014447330497205257, 0.005654277745634317, 0.04939534142613411, 0.036104872822761536, 0.02250949665904045, -0.027477728202939034, 0.048498548567295074, 0.061053644865751266, -0.06080254539847374, -0.011990117840468884, 0.05226507782936096, 0.014034805819392204, 0.011416170746088028, 0.012088765390217304, -0.021576831117272377, -0.006456907372921705, -0.03910016268491745, -0.07927647233009338, 0.00853298231959343, 0.018509801477193832, -0.015137860551476479, 0.04100136086344719, -0.04656147584319115, -0.02799786813557148, 0.007950067520141602, 0.015155795961618423, 0.032786741852760315, -0.010223436169326305, -0.06248851493000984, -0.020303387194871902, 0.0021590283140540123, 0.020393066108226776, 0.0010021658381447196, 0.04283081740140915, -0.02281440608203411, 0.004450333770364523, 0.004744033329188824, 0.041934024542570114, 0.03874144330620766, 0.024733541533350945, -0.03866970166563988, -0.0768371969461441, 0.015918070450425148, -0.061771079897880554, 0.010483506135642529, -0.006470359396189451, -0.05061497911810875, 0.01352363359183073, 0.011712112464010715, 0.02806961163878441, 0.01649201661348343, -0.03687611594796181, -0.02769295871257782, 0.025845564901828766, 0.03816749528050423, 0.01895819790661335, -0.0023585648741573095, -0.00587399210780859, 0.014698431827127934, -0.02200729213654995, 0.04103723168373108, -0.025755885988473892, 0.062273282557725906, -0.02593524381518364, 0.02864355780184269, -0.02570207789540291, 0.026832036674022675, 0.02051861584186554, 0.0480680875480175, 0.0365532711148262, 0.003349520731717348, 0.0036903019063174725, 0.02871530130505562, -0.040032826364040375, -0.010788415558636189, 0.009604649618268013, 0.012133604846894741, -0.05664142593741417, -0.03196169063448906, -0.06593219935894012, 0.05176287516951561, -0.048570290207862854, -0.011281652376055717, -0.011281652376055717, -0.023065507411956787, -0.06302659213542938, -0.003333826782181859, 0.01838424988090992, 0.0002998650597874075, -0.018473928794264793, -0.03666088357567787, -0.005273140966892242, -0.03856208547949791, -0.03734244778752327, 0.02640157751739025, -0.015057149343192577, 0.07335764169692993, 0.021863805130124092, -0.04103723168373108, 0.004163360223174095, -0.016196075826883316, 0.025773821398615837, 0.02346009574830532, 0.002836106810718775, -0.009604649618268013, 0.014348682947456837, 0.03544124588370323, -0.03571028634905815, 0.05850675329566002, -0.052157461643218994, 0.014321778900921345, 0.004026599228382111, 0.0075734141282737255, 0.01967563107609749, -0.022975828498601913, 0.07027267664670944, -0.04817570373415947, -0.010393827222287655, -0.0352080799639225, 0.04598752781748772, -0.03813162446022034, -0.026096666231751442, -0.02582762949168682, -0.067689910531044, -0.015200636349618435, -0.014375586993992329, -0.02780057303607464, 0.015075084753334522, -0.01382854301482439, -0.00048454830539412796, 0.016240915283560753, -0.05671316757798195, -0.021253986284136772, -0.00102178321685642, 0.017406746745109558, -0.0907554179430008, -0.017343970015645027, 0.0656810998916626, 0.08150052279233932, 0.0036342523526400328, -0.03508253023028374, 0.03544124588370323, 0.023513903841376305, -0.004918907769024372, -0.00460503064095974, 0.019819118082523346, 0.006743880920112133, -0.015075084753334522, 0.021038755774497986, 0.040606774389743805, -0.02075178362429142, 0.03581789880990982, -0.05947529152035713, -0.040140438824892044, 0.011972182430326939, -0.006600394379347563, -0.017048029229044914, -0.028177225962281227, -0.0683714747428894, 0.04458853229880333, 0.046740833669900894, 0.0047126454301178455, -0.0440145842730999, -0.03040127269923687, -0.04587991535663605, -0.058757856488227844, 0.0528031550347805, -0.0562109649181366, 0.009236964397132397, 0.0032150016631931067, -0.016294723376631737, -0.07195864617824554, -0.03816749528050423, 0.005806732457131147, -0.012160508893430233, 0.019819118082523346, 0.04387109726667404, 0.03398844227194786, 0.020500680431723595, -0.0369119867682457, 0.06252438575029373, -0.00868543703109026, 0.020967012271285057, 0.023334546014666557, -0.04211338609457016, 0.003331584855914116, -0.05380756035447121, -0.03246389701962471, -0.037629421800374985, -0.026060795411467552, -0.005035490728914738, 0.027370112016797066, -0.017595073208212852, 0.05915244668722153, 0.018778838217258453, 0.06406687200069427, -0.01562212873250246, -0.06456907093524933, -0.05703601613640785, 0.0030356431379914284, 0.0181152131408453, 0.018527736887335777, 0.027226625010371208, -0.0020334774162620306, 0.02376500703394413, -0.05588812008500099, -0.06783340126276016, -0.026060795411467552, 0.006595910061150789, 0.003434716025367379, -0.016034653410315514, -0.0677257850766182, -0.02982732467353344, -0.013416018337011337, -0.07016506046056747, 0.02112843655049801, 0.036481525748968124, -0.00030995396082289517, -0.021809998899698257, 0.014734303578734398, -0.0182766355574131, 0.020662102848291397, 0.06955523788928986, 0.05843501165509224, -0.0528031550347805, -0.00022966299729887396, -0.007403023540973663, -0.047350652515888214, -0.01384647935628891, -0.02555859088897705, -0.03719896078109741, 0.025110194459557533, -0.00921006128191948, -0.011927342973649502, 0.03074205294251442, -0.07048790156841278, -0.024894965812563896, 0.05068672075867653, 0.040140438824892044, -0.049646444618701935, -0.03924364969134331, 0.03232041001319885, 0.005326948594301939, 0.004347202368080616, 0.012169476598501205, 0.00412973016500473, 0.03626629710197449, 0.005295560695230961, 0.031638845801353455, 0.024087851867079735, -0.0026522644329816103, 0.016205044463276863, -0.010896030813455582, 0.004591578617691994, -0.08602035790681839, 0.027531536296010017, -0.07877426594495773, 0.01987292617559433, -0.022294266149401665, 0.012797231785953045, -0.003241905476897955, -0.0007656367379240692, 0.057538218796253204, -0.026078730821609497, 0.00326656736433506, 0.03253563866019249, -0.03145948797464371, -0.01810624450445175, 0.04021218419075012, -0.016133300960063934, -0.014061708934605122, -0.01956801675260067, 0.014958501793444157, -0.01127268373966217, -0.029737645760178566, 0.009398387745022774, 0.04293843358755112, -0.008367075584828854, -0.014411458745598793, 0.01642027497291565, -0.05882960185408592, -0.03963823616504669, -0.07712417095899582, 0.045413579791784286, 0.014097580686211586, 0.0023204509634524584, 0.04415807127952576, 0.010133757255971432, -0.0038248207420110703, -0.05369994416832924, -0.025773821398615837, 0.04157530888915062, 0.06528650969266891, -0.0012543887132778764, 0.022635048255324364, 0.014994373545050621, -0.028500070795416832, 0.0005700238398276269, 0.03863382712006569, -0.02068004012107849, 0.03253563866019249, -0.03956649452447891, 0.05470435321331024, 0.006057834718376398, -0.052157461643218994, -0.031333938241004944 ]
729,346
tinytuya.BulbDevice
set_colour
Set colour of an rgb bulb. Args: r(int): Value for the colour Red as int from 0-255. g(int): Value for the colour Green as int from 0-255. b(int): Value for the colour Blue as int from 0-255. nowait(bool): True to send without waiting for response.
def set_colour(self, r, g, b, nowait=False): """ Set colour of an rgb bulb. Args: r(int): Value for the colour Red as int from 0-255. g(int): Value for the colour Green as int from 0-255. b(int): Value for the colour Blue as int from 0-255. nowait(bool): True to send without waiting for response. """ if not self.has_colour: log.debug("set_colour: Device does not appear to support color.") # return error_json(ERR_FUNCTION, "set_colour: Device does not support color.") if not 0 <= r <= 255: return error_json( ERR_RANGE, "set_colour: The value for red needs to be between 0 and 255.", ) if not 0 <= g <= 255: return error_json( ERR_RANGE, "set_colour: The value for green needs to be between 0 and 255.", ) if not 0 <= b <= 255: return error_json( ERR_RANGE, "set_colour: The value for blue needs to be between 0 and 255.", ) hexvalue = BulbDevice._rgb_to_hexvalue(r, g, b, self.bulb_type) payload = self.generate_payload( CONTROL, { self.DPS_INDEX_MODE[self.bulb_type]: self.DPS_MODE_COLOUR, self.DPS_INDEX_COLOUR[self.bulb_type]: hexvalue, }, ) data = self._send_receive(payload, getresponse=(not nowait)) return data
(self, r, g, b, nowait=False)
[ -0.007313096895813942, -0.08344808220863342, -0.1322716623544693, 0.02405111864209175, -0.004114506766200066, 0.006107693538069725, -0.05106354504823685, 0.026556840166449547, -0.016268199309706688, -0.062339287251234055, -0.0000023728412088530604, -0.012006577104330063, 0.01221538707613945, 0.02397518791258335, -0.015803122892975807, -0.02619616873562336, 0.03646582365036011, 0.03371332958340645, 0.042825039476156235, -0.04533075913786888, 0.005315164569765329, 0.027600890025496483, 0.02350061945617199, 0.08177760243415833, -0.005030423402786255, 0.027771733701229095, 0.011949628591537476, 0.03842104598879814, 0.017701396718621254, 0.004665005952119827, 0.052126578986644745, -0.06628769636154175, 0.0315113328397274, 0.0505320280790329, -0.008471043780446053, 0.003836884396150708, 0.018527144566178322, 0.024563653394579887, -0.06184573471546173, -0.052582163363695145, -0.05482212454080582, -0.03963594138622284, 0.03732004761695862, 0.014872969128191471, 0.006511076353490353, -0.010886595584452152, -0.006530059035867453, 0.0984824076294899, -0.02342468872666359, -0.029840851202607155, 0.004802630748599768, 0.030865918844938278, -0.06890731304883957, 0.05182285234332085, 0.02725920081138611, 0.028322232887148857, -0.04161014407873154, 0.06814800202846527, 0.001923187868669629, -0.005903629120439291, -0.034225862473249435, 0.025797531008720398, 0.02097591757774353, -0.06230131909251213, 0.008233759552240372, 0.023367740213871002, -0.06298469752073288, 0.02879680134356022, 0.037832580506801605, 0.0505320280790329, 0.02281724102795124, 0.0774875059723854, -0.020007798448204994, -0.009852036833763123, -0.02036846987903118, -0.003839257173240185, -0.05170895904302597, 0.0313594713807106, -0.038667820394039154, 0.020691176876425743, 0.052126578986644745, 0.03350451961159706, 0.0774875059723854, -0.012746903114020824, -0.00459144776687026, -0.0473429299890995, -0.02258944883942604, -0.005766004323959351, -0.0674266591668129, -0.029138490557670593, -0.048899512737989426, -0.04476127773523331, -0.05413874611258507, 0.02181115746498108, 0.03367536514997482, -0.04362231492996216, 0.021070830523967743, 0.02841714769601822, 0.046431757509708405, 0.002818935550749302, -0.0639338344335556, -0.013629600405693054, -0.0342448465526104, -0.07733564078807831, 0.039066459983587265, -0.02258944883942604, -0.029233405366539955, 0.014721107669174671, 0.012756395153701305, -0.024829411879181862, -0.007085304241627455, 0.008888663724064827, 0.0007474449812434614, -0.021298622712492943, -0.02397518791258335, 0.05375909060239792, 0.0034975679591298103, -0.02612023614346981, 0.02036846987903118, 0.00822426751255989, -0.012775377370417118, -0.03297300264239311, 0.04639379307627678, 0.033371638506650925, 0.05785936117172241, 0.1015196442604065, -0.03864884003996849, 0.05508788302540779, 0.042141661047935486, 0.021450486034154892, -0.030543213710188866, 0.055657364428043365, -0.002702666213735938, 0.009382214397192001, 0.0477985143661499, 0.020406434312462807, -0.08678904175758362, 0.023766377940773964, 0.04540669173002243, 0.016495993360877037, 0.019704073667526245, -0.04369824379682541, 0.028910698369145393, -0.03544075787067413, 0.03646582365036011, 0.0322706401348114, 0.015290589071810246, -0.045444656163454056, -0.037908513098955154, 0.0687934160232544, 0.021070830523967743, 0.054898057132959366, 0.01443636603653431, 0.03289707005023956, -0.029897799715399742, 0.03547872230410576, -0.014664159156382084, -0.014028238132596016, 0.000978203839622438, 0.004731445573270321, -0.05186082050204277, -0.020918969064950943, 0.07042592763900757, -0.025228047743439674, 0.007398519199341536, 0.02841714769601822, -0.04069897532463074, 0.02581651322543621, 0.031169643625617027, 0.014759073033928871, -0.0014047219883650541, -0.01989390142261982, -0.020311521366238594, 0.03164421021938324, -0.0013620109530165792, 0.052354369312524796, -0.06507279723882675, -0.058049190789461136, 0.025303980335593224, -0.021526416763663292, -0.0034026543144136667, 0.015138727612793446, 0.011778783984482288, -0.013534686528146267, 0.037908513098955154, 0.0029328318778425455, -0.02258944883942604, -0.006658192723989487, 0.001418959116563201, 0.013809936121106148, 0.04449551925063133, 0.031530313193798065, 0.037680719047784805, 0.051974713802337646, 0.03563058376312256, -0.004987712483853102, 0.04111659526824951, -0.029840851202607155, 0.034681446850299835, 0.0010470162378624082, 0.043660279363393784, -0.0689452737569809, -0.04415383189916611, 0.029840851202607155, 0.03041033446788788, -0.07308351248502731, 0.01866951584815979, 0.0010725242318585515, 0.051443200558423996, -0.03595329076051712, -0.06617379933595657, 0.016999034211039543, 0.03585837781429291, 0.03830714896321297, 0.05599905550479889, -0.042597245424985886, 0.002906730631366372, 0.04457145184278488, 0.010706259869039059, -0.017074966803193092, 0.0007332079694606364, -0.031682178378105164, 0.05816308408975601, 0.0001591286709299311, -0.013705531135201454, 0.031226592138409615, -0.04149624705314636, -0.01698005199432373, -0.005766004323959351, 0.01681869849562645, -0.01194013748317957, 0.04316673055291176, 0.00662497291341424, 0.03872476890683174, -0.03661768510937691, -0.031093712896108627, 0.062263354659080505, 0.017530551180243492, -0.07141303271055222, 0.01221538707613945, 0.005732784513384104, 0.03156828135251999, 0.04533075913786888, -0.008333418518304825, 0.0010517619084566832, -0.020311521366238594, 0.05710005387663841, 0.018878325819969177, -0.07122320681810379, -0.007498178631067276, -0.08914290368556976, -0.01828986033797264, 0.018992220982909203, 0.02566465176641941, -0.026518873870372772, 0.006297520827502012, -0.015537364408373833, -0.006392434239387512, 0.002223352203145623, 0.0025935154408216476, -0.004161963704973459, -0.029613059014081955, 0.0012801479315385222, 0.08739648759365082, 0.03020152449607849, -0.022342674434185028, 0.042900972068309784, 0.03041033446788788, -0.002085727406665683, 0.035839393734931946, 0.08815579861402512, 0.026708701625466347, -0.03219471126794815, -0.026006340980529785, -0.04248335212469101, -0.004368400666862726, 0.001335909590125084, -0.024620601907372475, 0.013828919269144535, -0.03623803332448006, 0.02203894965350628, -0.0331818126142025, 0.027297167107462883, 0.05785936117172241, -0.020064745098352432, 0.01773936115205288, 0.007199200335890055, 0.04358435049653053, 0.0072514028288424015, -0.01348723005503416, 0.012841816991567612, 0.015841089189052582, -0.025930410251021385, 0.023633498698472977, 0.0665154904127121, 0.01937187649309635, -0.008817478083074093, 0.021754208952188492, 0.014037729240953922, -0.05091168358922005, 0.015461433678865433, -0.09552109986543655, 0.007768682204186916, -0.019874919205904007, -0.025455841794610023, -0.07315944135189056, 0.06123828887939453, -0.025797531008720398, -0.048443928360939026, -0.010449993424117565, 0.00568532757461071, -0.011475060135126114, 0.04179997369647026, -0.01125675905495882, 0.022627415135502815, -0.05375909060239792, -0.0025294488295912743, 0.014797038398683071, 0.014331961050629616, 0.03578244522213936, -0.022418605163693428, -0.07388078421354294, 0.0045202625915408134, 0.04939306527376175, 0.03779461607336998, 0.008020203560590744, 0.03232758864760399, 0.05763157084584236, -0.02350061945617199, 0.030543213710188866, -0.09218014031648636, -0.0020299656316637993, -0.00111404899507761, -0.01690412126481533, 0.06845172494649887, -0.07896815985441208, -0.012822834774851799, -0.02695547789335251, 0.008361892774701118, -0.02036846987903118, -0.023481637239456177, -0.00918289553374052, 0.010649311356246471, 0.040509145706892014, 0.02135557122528553, -0.0017748852260410786, 0.015432959422469139, -0.0001534931652713567, 0.021241676062345505, 0.061731837689876556, 0.022019967436790466, -0.025322962552309036, -0.01417060848325491, 0.05930205062031746, 0.009050016291439533, -0.00018775106582324952, -0.014493314549326897, -0.043660279363393784, 0.027600890025496483, -0.001220826874487102, -0.01896374672651291, 0.009149676188826561, 0.038364097476005554, 0.023614516481757164, -0.04024338722229004, 0.023101983591914177, -0.07980339974164963, 0.005481263156980276, 0.04400197044014931, 0.016467519104480743, 0.03602922335267067, 0.00787783320993185, -0.015081779100000858, -0.0004383824416436255, 0.005766004323959351, 0.006591753102838993, -0.036750566214323044, -0.01033609639853239, 0.011740818619728088, -0.02818935364484787, -0.03494720533490181, -0.02687954530119896, 0.015233641490340233, -0.0011923527345061302, 0.03948407992720604, -0.018802395090460777, -0.001118201413191855, -0.035364825278520584, -0.06761648505926132, 0.00666293827816844, -0.004024338908493519, -0.031454384326934814, 0.030543213710188866, 0.008119862526655197, -0.0468873456120491, -0.01582210510969162, 0.04692531004548073, 0.03200488165020943, 0.06051694601774216, -0.04908934235572815, -0.033998068422079086, -0.002633853815495968, -0.06704699993133545, -0.011199810542166233, 0.005177539773285389, 0.012860800139605999, 0.024620601907372475, 0.04464738070964813, -0.01989390142261982, -0.01229131780564785, 0.008138845674693584, 0.021450486034154892, -0.037984441965818405, 0.0004007135867141187, -0.03857290744781494, -0.004857206251472235, -0.03777563199400902, -0.04293893650174141, 0.020387452095746994, 0.05448043718934059, -0.01041202712804079, 0.0014165862230584025, 0.054594334214925766, 0.02780969999730587, -0.002818935550749302, 0.026367012411355972, 0.07285571843385696, 0.05645463988184929, -0.012737412005662918, 0.02012169361114502, 0.046052101999521255, 0.003158251754939556, -0.015584821812808514, -0.04495110362768173, 0.03657972067594528, -0.00555244879797101, 0.013041135855019093, 0.002078609075397253, 0.05755563825368881, -0.009927967563271523, 0.031150659546256065, 0.002044202759861946, -0.02050134912133217, -0.002014542231336236, -0.014607210643589497, -0.05789732560515404, -0.032916054129600525, -0.003696886822581291, 0.0689452737569809, -0.009007305838167667, -0.05019034072756767, 0.02112777903676033, 0.016002440825104713, -0.007199200335890055, 0.03963594138622284, -0.019950849935412407, -0.04354638233780861, -0.00758360093459487, 0.02266537956893444, -0.009515093639492989, 0.03509906679391861, 0.0006228708662092686, -0.08466297388076782, 0.008020203560590744, -0.009292046539485455, 0.040053561329841614, 0.08944662660360336, -0.037604790180921555, -0.032688260078430176, -0.015803122892975807, -0.03042931668460369, -0.016116337850689888, 0.014787547290325165, 0.02181115746498108, -0.002624362474307418, -0.038079358637332916, 0.0071375067345798016, 0.039370182901620865, -0.048443928360939026, -0.058656636625528336, -0.026594804599881172, -0.013192997314035892, -0.01660039834678173, -0.011275742202997208, -0.0011300656478852034, 0.009405942633748055, 0.01313604973256588, 0.015024830587208271, 0.04787444695830345, -0.014721107669174671, -0.07376688718795776, -0.10038068145513535, -0.015508891083300114, -0.018631549552083015, -0.03762377053499222, -0.023101983591914177, -0.008086643181741238, -0.015138727612793446, 0.014702124521136284, -0.006976153235882521, 0.01516720186918974, -0.030543213710188866, -0.025626685470342636, -0.01660039834678173, 0.02044440060853958, -0.11427603662014008, -0.01512923650443554, 0.009890002198517323, -0.006511076353490353, -0.009344249032437801, -0.030903885141015053, 0.06112439185380936, 0.029461197555065155, -0.04510296881198883, -0.007431739009916782, -0.03563058376312256, 0.03749089315533638, 0.0032436740584671497, -0.04293893650174141, -0.045748379081487656, 0.012984187342226505, 0.07205844670534134, 0.06921103596687317, 0.021469468250870705, -0.022228777408599854, 0.038231220096349716, 0.03718717023730278, -0.04031931981444359, -0.029537128284573555, -0.030922867357730865, -0.0244307741522789, -0.002420298056676984, 0.03149234876036644, -0.0005786766414530575, 0.010317114181816578, -0.03458653390407562, 0.04495110362768173, -0.019780004397034645, -0.10038068145513535, -0.07858850061893463, 0.02894866280257702, -0.0013537060003727674, 0.03071405738592148, -0.032840125262737274, -0.08443518728017807, -0.027999527752399445, -0.025531772524118423, 0.013838410377502441, -0.002066744724288583, -0.06306062638759613, -0.009965933859348297, 0.014939408749341965, 0.01341129932552576, -0.001443873974494636, -0.03902849182486534, -0.011152354069054127, 0.002184200333431363, -0.0322706401348114, 0.015964476391673088, -0.023557567968964577, -0.034605517983436584, 0.010041864588856697, -0.027240218594670296, 0.009135439060628414, -0.017008526250720024, 0.006273792590945959, -0.015413977205753326, 0.01440789271146059, 0.0011300656478852034, -0.08861138671636581, 0.02380434423685074, 0.06336435675621033, -0.02266537956893444, 0.019647125154733658, 0.011361164040863514, 0.01805257610976696, 0.010041864588856697, -0.038212236016988754, 0.003564007580280304, -0.029214421287178993, -0.01512923650443554, 0.029366284608840942, -0.05508788302540779, -0.08473891019821167, -0.012044542469084263, -0.009292046539485455, -0.001984881702810526, 0.02687954530119896, 0.025057204067707062, 0.001321672578342259, 0.005191776901483536, 0.000148895793245174, -0.03240352123975754, -0.07741157710552216, -0.013629600405693054, 0.05087371543049812, 0.03502313792705536, -0.004328062292188406, -0.021488450467586517, 0.06902121007442474, -0.015451942570507526, -0.02359553426504135, 0.004382637795060873, -0.026518873870372772, -0.002740631578490138, -0.014037729240953922, -0.005476517602801323, -0.02811342291533947, 0.006530059035867453, -0.042976900935173035, -0.01114286296069622, -0.005424315109848976, -0.0159834586083889, 0.08352401107549667, -0.013781461864709854, -0.04495110362768173, -0.013316385447978973, 0.08094236254692078, 0.0030040170531719923, 0.06852765381336212, 0.006363960448652506, -0.014237048104405403, -0.009553059004247189, -0.007811393588781357, -0.04457145184278488, -0.06385790556669235, -0.009154421277344227, -0.03978780284523964, -0.03732004761695862, -0.042369455099105835, 0.0012576058506965637, -0.009401197545230389, 0.018641041591763496, -0.027771733701229095, 0.020615244284272194, -0.022931138053536415, 0.029062559828162193, 0.03642785921692848, -0.0019006459042429924, 0.02949916198849678, 0.04316673055291176, 0.025531772524118423, 0.0031321505084633827, -0.035212963819503784, 0.03754784166812897, 0.05759360268712044, -0.038079358637332916, 0.024165015667676926, 0.012661481276154518, -0.029081542044878006, -0.05713801831007004, -0.0055999052710831165, 0.015024830587208271, -0.007146997842937708, -0.03502313792705536, 0.015499399043619633, 0.03025847300887108, 0.019988814368844032, 0.005296181887388229, 0.0029755430296063423, -0.059795599430799484, 0.04403993487358093, 0.05387298762798309, -0.0482540987432003, -0.020634228363633156, -0.00045024664723314345, 0.04354638233780861, -0.0017357333563268185, -0.03027745522558689, 0.003986373543739319, -0.0008678666781634092, -0.029688989743590355, -0.04924120381474495, -0.028056476265192032, 0.029176456853747368, 0.009263572283089161, -0.037452928721904755, -0.0244307741522789, 0.08238504827022552, -0.0030111356172710657, 0.03956000879406929, 0.0007450721459463239, -0.04104066267609596, 0.06032711640000343, 0.07004627585411072, 0.038212236016988754, 0.027771733701229095, -0.018185455352067947, 0.011598448269069195, -0.016856664791703224, -0.005457534920424223, -0.032156746834516525, -0.046583618968725204, 0.04179997369647026, -0.05182285234332085, -0.03263131156563759, -0.031226592138409615, -0.039066459983587265, -0.02181115746498108, 0.05497398599982262, 0.029233405366539955, -0.044685348868370056, -0.02741106227040291, 0.019409840926527977, 0.007365299388766289, 0.02228572592139244, 0.006696158088743687, -0.013990271836519241, -0.017112931236624718, -0.03540279343724251, 0.01101947482675314, 0.05615091696381569, -0.012651990167796612, 0.0085612116381526, -0.039446111768484116, 0.00047249201452359557, -0.09324317425489426, -0.042673178017139435, -0.04783647879958153, 0.030771005898714066, -0.04377417638897896, 0.046052101999521255, 0.013800445012748241, -0.008665616624057293, 0.021241676062345505, -0.0484059639275074, 0.022475551813840866, 0.03373230993747711, 0.019476281479001045, -0.0013430281542241573, 0.024392807856202126, 0.013686548918485641, -0.0336373969912529, 0.0004799071466550231, -0.009890002198517323, -0.038383081555366516, 0.033295709639787674, -0.013278420083224773, 0.04555855318903923, 0.005467026494443417, -0.012670972384512424, -0.02849307842552662, -0.012234369292855263, -0.05026626959443092, -0.039977628737688065, 0.05387298762798309, 0.029290352016687393, 0.012262843549251556, 0.0005208386573940516, 0.01796715334057808, 0.03956000879406929, 0.02097591757774353, -0.024715514853596687, 0.08094236254692078, 0.0968119278550148, -0.03826918452978134, -0.04016745835542679, 0.06400976330041885, -0.004043321590870619, 0.0037989187985658646, 0.03041033446788788, 0.05523974448442459, 0.00543380668386817, 0.01637260429561138, 0.027752751484513283, 0.07836071401834488, -0.034909240901470184, -0.0017808174015954137 ]
729,347
tinytuya.BulbDevice
set_colourtemp
Set the colour temperature of an rgb bulb. Args: colourtemp(int): Value for the colour temperature (0-255). nowait(bool): True to send without waiting for response.
def set_colourtemp(self, colourtemp, nowait=False): """ Set the colour temperature of an rgb bulb. Args: colourtemp(int): Value for the colour temperature (0-255). nowait(bool): True to send without waiting for response. """ if not self.has_colourtemp: log.debug("set_colourtemp: Device does not appear to support colortemp.") # return error_json(ERR_FUNCTION, "set_colourtemp: Device does not support colortemp.") if self.bulb_type == "A" and not 0 <= colourtemp <= 255: return error_json( ERR_RANGE, "set_colourtemp: The colour temperature needs to be between 0 and 255.", ) if self.bulb_type == "B" and not 0 <= colourtemp <= 1000: return error_json( ERR_RANGE, "set_colourtemp: The colour temperature needs to be between 0 and 1000.", ) payload = self.generate_payload( CONTROL, {self.DPS_INDEX_COLOURTEMP[self.bulb_type]: colourtemp} ) data = self._send_receive(payload, getresponse=(not nowait)) return data
(self, colourtemp, nowait=False)
[ 0.027678286656737328, -0.04542849212884903, -0.08672028034925461, 0.014008371159434319, 0.01665962114930153, -0.011169090867042542, -0.0632915124297142, 0.025158658623695374, 0.002458516275510192, -0.06675130128860474, 0.005626852624118328, -0.01599210686981678, -0.021774087101221085, -0.003690124722197652, -0.022262968122959137, 0.000671626185066998, 0.01491092424839735, 0.03213464096188545, 0.01885959319770336, -0.02335355430841446, -0.003925164695829153, -0.0039369165897369385, 0.007253327872604132, 0.0807032659649849, 0.019188648089766502, 0.018239088356494904, 0.0005687962984666228, 0.014027174562215805, 0.020157013088464737, -0.017505763098597527, 0.04640625789761543, -0.04441311955451965, 0.02639967016875744, 0.04768487438559532, 0.004376440774649382, 0.004486909601837397, 0.014976735226809978, 0.01875617541372776, -0.05238566920161247, -0.021548448130488396, -0.03495511785149574, -0.06242656707763672, 0.009180653840303421, 0.022714246064424515, -0.0031471827533096075, -0.013886150903999805, -0.01314342487603426, 0.07186576724052429, 0.01234428957104683, -0.028580838814377785, -0.0121750608086586, 0.023259537294507027, -0.06893246620893478, 0.051483117043972015, 0.013378464616835117, 0.03414658084511757, -0.01328444853425026, 0.06558550149202347, -0.02241339534521103, -0.0007820948958396912, -0.03465426713228226, 0.04117897152900696, -0.003948668483644724, -0.06799230724573135, -0.0029967573937028646, 0.01731773093342781, -0.06885726004838943, 0.04614301025867462, 0.039373867213726044, 0.06829316169023514, 0.01942368783056736, 0.053927529603242874, -0.030348338186740875, -0.00449631130322814, 0.020551878958940506, -0.019931374117732048, -0.042570408433675766, 0.007131107151508331, -0.0638556107878685, 0.03723030164837837, 0.0360645055770874, 0.028844082728028297, 0.06953417509794235, 0.019686933606863022, -0.013961363583803177, -0.0068772644735872746, -0.020871533080935478, -0.011686178855597973, -0.08062805235385895, 0.011836604215204716, -0.039148226380348206, -0.02639967016875744, -0.047722477465867996, 0.025215068832039833, 0.06265220791101456, -0.03862173855304718, 0.002409157808870077, -0.0006863161688670516, 0.023767223581671715, -0.015569035895168781, -0.05648476257920265, -0.0020589486230164766, -0.01991257071495056, -0.08047762513160706, 0.04493960738182068, -0.04035163298249245, -0.035726048052310944, 0.027358632534742355, 0.03519956022500992, -0.04414987564086914, -0.011846005916595459, 0.0008878628141246736, -0.012278478592634201, -0.03138251230120659, -0.025384297594428062, 0.047459233552217484, 0.011516950093209743, -0.000629906659014523, -0.0001124518530559726, 0.01247591245919466, 0.009152449667453766, -0.04249519482254982, 0.051219869405031204, 0.027132993564009666, 0.018737372010946274, 0.09619708359241486, -0.0036619198508560658, 0.042645618319511414, 0.005326001439243555, 0.005321301054209471, -0.04587976634502411, 0.07111363857984543, 0.025365494191646576, 0.03204062581062317, 0.010689609684050083, 0.02318432554602623, -0.08965358138084412, 0.008546046912670135, 0.04275843873620033, 0.0021905708126723766, 0.029408179223537445, -0.011328917928040028, 0.011657973751425743, -0.03198421373963356, 0.04915152117609978, 0.025967195630073547, -0.000977177987806499, -0.048549819737672806, -0.032999586313962936, 0.04557891562581062, 0.0005796668701805174, 0.05434120073914528, -0.03617732599377632, 0.03978753462433815, -0.03192780539393425, 0.032454293221235275, -0.010454569943249226, 0.02529028058052063, 0.0029544502031058073, -0.017637385055422783, -0.0680675208568573, -0.026587700471282005, 0.06487098336219788, -0.004870024509727955, -0.003988625481724739, 0.004030932206660509, -0.0423823744058609, 0.04272083193063736, 0.027979137375950813, 0.015954501926898956, 0.019066426903009415, -0.009110142476856709, -0.009575520642101765, 0.01858694665133953, 0.030179109424352646, 0.0045903269201517105, -0.044525936245918274, -0.07235465198755264, 0.05795140936970711, 0.02557232975959778, -0.00676444498822093, 0.0025689848698675632, -0.034767087548971176, 0.02888168953359127, 0.040915727615356445, -0.04178067296743393, -0.01759978011250496, 0.021153580397367477, -0.012071643956005573, 0.018464725464582443, 0.04072769358754158, 0.043961841613054276, 0.016076721251010895, 0.03478588908910751, 0.056522369384765625, -0.0010377006838098168, 0.06299066543579102, -0.04012599214911461, 0.018793782219290733, 0.01566305197775364, 0.011159689165651798, -0.08679549396038055, -0.0011123258154839277, 0.012015233747661114, 0.060734283179044724, -0.07686741650104523, 0.03858413174748421, 0.0027640678454190493, 0.016396375373005867, -0.028374003246426582, -0.08641943335533142, 0.016509195789694786, 0.02938937582075596, 0.04170545935630798, 0.04403705522418022, -0.0544540174305439, -0.017421148717403412, 0.01720491237938404, 0.01775960624217987, -0.019931374117732048, -0.004898229148238897, -0.04640625789761543, 0.052423276007175446, 0.0015641897916793823, 0.001961407018825412, 0.05577024072408676, -0.04873785004019737, -0.014967333525419235, -0.03993796184659004, 0.02822357788681984, -0.0016147233545780182, 0.06761624664068222, 0.018615150824189186, 0.01659380830824375, -0.041630249470472336, -0.03192780539393425, 0.05058056116104126, 0.0034409824293106794, -0.07461103051900864, 0.020439060404896736, -0.00879518873989582, 0.013923756778240204, 0.045127641409635544, -0.014873318374156952, -0.0174399521201849, -0.019931374117732048, 0.05971891060471535, 0.04802333191037178, -0.061674442142248154, -0.007008886430412531, -0.0565599761903286, -0.011648572050035, -0.00468904385343194, 0.037098679691553116, -0.015954501926898956, -0.006190948188304901, 0.025384297594428062, 0.0005153247620910406, -0.003393974620848894, 0.00974004901945591, -0.01543741300702095, -0.04046444967389107, 0.009420394897460938, 0.10251495242118835, 0.0007139333756640553, -0.03952429071068764, 0.012513518333435059, 0.037606365978717804, -0.024312516674399376, 0.04354817420244217, 0.0590796023607254, 0.010285341180860996, -0.028750067576766014, -0.03659099340438843, -0.035105541348457336, -0.006491798907518387, 0.012626337818801403, -0.04309689626097679, -0.01394256018102169, -0.048775456845760345, -0.03213464096188545, -0.025647541508078575, 0.043585777282714844, 0.04516524448990822, -0.059230025857686996, -0.03173977509140968, 0.013265646062791348, 0.05678561329841614, 0.020570682361721992, -0.018803182989358902, -0.029633816331624985, 0.0179288350045681, -0.0293329656124115, 0.016753636300563812, 0.07701783627271652, -0.004632634110748768, -0.034447431564331055, -0.010755420662462711, 0.03331924229860306, -0.031081661581993103, 0.028637249022722244, -0.10484655201435089, -0.02942698262631893, -0.017496362328529358, -0.02235698513686657, -0.050655774772167206, 0.03865934535861015, -0.008846897631883621, -0.024143287912011147, -0.0005364782991819084, 0.02275185100734234, -0.026136424392461777, 0.01543741300702095, -0.01469468791037798, 0.042645618319511414, -0.004595027770847082, 0.02290227636694908, 0.011422934010624886, 0.03922343999147415, 0.06351715326309204, -0.01327504776418209, -0.08115454018115997, 0.04343535378575325, 0.04132939502596855, 0.03623373433947563, 0.018323702737689018, 0.010830633342266083, 0.03518075495958328, -0.022676639258861542, 0.027903923764824867, -0.10966016352176666, 0.03933626040816307, -0.001004795078188181, -0.019000615924596786, 0.036553386598825455, -0.056748006492853165, -0.020345043390989304, -0.0301038958132267, 0.01051097922027111, -0.02190570905804634, -0.034767087548971176, -0.012400699779391289, 0.034165382385253906, 0.04997885972261429, 0.04369859769940376, 0.01848352886736393, 0.023880042135715485, -0.004139050841331482, 0.04117897152900696, 0.09995771944522858, -0.015305791050195694, -0.012880180962383747, 0.0007415505242533982, 0.081681028008461, 0.009721245616674423, 0.004585626535117626, 0.007295635063201189, -0.032341476529836655, 0.02854323200881481, -0.00717811519280076, -0.03990035504102707, -0.00023107349989004433, 0.024387728422880173, -0.0067503429017961025, -0.03153293952345848, -0.0015818177489563823, -0.04272083193063736, 0.021398022770881653, 0.022037331014871597, 0.007173414342105389, 0.014826309867203236, -0.003805294167250395, -0.015484421513974667, -0.021567251533269882, 0.006943075451999903, -0.008108872920274734, -0.05671039968729019, -0.017402345314621925, 0.0013714571250602603, -0.03243549168109894, 0.009664836339652538, -0.03600809723138809, -0.018568143248558044, -0.0010359379230067134, 0.05313779413700104, -0.01529638934880495, -0.026738125830888748, -0.04249519482254982, -0.04749684035778046, 0.034221794456243515, 0.015616043470799923, -0.01882198639214039, 0.03589527681469917, -0.012541723437607288, -0.023315947502851486, -0.006924272049218416, 0.04001317545771599, -0.0007550653535872698, 0.045390885323286057, -0.016810046508908272, -0.05091901868581772, -0.0047007957473397255, -0.06998544931411743, 0.0038099950179457664, 0.02307150512933731, 0.028524428606033325, 0.03004748746752739, -0.013303251937031746, -0.02534669078886509, -0.026474881917238235, -0.006628122180700302, 0.060395825654268265, -0.024500546976923943, -0.014205805025994778, -0.0331876166164875, 0.017421148717403412, -0.07081279158592224, -0.061561621725559235, 0.032736342400312424, 0.04272083193063736, -0.014506655745208263, -0.00111761421430856, 0.05197199806571007, 0.004418747965246439, 0.0013068212429061532, 0.033168815076351166, 0.06126077100634575, 0.04625583067536354, -0.045616522431373596, 0.04542849212884903, 0.029784241691231728, 0.0030837219674140215, -0.031626954674720764, -0.04132939502596855, 0.03534998372197151, 0.0290509182959795, 0.014986136928200722, -0.02871246077120304, 0.038208067417144775, -0.014647679403424263, 0.03941147029399872, 0.014967333525419235, -0.0011681477772071958, -0.0037888414226472378, -0.015926295891404152, -0.05189678445458412, -0.05708646401762962, -0.016396375373005867, 0.024387728422880173, -0.0010935226455330849, -0.04896349087357521, 0.03619612753391266, 0.007765714544802904, 0.0032553011551499367, 0.036102112382650375, -0.0005764350644312799, -0.07378368824720383, -0.006228554528206587, 0.0248390045017004, -0.009975088760256767, 0.009683639742434025, 0.009110142476856709, -0.03918583318591118, 0.006341373547911644, 0.0290509182959795, 0.01355709508061409, 0.07194098085165024, -0.04858742654323578, -0.02384243719279766, -0.005772577133029699, -0.030630385503172874, -0.0279979407787323, 0.01065200287848711, 0.020345043390989304, 0.0010688434122130275, -0.026963764801621437, -0.004524515941739082, 0.06141119822859764, 0.0024843704886734486, -0.07111363857984543, -0.01996898092329502, -0.019837358966469765, 0.010379357263445854, 0.00417900737375021, -0.009100740775465965, 0.01327504776418209, 0.004005078226327896, 0.00032905570697039366, 0.04918912798166275, -0.02656889706850052, -0.09604666382074356, -0.08002635091543198, 0.008531944826245308, 0.01882198639214039, -0.05437880754470825, -0.023203128948807716, -0.013980166986584663, -0.009171253070235252, 0.012269076891243458, 0.016941668465733528, -0.007742210756987333, -0.004726650193333626, -0.02942698262631893, -0.025685148313641548, 0.015531429089605808, -0.10732857137918472, -0.02871246077120304, -0.014008371159434319, -0.0006610493874177337, -0.022168952971696854, -0.006153341848403215, 0.03480469062924385, 0.03166456148028374, -0.04952758550643921, 0.00401212926954031, -0.021115975454449654, 0.03758756443858147, -0.009777654893696308, -0.023560388013720512, -0.06220092996954918, -0.0237860269844532, 0.06908289343118668, 0.06855640560388565, 0.022808261215686798, 0.00006188156839925796, 0.04151742905378342, 0.0358576700091362, -0.03301839157938957, -0.057537741959095, 0.00016731895448174328, -0.02749025449156761, -0.0034409824293106794, 0.051483117043972015, 0.012259675189852715, 0.023579191416502, -0.06998544931411743, 0.027697088196873665, -0.047835297882556915, -0.07776996493339539, -0.09228602051734924, -0.0053589073941111565, -0.010501577518880367, 0.04636865109205246, -0.0665256604552269, -0.054303593933582306, -0.06347955018281937, -0.042081523686647415, 0.049941252917051315, -0.019113436341285706, -0.048775456845760345, 0.004529216792434454, -0.018069859594106674, 0.005499931052327156, 0.0013338507851585746, -0.042645618319511414, 0.0118930134922266, -0.0055281356908380985, -0.006336672697216272, 0.004865323659032583, -0.020100602880120277, -0.02651248872280121, 0.002543130423873663, 0.001246886095032096, 0.011610965244472027, -0.010604995302855968, -0.030856024473905563, -0.04249519482254982, 0.01681944727897644, -0.02164246328175068, -0.08762283623218536, 0.03922343999147415, 0.05806422978639603, 0.01842712052166462, 0.015747666358947754, 0.012663943693041801, 0.011169090867042542, 0.03158934786915779, -0.056183911859989166, 0.024425335228443146, -0.004277724307030439, -0.0013597052311524749, 0.04159264266490936, -0.05106944590806961, -0.0807032659649849, 0.02008179947733879, -0.02656889706850052, 0.02888168953359127, 0.02739623747766018, 0.024312516674399376, -0.008729377761483192, 0.004745453596115112, 0.04482679069042206, -0.004026231821626425, -0.06569832563400269, -0.008202889002859592, 0.039637111127376556, 0.054642051458358765, 0.013839143328368664, -0.001859164796769619, 0.06284023821353912, -0.013397268019616604, -0.025327887386083603, -0.01593569852411747, -0.047158382833004, 0.0008878628141246736, -0.034278202801942825, -0.01615193486213684, -0.022601425647735596, 0.00329995877109468, -0.027791105210781097, 0.03589527681469917, -0.02922014705836773, 0.007643493823707104, 0.08777325600385666, 0.009834065102040768, -0.011469941586256027, -0.02395525574684143, 0.03640296310186386, 0.007648194674402475, 0.05200960487127304, -0.028242381289601326, -0.01853053644299507, -0.0026771032717078924, -0.017139101400971413, -0.0173647403717041, -0.06900767982006073, 0.00546232471242547, -0.05422838032245636, -0.045127641409635544, -0.020269831642508507, -0.01039816066622734, -0.002251681173220277, 0.01809806376695633, -0.009002024307847023, -0.002389179542660713, 0.0051379697397351265, 0.00717811519280076, 0.03303719311952591, 0.009251166135072708, 0.014600671827793121, 0.035726048052310944, 0.05046774446964264, 0.010501577518880367, -0.04369859769940376, 0.04708316922187805, 0.030950039625167847, -0.007911439053714275, 0.0358576700091362, 0.0010623798007145524, 0.00035197209217585623, -0.047722477465867996, 0.0006663377862423658, 0.02711419016122818, 0.015305791050195694, -0.06979741901159286, 0.01920745149254799, 0.02540310099720955, 0.020551878958940506, 0.02295868657529354, 0.0022822364699095488, -0.06900767982006073, 0.04764726758003235, 0.030856024473905563, -0.04892588406801224, -0.0005996452528052032, -0.014318624511361122, 0.021115975454449654, -0.008405023254454136, -0.04354817420244217, 0.008367416448891163, 0.024538153782486916, -0.0348799042403698, -0.008202889002859592, -0.04776008427143097, 0.03785080835223198, 0.024218499660491943, -0.04975322261452675, -0.008231093175709248, 0.04881306365132332, 0.012889581732451916, 0.069045290350914, 0.009110142476856709, -0.037606365978717804, 0.0697598084807396, 0.06746581941843033, 0.05328822135925293, 0.0022881124168634415, -0.011610965244472027, -0.015446814708411694, -0.014469049870967865, 0.010426364839076996, -0.04550370201468468, -0.08160581439733505, 0.03230386972427368, -0.05765055865049362, -0.04388662800192833, -0.05058056116104126, -0.000008290661753562745, -0.0010065579554066062, 0.03160814940929413, 0.042570408433675766, -0.02181169204413891, -0.028975704684853554, 0.01964932680130005, 0.02190570905804634, 0.005156773142516613, -0.001358530018478632, -0.009566119872033596, -0.02036384679377079, -0.025553526356816292, 0.042908865958452225, 0.07118885219097137, -0.005810183472931385, 0.02677573263645172, -0.06317869573831558, 0.025797966867685318, -0.09882953017950058, -0.04915152117609978, -0.01582287810742855, 0.04099094122648239, -0.045616522431373596, 0.012381896376609802, 0.018398914486169815, -0.002446764148771763, 0.013491284102201462, -0.039637111127376556, 0.008367416448891163, 0.04339774698019028, 0.01535279955714941, 0.018398914486169815, 0.02788512036204338, 0.006487098056823015, -0.028524428606033325, 0.034221794456243515, 0.004155503585934639, -0.04952758550643921, 0.021398022770881653, 0.012165659107267857, 0.07096321135759354, 0.04493960738182068, -0.01532459445297718, -0.029201343655586243, -0.011385327205061913, -0.04550370201468468, -0.008480235934257507, 0.03053637035191059, 0.02235698513686657, 0.02184929884970188, 0.00901612639427185, 0.012334887869656086, 0.03175857663154602, -0.003901660442352295, -0.023729616776108742, 0.05200960487127304, 0.1350068598985672, -0.01609552465379238, -0.038377296179533005, 0.060283005237579346, -0.014158797450363636, 0.02551591955125332, 0.0444883331656456, 0.034842297434806824, 0.008315707556903362, 0.03805764392018318, -0.01936727948486805, 0.07604007422924042, -0.04828657582402229, 0.031683363020420074 ]
729,348
tinytuya.BulbDevice
set_colourtemp_percentage
Set the colour temperature of an rgb bulb. Args: colourtemp(int): Value for the colour temperature in percentage (0-100). nowait(bool): True to send without waiting for response.
def set_colourtemp_percentage(self, colourtemp=100, nowait=False): """ Set the colour temperature of an rgb bulb. Args: colourtemp(int): Value for the colour temperature in percentage (0-100). nowait(bool): True to send without waiting for response. """ if not 0 <= colourtemp <= 100: return error_json( ERR_RANGE, "set_colourtemp_percentage: Colourtemp percentage needs to be between 0 and 100.", ) c = int(255 * colourtemp / 100) if self.bulb_type == "B": c = int(1000 * colourtemp / 100) data = self.set_colourtemp(c, nowait=nowait) return data
(self, colourtemp=100, nowait=False)
[ -0.005619272124022245, -0.03828355669975281, -0.07881481945514679, 0.024416642263531685, 0.0191961582750082, 0.01609649509191513, -0.043395280838012695, -0.005034686531871557, 0.00004673285729950294, -0.061231937259435654, 0.034259431064128876, -0.022386454045772552, 0.00016469792171847075, -0.02173389308154583, -0.015996798872947693, 0.004744659643620253, 0.024434769526124, 0.03810228779911995, 0.008990835398435593, -0.007930424064397812, -0.019214285537600517, -0.00628542760387063, 0.0010060309432446957, 0.05202358216047287, -0.0036230708938091993, -0.0017843454843387008, 0.023075267672538757, 0.01725660264492035, 0.011582951061427593, -0.00267821759916842, 0.05263989046216011, -0.025613004341721535, 0.0010649426840245724, 0.04930457845330238, 0.00922195054590702, 0.003416879801079631, 0.008655491285026073, 0.038428571075201035, -0.1001318022608757, -0.019812464714050293, -0.025758016854524612, -0.05079096928238869, -0.03480323404073715, 0.024054110050201416, 0.022495213896036148, -0.020900066941976547, 0.019667452201247215, 0.057860374450683594, 0.05068220943212509, -0.047926951199769974, -0.019051143899559975, 0.014582917094230652, -0.09367869794368744, 0.05234986171126366, 0.0196493249386549, 0.06351590156555176, -0.002422178164124489, 0.07453692704439163, 0.0016189394518733025, 0.009453065693378448, -0.02970963530242443, 0.011447000317275524, 0.024180995300412178, -0.060289349406957626, -0.0065618595108389854, 0.00759508041664958, -0.06195700541138649, 0.04390282928943634, 0.0015770214376971126, 0.047165632247924805, -0.006140414159744978, 0.049522098153829575, -0.011320114135742188, 0.0023202155716717243, 0.001365165924653411, 0.0004973508766852319, -0.03525640070438385, -0.003487120848149061, -0.04760067164897919, 0.07366684079170227, 0.034567587077617645, 0.015244540758430958, 0.06714123487472534, 0.0009635465103201568, -0.029075201600790024, -0.025975538417696953, -0.038247302174568176, -0.021353233605623245, -0.0504646860063076, 0.0489782989025116, -0.03237425535917282, -0.013894103467464447, -0.023890968412160873, 0.019268665462732315, 0.061666976660490036, -0.037630993872880936, -0.0100240558385849, 0.02581239677965641, 0.0039629461243748665, -0.015162970870733261, -0.05434379726648331, 0.0016393319237977266, -0.0054334732703864574, -0.08345524966716766, 0.05140727385878563, -0.0504646860063076, -0.02639245055615902, 0.017628200352191925, 0.039624929428100586, -0.038609836250543594, -0.018153874203562737, -0.02274898812174797, -0.0042824288830161095, -0.035637058317661285, -0.02302088774740696, 0.07134662568569183, 0.025921158492565155, -0.019794339314103127, 0.06152196601033211, 0.002798306755721569, 0.027298785746097565, -0.012117687612771988, 0.05336495861411095, 0.03357061743736267, 0.020392518490552902, 0.0937512069940567, 0.009063341654837132, 0.05021091550588608, -0.02554049715399742, 0.019051143899559975, -0.004703874234110117, 0.0696064680814743, 0.010676616802811623, -0.010305020026862621, 0.028277626261115074, 0.009951549582183361, -0.09411374479532242, 0.02305714227259159, 0.048760779201984406, -0.017020955681800842, 0.018036050722002983, -0.006965178065001965, 0.0023677980061620474, -0.0313229076564312, 0.07888732850551605, 0.01925053820014, 0.0008134349482133985, -0.025341104716062546, -0.04901455342769623, 0.05340120941400528, 0.01219925843179226, 0.04412034898996353, -0.023745955899357796, 0.030942248180508614, -0.023437801748514175, 0.03737722337245941, 0.006439504213631153, 0.008379059843719006, 0.01022344920784235, -0.009679649025201797, -0.0392986498773098, -0.016875943168997765, 0.07794474065303802, 0.007903234101831913, -0.00939868576824665, 0.004407050088047981, -0.05593894422054291, 0.024380389600992203, 0.004151010420173407, -0.004479556810110807, 0.025739891454577446, -0.044736653566360474, -0.001689180382527411, 0.02079130709171295, 0.05557641386985779, -0.012561791576445103, -0.0348576121032238, -0.07649460434913635, 0.04520794749259949, 0.05463382601737976, 0.004592848476022482, -0.009851852431893349, 0.007499915547668934, -0.006262768991291523, 0.03868234157562256, -0.046948112547397614, -0.01166452094912529, 0.027117518708109856, -0.03561893478035927, -0.00871440302580595, 0.031558554619550705, 0.03445882722735405, 0.015117654576897621, 0.03828355669975281, 0.07355808466672897, -0.01499076746404171, 0.062428299337625504, -0.038646090775728226, 0.02753443270921707, 0.01995747908949852, -0.013440935872495174, -0.06870013475418091, 0.0052839284762740135, -0.011075403541326523, 0.06021684408187866, -0.05383624881505966, 0.02354656159877777, 0.027443798258900642, 0.015217350795865059, -0.05234986171126366, -0.08302021026611328, 0.02265835553407669, 0.028948314487934113, 0.04582425579428673, 0.0031653721816837788, -0.03482135757803917, 0.0016540598589926958, 0.001376494998112321, 0.05361872911453247, -0.007871512323617935, -0.014329143799841404, -0.06565485149621964, 0.046368058770895004, -0.010613173246383667, 0.000575522193685174, 0.0328092984855175, -0.0537637434899807, -0.019359298050403595, -0.028712667524814606, 0.010894136503338814, -0.006589049473404884, 0.048760779201984406, 0.004350404255092144, 0.033153705298900604, -0.04187263920903206, -0.028948314487934113, 0.041002560406923294, 0.026809364557266235, -0.08911077678203583, 0.03618086129426956, -0.02728065848350525, 0.024597909301519394, 0.005478790029883385, 0.007953082211315632, -0.026972506195306778, -0.043576546013355255, 0.04604177549481392, 0.03210235759615898, -0.03299056366086006, 0.00984278880059719, -0.07015026360750198, -0.0004534503095783293, -0.011401684023439884, 0.022295821458101273, -0.020555660128593445, 0.04368530958890915, -0.014329143799841404, 0.017764149233698845, -0.022096427157521248, 0.027842586860060692, -0.023564688861370087, -0.08679056167602539, 0.03886361047625542, 0.07707466185092926, 0.005220484919846058, -0.032138608396053314, 0.008261236362159252, 0.027733825147151947, -0.042198918759822845, 0.039624929428100586, 0.03578207269310951, 0.01783665642142296, -0.005524106789380312, -0.032265495508909225, -0.024815430864691734, -0.007015026640146971, 0.01733817346394062, -0.033860646188259125, 0.002264702459797263, -0.050355926156044006, -0.02670060470700264, -0.038247302174568176, 0.051552288234233856, 0.03685154765844345, -0.014582917094230652, -0.015307984314858913, 0.03230175003409386, 0.06188449636101723, 0.005682715214788914, -0.016685612499713898, -0.032881803810596466, -0.011011959984898567, -0.04665808379650116, 0.01804511435329914, 0.08215013146400452, 0.008741592988371849, -0.022404581308364868, -0.028495145961642265, 0.018017923459410667, -0.008039183914661407, 0.016159938648343086, -0.13769029080867767, -0.027244405820965767, -0.018072303384542465, -0.006357934325933456, -0.018634231761097908, 0.04923207312822342, -0.02492419071495533, -0.022785240784287453, 0.005093598272651434, 0.0030951311346143484, -0.004184998106211424, 0.012362398207187653, 0.019486185163259506, 0.02390909567475319, -0.027081266045570374, 0.03170356899499893, 0.00904974713921547, 0.04868827387690544, 0.02949211373925209, -0.024906063452363014, -0.06268206983804703, 0.08171509206295013, 0.021008826792240143, 0.03748598322272301, 0.030615968629717827, 0.00791682954877615, 0.060869403183460236, -0.04509918764233589, 0.004912331234663725, -0.07816226035356522, 0.023184029385447502, 0.009915295988321304, -0.03904487565159798, 0.016875943168997765, -0.03951616957783699, -0.0061494773253798485, -0.03493012115359306, 0.015770215541124344, -0.03259177878499031, -0.008034652099013329, -0.008746124804019928, 0.05601145327091217, 0.056881532073020935, 0.020011859014630318, 0.015634264796972275, 0.020718799903988838, -0.004552063532173634, 0.028676412999629974, 0.08280269056558609, -0.023836588487029076, 0.00010557377390796319, -0.0078307269141078, 0.053509969264268875, 0.008456097915768623, 0.022694608196616173, 0.03299056366086006, -0.06079689785838127, 0.014664486981928349, -0.015072337351739407, -0.03792102262377739, -0.013250606134533882, 0.022694608196616173, -0.00024116986605804414, -0.020120618864893913, 0.023383421823382378, -0.04651306942105293, 0.028622033074498177, 0.028132613748311996, 0.008877543732523918, 0.016576852649450302, 0.0015373693313449621, -0.029328973963856697, -0.034785106778144836, -0.005854918621480465, -0.006344339344650507, -0.06221077963709831, -0.011002897284924984, 0.00041663050069473684, -0.029782140627503395, 0.008220450952649117, -0.04941333830356598, -0.014782310463488102, -0.00777181563898921, 0.049739621579647064, -0.01712065190076828, 0.007862448692321777, -0.05735282599925995, -0.053509969264268875, 0.030180929228663445, -0.01928679086267948, -0.023129647597670555, 0.03512951359152794, -0.02860390767455101, -0.021262599155306816, -0.00831561628729105, 0.059890564531087875, -0.018906131386756897, 0.0392986498773098, -0.012081434950232506, -0.030724728479981422, -0.043975334614515305, -0.05256738141179085, -0.014111623167991638, 0.02048315294086933, -0.001255272887647152, 0.03699656203389168, -0.00997873954474926, -0.017863847315311432, -0.02682749181985855, -0.0244891494512558, 0.05343746393918991, -0.014909197576344013, 0.030398448929190636, -0.0126433614641428, 0.006575454492121935, -0.05405377224087715, -0.12485659867525101, 0.0048715462908148766, 0.03409629315137863, 0.0126433614641428, -0.0280782338231802, 0.04683934897184372, -0.008215919137001038, 0.022187061607837677, 0.0065346695482730865, 0.06619864702224731, 0.022422708570957184, -0.03552829846739769, 0.04847075045108795, 0.002585318172350526, -0.008397186174988747, -0.04085754603147507, -0.03641650825738907, 0.042778972536325455, 0.014809500426054, 0.025866778567433357, -0.010341272689402103, 0.03976994380354881, -0.026591844856739044, 0.05713530629873276, 0.005442536901682615, 0.02829575352370739, -0.017727896571159363, -0.0021480119321495295, -0.03429568558931351, -0.06376967579126358, -0.014474157243967056, -0.01017813291400671, -0.020863812416791916, -0.06532856822013855, 0.01729285717010498, 0.015307984314858913, -0.0006270699668675661, 0.03755848854780197, -0.002374595496803522, -0.09063342213630676, -0.001213354873470962, 0.042778972536325455, -0.0006995766889303923, 0.014030053280293941, 0.031032882630825043, -0.02940148115158081, 0.014120686799287796, 0.015770215541124344, -0.03831981122493744, 0.08207762241363525, -0.0392986498773098, -0.01849828101694584, -0.01618712767958641, -0.02385471574962139, -0.011981737799942493, 0.0057960073463618755, 0.011347304098308086, 0.004565658513456583, -0.02066441997885704, -0.013205288909375668, 0.050935979932546616, 0.029999662190675735, -0.049340832978487015, -0.018117619678378105, -0.015172034502029419, 0.04778193682432175, 0.021008826792240143, -0.011845787987112999, 0.017320046201348305, -0.0031880305614322424, -0.0028572184965014458, 0.05122600868344307, -0.02989090234041214, -0.08512290567159653, -0.07547950744628906, 0.007513510528951883, 0.04372156038880348, -0.05416253209114075, -0.0244891494512558, 0.024942316114902496, 0.007599612232297659, 0.013604076579213142, 0.009688712656497955, 0.0045792534947395325, 0.008247640915215015, 0.005968210753053427, -0.034350067377090454, 0.01514484453946352, -0.07497196644544601, -0.006090565584599972, -0.026628097519278526, 0.005687247030436993, -0.01596054434776306, -0.0063216807320714, 0.02173389308154583, 0.019304918125271797, -0.02191516011953354, 0.002213721163570881, -0.03734096884727478, 0.03810228779911995, 0.0037839452270418406, 0.01937742531299591, -0.09476630389690399, -0.03016280196607113, 0.04303274676203728, 0.06108692288398743, 0.003009029431268573, 0.0187973715364933, 0.0367971695959568, 0.04741940274834633, -0.02133510634303093, -0.07453692704439163, 0.015688644722104073, -0.023709701374173164, -0.003931224346160889, 0.04604177549481392, 0.002911598654463887, 0.012190194800496101, -0.06848260760307312, 0.024815430864691734, -0.051914822310209274, -0.025123583152890205, -0.06442223489284515, -0.020301885902881622, -0.009634332731366158, 0.07598705589771271, -0.04227142781019211, -0.019993731752038002, -0.031377289444208145, -0.05920174717903137, 0.035854581743478775, -0.011039149947464466, -0.04680309817194939, 0.04093005135655403, -0.029818395152688026, -0.04230767861008644, 0.0007550896843895316, -0.02164326049387455, 0.03143167123198509, -0.02838638611137867, -0.011374494060873985, 0.0038473885506391525, -0.01707533560693264, -0.002327013062313199, 0.017184095457196236, 0.021570753306150436, 0.00033675978193059564, -0.030434701591730118, -0.051298514008522034, -0.04662182927131653, 0.025522369891405106, -0.05184231698513031, -0.09607142210006714, 0.04013247787952423, 0.08222264051437378, 0.03657964617013931, 0.015271730720996857, 0.013404682278633118, -0.00939868576824665, 0.03148604929447174, -0.07344932109117508, 0.019939351826906204, 0.011419810354709625, -0.014301953837275505, 0.023890968412160873, -0.048760779201984406, -0.05775161460042, 0.027842586860060692, -0.008551263250410557, 0.03937115520238876, 0.037268463522195816, 0.01635933294892311, -0.00323108141310513, -0.0067431265488266945, 0.02434413693845272, 0.007015026640146971, -0.0705128014087677, -0.0016540598589926958, -0.005397220142185688, -0.0248879361897707, -0.002195594599470496, 0.002635166747495532, 0.05941927060484886, -0.006915329955518246, -0.013014959171414375, -0.036833420395851135, -0.0023768614046275616, 0.00408076960593462, -0.022495213896036148, 0.029818395152688026, -0.018960511311888695, -0.003813401097431779, -0.022730860859155655, 0.029111454263329506, -0.0010836358414962888, 0.006978773046284914, 0.07323180139064789, -0.021679513156414032, 0.002206923672929406, -0.021752020344138145, -0.0038541860412806273, -0.024670416489243507, 0.07489945739507675, -0.05825916305184364, 0.0065573276951909065, 0.020410645753145218, 0.0002891772601287812, -0.013957546092569828, -0.07207169383764267, -0.004558860789984465, -0.05735282599925995, -0.03362499922513962, -0.03429568558931351, -0.029564620926976204, 0.013649392873048782, -0.0019746755715459585, 0.004309618845582008, 0.0004194627981632948, -0.011637330986559391, 0.005700842011719942, 0.008696276694536209, 0.013277796097099781, -0.006942519918084145, 0.02602991834282875, 0.04604177549481392, -0.0016857816372066736, -0.037630993872880936, 0.05920174717903137, 0.019051143899559975, -0.019395550712943077, 0.03947991877794266, 0.005673652049154043, 0.008283894509077072, -0.020120618864893913, 0.010033119469881058, 0.049920886754989624, 0.038428571075201035, -0.08323772996664047, 0.04227142781019211, 0.025703636929392815, -0.007758220657706261, 0.016875943168997765, -0.011528571136295795, -0.08345524966716766, 0.037449728697538376, 0.008297489024698734, -0.0044863540679216385, 0.002714470960199833, 0.0030838020611554384, 0.0037726161535829306, -0.018389521166682243, -0.060869403183460236, -0.015072337351739407, 0.016993766650557518, 0.0031291188206523657, -0.015416744165122509, -0.053908757865428925, 0.002777914283797145, 0.03933490440249443, -0.07189042866230011, 0.007001431658864021, 0.036035846918821335, 0.024561656638979912, 0.07145538926124573, -0.013377492316067219, -0.041618864983320236, 0.07605956494808197, 0.06587237119674683, 0.09164851158857346, -0.022060174494981766, -0.017809467390179634, -0.02088193967938423, 0.02142574079334736, 0.003908566199243069, -0.03509325906634331, -0.07772722095251083, 0.018371393904089928, -0.05633773282170296, -0.017184095457196236, -0.047346897423267365, -0.0009284261032007635, 0.015715835615992546, 0.020591912791132927, 0.028132613748311996, -0.03010842204093933, -0.04368530958890915, 0.012144878506660461, 0.017573820427060127, -0.011193227022886276, 0.029927155002951622, -0.005845855455845594, -0.05256738141179085, -0.019051143899559975, 0.022966507822275162, 0.05031967535614967, -0.020682545378804207, 0.027788206934928894, -0.05340120941400528, 0.04520794749259949, -0.07431939989328384, -0.06438598036766052, -0.0022884937934577465, 0.009661522693932056, -0.04234393313527107, 0.01605117879807949, 0.034748852252960205, 0.012081434950232506, 0.0012371462071314454, -0.052748650312423706, 0.030271561816334724, 0.06543733179569244, 0.008011993952095509, 0.01765538938343525, 0.03639838099479675, -0.009018025361001492, -0.018117619678378105, -0.010640363208949566, 0.02195141464471817, -0.03183045610785484, 0.026229310780763626, 0.02679123915731907, 0.06619864702224731, 0.010585983283817768, -0.0040581114590168, -0.025975538417696953, -0.03589083254337311, -0.03313557803630829, -0.006729531101882458, 0.006702341139316559, 0.020392518490552902, 0.019594945013523102, 0.02191516011953354, -0.00833827443420887, 0.031250402331352234, 0.016250571236014366, -0.02186078019440174, 0.05742533504962921, 0.14668112993240356, -0.017175033688545227, -0.01335030235350132, 0.06565485149621964, -0.003364765550941229, 0.02719002589583397, 0.03170356899499893, 0.0162324458360672, 0.00518876314163208, 0.03259177878499031, -0.009897169657051563, 0.07421064376831055, -0.04372156038880348, 0.006915329955518246 ]
729,349
tinytuya.core
set_dpsUsed
null
def set_dpsUsed(self, dps_to_request): self.dps_to_request = dps_to_request
(self, dps_to_request)
[ 0.015324109233915806, 0.00954616628587246, 0.003230205038562417, 0.01887461356818676, -0.021755211055278778, 0.06558384001255035, -0.03285891190171242, -0.05828185752034187, 0.029207920655608177, -0.02388216368854046, -0.005350877530872822, -0.05081240087747574, 0.013808446004986763, -0.005288073793053627, 0.01986272633075714, 0.011656371876597404, -0.004697718657553196, -0.015818165615200996, 0.047127917408943176, -0.0027780181262642145, 0.003983849659562111, 0.052319690585136414, 0.06397606432437897, 0.021905940026044846, -0.04974055290222168, 0.027700630947947502, 0.054831840097904205, -0.0367443673312664, 0.025339210405945778, -0.024384593591094017, -0.022894052788615227, 0.02135326713323593, 0.00561465322971344, 0.02873898483812809, 0.01776926778256893, 0.03225599601864815, 0.030346760526299477, 0.03537105768918991, -0.04632402956485748, -0.005237830802798271, -0.09713643044233322, 0.008168671280145645, 0.02842077985405922, 0.03051423840224743, -0.00869203545153141, 0.03995991870760918, -0.03975894674658775, 0.07107707113027573, 0.05091288685798645, 0.049539580941200256, 0.02185569703578949, 0.02404963970184326, -0.04424731805920601, -0.01121255848556757, 0.0012728221481665969, 0.01897509954869747, 0.012108558788895607, 0.09284903109073639, 0.007603438105434179, -0.019645005464553833, 0.011137194000184536, 0.039323508739471436, 0.017719024792313576, -0.09827527403831482, -0.029325153678655624, 0.006686503533273935, -0.03590698540210724, 0.027181454002857208, 0.018087472766637802, 0.06474645435810089, 0.043476928025484085, -0.04736238345503807, -0.05101337283849716, 0.02899019978940487, 0.031167395412921906, 0.022408369928598404, 0.016186613589525223, 0.012410016730427742, -0.0490371510386467, -0.025975622236728668, 0.019896220415830612, 0.0014005231205374002, 0.025037752464413643, -0.003035513451322913, 0.030246274545788765, 0.005342503543943167, 0.015441343188285828, 0.015315735712647438, 0.06879939138889313, 0.0258248932659626, 0.018790874630212784, 0.048769187182188034, 0.010818989016115665, -0.0034311769995838404, 0.040998272597789764, 0.0038268405478447676, -0.03463416174054146, 0.015474838204681873, -0.05627213791012764, 0.05590369179844856, 0.0008049344178289175, -0.02306152880191803, 0.039792440831661224, 0.00674930727109313, 0.04809927940368652, -0.03784971311688423, 0.03795019909739494, -0.03825165703892708, 0.018707137554883957, 0.00978900771588087, -0.021236034110188484, 0.012778464704751968, -0.03232298418879509, 0.015340857207775116, -0.027114462107419968, 0.025104742497205734, -0.016605304554104805, -0.03222249820828438, 0.003820560174062848, 0.03604096546769142, -0.08561404049396515, 0.06471296399831772, -0.009881120175123215, 0.01640433445572853, -0.003498167498037219, -0.02363094873726368, 0.008641792461276054, 0.037447769194841385, 0.055367764085531235, -0.047630347311496735, 0.01338975504040718, -0.05503281205892563, -0.015458091162145138, 0.024284107610583305, 0.016521567478775978, 0.00032029900467023253, -0.014076408930122852, 0.02217390201985836, 0.01215042732656002, 0.025925379246473312, -0.019628258422017097, 0.05027647688984871, -0.014118277467787266, -0.017367323860526085, 0.06176537275314331, 0.0659857839345932, 0.015650689601898193, 0.0407303087413311, -0.04260604828596115, -0.006569270044565201, -0.028270050883293152, -0.0006714765331707895, -0.006539961323142052, -0.024418089538812637, -0.062066830694675446, 0.031803809106349945, -0.013540484011173248, -0.013649343512952328, -0.006179886870086193, -0.01422713790088892, -0.02071685530245304, -0.05272163450717926, -0.008562241680920124, -0.012493754737079144, -0.013306016102433205, -0.05218571051955223, -0.053659506142139435, -0.03150235116481781, 0.02604261226952076, 0.029743844643235207, 0.025992369279265404, -0.01483005378395319, 0.007515512872487307, -0.006050092168152332, 0.03962496668100357, -0.005020111333578825, 0.028253303840756416, -0.05252066254615784, -0.03388051688671112, -0.00005632709144265391, 0.04079730063676834, 0.005401120521128178, -0.0006013456732034683, 0.031418610364198685, -0.006577643565833569, -0.004086429253220558, -0.002796859247609973, -0.01877412758767605, -0.06893336772918701, 0.0628037303686142, 0.09217912703752518, 0.042237598448991776, -0.011070203967392445, -0.04602257162332535, -0.01530736219137907, -0.015374352224171162, 0.01788650080561638, -0.07335475087165833, -0.0016067286487668753, 0.056674081832170486, -0.03724679723381996, 0.007142877206206322, -0.008457568474113941, -0.025523435324430466, 0.005367625039070845, 0.04555363580584526, 0.00897674635052681, -0.022358126938343048, 0.017819510772824287, 0.016102876514196396, 0.01543296966701746, -0.001622429583221674, 0.026846500113606453, -0.0034688592422753572, 0.02138676308095455, -0.007377344649285078, 0.05459737405180931, 0.016638800501823425, -0.03885457292199135, -0.03079894743859768, 0.0006709531298838556, -0.06618675589561462, -0.017074240371584892, -0.04066332057118416, -0.022793566808104515, 0.002008672570809722, 0.02632732316851616, -0.013741455040872097, 0.001658018445596099, -0.018472669646143913, 0.0021709154825657606, 0.03734728321433067, -0.003257419914007187, 0.02267633192241192, 0.04180216044187546, -0.02086758427321911, 0.014721193350851536, -0.03372978791594505, -0.04508470371365547, -0.046424515545368195, -0.04783131927251816, 0.0031736816745251417, 0.041098758578300476, 0.020817341282963753, -0.06672267615795135, 0.017752520740032196, -0.03758174926042557, 0.0364094153046608, 0.0023907285649329424, 0.0036614572163671255, 0.10088790953159332, -0.06193285062909126, -0.03218900412321091, -0.005874242167919874, -0.024083135649561882, -0.013239026069641113, -0.03125113621354103, 0.030564481392502785, -0.027901602908968925, -0.02629382722079754, -0.043510422110557556, 0.01275334320962429, -0.09016940742731094, 0.009621530771255493, 0.019008595496416092, 0.04612305760383606, 0.007963513024151325, -0.02902369573712349, -0.057310495525598526, 0.02401614561676979, 0.04669247940182686, 0.020834090188145638, 0.06960327923297882, -0.014017791487276554, -0.04263954237103462, -0.006849793251603842, 0.008440820500254631, 0.02763363905251026, -0.034081488847732544, 0.032440219074487686, 0.08614996820688248, -0.023614201694726944, 0.031552594155073166, 0.045252177864313126, -0.06585180014371872, -0.015257119201123714, 0.03463416174054146, 0.05459737405180931, -0.03203827515244484, -0.013071549125015736, -0.0799868255853653, 0.060794007033109665, 0.06608626991510391, 0.029710350558161736, -0.02483678050339222, -0.00015661679208278656, -0.018187958747148514, -0.02543969638645649, 0.052487168461084366, 0.06658869981765747, -0.04622354358434677, -0.050075504928827286, -0.0510803647339344, 0.04907064512372017, 0.07636933028697968, -0.02522197738289833, 0.06169838085770607, -0.04136672243475914, -0.01592702604830265, -0.0031715882942080498, -0.012410016730427742, 0.00585330743342638, -0.03476814180612564, -0.015382726676762104, 0.03604096546769142, -0.0014842614764347672, -0.031418610364198685, 0.023831920698285103, -0.014905418269336224, 0.06558384001255035, -0.0222408939152956, 0.0022316258400678635, -0.038720592856407166, -0.02873898483812809, 0.043342944234609604, 0.05831535533070564, 0.05744447559118271, 0.04397935792803764, 0.00991461519151926, 0.03220575302839279, -0.026494799181818962, -0.04927161708474159, -0.016831398010253906, -0.036208443343639374, -0.027432668954133987, -0.023496968671679497, 0.021972930058836937, -0.06096148490905762, 0.0015020557912066579, 0.033260852098464966, -0.04384537413716316, -0.01202481985092163, -0.06491393595933914, -0.009621530771255493, -0.0020756630692631006, -0.03121763840317726, 0.024351097643375397, -0.05141531676054001, 0.030664967373013496, -0.03969195485115051, -0.04625703766942024, 0.050142496824264526, 0.013691212981939316, 0.02778436802327633, 0.08869560807943344, 0.015332483686506748, 0.023178761824965477, 0.06377509236335754, -0.006071026902645826, -0.05288911238312721, -0.027298687025904655, 0.004237158223986626, 0.04307498410344124, -0.024401340633630753, 0.03433270379900932, 0.00544717675074935, 0.03671087324619293, -0.06980425119400024, 0.04377838596701622, -0.028588255867362022, -0.05885127931833267, -0.07911594957113266, -0.037481263279914856, 0.035639021545648575, -0.006841419264674187, 0.018070725724101067, -0.07583341002464294, 0.010718503035604954, -0.06357412040233612, 0.050678420811891556, -0.01576792262494564, 0.0020913640037178993, 0.023262500762939453, 0.022090164944529533, 0.0441468320786953, 0.004496746696531773, -0.012393268756568432, -0.01795349270105362, 0.06638772785663605, -0.011874091811478138, 0.05684155970811844, -0.017869753763079643, 0.02731543406844139, 0.10061994194984436, -0.015047772787511349, -0.028152817860245705, -0.00798026006668806, -0.03828515112400055, -0.05566922202706337, 0.000032890180591493845, 0.03460066765546799, -0.047630347311496735, -0.028722237795591354, 0.049405597150325775, -0.012644483707845211, -0.023044781759381294, 0.003071102313697338, -0.0063850455917418, -0.0031443731859326363, 0.08929852396249771, -0.06846443563699722, -0.04451528191566467, 0.028755733743309975, -0.030095545575022697, -0.04662548750638962, -0.016136370599269867, -0.09097329527139664, 0.0006908409995958209, 0.09291601926088333, -0.006824671756476164, 0.06806249171495438, -0.03121763840317726, 0.0055602234788239, 0.0323062390089035, 0.04361090809106827, -0.05583669990301132, 0.02384866774082184, -0.02458556555211544, 0.04629053547978401, 0.059554681181907654, 0.011673119850456715, 0.07516349852085114, 0.025489939376711845, -0.009043736383318901, 0.04320896416902542, -0.01897509954869747, -0.007959325797855854, 0.0017940931720659137, -0.04495071992278099, 0.011882465332746506, 0.03228949010372162, 0.002612635027617216, 0.01745106279850006, -0.020164182409644127, 0.029894573614001274, -0.027198201045393944, -0.05020948499441147, 0.017367323860526085, -0.04207012429833412, -0.03905554488301277, 0.04210361838340759, -0.03391401097178459, 0.060224588960409164, -0.001840149168856442, -0.07824507355690002, -0.014001044444739819, 0.002361420076340437, -0.03416522592306137, -0.04980754107236862, 0.021085305139422417, -0.02039865031838417, -0.0035798123572021723, -0.06380859017372131, 0.04598907753825188, 0.008934876881539822, 0.07034017145633698, -0.021755211055278778, 0.03423221781849861, 0.021554239094257355, 0.013967548497021198, -0.008403138257563114, -0.014654203318059444, -0.047060925513505936, -0.03172006830573082, -0.03302638605237007, -0.023195510730147362, -0.07389067858457565, 0.03600747138261795, -0.005480671767145395, 0.04203662648797035, 0.014737941324710846, -0.03170332312583923, 0.060191091150045395, 0.034433189779520035, 0.013297642581164837, -0.054798346012830734, -0.02433435060083866, 0.023647697642445564, -0.07214891910552979, 0.006117083132266998, -0.011396783404052258, -0.047094423323869705, -0.020314911380410194, -0.06246877461671829, -0.06987123936414719, 0.06729210168123245, 0.01773577183485031, -0.030815696343779564, 0.04608956351876259, 0.008800895884633064, -0.023212257772684097, -0.01684814691543579, -0.02255909889936447, -0.015458091162145138, 0.040495842695236206, -0.004685157909989357, -0.030664967373013496, 0.0791829377412796, -0.022877303883433342, 0.056540101766586304, 0.0021457939874380827, 0.015424595214426517, -0.0005416821222752333, 0.058951765298843384, 0.05372649431228638, 0.03530406951904297, -0.02125278115272522, 0.02128627710044384, -0.020532632246613503, -0.0571095235645771, 0.016010763123631477, 0.09412185102701187, 0.0269637331366539, -0.04685995355248451, 0.04183565452694893, -0.053056590259075165, -0.029207920655608177, -0.021503996104002, 0.015206876210868359, 0.024418089538812637, 0.07047415524721146, -0.04250556230545044, 0.03547154366970062, 0.018455922603607178, 0.0659857839345932, 0.050142496824264526, -0.012083437293767929, -0.07938390970230103, -0.04421382397413254, -0.025891883298754692, -0.0033244106452912092, -0.02572440728545189, 0.0897674635052681, -0.054128438234329224, -0.0005626167403534055, 0.004810765385627747, -0.03774922713637352, 0.009738764725625515, 0.03711281716823578, -0.04665898159146309, -0.011463773436844349, -0.08065672963857651, 0.027097715064883232, -0.008775774389505386, 0.047060925513505936, 0.0035965600982308388, 0.003048074198886752, 0.04830025136470795, 0.029643358662724495, 0.007214054930955172, -0.03600747138261795, -0.03289240598678589, 0.0373137891292572, 0.04890316724777222, -0.007917456328868866, -0.055937185883522034, 0.0036091208457946777, 0.01202481985092163, -0.05355902016162872, -0.03108365833759308, 0.005581157747656107, -0.00488612987101078, -0.03130137920379639, 0.07000522315502167, 0.0017993267392739654, -0.03384702280163765, -0.008474316447973251, -0.012460259720683098, -0.01833868771791458, 0.0030899434350430965, -0.04783131927251816, 0.009261456318199635, 0.00014418689534068108, -0.004613980650901794, -0.009253082796931267, 0.0162117350846529, -0.007854652591049671, -0.01215042732656002, -0.00018291585729457438, 0.016881641000509262, -0.019176071509718895, -0.04863520711660385, -0.014989156275987625, 0.007620185613632202, -0.07837904989719391, 0.03493561968207359, -0.03530406951904297, -0.03577300161123276, 0.0708760991692543, 0.04665898159146309, -0.03419872373342514, 0.057276997715234756, -0.03999341279268265, 0.01741756685078144, 0.05295610427856445, -0.0022441865876317024, -0.03831864893436432, 0.010015101172029972, -0.022441865876317024, -0.00883439090102911, 0.013506988063454628, 0.04036186262965202, -0.00916934385895729, 0.046357523649930954, -0.04233808442950249, -0.02306152880191803, 0.024635808542370796, -0.004203662741929293, -0.003255326533690095, -0.014377866871654987, -0.03607445955276489, 0.033260852098464966, 0.00687491474673152, -0.023044781759381294, -0.04260604828596115, -0.0186568945646286, 0.007783475331962109, -0.019745491445064545, -0.03778272122144699, -0.004008971154689789, -0.029392143711447716, -0.016261978074908257, 0.04860170930624008, 0.0233797337859869, -0.035103097558021545, -0.037447769194841385, -0.002359326696023345, -0.004055027384310961, -0.023178761824965477, 0.012334652245044708, 0.034969113767147064, 0.031803809106349945, -0.001956336200237274, -0.012493754737079144, -0.05402795225381851, -0.01827169768512249, -0.06327266246080399, -0.019209567457437515, 0.019778987392783165, 0.019745491445064545, -0.03257419914007187, 0.0011220932938158512, 0.06009060516953468, -0.03654339537024498, -0.0020034390036016703, 0.026126351207494736, -0.019896220415830612, 0.027700630947947502, 0.04552014172077179, -0.09526069462299347, -0.038117676973342896, -0.008574802428483963, 0.08280043303966522, -0.038017190992832184, 0.00929495133459568, 0.008545493707060814, -0.0141936419531703, -0.03235648199915886, -0.04116575047373772, 0.06521539390087128, -0.014151773415505886, -0.008867885917425156, -0.03044724650681019, 0.02398264966905117, 0.00010676633974071592, -0.07610137015581131, 0.026478052139282227, 0.001656971639022231, -0.036174945533275604, -0.009629905223846436, -0.05526727810502052, -0.010308184660971165, 0.009085605852305889, 0.002332111820578575, -0.016127998009324074, 0.04612305760383606, -0.05329105630517006, -0.029794087633490562, -0.014746314845979214, 0.04612305760383606, 0.014620707370340824, -0.05332455039024353, -0.0054722982458770275, 0.013239026069641113, -0.032657939940690994, -0.05932021513581276, -0.01833868771791458, -0.0011514016659930348, 0.02401614561676979, 0.0029978312086313963, 0.013054801151156425, 0.005966354161500931, 0.022475359961390495, -0.03285891190171242, -0.008264970034360886, -0.0004380559839773923, -0.030129041522741318, -0.051951244473457336, -0.027667135000228882, -0.016605304554104805, 0.017819510772824287, -0.01467095036059618, 0.03972545266151428, 0.01745106279850006, -0.028538012877106667, 0.024166874587535858, -0.038084179162979126, 0.00810586754232645, -0.005736073944717646, 0.04190264642238617, 0.01713285595178604, -0.0037661301903426647, 0.01690676249563694, -0.017199847847223282, 0.03821816295385361, 0.012301156297326088, 0.02138676308095455, -0.021018313243985176, 0.06350713223218918, -0.010927848517894745, -0.0318540520966053, 0.024317603558301926, 0.004350204952061176, -0.04843423515558243, -0.03493561968207359, -0.018221454694867134, -0.009822502732276917, 0.020515883341431618, 0.001972037134692073, 0.0369788333773613, -0.012996184639632702, -0.00040011206874623895, -0.026159845292568207, 0.005957980174571276, -0.0324234701693058, -0.0019437753362581134, 0.023547211661934853, 0.0046014199033379555, 0.013858688995242119, 0.0016998875653371215, 0.06491393595933914, -0.002369794063270092, 0.012619362212717533, 0.00968852173537016, 0.03203827515244484, 0.01195782981812954, -0.0063682980835437775, 0.00786721333861351, 0.03892156481742859, 0.024351097643375397, -0.046357523649930954, -0.019594762474298477, 0.020767098292708397, 0.005823999177664518, 0.035002611577510834, 0.025138238444924355, 0.003638429334387183, -0.013105044141411781 ]
729,350
tinytuya.BulbDevice
set_hsv
Set colour of an rgb bulb using h, s, v. Args: h(float): colour Hue as float from 0-1 s(float): colour Saturation as float from 0-1 v(float): colour Value as float from 0-1 nowait(bool): True to send without waiting for response.
def set_hsv(self, h, s, v, nowait=False): """ Set colour of an rgb bulb using h, s, v. Args: h(float): colour Hue as float from 0-1 s(float): colour Saturation as float from 0-1 v(float): colour Value as float from 0-1 nowait(bool): True to send without waiting for response. """ if not self.has_colour: log.debug("set_hsv: Device does not appear to support color.") # return error_json(ERR_FUNCTION, "set_hsv: Device does not support color.") if not 0 <= h <= 1.0: return error_json( ERR_RANGE, "set_hsv: The value for Hue needs to be between 0 and 1." ) if not 0 <= s <= 1.0: return error_json( ERR_RANGE, "set_hsv: The value for Saturation needs to be between 0 and 1.", ) if not 0 <= v <= 1.0: return error_json( ERR_RANGE, "set_hsv: The value for Value needs to be between 0 and 1.", ) (r, g, b) = colorsys.hsv_to_rgb(h, s, v) hexvalue = BulbDevice._rgb_to_hexvalue( r * 255.0, g * 255.0, b * 255.0, self.bulb_type ) payload = self.generate_payload( CONTROL, { self.DPS_INDEX_MODE[self.bulb_type]: self.DPS_MODE_COLOUR, self.DPS_INDEX_COLOUR[self.bulb_type]: hexvalue, }, ) data = self._send_receive(payload, getresponse=(not nowait)) return data
(self, h, s, v, nowait=False)
[ -0.00991364661604166, -0.09794796258211136, -0.13530099391937256, -0.010149461217224598, -0.011479455977678299, 0.012639664113521576, -0.035221271216869354, 0.04648377746343613, -0.025015216320753098, -0.031542565673589706, -0.02410968765616417, 0.009262798354029655, 0.0286184623837471, -0.0006278564687818289, -0.02222317084670067, 0.014177175238728523, 0.06172683835029602, 0.02112898975610733, 0.03441007062792778, -0.04878532886505127, 0.023487137630581856, -0.005569941364228725, 0.007055573631078005, 0.06074584648013115, -0.007031992077827454, 0.009611804038286209, 0.0018617564346641302, 0.010781444609165192, 0.022770259529352188, -0.03912636265158653, 0.03778693452477455, -0.0209026075899601, 0.015177029184997082, 0.0556899830698967, -0.006098166108131409, 0.0014785577077418566, 0.04188067838549614, 0.006234938744455576, -0.08338405191898346, -0.003291972214356065, -0.042748477309942245, -0.035070352256298065, 0.0616891048848629, 0.0243360698223114, 0.012215198017656803, 0.0011607975466176867, 0.0010010331170633435, 0.0885908380150795, 0.021261047571897507, -0.027373362332582474, -0.009503329172730446, 0.013196186162531376, -0.06915971636772156, 0.028486406430602074, 0.02448699064552784, 0.03725871071219444, -0.009828753769397736, 0.053011126816272736, -0.005716146435588598, 0.0044144499115645885, -0.03867359831929207, 0.02507181093096733, 0.016856029629707336, -0.031882137060165405, -0.020864877849817276, 0.010074000805616379, -0.03297631815075874, 0.025147272273898125, 0.02914668805897236, 0.025769822299480438, 0.015761850401759148, 0.06112315133213997, -0.006895219907164574, 0.012696259655058384, -0.0022932973224669695, 0.012149169109761715, -0.048143915832042694, 0.02114785648882389, -0.02744882181286812, 0.009446733631193638, 0.060859039425849915, 0.018082264810800552, 0.061424992978572845, -0.01965750753879547, -0.022543877363204956, -0.02805250883102417, -0.02958058752119541, 0.006046287249773741, -0.062368251383304596, -0.013705546036362648, -0.0452386774122715, -0.017572905868291855, -0.08285582810640335, 0.03350454196333885, 0.055652253329753876, -0.016044827178120613, 0.006437739357352257, -0.004640832077711821, 0.010319247841835022, -0.016082556918263435, -0.05267155542969704, 0.0031080367043614388, -0.000705675280187279, -0.05369027331471443, 0.005305828992277384, -0.04859667643904686, -0.017469147220253944, 0.026996059343218803, 0.004520566202700138, -0.022355226799845695, 0.010715416632592678, 0.015195894986391068, -0.02897690050303936, -0.03420255333185196, -0.035636305809020996, 0.01523362472653389, 0.012611365877091885, -0.02788272127509117, 0.012366118840873241, 0.0013358899159356952, -0.02858073264360428, -0.03552311658859253, 0.03588155284523964, 0.008140320889651775, 0.04376719519495964, 0.07757358253002167, -0.04855894669890404, 0.03325929492712021, 0.02971264347434044, 0.03173121437430382, -0.03480624035000801, 0.055237218737602234, 0.008060144260525703, 0.00022004451602697372, 0.018204888328909874, -0.012384984642267227, -0.08368589729070663, 0.02899576723575592, 0.07127261161804199, -0.003426386509090662, 0.02410968765616417, -0.03942820429801941, -0.013441434130072594, -0.03363659977912903, 0.03612679988145828, 0.03950366750359535, 0.03850381076335907, -0.03931501507759094, -0.02937307022511959, 0.10345659404993057, -0.009649534709751606, 0.046295128762722015, 0.022751394659280777, 0.06455661356449127, -0.009809888899326324, -0.006687702611088753, 0.0033603585325181484, -0.034504394978284836, 0.017723826691508293, 0.022732529789209366, -0.04501229524612427, -0.020072540268301964, 0.08783623576164246, -0.029297608882188797, -0.01895006373524666, 0.03069363161921501, -0.04150337353348732, 0.04821937531232834, 0.03871132805943489, 0.027731800451874733, 0.0026081097312271595, -0.009041132405400276, -0.056935083121061325, 0.04538960009813309, 0.0349571593105793, -0.0014054551720619202, -0.041956137865781784, -0.039164092391729355, 0.04222024977207184, -0.04655924066901207, -0.009583506733179092, 0.013818737119436264, -0.004308333154767752, -0.016940923407673836, 0.0411260724067688, 0.0267319455742836, -0.009800455532968044, -0.008762871846556664, -0.022562744095921516, -0.012035978958010674, 0.03120299056172371, 0.013337675482034683, 0.04821937531232834, 0.0430125892162323, 0.06240598112344742, 0.0027495985850691795, 0.03399503603577614, -0.03310837224125862, 0.034145958721637726, -0.014507316052913666, 0.049087174236774445, -0.05195467919111252, -0.03144823759794235, 0.018667085096240044, 0.032825395464897156, -0.07323458790779114, 0.021959058940410614, -0.007173480931669474, 0.038220833986997604, -0.03258014842867851, -0.09274117648601532, 0.02054416947066784, 0.013054697774350643, 0.03180667757987976, 0.05519948899745941, -0.05591636523604393, -0.005112461280077696, 0.02826002426445484, 0.009677832014858723, -0.033749788999557495, -0.006267952732741833, -0.02993902564048767, 0.03271220624446869, 0.011083287186920643, -0.021053530275821686, 0.016224047169089317, -0.05203013867139816, -0.0280147772282362, 0.010639956220984459, 0.01421490591019392, 0.003914522938430309, 0.06927290558815002, 0.010498466901481152, 0.029203282669186592, -0.07251771539449692, 0.02075168676674366, 0.04840802773833275, 0.004430956672877073, -0.04821937531232834, -0.00714518316090107, -0.0015858534025028348, 0.01429036632180214, 0.04433314874768257, 0.013696113601326942, 0.01046073716133833, -0.024977484717965126, 0.04354081302881241, 0.036919139325618744, -0.07757358253002167, 0.027165845036506653, -0.07700762152671814, -0.04429541900753975, 0.013309377245604992, 0.023864440619945526, -0.012469877488911152, -0.020619630813598633, -0.012781152501702309, 0.01961977779865265, 0.0027118681464344263, -0.02375124953687191, -0.027618609368801117, -0.0579160712659359, 0.013592354953289032, 0.08444049954414368, 0.008461028337478638, -0.024392664432525635, 0.03122185729444027, 0.030146541073918343, -0.03503262251615524, 0.025505710393190384, 0.07447969168424606, 0.00594252860173583, -0.06693362444639206, -0.043276701122522354, -0.016082556918263435, 0.028844844549894333, 0.0006903473404236138, -0.05429396033287048, 0.01758233830332756, -0.016025962308049202, 0.032995183020830154, -0.04410676658153534, 0.046634700149297714, 0.05927436426281929, 0.003280181437730789, 0.022525012493133545, 0.006390576250851154, -0.01861049048602581, 0.03703232854604721, -0.02805250883102417, -0.006267952732741833, -0.0033438513055443764, -0.04305031895637512, 0.026128260418772697, 0.07221587002277374, 0.041012879461050034, -0.004763455595821142, 0.024751102551817894, -0.010224922560155392, -0.04886079207062721, 0.02337394654750824, -0.08851537853479385, -0.008305391296744347, 0.0016094348393380642, -0.04972858726978302, -0.08127114921808243, 0.06361335515975952, -0.012271793559193611, -0.01643156260251999, -0.05753877013921738, -0.005933096166700125, -0.0018711891025304794, 0.03652296960353851, -0.02635464258491993, 0.022713664919137955, -0.007748868782073259, -0.019308501854538918, 0.011130450293421745, 0.014328096993267536, 0.04406903684139252, -0.020713957026600838, -0.06629221141338348, -0.0028250592295080423, 0.036768216639757156, 0.044219959527254105, -0.025467978790402412, 0.031882137060165405, 0.025864148512482643, -0.009960809722542763, 0.029297608882188797, -0.0730082094669342, -0.018827440217137337, 0.03129731863737106, -0.0010328680509701371, 0.0815729945898056, -0.08444049954414368, -0.005989691708236933, 0.023675788193941116, -0.00523980101570487, -0.03025973215699196, 0.007876208983361721, 0.015601495280861855, 0.005772741977125406, 0.011130450293421745, 0.041050609201192856, -0.009654250927269459, 0.009017551317811012, -0.008489326573908329, 0.020129136741161346, 0.06051946431398392, 0.009724995121359825, -0.007663975469768047, -0.003112753154709935, 0.06851829588413239, 0.022675935178995132, 0.015186461620032787, 0.003742378205060959, -0.06500937789678574, 0.04206933081150055, -0.05101142078638077, -0.010677685961127281, 0.024600181728601456, 0.007772449869662523, 0.015705253928899765, -0.03999416157603264, 0.005315261892974377, -0.07508337497711182, 0.006640539970248938, 0.0579160712659359, 0.02129877731204033, -0.009932512417435646, 0.004586594644933939, 0.00724894180893898, 0.007060289848595858, 0.008465745486319065, 0.023996496573090553, -0.050747308880090714, 0.008050710894167423, 0.019233040511608124, -0.03473077714443207, 0.017638934776186943, -0.0192802045494318, -0.018101131543517113, -0.030184272676706314, 0.06221733242273331, -0.026033934205770493, 0.016271209344267845, -0.03069363161921501, -0.03435347601771355, 0.011158748529851437, -0.004952107090502977, -0.008102590218186378, 0.04693654179573059, 0.022751394659280777, 0.002527932869270444, -0.003919239155948162, 0.04882305860519409, 0.04953993856906891, 0.05927436426281929, -0.017025815322995186, -0.022204305976629257, -0.007616812363266945, -0.05267155542969704, -0.0035773077979683876, -0.022355226799845695, -0.01909155212342739, 0.0248454287648201, 0.03590041771531105, -0.008248795755207539, -0.04493683576583862, 0.020883742719888687, 0.00485778134316206, -0.07131034135818481, -0.0001397938613081351, -0.04059784486889839, 0.005470899399369955, -0.029297608882188797, -0.0237323846668005, -0.0007887999527156353, 0.042559824883937836, -0.004900227766484022, -0.005046432837843895, 0.0371832512319088, 0.038220833986997604, 0.0027118681464344263, 0.027524283155798912, 0.028731653466820717, 0.06331150978803635, -0.0035773077979683876, -0.024373799562454224, 0.06470753252506256, 0.04022054374217987, -0.010696551762521267, -0.06912198662757874, 0.0075177703984081745, 0.006951814983040094, 0.028090238571166992, -0.013884765096008778, 0.0765925943851471, 0.016988085582852364, -0.008149753324687481, -0.01252647303044796, -0.034108228981494904, 0.029505126178264618, 0.006150045432150364, -0.05418076738715172, -0.04471045359969139, 0.0013747992925345898, 0.05512402579188347, -0.03501375392079353, -0.04878532886505127, 0.012649096548557281, -0.015243057161569595, 0.0043413471430540085, 0.043352160602808, -0.03291972354054451, -0.049087174236774445, 0.006418874021619558, 0.0031292601488530636, -0.01965750753879547, 0.04414449632167816, 0.004619608633220196, -0.08142207562923431, 0.01188505720347166, -0.02993902564048767, 0.01085690502077341, 0.10398481786251068, -0.06433022767305374, -0.02260047383606434, -0.027165845036506653, -0.03950366750359535, -0.024751102551817894, 0.023864440619945526, 0.04655924066901207, 0.004914376884698868, -0.05984031781554222, 0.02914668805897236, -0.00580103974789381, -0.06795234233140945, -0.041427914053201675, 0.008041278459131718, -0.01001740526407957, -0.022751394659280777, 0.010602225549519062, -0.0024666208773851395, 0.029108958318829536, 0.02146856300532818, 0.006734865717589855, 0.04599328339099884, -0.01741255261003971, -0.05323750898241997, -0.0993817150592804, -0.029203282669186592, -0.009456166066229343, -0.02412855252623558, -0.02899576723575592, -0.027939317747950554, -0.01848786696791649, 0.02973150834441185, -0.0038225550670176744, 0.0066829863935709, -0.032466959208250046, -0.03627772256731987, -0.02746768854558468, -0.005532211158424616, -0.06365108489990234, 0.008428014814853668, 0.016148585826158524, -0.01741255261003971, -0.0037730340845882893, -0.009654250927269459, 0.042748477309942245, 0.002942966530099511, -0.01777099072933197, 0.016233479604125023, -0.028561867773532867, 0.00043832045048475266, 0.016874894499778748, -0.022355226799845695, -0.051501914858818054, -0.011800164356827736, 0.04825710505247116, 0.0730082094669342, 0.009361840784549713, -0.036164529621601105, 0.04471045359969139, -0.008097874000668526, -0.045163217931985855, -0.0013205618597567081, -0.02671308070421219, -0.04240890219807625, -0.026826271787285805, 0.005032284185290337, 0.0209026075899601, 0.027958182618021965, -0.023147564381361008, 0.03576836362481117, -0.04338989034295082, -0.11726589500904083, -0.09598598629236221, 0.0027637474704533815, -0.008409149944782257, 0.00583876995369792, -0.019751833751797676, -0.0740269273519516, -0.017261629924178123, -0.012960371561348438, 0.026599889621138573, -0.027920451015233994, -0.06606582552194595, -0.026637619361281395, 0.02299664169549942, 0.05236971378326416, -0.004565371200442314, -0.04727611690759659, -0.015582630410790443, -0.0005871783941984177, -0.051728297024965286, -0.003582024248316884, -0.01196051761507988, -0.029863564297556877, 0.008517623879015446, 0.00742816086858511, 0.008899644017219543, -0.05236971378326416, 0.024015361443161964, -0.009809888899326324, 0.01636553555727005, -0.004338989034295082, -0.0808938518166542, 0.012196332216262817, 0.07772450149059296, -0.0140073886141181, -0.0001669862394919619, -0.008701560087502003, 0.032051924616098404, 0.027618609368801117, -0.0313539132475853, 0.016865462064743042, -0.01512986607849598, -0.024166282266378403, 0.01047960203140974, -0.04527640715241432, -0.0620286799967289, -0.011536051519215107, 0.010809742845594883, -0.0013665457954630256, 0.040635574609041214, 0.0001963156828423962, 0.051539644598960876, 0.0082252137362957, 0.0037046477664262056, -0.032259441912174225, -0.06006669998168945, -0.02412855252623558, 0.015214759856462479, 0.02954285591840744, -0.002135301474481821, 0.00947503186762333, 0.0815729945898056, -0.031165260821580887, -0.012573636136949062, 0.01234725397080183, -0.017723826691508293, 0.009437301196157932, -0.012035978958010674, 0.026090530678629875, -0.021430833265185356, -0.008154469542205334, -0.05738784745335579, -0.009309961460530758, -0.0020091405604034662, -0.0040064905770123005, 0.07530976086854935, -0.0005936633097007871, 0.008975104428827763, 0.0003669865254778415, 0.04395584762096405, 0.0018652937142178416, 0.04750249907374382, 0.018978361040353775, 0.005428452510386705, -0.01094179879873991, -0.01384703442454338, -0.020657360553741455, -0.04991723969578743, -0.00016978653729893267, -0.016610782593488693, -0.04222024977207184, -0.06436795741319656, 0.00037347141187638044, 0.00047162926057353616, 0.020412113517522812, 0.00756493303924799, 0.018082264810800552, 0.012677393853664398, 0.02599620446562767, 0.03048611432313919, 0.02131764218211174, 0.053577084094285965, 0.07576252520084381, -0.002950041089206934, 0.02358146198093891, -0.004709218163043261, 0.05108688026666641, 0.0743665024638176, -0.03288199007511139, 0.020676227286458015, -0.004895511548966169, 0.0022425970528274775, -0.011243641376495361, -0.009677832014858723, -0.024826563894748688, -0.01047960203140974, -0.004961539525538683, -0.0032896141055971384, 0.03399503603577614, -0.024524720385670662, 0.011649242602288723, 0.014346961863338947, -0.0673486590385437, 0.055652253329753876, 0.03716438636183739, -0.023788979277014732, 0.015478871762752533, 0.0027849706821143627, 0.047955263406038284, 0.006796177476644516, -0.027939317747950554, 0.004485194105654955, 0.012677393853664398, -0.06840510666370392, -0.07636620849370956, -0.009069430641829967, 0.015959933400154114, -0.005999124143272638, -0.02486429363489151, -0.011083287186920643, 0.06855602562427521, -0.0064141578041017056, 0.042710743844509125, 0.010913500562310219, -0.02744882181286812, 0.0448991060256958, 0.054331690073013306, 0.028373215347528458, 0.0008854839252308011, -0.027939317747950554, -0.0030632319394499063, -0.04165429621934891, -0.02992015890777111, -0.04716292396187782, -0.07346097379922867, 0.036541834473609924, -0.04859667643904686, -0.04640831798315048, -0.026618754491209984, -0.07044254243373871, -0.008682694286108017, 0.051539644598960876, 0.04388038441538811, -0.06285874545574188, -0.03999416157603264, 0.02241182141005993, 0.014658236876130104, 0.02465677820146084, 0.03737190365791321, -0.0083101075142622, 0.024769969284534454, -0.03554198145866394, 0.02580755203962326, 0.030769092962145805, -0.004124397877603769, 0.001663672155700624, -0.0018629356054589152, 0.012686827220022678, -0.09455223381519318, -0.05180375650525093, -0.034466665238142014, 0.04361627250909805, -0.042710743844509125, 0.015120433643460274, 0.035428788512945175, -0.014073416590690613, -0.006942382548004389, -0.057501036673784256, 0.03722098097205162, 0.06765049695968628, 0.035994745790958405, 0.014960079453885555, 0.004390868358314037, -0.00071274972287938, -0.0385604090988636, 0.022317497059702873, 0.0028675058856606483, -0.038824521005153656, 0.030391789972782135, 0.022543877363204956, 0.015601495280861855, 0.016308939084410667, 0.00027811387553811073, -0.03920182213187218, -0.01638440042734146, -0.08459142595529556, -0.0028627896681427956, 0.03905090317130089, 0.042710743844509125, 0.0077158547937870026, -0.0011118659749627113, 0.008880779147148132, 0.033730924129486084, 0.015478871762752533, -0.01113988272845745, 0.09055281430482864, 0.11236095428466797, -0.06036854535341263, -0.04022054374217987, 0.05799153447151184, 0.0022697157692164183, 0.008097874000668526, 0.03367432951927185, 0.05384119600057602, 0.0166202150285244, 0.030391789972782135, 0.02018573135137558, 0.09553322196006775, -0.013384838588535786, 0.010677685961127281 ]
729,351
tinytuya.BulbDevice
set_mode
Set bulb mode Args: mode(string): white,colour,scene,music nowait(bool): True to send without waiting for response.
def set_mode(self, mode="white", nowait=False): """ Set bulb mode Args: mode(string): white,colour,scene,music nowait(bool): True to send without waiting for response. """ payload = self.generate_payload( CONTROL, {self.DPS_INDEX_MODE[self.bulb_type]: mode} ) data = self._send_receive(payload, getresponse=(not nowait)) return data
(self, mode='white', nowait=False)
[ 0.041000846773386, -0.0019738583359867334, -0.04221979156136513, -0.0668572336435318, 0.027610931545495987, -0.002280903048813343, -0.03893233463168144, 0.004402512218803167, -0.0061593614518642426, -0.008375623263418674, -0.08081968873739243, -0.025006823241710663, -0.04587662220001221, 0.033576369285583496, -0.011644610203802586, -0.033853400498628616, 0.03570028766989708, -0.010619589127600193, -0.019447699189186096, 0.00487577635794878, 0.028866812586784363, 0.007867730222642422, -0.0049865893088281155, 0.013925513252615929, 0.03363177552819252, 0.01361154206097126, 0.004257069900631905, 0.01245723944157362, -0.01042566541582346, -0.007756916806101799, 0.06279408931732178, -0.03566334769129753, -0.00014767865650355816, -0.004541028290987015, 0.01574469543993473, 0.0037030044477432966, -0.005420607514679432, 0.02005717158317566, -0.03268986567854881, -0.06434547156095505, -0.014239483512938023, -0.04927489161491394, 0.009760787710547447, 0.04676312953233719, -0.08636034280061722, -0.01815488003194332, 0.06493647396564484, 0.04709556698799133, 0.050161395221948624, 0.006865795236080885, -0.013537666760385036, 0.0064594801515340805, -0.034850720316171646, 0.05440923199057579, -0.015596943907439709, 0.00038265148759819567, -0.053707417100667953, 0.058730944991111755, -0.006168595980852842, -0.0166773721575737, -0.031064605340361595, 0.00374225084669888, -0.016594260931015015, -0.03789807856082916, 0.018247224390506744, -0.017979426309466362, -0.06892574578523636, 0.07823404669761658, 0.032338958233594894, 0.032338958233594894, 0.007641486823558807, 0.003529859008267522, -0.009331386536359787, 0.04196122661232948, -0.03712238743901253, -0.014571922831237316, -0.08096744120121002, 0.07623941451311111, -0.03307770937681198, 0.053190287202596664, 0.020592767745256424, 0.051565028727054596, 0.05751200020313263, 0.014414937235414982, -0.03673454374074936, -0.04103778302669525, -0.005300560034811497, 0.0006925818743184209, -0.009585333056747913, -0.09958404302597046, -0.04842532426118851, -0.021276114508509636, -0.0230121873319149, 0.01557847484946251, -0.023750940337777138, 0.007442946545779705, 0.00006900568405399099, 0.0035783397033810616, -0.013814699836075306, 0.0039869630709290504, -0.11103472858667374, 0.03933865204453468, -0.024859072640538216, -0.08436571061611176, -0.0016806653002277017, -0.007830792106688023, -0.018034832552075386, 0.005314411595463753, -0.016972873359918594, -0.03904315084218979, 0.010333321988582611, 0.024231132119894028, 0.00018454421660862863, -0.007964691147208214, -0.03124929405748844, 0.0512695275247097, -0.0063024950213730335, -0.049090202897787094, -0.01436876505613327, 0.02814652770757675, -0.02029726654291153, -0.005388286896049976, -0.0002584196045063436, -0.03804583102464676, 0.06748517602682114, 0.0871729701757431, 0.017517704516649246, 0.025487013161182404, 0.05174971744418144, 0.001610252889804542, -0.00029607873875647783, 0.04063146933913231, -0.04214591532945633, -0.0102502116933465, -0.02112836390733719, 0.015181395225226879, -0.04709556698799133, -0.007507587783038616, 0.014756611548364162, 0.02018645405769348, -0.011404515244066715, -0.028848344460129738, 0.06164902076125145, 0.012337191961705685, 0.009206721559166908, 0.00348830409348011, 0.009520691819489002, -0.08872435241937637, 0.002828042721375823, 0.055738989263772964, 0.05717955902218819, 0.025173041969537735, -0.024508163332939148, 0.01966932602226734, -0.011469155550003052, -0.006754981819540262, -0.03885846212506294, 0.04454686492681503, -0.0007139364606700838, 0.021756306290626526, -0.041887350380420685, 0.010647292248904705, 0.01829339563846588, 0.03348402678966522, 0.027998777106404305, 0.009742318652570248, -0.050456900149583817, 0.0411485992372036, 0.0694059357047081, -0.023750940337777138, 0.06272021681070328, -0.013085179962217808, -0.061316583305597305, 0.026890644803643227, 0.007036631926894188, 0.03956027701497078, -0.04011434316635132, -0.04295854642987251, 0.07852955162525177, -0.007115124724805355, 0.016788184642791748, 0.021940993145108223, -0.03804583102464676, 0.013916278257966042, 0.03494306281208992, -0.053670477122068405, -0.012706568464636803, -0.004954269155859947, 0.0141102010384202, 0.018210286274552345, 0.02356625348329544, 0.03505387902259827, 0.010961262509226799, -0.04299548268318176, -0.006200916599482298, 0.01812717691063881, 0.039818841964006424, -0.0870252251625061, 0.015135223045945168, 0.028091121464967728, 0.04295854642987251, -0.024489695206284523, 0.0037445593625307083, 0.021682430058717728, 0.08916760981082916, -0.009705380536615849, 0.05500023439526558, -0.017591578885912895, 0.04993977025151253, -0.013048242777585983, -0.041407160460948944, -0.0003592768625821918, 0.034850720316171646, 0.014304124750196934, 0.054704733192920685, -0.053707417100667953, -0.04827757552266121, 0.05101096257567406, 0.058287691324949265, 0.017656220123171806, -0.06453016400337219, 0.001103513757698238, -0.004654149990528822, 0.011090544052422047, -0.042847733944654465, 0.004628755617886782, -0.007018162868916988, -0.01562464702874422, -0.05234071984887123, 0.016003258526325226, -0.05477860942482948, 0.06486260145902634, -0.03782420605421066, 0.011857002042233944, -0.018496552482247353, -0.012189441360533237, 0.014534984715282917, 0.04210897907614708, -0.11118248105049133, -0.01633569784462452, 0.06840862333774567, -0.011866236105561256, 0.02894068881869316, -0.008324834518134594, -0.05433535575866699, 0.0035968085285276175, 0.03653138503432274, -0.023178406059741974, -0.049570392817258835, -0.019927889108657837, -0.0411485992372036, -0.01616024412214756, -0.008006246760487556, 0.028072651475667953, -0.027352366596460342, -0.02201486937701702, -0.017720861360430717, -0.0008212866960093379, -0.06859330832958221, -0.03680841997265816, -0.02125764638185501, -0.02853437326848507, -0.03789807856082916, 0.03758411109447479, 0.05802912637591362, 0.015947852283716202, 0.0018122559413313866, 0.017720861360430717, -0.00756299402564764, -0.02388022281229496, 0.07971155643463135, -0.027851026505231857, -0.040262091904878616, -0.007710745092481375, -0.060393139719963074, -0.015236801467835903, 0.012540348805487156, -0.015042878687381744, -0.03449981287121773, -0.03387187048792839, -0.011210592463612556, -0.027592461556196213, 0.01860736683011055, 0.058176878839731216, -0.05322722718119621, 0.006163978483527899, 0.0018630452686920762, 0.07239789515733719, 0.03326239809393883, 0.004388660658150911, 0.0014694278361275792, 0.07882504910230637, -0.004619521088898182, 0.03145245090126991, 0.0436234250664711, -0.007613783236593008, 0.009908538311719894, -0.027112271636724472, 0.04787125810980797, -0.04214591532945633, 0.029439346864819527, -0.086951345205307, 0.004003123380243778, 0.029143845662474632, 0.006713427137583494, -0.05186052992939949, 0.03298536688089371, -0.023344626650214195, -0.0040146661922335625, -0.008297130465507507, 0.016114071011543274, -0.020149515941739082, 0.01605866476893425, 0.010213274508714676, -0.020241860300302505, 0.006505652330815792, -0.0053097945638000965, 0.03176642209291458, 0.02164549194276333, 0.04321710765361786, -0.002005024580284953, -0.051528092473745346, 0.04170266166329384, 0.03756564110517502, 0.008315599523484707, 0.00975155271589756, 0.04842532426118851, 0.042330604046583176, -0.017693158239126205, 0.029624035581946373, -0.1077103316783905, 0.07520515471696854, 0.011127482168376446, -0.013879341073334217, -0.02129458449780941, 0.0029296213760972023, -0.002851128811016679, -0.014331827871501446, 0.003629129147157073, 0.004390968941152096, -0.01584627293050289, 0.000049490747187519446, -0.02622576802968979, 0.03180335834622383, 0.028848344460129738, 0.055591240525245667, 0.00621938519179821, 0.03523856773972511, 0.09995341300964355, 0.06172289699316025, -0.013177524320781231, -0.07114201039075851, 0.023935629054903984, 0.03256058320403099, -0.02932853437960148, -0.014996706508100033, -0.009677677415311337, -0.01243877038359642, -0.042847733944654465, -0.032375894486904144, -0.05226684734225273, -0.05492636188864708, -0.02002023346722126, 0.03682688623666763, -0.0487208254635334, 0.020204922184348106, -0.02670595794916153, 0.0027634017169475555, 0.05972826108336449, -0.004444066900759935, 0.03686382621526718, 0.026853708550333977, -0.028275810182094574, 0.0412224717438221, -0.0005514683434739709, 0.03494306281208992, -0.017942488193511963, -0.029624035581946373, 0.05082627385854721, 0.026355048641562462, 0.007161296438425779, -0.048055946826934814, 0.03462909534573555, -0.009359089657664299, 0.0540398545563221, 0.021202240139245987, -0.007470649667084217, -0.03549712896347046, -0.039781901985406876, -0.04920101538300514, 0.019927889108657837, -0.007950839586555958, -0.024471227079629898, -0.004483313299715519, -0.04247835651040077, -0.003264369210228324, -0.026355048641562462, 0.015735460445284843, 0.0638652816414833, 0.0334286168217659, -0.04177653789520264, 0.012087862007319927, -0.05101096257567406, 0.017868611961603165, -0.03645750880241394, 0.04052065685391426, 0.030953792855143547, 0.03693769872188568, 0.0012882022419944406, -0.08872435241937637, 0.030362790450453758, 0.07066182047128677, -0.07021857053041458, 0.023418501019477844, 0.03268986567854881, 0.020795924589037895, 0.02639198675751686, -0.03363177552819252, 0.012069393880665302, 0.012383364140987396, 0.04063146933913231, 0.025209980085492134, 0.056256119161844254, -0.015541537664830685, 0.016797419637441635, 0.05226684734225273, 0.05274703726172447, 0.021072957664728165, 0.007175148464739323, 0.028792936354875565, -0.021719368174672127, -0.0321912057697773, -0.0564408041536808, -0.047021690756082535, 0.01898597739636898, 0.005152808967977762, 0.0008310982375405729, -0.024138787761330605, -0.00949298869818449, -0.06486260145902634, 0.0335024930536747, 0.0009396027307957411, -0.051565028727054596, 0.009945475496351719, 0.011930877342820168, -0.03276374191045761, -0.025173041969537735, 0.004661076236516237, 0.03885846212506294, -0.00107234762981534, -0.042773857712745667, 0.05274703726172447, 0.0020765913650393486, 0.01178312674164772, 0.037676453590393066, -0.0011889322195202112, -0.020241860300302505, 0.0030173484701663256, 0.03952334076166153, -0.044990118592977524, 0.06501035392284393, -0.057733625173568726, -0.06253552436828613, 0.020001765340566635, 0.042330604046583176, 0.061870649456977844, 0.05326416343450546, 0.0015860125422477722, 0.010831980966031551, -0.01004705484956503, -0.06848249584436417, -0.01078580878674984, 0.013039007782936096, 0.003345170523971319, 0.06212921068072319, 0.007715362124145031, 0.0005465625436045229, 0.00856031198054552, 0.02870059385895729, -0.029753318056464195, -0.03180335834622383, -0.03680841997265816, -0.021183770149946213, 0.01438723411411047, -0.02153467945754528, -0.03586650639772415, -0.01778550259768963, 0.005083551164716482, 0.010305617935955524, -0.01709292083978653, -0.01884746178984642, -0.05895256996154785, 0.0011947037419304252, 0.016446510329842567, 0.015947852283716202, 0.04528561979532242, -0.030141163617372513, -0.02026032842695713, -0.010554947890341282, 0.0013990154257044196, 0.005753046832978725, -0.014747376553714275, -0.10601119697093964, -0.01221714448183775, -0.023215344175696373, -0.057216499000787735, -0.048462264239788055, -0.04295854642987251, 0.007595314644277096, 0.01076733972877264, 0.00589156337082386, 0.04111165925860405, -0.01854272559285164, -0.06127964332699776, 0.01018557045608759, 0.014008622616529465, 0.07793854922056198, 0.005402138456702232, 0.0010250211926177144, -0.04558112099766731, -0.006191682070493698, -0.02857131138443947, 0.06715273857116699, 0.056773245334625244, 0.0041577997617423534, 0.030141163617372513, 0.04450992867350578, -0.034333594143390656, 0.02480366639792919, 0.034721437841653824, 0.03446287289261818, 0.007936988025903702, 0.0435495488345623, 0.08281432092189789, 0.05385516583919525, -0.04824063554406166, 0.04258916899561882, -0.011256763711571693, -0.006935053039342165, -0.038821522146463394, -0.027370836585760117, -0.07018163055181503, -0.000406891864258796, -0.01970626227557659, -0.00977002177387476, -0.03956027701497078, -0.016187947243452072, -0.01768392324447632, 0.026964521035552025, -0.030953792855143547, -0.0018434220692142844, 0.011469155550003052, -0.0102502116933465, -0.033447086811065674, -0.0032943810801953077, -0.03952334076166153, 0.05355966463685036, -0.029439346864819527, -0.007816940546035767, -0.03952334076166153, -0.0641607865691185, -0.033133115619421005, -0.02009410969913006, 0.03536784648895264, 0.0614643320441246, -0.037436358630657196, 0.02157161757349968, 0.027573993429541588, 0.03276374191045761, -0.057290371507406235, 0.06198146194219589, 0.03263445943593979, 0.03400115296244621, 0.008357154205441475, 0.016585027799010277, 0.022790560498833656, 0.01712062396109104, -0.000013689314073417336, 0.020426549017429352, 0.022070275619626045, -0.015301442705094814, -0.01242030132561922, -0.06006070226430893, -0.03049207106232643, 0.013925513252615929, -0.009400644339621067, 0.02714920975267887, 0.016030961647629738, 0.045507244765758514, -0.01578163169324398, -0.002844202797859907, 0.02498835325241089, 0.04476849362254143, -0.06231389939785004, 0.012965132482349873, 0.030215037986636162, 0.008500288240611553, -0.02380634844303131, 0.007895433343946934, 0.08916760981082916, 0.010554947890341282, -0.04480542987585068, -0.008929689414799213, -0.025800984352827072, -0.012013986706733704, -0.01018557045608759, -0.035884976387023926, 0.010776573792099953, 0.013066711835563183, 0.016446510329842567, -0.004506399389356375, -0.01506134681403637, -0.021165302023291588, 0.016649669036269188, -0.01423024944961071, -0.02539466880261898, 0.022679748013615608, 0.020075639709830284, 0.017831673845648766, -0.002277440158650279, 0.012106331065297127, -0.012918960303068161, -0.011857002042233944, -0.036439042538404465, -0.019244542345404625, -0.043881986290216446, -0.030381258577108383, -0.05802912637591362, -0.01739765703678131, -0.013722355477511883, 0.0030312000308185816, -0.03132316842675209, 0.02136845886707306, -0.025228450074791908, -0.03148939087986946, -0.009257511235773563, -0.00909590907394886, 0.04668925330042839, 0.0383782722055912, 0.013140587136149406, 0.044879306107759476, -0.005734577775001526, 0.09167937189340591, -0.05392904207110405, -0.004026209469884634, 0.03400115296244621, -0.021756306290626526, 0.015476896427571774, -0.05426148325204849, -0.004319402389228344, -0.02005717158317566, -0.0719546377658844, 0.022679748013615608, 0.04532255977392197, 0.005748429801315069, 0.03562641143798828, 0.04783432185649872, 0.040299031883478165, 0.036032725125551224, -0.021663961932063103, -0.044990118592977524, 0.00672727869823575, 0.0308429803699255, -0.002858054591342807, -0.010324086993932724, 0.002170089865103364, 0.0013008996611461043, -0.009017416276037693, -0.03669760376214981, -0.0011912408517673612, 0.02033420465886593, -0.018099473789334297, -0.034130435436964035, -0.0463198758661747, 0.028866812586784363, 0.04070534557104111, -0.05293172597885132, -0.017148327082395554, 0.08251882344484329, -0.00035725682391785085, 0.010130164213478565, -0.012743506580591202, 0.02208874560892582, -0.00588232884183526, 0.06249858811497688, 0.05839850381016731, -0.06944287568330765, 0.03292996063828468, -0.012494176626205444, -0.04583968594670296, -0.030972260981798172, -0.026909114792943, -0.035127751529216766, -0.010351790115237236, -0.01540302112698555, -0.08296207338571548, 0.03710392117500305, 0.016169479116797447, -0.026170359924435616, 0.0537443533539772, 0.02236577682197094, -0.02897762507200241, -0.00008375912148039788, -0.05695793405175209, -0.005065082106739283, -0.00014587506302632391, 0.0024009505286812782, 0.01942923106253147, -0.043918926268815994, -0.035958852618932724, 0.023898692801594734, 0.08281432092189789, -0.014036325737833977, 0.07125282287597656, 0.020389610901474953, 0.02798030711710453, -0.09625964611768723, 0.017286844551563263, -0.06973838061094284, 0.023104531690478325, -0.039818841964006424, 0.04458380490541458, 0.006187064573168755, -0.016178712248802185, 0.038747645914554596, -0.05740118771791458, -0.008403326384723186, 0.09566864371299744, 0.028128059580922127, -0.026650549843907356, 0.013519198633730412, -0.010314852930605412, -0.0590633824467659, -0.0013793922262266278, -0.02498835325241089, -0.004945034626871347, 0.0385998971760273, -0.0460982508957386, 0.04015127941966057, 0.01636340096592903, -0.04210897907614708, -0.00975155271589756, -0.022144151851534843, -0.019872482866048813, -0.05481554567813873, 0.03608813136816025, 0.01245723944157362, -0.02153467945754528, 0.006344050168991089, 0.041259411722421646, 0.004737259820103645, -0.0075399079360067844, -0.0013690035557374358, 0.05230378359556198, 0.06870412081480026, -0.04668925330042839, 0.010628823190927505, 0.03749176487326622, -0.03682688623666763, -0.0243604127317667, 0.02563476376235485, 0.048536136746406555, 0.0032874552998691797, 0.01677894964814186, -0.05186052992939949, 0.022864436730742455, 0.009871600195765495, -0.017240671440958977 ]
729,352
tinytuya.core
set_multiple_values
Set multiple indexes at the same time Args: data(dict): array of index/value pairs to set nowait(bool): True to send without waiting for response.
def set_multiple_values(self, data, nowait=False): """ Set multiple indexes at the same time Args: data(dict): array of index/value pairs to set nowait(bool): True to send without waiting for response. """ out = {} for i in data: out[str(i)] = data[i] payload = self.generate_payload(CONTROL, out) return self._send_receive(payload, getresponse=(not nowait))
(self, data, nowait=False)
[ 0.007297394331544638, -0.0008465381106361747, -0.1268831044435501, -0.010295339860022068, -0.02324754185974598, 0.022529469802975655, -0.0669960007071495, -0.027520062401890755, 0.023103926330804825, -0.008729048073291779, -0.05245506763458252, -0.00635941419750452, -0.0013362847967073321, 0.01666821725666523, -0.013409971259534359, -0.036657512187957764, 0.03292354568839073, 0.011758408509194851, 0.006924895104020834, 0.057409755885601044, 0.01843646727502346, 0.0034489836543798447, -0.005951011553406715, 0.030500056222081184, -0.010295339860022068, 0.006476100534200668, 0.0036666488740593195, -0.0007062898948788643, 0.09902195632457733, 0.009640100412070751, 0.011919974349439144, -0.0712326169013977, -0.013688224367797375, -0.0006877771811559796, 0.08580945432186127, -0.02066248655319214, -0.02383994869887829, -0.03186438977718353, -0.013490754179656506, 0.053244948387145996, 0.011794311925768852, -0.11029566824436188, -0.011605818755924702, -0.02796885557472706, 0.01759273372590542, 0.06211312115192413, -0.004627068527042866, 0.10857229679822922, 0.06950925290584564, -0.03432378172874451, -0.0007349005318246782, -0.016829783096909523, -0.014693522825837135, -0.005533632822334766, 0.007768628187477589, 0.10203785449266434, 0.0026523738633841276, 0.06516492366790771, 0.023373203352093697, -0.034144263714551926, -0.008935493417084217, 0.00285657518543303, 0.03516751527786255, -0.03466486558318138, 0.0011130096390843391, -0.006938358768820763, -0.021344654262065887, 0.016174543648958206, 0.007288418244570494, 0.011103169061243534, 0.003751919837668538, 0.012907321564853191, -0.05705072358250618, -0.02795090526342392, -0.0151243656873703, 0.07313551008701324, -0.03726787120103836, 0.10914675891399384, -0.023893805220723152, 0.04118135944008827, 0.007382664829492569, 0.0048783933743834496, 0.024935007095336914, 0.0667087733745575, -0.009200281463563442, 0.01700032502412796, -0.015070510096848011, 0.03286968916654587, -0.014846112579107285, -0.039134856313467026, -0.01036714669317007, 0.022726939991116524, -0.030697524547576904, 0.02795090526342392, 0.011040338315069675, -0.004283741116523743, -0.018687792122364044, -0.05227555334568024, -0.06853985786437988, 0.010385098867118359, -0.059779390692710876, 0.003487131092697382, 0.05360398069024086, -0.050480373203754425, -0.01271882839500904, -0.05245506763458252, -0.0062382398173213005, -0.01489099208265543, -0.008118687197566032, -0.008612360805273056, 0.007853899151086807, 0.013293284922838211, 0.01286244299262762, -0.027609821408987045, -0.05227555334568024, 0.0896870419383049, 0.009729858487844467, -0.020016223192214966, -0.022421760484576225, 0.026155726984143257, 0.0036958204582333565, 0.02322958968579769, 0.02410922572016716, 0.0441613532602787, 0.004346571862697601, 0.06814491748809814, 0.021003570407629013, 0.0561172291636467, 0.018400562927126884, -0.03974521532654762, -0.029817888513207436, -0.005282307974994183, -0.00398978078737855, 0.05945625901222229, 0.019567428156733513, 0.023570673540234566, -0.017449120059609413, -0.04918784648180008, -0.003781091421842575, -0.05514783412218094, -0.019639234989881516, 0.0008964664884842932, 0.025706933811306953, 0.05852276831865311, 0.05909722298383713, -0.009972208179533482, 0.01033124327659607, 0.005425922106951475, -0.03035644069314003, 0.0012543798657134175, -0.01565394178032875, 0.043838221579790115, -0.023121878504753113, 0.009882449172437191, -0.0127816591411829, 0.00247285608202219, -0.01377798244357109, -0.0071223643608391285, -0.019369957968592644, -0.0017873230390250683, -0.06577528268098831, -0.06494949758052826, 0.010438953526318073, 0.021667785942554474, -0.00937082339078188, 0.05389121174812317, -0.027591869235038757, 0.014128042384982109, -0.0034759112168103456, 0.027986807748675346, 0.018382610753178596, 0.01852622628211975, -0.03974521532654762, -0.020411161705851555, -0.0028072078712284565, -0.015178220346570015, -0.04936736449599266, -0.0331210121512413, 0.07862874865531921, -0.03622667118906975, -0.10742338746786118, 0.005793933290988207, -0.03723197057843208, -0.024899104610085487, 0.006924895104020834, -0.00557402428239584, 0.004375743679702282, 0.015232075937092304, 0.042007140815258026, 0.031002705916762352, 0.011264734901487827, -0.007095436565577984, -0.007791067939251661, 0.005102790426462889, 0.03340824320912361, 0.023696335032582283, 0.015644967555999756, -0.04771580174565315, 0.030571863055229187, 0.042043041437864304, -0.039422083646059036, -0.07726441323757172, 0.035293176770210266, -0.009245160967111588, 0.048182547092437744, -0.026478858664631844, 0.08229091018438339, -0.007638477720320225, -0.004386963788419962, -0.0168656874448061, -0.023211637511849403, 0.021165136247873306, 0.027448255568742752, 0.0021755299530923367, 0.03762690722942352, 0.011471180245280266, -0.02909981831908226, -0.012323889881372452, 0.053460367023944855, -0.03985292837023735, 0.03644208982586861, 0.007638477720320225, 0.010869796387851238, 0.01057359203696251, -0.00011682674812618643, 0.0030360929667949677, -0.017018277198076248, -0.021542122587561607, -0.035095710307359695, 0.04548978433012962, 0.007746188435703516, 0.07083768397569656, 0.00639082957059145, 0.008212934248149395, -0.0009385409066453576, -0.05177290365099907, 0.019334055483341217, -0.04732086509466171, -0.01580653339624405, 0.07590007781982422, -0.005313723813742399, 0.016722073778510094, 0.025958258658647537, -0.006525468081235886, -0.06810901314020157, 0.02439645491540432, 0.05744566023349762, 0.04556158930063248, 0.015995025634765625, 0.03514956310391426, 0.008473235182464123, 0.005022007506340742, -0.08056753873825073, 0.0320618599653244, 0.007432032376527786, 0.04829026013612747, 0.056045424193143845, 0.027986807748675346, -0.003453471465036273, -0.027717530727386475, -0.0034332757350057364, -0.01922634430229664, -0.031936198472976685, 0.026855846866965294, 0.0005839935038238764, -0.001972450641915202, 0.03608305752277374, 0.02689174935221672, -0.047033634036779404, 0.04656688868999481, 0.05004953220486641, 0.035580407828092575, -0.033085111528635025, -0.003262734040617943, -0.03216956928372383, 0.05044447258114815, 0.06828852742910385, -0.0704786479473114, -0.05629674717783928, -0.020321402698755264, 0.03552655130624771, 0.02689174935221672, -0.02024959586560726, -0.030141020193696022, 0.013095815666019917, -0.02863307110965252, 0.0305539108812809, 0.05166519060730934, 0.009729858487844467, -0.04093003273010254, 0.003334541106596589, 0.02985379286110401, 0.002154212212190032, -0.039709314703941345, 0.018867310136556625, 0.0008723437786102295, -0.0347905270755291, 0.02064453437924385, 0.03218752145767212, 0.01587834022939205, 0.00964907556772232, -0.06010252237319946, -0.00042663500062189996, -0.011695577763020992, 0.014388343319296837, -0.05561457946896553, 0.046638697385787964, 0.0611078217625618, -0.013436899520456791, -0.031361740082502365, 0.010151725262403488, 0.03755510225892067, -0.08329620957374573, -0.03723197057843208, 0.025509463623166084, -0.0018277144990861416, 0.00022425685892812908, 0.05866638198494911, -0.0127816591411829, 0.07360225170850754, -0.022349951788783073, -0.08372705429792404, 0.0007416324806399643, -0.03505980595946312, 0.05198832228779793, 0.015339787118136883, 0.04642327502369881, 0.013427923433482647, -0.0362984761595726, 0.0169374942779541, -0.07826971262693405, -0.01843646727502346, -0.02947680465877056, 0.027735482901334763, 0.024845248088240623, 0.03349800035357475, -0.03622667118906975, 0.0004984420957043767, 0.05410663038492203, 0.036639560014009476, -0.057409755885601044, -0.02622753381729126, -0.0255633182823658, -0.002762328367680311, -0.0035611821804195642, -0.0014686790527775884, 0.010501785203814507, 0.05780469626188278, 0.019549475982785225, 0.003655428998172283, -0.004362280014902353, -0.016641288995742798, 0.032905593514442444, 0.059994813054800034, 0.04272520914673805, -0.005632367450743914, 0.025150427594780922, -0.0937800407409668, 0.015285931527614594, -0.008594409562647343, 0.001616781228221953, -0.021578026935458183, 0.01479225791990757, 0.011417325586080551, -0.02364248037338257, -0.015627015382051468, -0.04304834082722664, 0.044807616621255875, 0.018382610753178596, 0.011444252915680408, 0.004351059906184673, -0.035759925842285156, 0.025132477283477783, 0.05744566023349762, 0.039888832718133926, 0.04175581410527229, -0.0768335685133934, -0.006978750228881836, -0.0612514354288578, -0.07306370139122009, -0.0022024577483534813, -0.08200368285179138, 0.049618691205978394, 0.011686601676046848, 0.05292181670665741, 0.005066887009888887, 0.034898240119218826, 0.0031258517410606146, -0.04071461409330368, 0.04064280539751053, 0.02382199838757515, -0.019459716975688934, -0.005488753318786621, -0.03234908729791641, -0.014029307290911674, 0.0007938047638162971, 0.03190029412508011, 0.03306715935468674, 0.03274402767419815, -0.06010252237319946, -0.008370012044906616, 0.011641722172498703, -0.06904250383377075, 0.02536584995687008, 0.027986807748675346, -0.00989142432808876, 0.03522137179970741, -0.02969222515821457, -0.003105656011030078, -0.033749327063560486, -0.01920839212834835, 0.036639560014009476, 0.08961523324251175, -0.025976208969950676, 0.02066248655319214, 0.03141559660434723, -0.049116041511297226, 0.020877907052636147, 0.03852449730038643, 0.05669168755412102, 0.04699772968888283, -0.03848859295248985, 0.005946523509919643, 0.039996542036533356, 0.010286363773047924, -0.07453574240207672, -0.003971829079091549, -0.042402077466249466, -0.01647074893116951, 0.03547269478440285, 0.004770682659000158, -0.06401600688695908, -0.029135720804333687, -0.0313078835606575, 0.03744738921523094, 0.021380556747317314, -0.032708123326301575, 0.00007412116974592209, 0.04728496074676514, 0.009837569668889046, -0.01980080083012581, 0.00400773249566555, 0.004618092440068722, -0.031056560575962067, 0.029728129506111145, -0.044233158230781555, -0.029315238818526268, -0.022224290296435356, 0.050516277551651, -0.006260679569095373, -0.010528712533414364, 0.02439645491540432, -0.013024008832871914, -0.019064778462052345, 0.07062225788831711, 0.0027802803087979555, -0.054609280079603195, -0.02172164060175419, 0.021398508921265602, -0.00667357025668025, 0.04398183524608612, -0.0632261335849762, -0.04717724770307541, 0.008343084715306759, 0.0013890181435272098, 0.016524603590369225, -0.013571537099778652, 0.014846112579107285, -0.015824483707547188, -0.0037294800858944654, -0.0712326169013977, -0.040391478687524796, -0.0015808776952326298, -0.0341801680624485, 0.020482968538999557, -0.01969309151172638, -0.0019242052221670747, 0.009361847303807735, -0.033264629542827606, -0.05561457946896553, -0.0434073768556118, -0.04969049617648125, 0.05425024777650833, 0.014666595496237278, -0.04333557188510895, -0.044233158230781555, 0.04261749982833862, -0.026048017665743828, -0.01852622628211975, -0.03552655130624771, 0.03881172463297844, -0.06265167146921158, -0.002217043424025178, 0.017251649871468544, 0.05654807388782501, 0.003906753845512867, -0.012081540189683437, -0.005120742134749889, 0.018328756093978882, -0.004649508278816938, 0.014846112579107285, 0.016416892409324646, -0.006597274914383888, -0.056619878858327866, 0.025958258658647537, -0.015160269103944302, -0.0015449741622433066, -0.02322958968579769, -0.03286968916654587, -0.050085436552762985, -0.014487077482044697, -0.02642500400543213, -0.017431167885661125, -0.02680199034512043, 0.012691901065409184, -0.008612360805273056, -0.028202230110764503, -0.010322267189621925, -0.029135720804333687, -0.003215610748156905, 0.004339840263128281, -0.0034489836543798447, -0.02401946671307087, 0.044520385563373566, -0.0024930520448833704, -0.012548286467790604, -0.00813663937151432, -0.050659891217947006, -0.028866443783044815, 0.022062724456191063, -0.07496658712625504, -0.009025251492857933, 0.038668110966682434, 0.06976057589054108, 0.03642413765192032, -0.019190441817045212, 0.06832443177700043, -0.03708835318684578, 0.02073429338634014, 0.00799302477389574, -0.01940586231648922, -0.0008207324426621199, -0.028022712096571922, -0.07877236604690552, -0.026622474193572998, -0.021075377240777016, -0.05378349870443344, -0.013840814121067524, 0.04574110731482506, -0.008724560029804707, -0.04071461409330368, -0.023462962359189987, 0.06006661802530289, 0.01580653339624405, -0.10476652532815933, -0.0511266365647316, 0.027053315192461014, -0.035759925842285156, 0.01580653339624405, -0.008365524001419544, -0.002313534263521433, -0.03848859295248985, -0.015797557309269905, 0.01220720261335373, 0.02055477537214756, 0.01287141814827919, -0.029997406527400017, -0.00964907556772232, -0.01852622628211975, -0.008720071986317635, 0.017027253285050392, 0.039817024022340775, -0.03466486558318138, -0.02066248655319214, 0.011749432422220707, 0.006821672432124615, 0.0323670394718647, -0.08559403568506241, 0.01018762867897749, -0.03812955692410469, 0.02786114625632763, 0.06254396587610245, -0.0341801680624485, -0.07173527032136917, 0.07482297718524933, 0.04358689486980438, 0.0019219613168388605, 0.03091294690966606, 0.016057858243584633, 0.0195853803306818, -0.039709314703941345, 0.03658570721745491, -0.01911863498389721, 0.011641722172498703, 0.004833513870835304, 0.051234349608421326, -0.004337596241384745, 0.007840435020625591, 0.015734724700450897, 0.019423814490437508, -0.032600414007902145, 0.012153347954154015, -0.027591869235038757, -0.012727804481983185, -0.011758408509194851, -0.03466486558318138, -0.007939170114696026, 0.002690521301701665, 0.022314049303531647, 0.020482968538999557, 0.019280200824141502, -0.014101115055382252, 0.02199091762304306, 0.021398508921265602, -0.022026820108294487, 0.014343463815748692, -0.03261836618185043, 0.056045424193143845, -0.012431600131094456, -0.013733102940022945, -0.024540068581700325, -0.0582355372607708, -0.04584881663322449, -0.03802184760570526, -0.03207981213927269, -0.07270466536283493, -0.005749054253101349, 0.003655428998172283, -0.0026411539874970913, -0.015680870041251183, -0.007194171659648418, -0.03207981213927269, 0.04882881045341492, 0.008580945432186127, 0.03877582028508186, 0.022888505831360817, -0.016587434336543083, 0.003639721078798175, 0.009783714078366756, 0.03391089290380478, 0.06713961809873581, 0.03455715626478195, 0.040786419063806534, -0.04229436814785004, 0.015824483707547188, 0.03053595870733261, -0.00019620722741819918, -0.031002705916762352, -0.028453553095459938, 0.037698715925216675, -0.0021744079422205687, 0.031541258096694946, -0.047213152050971985, 0.03170282393693924, -0.02364248037338257, 0.003626257413998246, 0.01522309985011816, -0.003944901283830404, 0.044233158230781555, -0.0288125891238451, -0.043550990521907806, 0.0497623048722744, 0.02371428720653057, -0.09155402332544327, 0.047392670065164566, 0.02114718407392502, 0.018023576587438583, 0.0329773984849453, 0.06232854351401329, 0.05310133472084999, 0.05852276831865311, -0.02296031266450882, -0.017009301111102104, 0.05227555334568024, 0.1181226372718811, -0.0005789445713162422, -0.007786579895764589, -0.04574110731482506, 0.02640705183148384, 0.006579323206096888, -0.005174597259610891, 0.0195853803306818, -0.005991403013467789, 0.004972639959305525, -0.007943658158183098, -0.007409592624753714, 0.0447717122733593, 0.004093003459274769, 0.007261490449309349, -0.01998031884431839, 0.03428787738084793, -0.06710371375083923, -0.04006834700703621, 0.0080154649913311, -0.08128561079502106, -0.022637180984020233, 0.03033849038183689, -0.05310133472084999, -0.01012479793280363, 0.02938704565167427, -0.0017974209040403366, 0.008495674468576908, -0.007454472128301859, -0.01804152876138687, -0.01874164678156376, 0.02008803002536297, -0.029548611491918564, -0.005861252546310425, 0.0032560022082179785, -0.035580407828092575, 0.03556245565414429, 0.07539743185043335, -0.01949562132358551, 0.05819963663816452, -0.014720451086759567, 0.03112836740911007, -0.05062399059534073, 0.00022341537987813354, -0.003641965100541711, 0.06254396587610245, -0.018777551129460335, 0.05313723534345627, -0.016084784641861916, -0.016389966011047363, -0.05206013098359108, -0.05482470244169235, -0.0234450101852417, 0.06089239940047264, 0.016793880611658096, 0.035293176770210266, -0.01607580855488777, -0.04947507381439209, -0.011551963165402412, -0.028004759922623634, -0.02217043563723564, -0.07496658712625504, 0.000601384264882654, -0.03360571339726448, -0.003080972470343113, 0.056332651525735855, -0.02130874991416931, -0.052490971982479095, 0.023983564227819443, -0.02324754185974598, -0.09492895752191544, -0.001957864733412862, 0.03111041523516178, -0.010618471540510654, 0.0013216990046203136, -0.02258332632482052, 0.014917920343577862, 0.02611982449889183, -0.0676063597202301, 0.004122174810618162, 0.08444511890411377, -0.02585054747760296, -0.0011825727997347713, 0.026442956179380417, -0.02967427484691143, 0.010627447627484798, -0.012521359138190746, 0.049223750829696655, 0.012620093300938606, 0.0366036556661129, -0.027520062401890755, 0.02265513315796852, 0.06538034230470657, 0.02737644873559475 ]
729,353
tinytuya.core
set_retry
null
def set_retry(self, retry): self.retry = retry
(self, retry)
[ 0.0020649710204452276, 0.039500895887613297, -0.027927067130804062, 0.08106676489114761, 0.005254019051790237, -0.023031087592244148, -0.004179900977760553, 0.03360573947429657, 0.04226529225707054, 0.0023980308324098587, 0.017818700522184372, 0.046928130090236664, 0.02952575497329235, 0.012939374893903732, -0.02666144073009491, -0.030025344341993332, 0.030008692294359207, 0.041665785014629364, -0.025578996166586876, 0.010058406740427017, -0.01598687283694744, 0.013830309733748436, 0.03686972334980965, 0.04089974984526634, -0.019400736317038536, 0.06061689183115959, -0.011990154162049294, 0.057119760662317276, 0.062115658074617386, -0.01980040781199932, -0.05811894312500954, -0.037935514003038406, -0.032939616590738297, 0.0682106539607048, 0.03035840392112732, 0.022331662476062775, -0.08513009548187256, -0.017419029027223587, -0.1023159846663475, 0.035570789128541946, -0.021099340170621872, 0.02467973344027996, -0.02124921791255474, -0.03307284042239189, 0.008055884391069412, 0.01044975221157074, 0.013755370862782001, 0.05179080367088318, 0.04702804982662201, -0.0334225557744503, -0.021715501323342323, 0.02624511532485485, -0.025545690208673477, -0.033006228506565094, -0.03920114412903786, 0.0735396146774292, 0.009375634603202343, 0.07733649760484695, -0.0012135867727920413, -0.04789400473237038, -0.02273133397102356, -0.035870544612407684, -0.04179900884628296, 0.057119760662317276, 0.04223198816180229, -0.005495487246662378, -0.041898928582668304, 0.027527395635843277, 0.051857415586709976, -0.002808110788464546, 0.07946807891130447, 0.04026693478226662, -0.04799392446875572, -0.057685963809490204, -0.02178211323916912, 0.041898928582668304, -0.0893266499042511, -0.01720254123210907, -0.035837236791849136, 0.013930227607488632, 0.012697906233370304, 0.027260947972536087, 0.04389728605747223, 0.008093354292213917, 0.011074239388108253, -0.062382109463214874, -0.0011469748569652438, -0.057186372578144073, -0.024396633729338646, 0.021365787833929062, -0.049559302628040314, 0.012747865170240402, 0.007152460049837828, -0.020732974633574486, 0.02074962854385376, 0.00781857967376709, 0.024746345356106758, -0.05595405399799347, -0.0009419348789379001, -0.07014240324497223, -0.035637401044368744, -0.010383140295743942, 0.010416446253657341, -0.06071680784225464, 0.05229039490222931, -0.08126659691333771, -0.0070775216445326805, -0.03447169438004494, 0.035337649285793304, -0.020616404712200165, 0.011299055069684982, 0.0029621508438140154, -0.019434042274951935, 0.06015060842037201, -0.008942656219005585, 0.01651976816356182, 0.021449053660035133, -0.034571610391139984, 0.0538557767868042, 0.04959261044859886, 0.018851187080144882, 0.02399696223437786, -0.008072537370026112, 0.047660861164331436, 0.024346673861145973, 0.03493797779083252, -0.02879302389919758, 0.08806101977825165, 0.10204953700304031, -0.04076652601361275, 0.01346394419670105, -0.04023362696170807, -0.011723706498742104, -0.005866016261279583, -0.008592943660914898, 0.035903848707675934, 0.029808854684233665, 0.0524902306497097, -0.01392190158367157, -0.009234083816409111, -0.027743885293602943, 0.03470483422279358, -0.0003132843994535506, 0.020882852375507355, 0.11210794001817703, 0.013763697817921638, 0.006078341975808144, 0.056653477251529694, 0.023031087592244148, -0.009891876950860023, 0.053755857050418854, -0.030291792005300522, 0.007173276040703058, 0.01678621582686901, -0.057685963809490204, 0.017335765063762665, -0.050525177270174026, 0.018135108053684235, 0.005645364057272673, -0.03278974071145058, -0.011498890817165375, -0.0565202534198761, 0.017718782648444176, -0.009617103263735771, 0.052623454481363297, 0.029392531141638756, -0.05012550577521324, 0.05169088765978813, 0.014496429823338985, -0.002071215771138668, 0.0008794861496426165, -0.016677971929311752, -0.0020961954724043608, -0.02860984019935131, 0.006136627402156591, 0.06254863739013672, 0.01043309923261404, -0.03278974071145058, -0.037935514003038406, 0.028043638914823532, -0.022065214812755585, -0.0381353497505188, -0.01960057206451893, -0.020383263006806374, 0.02784380316734314, 0.008642902597784996, 0.003393047023564577, 0.035071201622486115, -0.023514024913311005, 0.02025003731250763, 0.06338128447532654, 0.05602066591382027, 0.031907133758068085, -0.006011730059981346, 0.027410823851823807, -0.010999301448464394, 0.013797003775835037, -0.044796548783779144, 0.0630149245262146, 0.05465511977672577, -0.04806053638458252, 0.05089154466986656, 0.04809384047985077, -0.013880268670618534, 0.05199063941836357, -0.034238550812006, 0.00831400603055954, -0.017718782648444176, 0.028892941772937775, -0.014962713234126568, -0.03856832906603813, 0.011948521248996258, 0.04972583428025246, 0.0095338374376297, 0.009816939011216164, -0.03032509796321392, 0.03328933194279671, -0.02944248914718628, 0.058485306799411774, 0.013638800010085106, 0.008742820471525192, -0.008592943660914898, -0.053189657628536224, -0.07460540533065796, -0.0016819521551951766, 0.013622147031128407, 0.00207433826290071, -0.09572139382362366, -0.010033427737653255, 0.05958440527319908, -0.03413863480091095, 0.030041998252272606, 0.0033077006228268147, -0.008709514513611794, 0.04439687728881836, -0.01325578149408102, -0.025412466377019882, 0.04389728605747223, -0.061049867421388626, -0.004796061664819717, 0.006998419761657715, 0.022098520770668983, -0.012539702467620373, 0.013239128515124321, 0.021365787833929062, 0.01298933383077383, 0.013755370862782001, 0.030991217121481895, -0.0354708731174469, 0.006094994954764843, 0.06947628408670425, -0.0288762878626585, -0.03863494098186493, -0.005612058099359274, 0.006611237768083811, 0.01639487035572529, 0.026644786819815636, -0.016486462205648422, 0.015487282536923885, 0.03617030009627342, 0.019284164533019066, 0.00636144308373332, -0.05958440527319908, -0.033922143280506134, -0.0014238308649510145, 0.004504634533077478, -0.017102623358368874, 0.016486462205648422, 0.013122557662427425, -0.005112468730658293, 0.0684104934334755, 0.015520588494837284, -0.03174060210585594, 0.050791624933481216, -0.014130063354969025, -0.0016507278196513653, 0.018451515585184097, 0.01161546166986227, -0.048959795385599136, -0.018967757001519203, 0.068477101624012, 0.03317276015877724, 0.015345731750130653, 0.033389247953891754, -0.03237341716885567, 0.010824444703757763, 0.020832892507314682, 0.10364822298288345, -0.053722552955150604, -0.013497250154614449, 0.0011813215678557754, 0.0002932487695943564, 0.08466380834579468, -0.025146018713712692, 0.03500458970665932, -0.05668678507208824, -0.015320752747356892, 0.022248396649956703, 0.008480535820126534, 0.04076652601361275, 0.03257325291633606, -0.09738669544458389, -0.05592074617743492, -0.00449214456602931, 0.04106627777218819, -0.02899285964667797, 0.0393676720559597, 0.03257325291633606, -0.005587078630924225, 0.022631416097283363, 0.030941259115934372, 0.019350776448845863, -0.06701163947582245, -0.031823866069316864, 0.0644470751285553, -0.02799367904663086, 0.02467973344027996, 0.023197617381811142, -0.02101607620716095, 0.010516364127397537, -0.006086668465286493, -0.005491324234753847, -0.03322272002696991, 0.04289810732007027, 0.013572188094258308, 0.003913453314453363, 0.0498923622071743, 0.05778588354587555, -0.10224936902523041, -0.022331662476062775, -0.031191054731607437, -0.04572911560535431, -0.016503114253282547, -0.022747987881302834, -0.03916783630847931, 0.04672829434275627, 0.03840180113911629, -0.020816240459680557, 0.021915337070822716, 0.040366850793361664, 0.012856109999120235, -0.05388908088207245, -0.018784575164318085, 0.022215090692043304, 0.006806910503655672, 0.0108161186799407, 0.004725286271423101, 0.005749445408582687, 0.045329444110393524, 0.01639487035572529, -0.04046677052974701, 0.002897620666772127, 0.00008228919614339247, 0.019733795896172523, 0.046661682426929474, -0.011815297417342663, 0.003869738895446062, 0.020116813480854034, 0.03970073163509369, -0.08259884268045425, -0.06298161298036575, -0.024396633729338646, 0.010058406740427017, 0.0029371713753789663, 0.005828547291457653, 0.06947628408670425, -0.054821647703647614, 0.003572066780179739, 0.03946759179234505, 0.0009846081957221031, -0.020083507522940636, -0.09751991927623749, -0.033505819737911224, 0.003734433325007558, 0.06777767837047577, 0.0016798705328255892, -0.03660327568650246, -0.0035241893492639065, -0.0029288448859006166, -0.029625672847032547, 0.057919107377529144, -0.04812714830040932, 0.0551547110080719, 0.006265688221901655, -0.004650347866117954, -0.008926003240048885, 0.023813778534531593, -0.01945069432258606, 0.04779408499598503, -0.006761114578694105, 0.00476691871881485, 0.016469808295369148, 0.04516291245818138, -0.010258243419229984, -0.0021794603671878576, -0.032023701816797256, -0.008126660250127316, -0.013488923199474812, 0.018851187080144882, -0.03680311143398285, -0.022514844313263893, 0.014013492502272129, -0.006827726494520903, 0.02532920055091381, 0.03487136587500572, 0.06274847686290741, 0.024729693308472633, 0.018251679837703705, 0.005091652274131775, -0.08579621464014053, -0.05811894312500954, -0.007960130460560322, 0.013597168028354645, -0.04622870683670044, -0.01986701972782612, 0.024896223098039627, -0.0644470751285553, 0.00920910481363535, 0.03490466997027397, 0.01803519017994404, -0.004082064609974623, 0.017369071021676064, 0.033389247953891754, 0.05965101718902588, -0.011657094582915306, 0.005757771898061037, 0.031141094863414764, -0.011923542246222496, 0.004537940490990877, 0.03550417721271515, -0.011890236288309097, -0.010058406740427017, 0.00804755836725235, 0.023747166618704796, 0.034838058054447174, -0.061049867421388626, -0.055587686598300934, 0.022181784734129906, -0.07187431305646896, -0.03946759179234505, 0.057685963809490204, -0.04416373372077942, 0.037202782928943634, -0.06348120421171188, 0.06381426751613617, -0.012248275801539421, 0.010291549377143383, -0.0029933752957731485, -0.053156349807977676, -0.02651156298816204, -0.05745282396674156, -0.036370135843753815, 0.00012658875493798405, -0.011398972943425179, -0.02532920055091381, 0.03210696950554848, -0.062115658074617386, -0.0058701797388494015, 0.036636583507061005, -0.04226529225707054, -0.018468167632818222, 0.005087489262223244, -0.03463822230696678, 0.008876044303178787, 0.002500030444934964, 0.029242653399705887, 0.05465511977672577, -0.005441365297883749, -0.03172395005822182, -0.017102623358368874, -0.03207366168498993, -0.07407251000404358, 0.005229039583355188, -0.03307284042239189, -0.016802869737148285, -0.011357340030372143, 0.028659798204898834, 0.05195733532309532, 0.023214271292090416, 0.009234083816409111, -0.04512960836291313, -0.0038822286296635866, 0.06907661259174347, 0.017685476690530777, -0.015187528915703297, -0.05272337421774864, -0.06784428656101227, -0.01686115376651287, -0.004621205385774374, -0.011390646919608116, -0.046361930668354034, 0.030241833999753, -0.027377517893910408, 0.0643804669380188, -0.023197617381811142, 0.017102623358368874, -0.06514650583267212, -0.0008685576030984521, -0.012456437572836876, -0.044763240963220596, -0.017419029027223587, -0.019100980833172798, -0.02406357415020466, 0.017602212727069855, 0.04023362696170807, -0.036903031170368195, -0.011973501183092594, 0.015312425792217255, 0.04776078090071678, -0.02811025083065033, 0.028576534241437912, 0.05129121616482735, -0.012115051969885826, 0.03970073163509369, -0.017219193279743195, -0.05731959640979767, -0.015320752747356892, -0.0008935370715335011, -0.013871942646801472, 0.008355638943612576, 0.06920983642339706, -0.015279119834303856, 0.03780229017138481, 0.031041176989674568, -0.002256480511277914, -0.0643804669380188, 0.08792779594659805, -0.02536250650882721, 0.023464065045118332, 0.08319834619760513, 0.010824444703757763, 0.001167791080661118, 0.0026290910318493843, 0.01785200648009777, 0.047461025416851044, 0.031224360689520836, -0.05358932912349701, -0.06464691460132599, -0.04589564725756645, -0.02128252387046814, -0.013372352346777916, 0.011140851303935051, -0.0012042195303365588, -0.06807743012905121, -0.011598808690905571, -0.010949342511594296, -0.043231166899204254, 0.018717963248491287, -0.011840277351439, -0.043497614562511444, 0.036636583507061005, -0.03047497570514679, -0.01567879132926464, -0.03307284042239189, -0.0682106539607048, -0.001078281202353537, 0.009891876950860023, -0.030774729326367378, 0.07493846118450165, 0.00919245183467865, -0.00803090538829565, -0.03437177464365959, 0.046328622847795486, -0.012456437572836876, 0.020916158333420753, -0.052923209965229034, 0.021865379065275192, -0.022065214812755585, -0.03250664100050926, -0.010474732145667076, 0.01154052373021841, -0.02875971794128418, 0.0023668063804507256, 0.051391132175922394, -0.03317276015877724, 0.0057119764387607574, 0.008926003240048885, -0.013722064904868603, 0.0031474155839532614, 0.006290667690336704, 0.02784380316734314, -0.014737897552549839, -0.014604673720896244, -0.060250524431467056, -0.045296136289834976, -0.000020816240066778846, 0.005995077081024647, 0.03189047798514366, -0.0524902306497097, -0.018068496137857437, -0.0578191876411438, 0.026228461414575577, -0.06657866388559341, -0.021082688122987747, 0.019583918154239655, 0.028626492246985435, 0.041366033256053925, -0.03696964308619499, 0.026678092777729034, 0.05542115867137909, 0.01850147359073162, 0.05542115867137909, -0.052390310913324356, 0.00879277940839529, -0.021449053660035133, -0.003320190357044339, -0.025462424382567406, 0.05209055915474892, 0.024163492023944855, 0.029925426468253136, -0.007385601755231619, 0.0009762816480360925, 0.00022312406508717686, -0.014354879036545753, -0.05941787362098694, -0.0015164631186053157, -0.05458850786089897, 0.04129942134022713, -0.03890138864517212, -0.0034804753959178925, -0.03177390992641449, 0.04199884459376335, -0.004027942195534706, 0.003869738895446062, -0.076137475669384, 0.012822804041206837, -0.016736255958676338, -0.03760245442390442, -0.02063305675983429, -0.06784428656101227, -0.0072107454761862755, -0.006199076306074858, 0.033355943858623505, -0.04129942134022713, -0.031940437853336334, -0.022781293839216232, 0.017685476690530777, 0.009392287582159042, 0.028776369988918304, -0.05179080367088318, 0.05915142595767975, 0.0026561522390693426, 0.019001062959432602, 0.0007155582425184548, 0.007498009596019983, 0.0006421810248866677, -0.03382222726941109, -0.038201961666345596, -0.009200777858495712, -0.017785394564270973, -0.029758896678686142, 0.04756094515323639, -0.006174096837639809, 0.035370953381061554, -0.04826037213206291, -0.026328379288315773, 0.05655356124043465, 0.01253137644380331, 0.038235269486904144, -0.02807694487273693, -0.04969252645969391, 0.00495842844247818, -0.002579132094979286, -0.020916158333420753, 0.05682000890374184, 0.04156586900353432, 0.01666131801903248, -0.02662813477218151, -0.026611480861902237, -0.016802869737148285, 0.006240708753466606, -0.043764062225818634, 0.011956848204135895, 0.0419655404984951, 0.0917912945151329, -0.03215692564845085, -0.049559302628040314, -0.0709417462348938, -0.020150119438767433, 0.005037529859691858, -0.029609018936753273, 0.019350776448845863, -0.03836849331855774, -0.03032509796321392, 0.003998799715191126, 0.04229860007762909, -0.0049792444333434105, 0.01697772555053234, -0.019001062959432602, -0.010499711148440838, -0.018051844090223312, -0.006332300137728453, -0.04183231666684151, 0.04263165965676308, -0.06934306025505066, -0.046928130090236664, -0.04516291245818138, -0.0432644747197628, -0.011049260385334492, -0.03378891944885254, 0.04566250368952751, -0.01803519017994404, -0.02864314615726471, -0.020116813480854034, -0.012439784593880177, -0.009500531479716301, -0.015920260921120644, -0.05731959640979767, -0.01321414951235056, -0.02128252387046814, 0.03185717388987541, 0.03527103736996651, 0.021615583449602127, -0.007772783748805523, -0.04992567002773285, 0.006694502662867308, 0.014671285636723042, -0.040599994361400604, -0.055254627019166946, 0.0223150085657835, -0.04879326745867729, 0.010957668535411358, -0.012098398990929127, 0.009492205455899239, 0.026844622567296028, -0.021948643028736115, -0.02997538633644581, 0.038201961666345596, 0.018218373879790306, 0.015279119834303856, -0.005141611211001873, -0.03783559799194336, -0.020116813480854034, -0.02902616560459137, 0.005478834267705679, -0.017668824642896652, 0.05072501301765442, 0.06298161298036575, 0.057652659714221954, 0.04909301921725273, -0.0009216390317305923, -0.07240720838308334, -0.030125262215733528, -0.03733600676059723, -0.019633878022432327, 0.028210168704390526, -0.021265869960188866, 0.01830163784325123, 0.035570789128541946, 0.01823502592742443, 0.016719603911042213, 0.0023418269120156765, 0.016769563779234886, 0.039267756044864655, 0.020233385264873505, -0.01655307412147522, -0.0367031954228878, 0.06564609706401825, 0.0203666090965271, 0.05039195343852043, -0.011457258835434914, 0.004342267755419016, -0.018284985795617104, 0.01445479691028595, 0.03870155289769173, 0.03272312879562378, 0.05881836637854576, 0.015820343047380447 ]
729,354
tinytuya.BulbDevice
set_scene
Set to scene mode Args: scene(int): Value for the scene as int from 1-4. nowait(bool): True to send without waiting for response.
def set_scene(self, scene, nowait=False): """ Set to scene mode Args: scene(int): Value for the scene as int from 1-4. nowait(bool): True to send without waiting for response. """ if not 1 <= scene <= 4: return error_json( ERR_RANGE, "set_scene: The value for scene needs to be between 1 and 4." ) if scene == 1: s = self.DPS_MODE_SCENE_1 elif scene == 2: s = self.DPS_MODE_SCENE_2 elif scene == 3: s = self.DPS_MODE_SCENE_3 else: s = self.DPS_MODE_SCENE_4 payload = self.generate_payload( CONTROL, {self.DPS_INDEX_MODE[self.bulb_type]: s} ) data = self._send_receive(payload, getresponse=(not nowait)) return data
(self, scene, nowait=False)
[ -0.014820298179984093, 0.021882811561226845, -0.09250793606042862, -0.028579389676451683, -0.001684436690993607, 0.05448746681213379, -0.054414279758930206, 0.02859768643975258, -0.01634806953370571, -0.014628183096647263, -0.03655673563480377, 0.04347287490963936, -0.06363580375909805, 0.034233059734106064, -0.010438247583806515, -0.051413629204034805, 0.03496492654085159, 0.01388716883957386, -0.026438681408762932, -0.02598126418888569, -0.005543889477849007, 0.014417772181332111, 0.021407097578048706, 0.035422343760728836, -0.0008616585400886834, -0.023383136838674545, 0.01449095830321312, 0.01997995749115944, 0.0032888255082070827, -0.0017804942326620221, 0.0034374860115349293, -0.021791327744722366, 0.006056196056306362, 0.01342060323804617, 0.0032339354511350393, 0.023200171068310738, -0.03919145464897156, -0.011920277029275894, -0.042887382209300995, -0.02837812714278698, -0.07940752804279327, -0.02027270384132862, -0.002490633400157094, 0.02751818299293518, -0.061623167246580124, -0.009143758565187454, 0.07124721258878708, 0.022358523681759834, 0.02837812714278698, -0.0035564142744988203, 0.04753473401069641, -0.027847524732351303, -0.019705507904291153, -0.003952079452574253, -0.018058808520436287, 0.030756693333387375, -0.04731517657637596, 0.066416896879673, 0.010859070345759392, -0.03523937612771988, -0.0006884119939059019, 0.00601045461371541, -0.02559703402221203, -0.01877237856388092, -0.007396426983177662, -0.01345719676464796, -0.049913302063941956, 0.03494663164019585, 0.03952079638838768, 0.04870572313666344, 0.028231753036379814, 0.02559703402221203, 0.017738616093993187, 0.025340881198644638, 0.05251142755150795, -0.00786756630986929, -0.12829621136188507, 0.09426441788673401, -0.04779088869690895, 0.057122185826301575, 0.06927116960287094, -0.016750596463680267, 0.023822257295250893, 0.025359177961945534, -0.05972031503915787, -0.005333477631211281, -0.016128510236740112, -0.01759224385023117, -0.02799389697611332, -0.10956043004989624, 0.015908950939774513, 0.017610540613532066, -0.04775429517030716, 0.008320407941937447, -0.013182747177779675, 0.03670310974121094, 0.014811149798333645, -0.01890045404434204, -0.026548460125923157, -0.032165538519620895, -0.07234501093626022, 0.04709561541676521, -0.059683721512556076, -0.055146146565675735, 0.01890045404434204, -0.024974947795271873, -0.004464386031031609, 0.021590065211057663, 0.0020755280274897814, 0.009285557083785534, 0.007172292564064264, 0.013868872076272964, -0.047168802469968796, 0.031616635620594025, -0.07139358669519424, 0.0076022641733288765, -0.002252776874229312, -0.03368416056036949, -0.019449355080723763, -0.013018077239394188, -0.029695486649870872, 0.02554214373230934, 0.0016066759126260877, 0.028433017432689667, 0.027243733406066895, 0.061184048652648926, -0.014070135541260242, 0.06656326353549957, 0.018150292336940765, -0.03878892958164215, 0.014170766808092594, 0.005177956074476242, -0.0216449536383152, -0.04427792876958847, -0.026091044768691063, 0.009235241450369358, -0.06275755912065506, -0.018955344334244728, -0.012615550309419632, 0.0002495779481250793, -0.02559703402221203, 0.015039858408272266, 0.001229307148605585, 0.018973641097545624, 0.004789152182638645, 0.013631015084683895, 0.009088868275284767, -0.01815943978726864, -0.0056902626529335976, 0.048376381397247314, 0.05320670083165169, 0.044643864035606384, -0.0026049877051264048, 0.023438027128577232, -0.027225436642766, -0.052913956344127655, 0.002819973509758711, -0.04782748222351074, 0.01037420891225338, 0.028359830379486084, -0.0332084484398365, -0.012158134020864964, -0.0030669784173369408, 0.013173598796129227, 0.010813329368829727, -0.016384663060307503, -0.06411151587963104, 0.037270307540893555, 0.0161834005266428, 0.017253754660487175, 0.005589630920439959, 0.020858198404312134, -0.08928772807121277, 0.02567022107541561, -0.007300369441509247, 0.010996295139193535, -0.049620553851127625, -0.020473968237638474, 0.004388912580907345, -0.014454364776611328, 0.06312349438667297, 0.009363317862153053, -0.023639291524887085, 0.028817247599363327, 0.03339141234755516, -0.055914606899023056, -0.042923975735902786, 0.02292572148144245, 0.05130384862422943, 0.020803308114409447, 0.04508298262953758, 0.06605096161365509, -0.019998254254460335, -0.05979350209236145, 0.013631015084683895, 0.00789958517998457, 0.021425394341349602, -0.11036548018455505, 0.04742495343089104, 0.005360922776162624, 0.04446089640259743, -0.04281419515609741, 0.009363317862153053, 0.016832930967211723, 0.05807361379265785, -0.03820343688130379, 0.043399687856435776, -0.005598779302090406, 0.013987800106406212, -0.012716182507574558, -0.07315006852149963, -0.011078630574047565, 0.049400996416807175, 0.00359529466368258, 0.06744150817394257, -0.07838290929794312, -0.018808972090482712, 0.03598954156041145, 0.03642866015434265, -0.03410498425364494, -0.021809624508023262, 0.03723371401429176, 0.0076617281883955, -0.025962967425584793, -0.08160312473773956, -0.02468220144510269, -0.0212241318076849, -0.06411151587963104, -0.05181615427136421, 0.03827662393450737, -0.023566104471683502, 0.03683118522167206, -0.04036244377493858, -0.03434284031391144, 0.01536919828504324, 0.0164029598236084, 0.048669129610061646, -0.0004288280906621367, -0.026182526722550392, -0.02460901439189911, 0.03304377570748329, -0.016009582206606865, 0.021882811561226845, -0.0019634608179330826, -0.02460901439189911, 0.059171415865421295, 0.024700498208403587, -0.02781093120574951, -0.04742495343089104, 0.033373117446899414, -0.0011892832117155194, -0.049730334430933, -0.043180130422115326, 0.05232845991849899, -0.010712697170674801, 0.002598126418888569, 0.03004312328994274, 0.03745327144861221, -0.028176864609122276, 0.017445869743824005, -0.05847614258527756, -0.031195813789963722, -0.05002308264374733, 0.03403179720044136, 0.02263297513127327, -0.0031378779094666243, 0.02027270384132862, 0.019321277737617493, -0.02687780000269413, -0.018973641097545624, 0.04380221664905548, 0.030939660966396332, -0.028359830379486084, -0.028524501249194145, -0.009614896960556507, -0.03518448770046234, -0.023200171068310738, -0.05928119271993637, -0.006056196056306362, 0.009262686595320702, 0.016082769259810448, -0.0026461551897227764, 0.007204311899840832, 0.06718534976243973, -0.02473709173500538, -0.059427566826343536, 0.016832930967211723, 0.06363580375909805, 0.025798296555876732, -0.03061032108962536, -0.027316920459270477, 0.051157474517822266, -0.01217643078416586, -0.00028717186069115996, 0.003286538412794471, -0.015360049903392792, -0.05953734740614891, 0.024554124101996422, 0.018589410930871964, 0.002696471055969596, 0.07882203161716461, -0.05181615427136421, 0.03125070407986641, 0.017473315820097923, 0.024407749995589256, -0.05269439518451691, 0.0070213451981544495, 0.016649965196847916, 0.005699411034584045, -0.019357871264219284, -0.02665824070572853, -0.030976254492998123, 0.02279764413833618, -0.020986273884773254, -0.018150292336940765, 0.0394476093351841, -0.0037531033158302307, 0.007533651776611805, 0.03593464940786362, 0.037050746381282806, 0.003974950406700373, -0.0480104498565197, 0.019431058317422867, 0.05426790937781334, 0.06758788228034973, 0.0042516873218119144, 0.007968197576701641, 0.014060987159609795, -0.014170766808092594, 0.03798387572169304, -0.12053842842578888, 0.0325680635869503, -0.009285557083785534, 0.010932257398962975, 0.01101459190249443, -0.03245828300714493, 0.011124372482299805, -0.021022867411375046, 0.003625026671215892, 0.039411015808582306, -0.009441078640520573, -0.018662597984075546, -0.0054112384095788, 0.023456323891878128, 0.05876888707280159, 0.05210890248417854, 0.029988233000040054, 0.011417118832468987, 0.06956391781568527, 0.025523846969008446, -0.0728573203086853, -0.018653450533747673, 0.06125723570585251, 0.01966891437768936, -0.038130249828100204, 0.005324329249560833, 0.05210890248417854, -0.04219210892915726, -0.04599781706929207, -0.061293825507164, -0.01251491904258728, -0.037910688668489456, -0.03137877956032753, 0.025267694145441055, -0.037617944180965424, 0.0188638623803854, -0.043875403702259064, -0.017766062170267105, 0.10187582671642303, -0.02078501135110855, 0.018552817404270172, -0.01783924736082554, -0.021333910524845123, 0.05499977618455887, 0.006541057489812374, 0.03051883727312088, -0.011837942525744438, -0.0407283753156662, 0.04705902189016342, -0.032128944993019104, 0.003263667691498995, -0.052657801657915115, 0.042631227523088455, -0.007410149089992046, 0.044387709349393845, -0.031909383833408356, -0.0010783596662804484, -0.022870831191539764, -0.04054540768265724, -0.036629922688007355, 0.053170107305049896, 0.025816593319177628, 0.010218687355518341, -0.016640815883874893, -0.05576823279261589, -0.028945323079824448, -0.017921583727002144, 0.02254149131476879, 0.06649007648229599, 0.0328059196472168, -0.06769765913486481, 0.02371247671544552, -0.029329553246498108, 0.006952732801437378, -0.00201949430629611, 0.03476366400718689, 0.0570124089717865, -0.0017313219141215086, 0.011179261840879917, -0.07421126961708069, 0.026511866599321365, -0.003131016856059432, -0.06714875996112823, 0.01682378351688385, 0.033446304500103, -0.00823349878191948, 0.05284076929092407, 0.024462640285491943, 0.000788471894338727, 0.021059460937976837, 0.03805706277489662, 0.06480678915977478, 0.03103114292025566, 0.04274100810289383, 0.04021606966853142, -0.008439336903393269, 0.006746895145624876, 0.027188843116164207, 0.009377040900290012, 0.029951639473438263, -0.033629268407821655, -0.024316268041729927, -0.04080156236886978, -0.048852093517780304, 0.01133478432893753, -0.013109560124576092, -0.004514702130109072, -0.024974947795271873, -0.00998997874557972, 0.018937047570943832, 0.08797036111354828, 0.002373992232605815, -0.058183394372463226, -0.009125461801886559, 0.032000865787267685, -0.06963710486888885, -0.014436068944633007, -0.004334022291004658, 0.03211064636707306, 0.008896753191947937, -0.03130559250712395, 0.056609880179166794, -0.054670434445142746, 0.019394464790821075, 0.0540117546916008, 0.010703548789024353, 0.017903286963701248, 0.0014076996594667435, 0.017116529867053032, -0.03445262089371681, 0.028067084029316902, -0.0336475670337677, -0.04277760162949562, 0.04859594255685806, 0.029549114406108856, 0.0750163272023201, 0.03853277489542961, -0.0072592017240822315, -0.015442385338246822, -0.04006969556212425, -0.05858591943979263, -0.012423435226082802, 0.001469450886361301, -0.028561092913150787, 0.04574166238307953, -0.0000983445715974085, 0.0010634936625137925, -0.004167065490037203, -0.012697885744273663, 0.0026278584264218807, -0.011764755472540855, -0.04453408345580101, 0.0094319311901927, 0.05020604655146599, -0.045631881803274155, -0.016338922083377838, -0.009816160425543785, 0.025926373898983, -0.02910999394953251, 0.010877367109060287, -0.002913743956014514, -0.09272749722003937, -0.0317264162003994, 0.023291654884815216, -0.000993165886029601, 0.023639291524887085, -0.022944018244743347, -0.0020949682220816612, -0.04226529598236084, -0.010813329368829727, -0.002339686034247279, 0.0005969287012703717, -0.08226180821657181, 0.002367130946367979, 0.002344260225072503, -0.020711824297904968, -0.029219774529337883, 0.02314528077840805, 0.01921149715781212, -0.0002887442533392459, -0.008576561696827412, 0.03520278260111809, -0.01847963221371174, -0.048852093517780304, -0.015634499490261078, 0.03476366400718689, 0.027627963572740555, 0.04559528827667236, -0.04581484943628311, -0.04105771705508232, -0.004041275940835476, -0.02451753057539463, 0.0766996219754219, 0.04427792876958847, 0.02460901439189911, 0.01954083889722824, 0.03432454168796539, -0.03952079638838768, 0.032385095953941345, 0.03415987268090248, -0.004757132846862078, 0.02468220144510269, 0.032677844166755676, 0.10516922920942307, 0.05181615427136421, -0.0037645387928932905, 0.039374422281980515, -0.017189716920256615, 0.004338596481829882, -0.04420474171638489, -0.023438027128577232, -0.03622739762067795, -0.0034123279619961977, 0.01449095830321312, 0.010584620758891106, -0.07190589606761932, 0.018369851633906364, 0.0055942051112651825, 0.04896187409758568, -0.00516423350200057, -0.024334564805030823, 0.0019600302912294865, 0.03670310974121094, -0.026566756889224052, 0.02546895667910576, 0.03511130064725876, 0.03908167779445648, -0.03882552310824394, 0.0076068383641541, -0.024663904681801796, -0.034781958907842636, -0.044131554663181305, 0.01605532318353653, 0.01170071680098772, -0.01048398856073618, -0.028176864609122276, 0.01777520962059498, -0.023803960531949997, 0.05950075387954712, -0.031616635620594025, 0.0784560963511467, -0.03179960325360298, 0.011179261840879917, 0.012267913669347763, -0.025139616802334785, 0.0336475670337677, 0.02091308869421482, -0.019266387447714806, 0.008709212765097618, 0.0647336021065712, 0.02812197431921959, 0.030335869640111923, -0.006939010228961706, -0.051925934851169586, -0.02100457064807415, 0.04343628138303757, 0.0031904808711260557, 0.025066431611776352, 0.04698583483695984, -0.022486601024866104, 0.011417118832468987, 0.033373117446899414, 0.006541057489812374, -0.02949422411620617, 0.005347200203686953, 0.02477368339896202, 0.03642866015434265, -0.025322584435343742, 0.010795032605528831, 0.02460901439189911, -0.03673970326781273, -0.019065124914050102, 0.008352427743375301, -0.01570768654346466, 0.011874535121023655, 0.012075798586010933, -0.039667170494794846, 0.019943363964557648, -0.009861902333796024, 0.00015409222396556288, 0.016165103763341904, -0.016750596463680267, -0.025231100618839264, -0.00023213893291540444, -0.015780873596668243, -0.02748159132897854, -0.006824655923992395, 0.02100457064807415, 0.011179261840879917, -0.028451314195990562, -0.0009737256332300603, -0.018461335450410843, -0.04343628138303757, -0.07604093849658966, -0.01380483340471983, -0.04080156236886978, 0.025103023275732994, -0.05635372921824455, 0.00037851225351914763, -0.03805706277489662, 0.02554214373230934, -0.05232845991849899, 0.007968197576701641, -0.0887022316455841, -0.02018122188746929, -0.020730121061205864, -0.010410802438855171, 0.058183394372463226, 0.03545893728733063, 0.004052711185067892, 0.06480678915977478, 0.03754475712776184, 0.0055942051112651825, -0.07033237814903259, -0.0015952404355630279, 0.0385693684220314, -0.01498496811836958, 0.03908167779445648, -0.018186884000897408, 0.012213023379445076, -0.005950990132987499, -0.04877891018986702, -0.012652143836021423, 0.015103897079825401, 0.04171639680862427, 0.04098453000187874, 0.07735829800367355, 0.021315613761544228, 0.022303635254502296, 0.01656763069331646, -0.05602438747882843, 0.028579389676451683, -0.0033917443361133337, -0.013274230062961578, 0.02052885852754116, -0.009660638868808746, -0.01163667906075716, -0.022779347375035286, -0.020711824297904968, 0.01144456397742033, 0.014088432304561138, -0.0638919547200203, -0.010447395965456963, -0.003949792589992285, 0.06831974536180496, 0.001351666171103716, -0.017116529867053032, -0.03218383342027664, 0.033116962760686874, -0.008851011283695698, -0.007908733561635017, 0.01804051175713539, -0.03231190890073776, -0.012460028752684593, 0.03434284031391144, 0.017262903973460197, -0.04402177408337593, 0.013274230062961578, -0.009139183908700943, -0.0018845564918592572, 0.008988237008452415, -0.034178171306848526, -0.06422129273414612, 0.03304377570748329, -0.021882811561226845, -0.06718534976243973, 0.012148985639214516, 0.06202569231390953, -0.06297712028026581, 0.08116400241851807, 0.02821345627307892, -0.01697930507361889, -0.015579610131680965, -0.0037531033158302307, -0.022779347375035286, -0.0033597250003367662, -0.01643955335021019, 0.04036244377493858, 0.0006924144108779728, -0.0557316392660141, 0.05335307493805885, 0.04076496884226799, 0.040435630828142166, 0.12449050694704056, -0.027756040915846825, 0.029512520879507065, -0.05580482631921768, 0.04958396032452583, -0.05349944904446602, -0.0004013830912299454, -0.07911477982997894, 0.036757998168468475, -0.012697885744273663, -0.04680286720395088, 0.027225436642766, -0.006047047674655914, 0.02374907024204731, 0.08109081536531448, 0.0698932632803917, 0.001109235337935388, -0.005781746003776789, -0.007186015136539936, -0.041387055069208145, -0.07428445667028427, -0.023639291524887085, -0.033592674881219864, 0.04032585024833679, -0.04105771705508232, -0.001701589790172875, 0.029384443536400795, -0.021443691104650497, 0.014060987159609795, 0.014994116500020027, -0.07190589606761932, -0.06982007622718811, 0.038130249828100204, 0.009523414075374603, -0.011508602648973465, -0.011389673687517643, 0.06206228584051132, 0.05434109643101692, 0.04705902189016342, 0.02872576378285885, 0.05624394863843918, 0.03534915670752525, -0.057378340512514114, -0.009889347478747368, 0.02713395468890667, 0.03227531537413597, -0.0035404046066105366, -0.016320625320076942, 0.04083815589547157, 0.002378566423431039, 0.01736353524029255, 0.005864080972969532, 0.04402177408337593, -0.0049721188843250275, -0.021535174921154976 ]
729,355
tinytuya.core
set_sendWait
null
def set_sendWait(self, s): self.sendWait = s
(self, s)
[ 0.005107562988996506, 0.03161167353391647, -0.052490562200546265, 0.04614062234759331, -0.014925817959010601, -0.00223887269385159, -0.009326479397714138, 0.058771487325429916, -0.005055797286331654, -0.023311885073781013, -0.025796644389629364, -0.024709561839699745, -0.0186357032507658, -0.0025386831257492304, -0.06626027822494507, -0.03185324743390083, 0.013873245567083359, -0.034648604691028595, -0.025278985500335693, -0.011379857547581196, 0.011759473942220211, 0.03692629933357239, 0.03126657009124756, 0.028678275644779205, -0.01575407199561596, 0.02766021527349949, 0.0011248285882174969, -0.004272839054465294, 0.047590065747499466, -0.007708796765655279, 0.015158764086663723, -0.06249862536787987, -0.017186259850859642, -0.03402741253376007, 0.016418399289250374, 0.030800675973296165, -0.03796161711215973, 0.017893726006150246, 0.0022884816862642765, -0.012380664236843586, -0.0471414253115654, 0.000662710634060204, -0.0023057369980961084, 0.01784195937216282, 0.004706377629190683, 0.04524334520101547, 0.0050299144349992275, 0.12237445265054703, 0.03394113853573799, 0.0409640371799469, 0.03342347964644432, 0.04796968027949333, -0.05863344296813011, -0.03979067876935005, -0.028712786734104156, 0.05863344296813011, 0.017807450145483017, 0.033043861389160156, -0.014054425992071629, 0.015270923264324665, 0.01272576954215765, 0.03972165659070015, 0.005025600548833609, 0.01410619169473648, -0.010724157094955444, 0.005836598575115204, 0.001291989115998149, 0.03633962199091911, 0.05124818533658981, 0.03996323049068451, 0.061946459114551544, 0.031128525733947754, -0.08241122215986252, -0.00042679859325289726, -0.01927414909005165, 0.03150814399123192, -0.06108369305729866, 0.017367439344525337, -0.0472104474902153, 0.03820319101214409, 0.04872891306877136, 0.03544234484434128, -0.007337808143347502, -0.0069625056348741055, -0.01590936817228794, 0.021741652861237526, -0.000057225519412895665, -0.029989678412675858, -0.035010963678359985, -0.020827123895287514, -0.012751652859151363, 0.03547685593366623, 0.024554263800382614, 0.01972278580069542, 0.030973229557275772, 0.030973229557275772, -0.021293016150593758, -0.02905789203941822, -0.0279363002628088, -0.004169307183474302, -0.05283566936850548, 0.021189484745264053, -0.0020566137973219156, -0.0533878393471241, 0.053284306079149246, -0.076820507645607, -0.006362884771078825, -0.06191194802522659, 0.00776487635448575, -0.016056038439273834, 0.032923076301813126, -0.004354801494628191, -0.056769873946905136, 0.01522778533399105, 0.002286324743181467, 0.04417352005839348, -0.0004219455295242369, -0.003778906539082527, 0.03269875794649124, 0.002338090445846319, 0.0008557540713809431, 0.06560457497835159, -0.01944670081138611, -0.020395740866661072, 0.0027306482661515474, 0.043552327901124954, 0.003923419397324324, 0.050281889736652374, 0.07847701758146286, -0.01920512691140175, 0.0006184939411468804, 0.00639308150857687, 0.020292209461331367, 0.039859697222709656, -0.008092726580798626, 0.03965263441205025, -0.12099403142929077, 0.04793516919016838, 0.08282534778118134, -0.022897757589817047, -0.04883244261145592, -0.01631486788392067, -0.012449684552848339, -0.02008514665067196, 0.08869214355945587, 0.026745684444904327, -0.012130462564527988, -0.02866102196276188, -0.03823770210146904, 0.022380098700523376, 0.012078696861863136, -0.022794226184487343, -0.06132526695728302, -0.023277373984456062, -0.04997129365801811, 0.019187871366739273, -0.028108851984143257, 0.0005403059767559171, 0.013252055272459984, -0.04790065810084343, -0.017099983990192413, -0.055769067257642746, 0.014011288061738014, -0.003377721179276705, -0.0011744375806301832, 0.04272407665848732, -0.024519754573702812, 0.09041766822338104, 0.022552652284502983, 0.01887727715075016, 0.0014516004594042897, 0.05124818533658981, -0.04817674309015274, 0.009662956930696964, 0.028833573684096336, 0.028799062594771385, 0.0015044447500258684, -0.03299209848046303, -0.008049588650465012, -0.026400579139590263, -0.0359945148229599, -0.011854377575218678, -0.012035558000206947, -0.01823883131146431, 0.0435178168118, -0.0472104474902153, -0.01615956984460354, 0.04859086871147156, -0.025624092668294907, -0.01891178824007511, -0.005526003427803516, 0.006475043948739767, -0.01939493604004383, 0.031042249873280525, -0.006630341522395611, 0.05024737864732742, 0.019429445266723633, -0.06398258358240128, 0.009084905497729778, 0.022587161511182785, 0.015779953449964523, -0.03507998585700989, 0.011095145717263222, -0.02909240312874317, 0.06132526695728302, -0.06387905031442642, 0.05808127298951149, -0.03330269083380699, 0.08482696115970612, -0.034407030791044235, -0.057494595646858215, -0.023139331489801407, 0.030248507857322693, 0.0077217379584908485, 0.013778341934084892, -0.05832284688949585, 0.0060220928862690926, 0.005344823002815247, 0.05394000560045242, -0.0014354236191138625, 0.015158764086663723, -0.024623285979032516, 0.012518705800175667, -0.04572649300098419, -0.032439928501844406, 0.010361796244978905, -0.03575294092297554, -0.0793742910027504, 0.0027824139688163996, 0.0009851687354966998, 0.01808353327214718, 0.0795123353600502, 0.014968955889344215, 0.024761328473687172, 0.01799725741147995, -0.014968955889344215, -0.033009350299835205, -0.0019379836739972234, -0.06498339027166367, -0.04565747454762459, 0.0015637598698958755, 0.03954910486936569, -0.021896950900554657, 0.03499370813369751, 0.03207756578922272, -0.0023057369980961084, 0.05559651553630829, 0.01037905178964138, -0.010784550569951534, 0.041826799511909485, 0.038099661469459534, -0.07330042868852615, -0.060980163514614105, -0.05935816466808319, -0.016452910378575325, 0.0279363002628088, 0.045070793479681015, 0.03207756578922272, -0.025037411600351334, 0.06660538166761398, -0.04693436250090599, -0.02120674028992653, -0.08323947340250015, 0.053456857800483704, 0.06922818720340729, -0.021551845595240593, -0.025951942428946495, 0.011095145717263222, -0.05739106237888336, -0.005016972776502371, 0.11202128231525421, -0.01948121190071106, -0.03142186626791954, 0.008644895628094673, -0.0285402350127697, 0.0030994797125458717, -0.006276608444750309, -0.05904757231473923, -0.01236340869218111, -0.04265505447983742, 0.048280276358127594, 0.01728116348385811, 0.057494595646858215, 0.015521124936640263, -0.04572649300098419, 0.015055232681334019, 0.030955974012613297, 0.042309947311878204, -0.06487985700368881, -0.05073052644729614, -0.0359945148229599, 0.02829866111278534, 0.06208449974656105, -0.07806289196014404, 0.020223189145326614, -0.03390662744641304, -0.005832284688949585, 0.032370906323194504, 0.04745202139019966, 0.009550797753036022, 0.061946459114551544, -0.07854603976011276, -0.10063279420137405, 0.03948008269071579, -0.0192396380007267, -0.040101271122694016, 0.023225607350468636, 0.019619254395365715, 0.0093178516253829, -0.01975729689002037, -0.00974060595035553, 0.02881631813943386, -0.03033478371798992, -0.020499274134635925, 0.0893823504447937, 0.04389743506908417, 0.0089813731610775, -0.016081921756267548, -0.006099741905927658, 0.0634649246931076, 0.015098370611667633, -0.04362135007977486, 0.0076656583696603775, 0.03269875794649124, -0.027746491134166718, 0.04268956556916237, 0.0017621954903006554, 0.08061666786670685, -0.029851635918021202, -0.024623285979032516, -0.03592549264431, -0.04165424779057503, -0.002560252323746681, -0.028591999784111977, -0.018894532695412636, 0.07240315526723862, 0.03851378709077835, -0.0020652413368225098, 0.022414609789848328, 0.008282534778118134, -0.007497419603168964, -0.01056023221462965, 0.009645702317357063, 0.022828737273812294, 0.04538138955831528, 0.01202693022787571, 0.005603652447462082, -0.000333512231009081, 0.05583808943629265, 0.0247785821557045, -0.008291162550449371, -0.01427011750638485, 0.024519754573702812, 0.0020501429680734873, 0.03665021434426308, 0.029316721484065056, 0.05790872126817703, -0.001827981323003769, 0.02496839128434658, -0.052007414400577545, -0.027763746678829193, 0.03858280926942825, 0.03930753096938133, -0.037858087569475174, -0.04003225266933441, 0.03554587811231613, -0.020102402195334435, 0.012078696861863136, 0.062188033014535904, -0.0004014548903796822, -0.022069504484534264, -0.010655135847628117, -0.019826317206025124, 0.0018560211174190044, -0.002814767649397254, 0.021862439811229706, -0.08669053018093109, -0.0028039831668138504, -0.01575407199561596, -0.06539751589298248, 0.02921319007873535, -0.05687340348958969, 0.03530430421233177, 0.030075954273343086, 0.048797935247421265, -0.009878648445010185, 0.04869440197944641, -0.03181873634457588, 0.02565860189497471, 0.024985646829009056, 0.01434776559472084, -0.010836316272616386, -0.005754636134952307, 0.05307724326848984, -0.014356393367052078, -0.03723689541220665, 0.036132559180259705, -0.01595250703394413, 0.01495170034468174, -0.013933639042079449, 0.002836336847394705, 0.02388130873441696, -0.043034669011831284, 0.03651217371225357, 0.0120873237028718, 0.043034669011831284, -0.009775116108357906, -0.035287048667669296, -0.0016748406924307346, -0.015037977136671543, -0.057149488478899, 0.029385743662714958, -0.029610062018036842, -0.05107562988996506, -0.01507248729467392, -0.02457151934504509, -0.044069986790418625, 0.010335912927985191, 0.05732204392552376, 0.005271488334983587, -0.028246894478797913, -0.038134168833494186, 0.023070311173796654, 0.0409640371799469, 0.039618123322725296, 0.024675050750374794, 0.02288050204515457, -0.02833317033946514, 0.012768907472491264, 0.0032547772862017155, -0.00328713096678257, 0.0670195072889328, -0.0217589084059, 0.007622520439326763, 0.028074340894818306, 0.01567642204463482, 0.021258505061268806, -0.08096177875995636, -0.0384102538228035, 0.00543109979480505, 0.002676725387573242, -0.005068738479167223, -0.05735655128955841, -0.026762939989566803, 0.05238703265786171, -0.029765360057353973, -0.02705628052353859, 0.017626268789172173, 0.027246087789535522, -0.007186824455857277, -0.031646184623241425, 0.00038069463334977627, 0.010353168472647667, -0.01766940765082836, -0.021793419495224953, -0.010836316272616386, 0.04748653247952461, -0.00011566430475795642, -0.062119010835886, -0.058944039046764374, -0.02790178917348385, -0.011293580755591393, -0.07502596080303192, 0.03644315153360367, -0.005336195696145296, 0.08744975924491882, 0.05935816466808319, -0.005599338561296463, -0.00308222440071404, 0.021827930584549904, 0.022293822839856148, -0.0471414253115654, -0.021931461989879608, -0.01820432022213936, 0.03602902591228485, -0.052041925489902496, -0.009404128417372704, 0.04910852760076523, -0.02536526322364807, -0.02108595333993435, -0.04137816280126572, 0.009283341467380524, 0.03751298040151596, 0.03544234484434128, -0.009870020672678947, -0.031525399535894394, 0.004337546415627003, -0.04596806690096855, -0.01622859202325344, -0.017013706266880035, -0.030248507857322693, 0.011190049350261688, 0.029765360057353973, 0.03231913968920708, 0.01238929107785225, 0.030714400112628937, -0.06670891493558884, 0.0031059505417943, 0.003955773077905178, -0.018687469884753227, -0.02769472636282444, 0.01891178824007511, -0.04023931547999382, -0.0026788823306560516, 0.01772117242217064, -0.056735362857580185, -0.04865989089012146, 0.030283017084002495, -0.009878648445010185, 0.012354780919849873, 0.060738589614629745, 0.022414609789848328, -0.044863730669021606, 0.002351032104343176, 0.04120561107993126, -0.0968366339802742, 0.031249312683939934, -0.02717706747353077, -0.015650538727641106, -0.05435413494706154, 0.032284628599882126, 0.022949524223804474, -0.018687469884753227, -0.014235606417059898, -0.008601757697761059, -0.03235365077853203, 0.020412996411323547, -0.0012682630913332105, 0.032526202499866486, 0.01516739185899496, 0.03466586023569107, 0.010888081975281239, 0.013692065142095089, 0.025520559400320053, 0.08669053018093109, 0.05266311764717102, -0.011207304894924164, 0.007441340014338493, -0.08344653993844986, -0.010413561947643757, -0.03062812238931656, -0.03571842983365059, 0.053491368889808655, -0.00907627772539854, -0.008580188266932964, 0.012475567869842052, -0.021741652861237526, 0.0720580518245697, -0.005547572858631611, -0.02256990782916546, -0.02024044468998909, -0.026711175218224525, -0.05086856707930565, -0.04227543622255325, -0.06149781867861748, -0.0447256863117218, 0.028246894478797913, -0.012052813544869423, 0.030196741223335266, 0.021137718111276627, -0.027280598878860474, 0.000463196454802528, 0.0075189885683357716, 0.010249637067317963, 0.0009150691330432892, -0.017893726006150246, 0.06287824362516403, -0.03419996798038483, 0.01671173982322216, -0.0410330556333065, 0.029006127268075943, 0.0843438133597374, -0.03262973576784134, 0.012656748294830322, 0.022932268679142, 0.0410330556333065, -0.0022798539139330387, -0.0010353168472647667, -0.061946459114551544, 0.0291441697627306, 0.008946863003075123, -0.015055232681334019, -0.017522737383842468, 0.011621431447565556, -0.033009350299835205, -0.0057373810559511185, 0.01445129793137312, -0.019860828295350075, -0.054009027779102325, 0.022776970639824867, -0.035614900290966034, 0.03002418763935566, -0.021051442250609398, -0.003366936696693301, 0.011336719617247581, 0.02517545409500599, 0.09662957489490509, 0.007971939630806446, 0.03716787323355675, 0.03138735517859459, 0.02866102196276188, 0.032612480223178864, 0.0145893394947052, 0.06139428913593292, 0.049522656947374344, -0.021172229200601578, -0.05494081228971481, 0.05290469154715538, 0.017652152106165886, 0.015020721592009068, 0.0069840750657022, -0.003384192008525133, 0.0008918823441490531, 0.04051540046930313, -0.07088468968868256, 0.013044992461800575, -0.008411949500441551, -0.006608772557228804, -0.007311925292015076, 0.008946863003075123, -0.0032483066897839308, 0.03482115641236305, 0.00795468408614397, -0.03996323049068451, -0.03249169513583183, -0.02445073239505291, -0.02821238338947296, -0.00465892581269145, -0.008614698424935341, -0.09138396382331848, -0.06615674495697021, -0.019101595506072044, 0.034924689680337906, 0.005055797286331654, 0.007626833859831095, -0.034493304789066315, -0.03530430421233177, 0.02457151934504509, -0.025675857439637184, -0.03202579915523529, 0.06439670920372009, 0.027763746678829193, -0.0229667779058218, -0.053284306079149246, -0.021034186705946922, 0.0260554738342762, -0.029989678412675858, -0.03126657009124756, -0.01827334240078926, -0.03699532151222229, -0.0217243991792202, 0.030921462923288345, -0.004134796559810638, 0.024951135739684105, -0.0024222100619226694, 0.012630865909159184, 0.009481776505708694, 0.005344823002815247, 0.06450024247169495, -0.021103208884596825, -0.05928914621472359, 0.0014828756684437394, 0.004542452748864889, -0.07067763060331345, 0.0013081659562885761, 0.04348330572247505, -0.04717593640089035, -0.022345587611198425, -0.019740041345357895, -0.07267924398183823, 0.003213796066120267, -0.005595024675130844, -0.011819867417216301, -0.03930753096938133, 0.019653765484690666, -0.009335107170045376, -0.024985646829009056, -0.03782357648015022, -0.016565069556236267, 0.011267698369920254, -0.006626027636229992, -0.004589904565364122, -0.010931219905614853, -0.044794708490371704, 0.0011129656340926886, 0.016651345416903496, -0.008442145772278309, -0.02981712482869625, -0.010698273777961731, 0.02954103983938694, -0.023415416479110718, -0.05607966333627701, -0.08006450533866882, 0.05055797100067139, -0.007924487814307213, -0.06177390366792679, 0.024709561839699745, -0.07820092886686325, -0.019688274711370468, 0.04369037225842476, 0.05611417442560196, -0.0285402350127697, -0.034493304789066315, -0.01332970429211855, -0.005215408746153116, -0.021034186705946922, 0.018894532695412636, -0.007005644030869007, 0.006388767622411251, 0.009033139795064926, 0.02275971509516239, -0.022552652284502983, -0.005448354873806238, 0.03654668480157852, -0.03592549264431, 0.01634937897324562, -0.03114578127861023, -0.0211204644292593, -0.017496854066848755, 0.08082373440265656, -0.021948717534542084, 0.010482583194971085, 0.006418964359909296, 0.004723633173853159, 0.00009126425720751286, -0.02244912087917328, 0.002432994544506073, 0.05711497738957405, 0.04237896949052811, 0.014037170447409153, -0.03578745201230049, -0.000447289232397452, -0.02909240312874317, 0.06670891493558884, 0.007445653434842825, -0.04796968027949333, 0.033768583089113235, -0.006060917396098375, -0.024830348789691925, 0.06360296159982681, -0.02008514665067196, -0.031801480799913406, 0.01760038547217846, -0.07336945086717606, -0.06846895068883896, -0.011388485319912434, -0.002381228841841221, 0.027315109968185425, 0.02517545409500599, -0.02063731662929058, 0.0066130864433944225, -0.028591999784111977, 0.013381469994783401, -0.002663783961907029, 0.049798738211393356, 0.0158662311732769, -0.0818590521812439, 0.09952846169471741, -0.02926495671272278, 0.054216090589761734, -0.000656779098790139, 0.045346878468990326, 0.020930655300617218, 0.034493304789066315, -0.009033139795064926, 0.03816867992281914, 0.01766940765082836, 0.0521109476685524 ]
729,356
tinytuya.core
set_socketNODELAY
null
def set_socketNODELAY(self, nodelay): self.socketNODELAY = nodelay if self.socket: if nodelay: self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1) else: self.socket.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 0)
(self, nodelay)
[ -0.01158624142408371, -0.034559112042188644, 0.005393894389271736, 0.017722176387906075, -0.001906088669784367, -0.011759818531572819, -0.07317991554737091, 0.06043939292430878, -0.03181660175323486, -0.0387423112988472, -0.042213842272758484, -0.05071909725666046, -0.0035518123768270016, -0.026331579312682152, 0.018399124965071678, -0.0321984700858593, -0.052107710391283035, -0.037353698164224625, -0.02884843945503235, -0.0456506609916687, 0.035617928951978683, 0.019700950011610985, 0.01227186992764473, -0.005150887183845043, 0.015075132250785828, 0.04381074756383896, -0.03205960988998413, 0.022912118583917618, -0.001081599504686892, -0.022894760593771935, 0.009451248683035374, -0.01156020537018776, -0.031868673861026764, 0.004534690175205469, -0.022252527996897697, 0.048809755593538284, -0.04530350863933563, -0.021124279126524925, 0.0076373727060854435, 0.0032610713969916105, 0.006509124767035246, -0.01775689236819744, 0.009329745545983315, 0.013903490267693996, -0.035062484443187714, -0.007363989483565092, 0.03016762249171734, 0.09907755255699158, -0.021592935547232628, 0.07012496888637543, -0.013226540759205818, 0.014649869874119759, -0.03205960988998413, 0.0020178286358714104, -0.05599582940340042, -0.029646892100572586, 0.030966075137257576, 0.035930369049310684, -0.03433346375823021, -0.03478476032614708, 0.02884843945503235, 0.003083155257627368, -0.06061296910047531, 0.013781986199319363, -0.03291013464331627, -0.022946834564208984, -0.09359253197908401, -0.0021154654677957296, 0.08456654846668243, 0.0067955260165035725, 0.028692221269011497, 0.07477682083845139, -0.012532234191894531, -0.012592986226081848, -0.024057725444436073, 0.016828257590532303, -0.058252327144145966, 0.013348044827580452, -0.06172385811805725, 0.0010669539915397763, 0.004089899826794863, 0.003723219269886613, 0.00618800800293684, 0.02100277505815029, 0.003328332444652915, -0.04690041393041611, 0.019180219620466232, 0.01902400143444538, -0.001574123278260231, -0.06050882115960121, -0.03652052953839302, 0.041207097470760345, -0.013764629140496254, 0.04082522913813591, -0.0009953536791726947, 0.049573492258787155, -0.015743402764201164, -0.046726834028959274, -0.006934387609362602, -0.031469449400901794, -0.003998772241175175, 0.049226339906454086, -0.028466571122407913, -0.07394365221261978, 0.06436222046613693, -0.02119370922446251, -0.00671741645783186, 0.008240551687777042, -0.04360245540738106, 0.02211366593837738, 0.07415194809436798, -0.022634396329522133, -0.01217640284448862, 0.039887916296720505, 0.015179278329014778, 0.00918220542371273, -0.02636629343032837, 0.007654730696231127, -0.018850425258278847, 0.07144415378570557, -0.028171490877866745, 0.02612328715622425, -0.0009156168671324849, -0.03787442669272423, -0.04190140590071678, 0.013894811272621155, 0.044053755700588226, 0.04124181345105171, 0.1283772885799408, -0.09081530570983887, 0.018746279180049896, 0.04079051315784454, -0.02317248284816742, 0.0651259645819664, -0.0006894248072057962, -0.0032892776653170586, -0.04974706843495369, 0.060578253120183945, 0.039540763944387436, -0.028969943523406982, -0.018780993297696114, -0.03499305248260498, 0.011933394707739353, 0.04304701089859009, 0.006140273995697498, 0.012697132304310799, -0.052767302840948105, -0.04193612188100815, -0.020811840891838074, -0.017296914011240005, 0.06894464790821075, -0.03940190002322197, -0.03627752140164375, -0.021263141185045242, 0.012523556128144264, 0.006934387609362602, -0.05117039754986763, -0.026036499068140984, 0.004630157258361578, -0.019648877903819084, -0.0703679770231247, -0.02626214735209942, 0.043081726878881454, -0.02074241079390049, -0.03393423557281494, -0.0073379529640078545, -0.019770381972193718, -0.018746279180049896, 0.03971434012055397, 0.016663359478116035, 0.02768547646701336, 0.0022065932862460613, 0.005155226681381464, -0.009859154000878334, 0.07380479574203491, 0.020204322412610054, -0.011282483115792274, -0.026800235733389854, -0.05248958244919777, 0.054954368621110916, -0.004673551302403212, 0.04634496569633484, -0.005554453004151583, -0.029577462002635002, 0.027112673968076706, 0.0039466992020606995, 0.027806980535387993, 0.028327710926532745, -0.009442569687962532, 0.014788731001317501, 0.06307775527238846, 0.04499106854200363, 0.016003767028450966, -0.004760339856147766, 0.007962829433381557, 0.016194701194763184, 0.03195546194911003, -0.016871651634573936, 0.05731501057744026, 0.04259571060538292, -0.002490825019776821, 0.028275636956095695, -0.011673030443489552, 0.0458589531481266, 0.02884843945503235, -0.052420150488615036, -0.026696089655160904, 0.003534454619511962, 0.0256546288728714, -0.006769489496946335, -0.007164376322180033, -0.006183668505400419, 0.07616543769836426, -0.0009129047393798828, -0.005307106301188469, -0.04280400276184082, -0.06908351182937622, 0.05613468959927559, 0.028362425044178963, -0.019440585747361183, 0.019510015845298767, -0.08053956925868988, -0.036346953362226486, 0.006951745133846998, -0.00044153560884296894, -0.007160037290304899, -0.008201496675610542, -0.06332076340913773, 0.02100277505815029, 0.05415591597557068, -0.026921739801764488, 0.060022808611392975, -0.015413607470691204, 0.045164644718170166, 0.05252429470419884, -0.0045824237167835236, -0.012514877133071423, 0.01987452805042267, -0.004517332650721073, -0.08970441669225693, -0.03428138792514801, -0.0034433268010616302, 0.01891985535621643, -0.043185871094465256, -0.026557227596640587, 0.02358906716108322, 0.05585696920752525, -0.006743452977389097, -0.015474358573555946, 0.08859352767467499, 0.0075636026449501514, -0.02261703833937645, -0.013287292793393135, 0.034402891993522644, -0.0029030696023255587, 0.02058619074523449, -0.05700257420539856, 0.03428138792514801, -0.07297162711620331, 0.020013388246297836, -0.056933142244815826, 0.005094474647194147, -0.09435626864433289, 0.03797857090830803, 0.0655425488948822, 0.019596803933382034, -0.018381766974925995, -0.030150264501571655, -0.07304105907678604, -0.004382810555398464, 0.08463598042726517, -0.019006643444299698, -0.01138662826269865, 0.00009607739048078656, 0.005723690148442984, -0.010475351475179195, -0.015552468597888947, -0.04190140590071678, 0.004729963839054108, -0.0160731989890337, 0.06286946684122086, -0.001233479124493897, -0.02976839616894722, -0.001344134216196835, -0.052559010684490204, -0.04408847168087959, 0.004087730310857296, 0.11511603742837906, -0.03530549257993698, -0.006934387609362602, -0.01249751914292574, 0.04478277638554573, 0.08234476298093796, -0.054850224405527115, 0.001081599504686892, 0.02884843945503235, -0.003180792322382331, 0.07436023652553558, -0.010553460568189621, 0.026505155488848686, 0.00346068455837667, -0.04412318766117096, 0.006292153615504503, 0.015500395558774471, 0.10227136313915253, -0.006591573357582092, -0.03728426620364189, 0.048670895397663116, 0.009468606673181057, 0.041970834136009216, -0.045164644718170166, -0.03143473342061043, 0.000584736349992454, -0.04776829481124878, 0.03518398851156235, 0.013348044827580452, -0.04200555011630058, 0.05075381323695183, 0.010006694123148918, 0.04828902706503868, -0.009086738340556622, -0.05502380058169365, -0.02140200138092041, 0.03849930316209793, 0.032892774790525436, -0.00608820142224431, 0.10831183195114136, 0.0193711556494236, -0.0006140274344943464, -0.016376957297325134, -0.0293691698461771, -0.014259322546422482, -0.056828998029232025, -0.011681708507239819, -0.011612278409302235, -0.015057775191962719, 0.05623883754014969, 0.02773755043745041, 0.014137818478047848, 0.022807972505688667, -0.044505055993795395, 0.022200454026460648, -0.022686468437314034, -0.005498040467500687, 0.0701596811413765, 0.023866789415478706, -0.08505256474018097, 0.03376065939664841, -0.039020031690597534, 0.02657458558678627, 0.01786103844642639, -0.05009422451257706, -0.015812832862138748, 0.019180219620466232, 0.016585249453783035, 0.035114556550979614, 0.029594819992780685, -0.026279505342245102, 0.03617337346076965, -0.04776829481124878, -0.044748060405254364, 0.05634298175573349, 0.07436023652553558, -0.018520629033446312, 0.06588970124721527, 0.012202438898384571, 0.012679774314165115, -0.03485419228672981, 0.04280400276184082, 0.0005340194329619408, -0.05085796117782593, -0.060578253120183945, 0.0016685056034475565, -0.021783869713544846, -0.005398233886808157, -0.015439643524587154, -0.01701919175684452, -0.011907358653843403, 0.04589366912841797, -0.044852208346128464, -0.010935328900814056, -0.03445496782660484, 0.07366593182086945, -0.025897637009620667, 0.0058755697682499886, -0.008566007949411869, 0.01926700957119465, 0.0031742830760776997, 0.0394713319838047, -0.04731699824333191, 0.04214441031217575, 0.03818686306476593, 0.037804994732141495, 0.013625767081975937, -0.023606425151228905, 0.016975797712802887, 0.01227186992764473, 0.03631223738193512, 0.02778962254524231, -0.03179924190044403, -0.014294037595391273, -0.009130132384598255, -0.04040864482522011, 0.0019820283632725477, -0.008275266736745834, 0.03586093708872795, 0.04179725795984268, 0.0026752501726150513, 0.024509023874998093, -0.00022131024161353707, -0.016142629086971283, -0.002218526555225253, -0.018780993297696114, 0.004821091424673796, -0.007164376322180033, 0.01353897899389267, -0.03063627891242504, 0.06467466056346893, 0.04016563668847084, 0.003603885415941477, 0.033552367240190506, -0.025238046422600746, 0.052871450781822205, 0.0394713319838047, 0.0586341954767704, -0.06061296910047531, -0.005328803323209286, -0.027702834457159042, -0.038464587181806564, 0.014797409996390343, 0.02799791470170021, 0.0006438608979806304, 0.04679626598954201, 0.021419359371066093, 0.077692911028862, -0.016090555116534233, 0.0382215790450573, -0.02129785530269146, -0.01146473828703165, 0.01031913235783577, 0.09900812804698944, -0.018746279180049896, -0.04742114245891571, -0.030098192393779755, 0.008921840228140354, -0.01673278957605362, 0.014823446050286293, -0.0029855184257030487, 0.04443562403321266, 0.007646051701158285, 0.0000920091915759258, 0.007350971456617117, 0.005302766803652048, -0.03535756468772888, -0.0112304100766778, -0.022599680349230766, 0.025394264608621597, 0.039679624140262604, -0.07574885338544846, -0.02140200138092041, -0.009086738340556622, -0.0225128922611475, 0.0036103944294154644, 0.061654429882764816, -0.013105037622153759, -0.008058296516537666, 0.0640845000743866, 0.011837927624583244, -0.016906365752220154, -0.005432949401438236, -0.0456506609916687, -0.07283276319503784, -0.021818585693836212, -0.08220590651035309, 0.018590059131383896, -0.00039136112900450826, -0.01531813945621252, 0.06835448741912842, -0.004183197394013405, 0.008045277558267117, -0.056828998029232025, 0.0007360735326074064, 0.01353897899389267, 0.012862030416727066, 0.012974855490028858, -0.000305928842863068, -0.006201026029884815, -0.030063476413488388, 0.010440635494887829, -0.03138265758752823, 0.001092990511097014, -0.005858212243765593, -0.010301774367690086, -0.01034516841173172, 0.03818686306476593, 0.023103052750229836, -0.0842888206243515, -0.03233733028173447, 0.006539500318467617, 0.011265125125646591, -0.0703679770231247, 0.02074241079390049, -0.03589565306901932, 0.008461861871182919, 0.014137818478047848, 0.008210175670683384, -0.050892677158117294, 0.04228327423334122, -0.017401060089468956, 0.041970834136009216, 0.004378471057862043, 0.006704398430883884, -0.009312387555837631, 0.07477682083845139, 0.007433420512825251, 0.030098192393779755, -0.004478277638554573, 0.03565264493227005, -0.004152821376919746, -0.03393423557281494, 0.027008527889847755, 0.048670895397663116, 0.027963198721408844, -0.007246825378388166, 0.013330686837434769, 0.00984179601073265, 0.006847599055618048, 0.016472425311803818, 0.014059709385037422, -0.008344697766005993, 0.003805668093264103, -0.04894861578941345, 0.016923723742365837, 0.024960322305560112, 0.02733832411468029, 0.017184089869260788, 0.036798249930143356, 0.022287242114543915, -0.1026185154914856, -0.03362179920077324, 0.005806139204651117, 0.00425479793921113, 0.041415389627218246, -0.014207249507308006, -0.030289126560091972, 0.014797409996390343, -0.04870561137795448, 0.055405668914318085, -0.0035821881610900164, 0.0012985703069716692, -0.008791658096015453, 0.021592935547232628, -0.012202438898384571, -0.0029160878621041775, -0.011898679658770561, -0.0163335632532835, 0.03579150512814522, -0.0004903540248051286, -0.017140693962574005, -0.008093011565506458, 0.005281069781631231, -0.05061495304107666, 0.016472425311803818, 0.03270184248685837, -0.04863617941737175, -0.026001783087849617, 0.01912814751267433, 0.029490673914551735, 0.014233285561203957, 0.010327811352908611, 0.03599979728460312, -0.004777697380632162, 0.015101169236004353, 0.03530549257993698, 0.0011239087907597423, 0.040443360805511475, 0.0007550584268756211, 0.02546369470655918, 0.01361708901822567, 0.0019353796960785985, -0.013634446077048779, 0.005658599082380533, -0.05248958244919777, 0.022530250251293182, 0.004673551302403212, -0.0045086536556482315, -0.009998015128076077, -0.02069033682346344, 0.028258278965950012, -0.05127454549074173, -0.009755007922649384, -0.012619023211300373, 0.02358906716108322, -0.022426104173064232, -0.005697653628885746, -0.013998957350850105, 0.04964292421936989, 0.07880380004644394, 0.06852806359529495, 0.045824237167835236, -0.011742460541427135, 0.01085721980780363, 0.03310106694698334, -0.030098192393779755, -0.005424270406365395, 0.012037540785968304, -0.07824835926294327, 0.014754015952348709, -0.012323942966759205, 0.02348492108285427, -0.04370660334825516, 0.02190537378191948, -0.02499503828585148, -0.036138661205768585, -0.043845463544130325, -0.027164746075868607, -0.018885139375925064, 0.057488586753606796, -0.048462603241205215, -0.045164644718170166, 0.013677840121090412, 0.02211366593837738, 0.035270776599645615, -0.01805197261273861, -0.07248561084270477, 0.035617928951978683, 0.0006113153067417443, -0.06259173899888992, -0.008045277558267117, -0.05995337665081024, -0.0194232277572155, -0.03317049890756607, 0.02166236750781536, 0.033847447484731674, -0.03063627891242504, -0.047907158732414246, -0.027459826320409775, 0.060022808611392975, 0.013903490267693996, -0.02140200138092041, 0.0781094953417778, -0.04752528667449951, 0.006483088247478008, -0.08602458983659744, -0.015509074553847313, -0.007646051701158285, 0.0065568583086133, 0.00869619008153677, 0.025029754266142845, 0.002039525657892227, -0.0229294765740633, 0.012046219781041145, 0.017348986119031906, 0.024977680295705795, 0.04092937707901001, 0.008947876282036304, -0.0018030274659395218, 0.03797857090830803, 0.06696587055921555, -0.07324934750795364, 0.006804205011576414, 0.0018464216263964772, -0.03351765125989914, -0.046275537461042404, 0.06259173899888992, 0.022374030202627182, -0.02855335921049118, -0.0384298712015152, 0.036589957773685455, -0.010996080935001373, -0.052107710391283035, 0.006378942169249058, -0.05967565253376961, 0.05085796117782593, 0.059571508318185806, -0.006877975072711706, -0.0394713319838047, -0.034264031797647476, -0.08296964317560196, -0.001422243774868548, -0.03502776846289635, -0.018034614622592926, 0.016264133155345917, -0.015153242275118828, -0.0319901779294014, 0.02166236750781536, 0.0015459171263501048, 0.010996080935001373, 0.02556784078478813, -0.018381766974925995, -0.004573744721710682, -0.038881171494722366, -0.04422733187675476, 0.07713746279478073, -0.039020031690597534, -0.09838324785232544, 0.01207225676625967, -0.008379412814974785, -0.0038013288285583258, 0.023814717307686806, 0.0030137246940284967, 0.005237675737589598, -0.055752821266651154, -0.02364114113152027, -0.03787442669272423, 0.04860146343708038, -0.008566007949411869, -0.02636629343032837, -0.02688702382147312, 0.026279505342245102, 0.0018583551282063127, -0.013478226959705353, 0.025238046422600746, 0.04634496569633484, -0.0384298712015152, 0.01529210340231657, -0.0032805989030748606, -0.042422134429216385, -0.03280598670244217, 0.03398630768060684, -0.032285258173942566, 0.03711069002747536, -0.034211959689855576, 0.060682397335767746, -0.02884843945503235, 0.0005017450312152505, -0.057176150381565094, -0.024335447698831558, -0.0002950803027488291, 0.005224657244980335, 0.06484823673963547, 0.025741418823599815, -0.004230930935591459, -0.028726937249302864, -0.01931908167898655, 0.014094424434006214, 0.025238046422600746, -0.02844921313226223, -0.008991270326077938, 0.002163199009373784, -0.022131023928523064, -0.024665242061018944, -0.021436717361211777, -0.041762541979551315, -0.09477285295724869, 0.0004133293987251818, 0.04457448422908783, -0.008427146822214127, -0.015179278329014778, 0.02596706710755825, 0.0012182911159470677, -0.012289226986467838, 0.024578453972935677, 0.036034513264894485, 0.07928981631994247, -0.0036103944294154644, -0.0781094953417778, 0.06106426939368248, 0.0038186863530427217, -0.04568537697196007, 0.0013191825710237026, 0.013981599360704422, 0.031677741557359695, 0.000633012386970222, -0.039679624140262604, -0.01427667960524559, 0.02053411863744259, 0.015483037568628788 ]
729,357
tinytuya.core
set_socketPersistent
null
def set_socketPersistent(self, persist): self.socketPersistent = persist if self.socket and not persist: self.socket.close() self.socket = None
(self, persist)
[ 0.010159250348806381, 0.02036912925541401, -0.006758770439773798, 0.05511646717786789, 0.017787126824259758, -0.018107766285538673, -0.035709258168935776, 0.06449943035840988, -0.0009360812837257981, 0.003119919216260314, -0.03253660351037979, -0.05569024384021759, -0.014251640066504478, -0.03368416056036949, -0.017044588923454285, 0.012099971063435078, -0.02916143648326397, -0.05774909630417824, -0.0141841359436512, -0.027507605031132698, 0.008665739558637142, 0.019829101860523224, -0.0062229628674685955, -0.09268206357955933, 0.0014629235956817865, -0.030477751046419144, -0.05349638685584068, 0.050728749483823776, 0.044349685311317444, -0.03901692107319832, -0.03108528070151806, -0.036789312958717346, 0.055859003216028214, 0.044923461973667145, 0.05255134031176567, 0.04475470632314682, -0.030207738280296326, 0.025398125872015953, 0.05525147169828415, -0.0335322767496109, -0.003130466677248478, 0.01873217336833477, 0.020571637898683548, 0.013188461773097515, -0.01657206565141678, 0.05791785195469856, -0.006547822616994381, 0.10658775269985199, 0.028705788776278496, 0.04488971084356308, -0.023963680490851402, 0.06858337670564651, -0.018698420375585556, 0.013095645233988762, -0.025043733417987823, -0.036283038556575775, 0.07803384214639664, 0.05710781365633011, -0.06439816951751709, -0.047859858721494675, -0.0023900396190583706, 0.02273174561560154, -0.008589798584580421, -0.05103251338005066, 0.015897033736109734, -0.0023668352514505386, 0.004273804370313883, 0.03901692107319832, 0.0694609209895134, 0.0052610402926802635, 0.0009761613910086453, -0.03273911401629448, 0.008302909322082996, 0.030579006299376488, 0.0053327628411352634, 0.019356578588485718, -0.004297008737921715, 0.007357862312346697, -0.06497195363044739, 0.01226029172539711, 0.00044088109279982746, 0.0003567656094674021, -0.0199472326785326, 0.05353013798594475, 0.0032359405886381865, -0.01608266681432724, 0.05599400773644447, 0.041008271276950836, 0.0283176451921463, -0.00403754273429513, 0.0070878490805625916, 0.11009792238473892, 0.010150812566280365, -0.0068769012577831745, 0.053935155272483826, -0.016529876738786697, -0.00883449800312519, 0.033852916210889816, 0.05747908353805542, -0.06622076034545898, -0.0653432160615921, 0.044349685311317444, -0.020757272839546204, -0.07499619573354721, -0.003940506838262081, -0.0010668690083548427, 0.048298630863428116, -0.05332762748003006, -0.030190862715244293, -0.0016221893019974232, -0.021533560007810593, 0.027980128303170204, 0.018715297803282738, 0.06490444391965866, -0.024773720651865005, 0.0018436845857650042, 0.01190589927136898, 0.03165905922651291, -0.009914550930261612, -0.012994389981031418, -0.08795683085918427, 0.02617441490292549, -0.033768538385629654, -0.0324353463947773, -0.014302266761660576, 0.07803384214639664, 0.05224757269024849, 0.019980983808636665, 0.05525147169828415, -0.01815839484333992, -0.017137406393885612, -0.017137406393885612, 0.05238258093595505, 0.04154829680919647, -0.012791880406439304, -0.030427124351263046, -0.054002661257982254, 0.008277595043182373, -0.020554762333631516, -0.028840795159339905, -0.0664907768368721, 0.04239208996295929, -0.02715321257710457, 0.03689056634902954, 0.03655305132269859, 0.05980794504284859, -0.05369889363646507, -0.06571448594331741, -0.08937440067529678, -0.0577828474342823, 0.016133295372128487, -0.016580503433942795, -0.08890187740325928, -0.004737889859825373, -0.03776811063289642, 0.04941243305802345, -0.07256607711315155, -0.01021831575781107, 0.012049343436956406, -0.013669423758983612, -0.05889665335416794, -0.013964750804007053, 0.05123502388596535, -0.02588752470910549, -0.04495721310377121, -0.021263547241687775, -0.02595502883195877, -0.019002186134457588, 0.05990920215845108, 0.04195331782102585, -0.04053574800491333, 0.05467769503593445, 0.031642183661460876, -0.034696709364652634, 0.0404682420194149, 0.032131582498550415, 0.02715321257710457, -0.06676078587770462, -0.04789360985159874, 0.021482933312654495, 0.006109050940722227, -0.07492869347333908, -0.009889237582683563, 0.012479676865041256, 0.043505892157554626, 0.011138048954308033, -0.007539277896285057, 0.0286551620811224, 0.05008746683597565, 0.029498953372240067, -0.0032232836820185184, 0.04654354229569435, 0.02317051589488983, -0.011104296892881393, 0.0497499518096447, 0.0199472326785326, 0.03329601511359215, -0.012344670481979847, -0.016487687826156616, 0.029768966138362885, 0.0026241918094456196, 0.02944832667708397, -0.022259222343564034, -0.060651738196611404, -0.026630062609910965, 0.005210413131862879, -0.009712041355669498, 0.012597807683050632, -0.022056711837649345, -0.023913053795695305, -0.018782800063490868, 0.002927956636995077, 0.022276097908616066, -0.007328329607844353, 0.10355009883642197, -0.03847689554095268, -0.04097452014684677, 0.00489399116486311, 0.017415858805179596, 0.03726183623075485, 0.029549580067396164, -0.01851278729736805, -0.009450465440750122, 0.04272960498929024, -0.018209021538496017, 0.03174343705177307, -0.020335376262664795, -0.051572538912296295, 0.03324538841843605, 0.07729130983352661, -0.003932068590074778, 0.0601792149245739, -0.012496553361415863, -0.027423225343227386, 0.08221904933452606, 0.008716367185115814, -0.028132010251283646, 0.03682306408882141, -0.012943762354552746, -0.005130252800881863, -0.04117702692747116, -0.015019490383565426, 0.010724591091275215, -0.005374952219426632, 0.036991823464632034, 0.056432779878377914, 0.041717056185007095, 0.007475993130356073, 0.027051957324147224, 0.02372741885483265, 0.022276097908616066, -0.04164955019950867, -0.011180237866938114, 0.0000785121665103361, 0.060077961534261703, -0.04637478291988373, -0.07533371448516846, 0.0347304604947567, -0.0440121665596962, 0.028283894062042236, -0.02737259864807129, 0.05427267402410507, -0.04117702692747116, 0.05562274158000946, 0.005666060373187065, -0.03479796275496483, 0.01111273467540741, -0.021263547241687775, 0.02252923510968685, -0.004653510637581348, 0.011948088183999062, -0.004813830833882093, -0.035979270935058594, -0.03201345354318619, 0.03543924540281296, -0.0334816500544548, 0.0141841359436512, -0.04576725512742996, -0.024503707885742188, -0.0024322292301803827, 0.02236047573387623, 0.027608860284090042, 0.07479368150234222, 0.004434124566614628, -0.008226967416703701, 0.007619437761604786, -0.012285605072975159, 0.00489399116486311, -0.02079102396965027, -0.03203032910823822, -0.03608052805066109, -0.010884910821914673, 0.0167914517223835, 0.017137406393885612, -0.03780186176300049, -0.03187844529747963, -0.014504777267575264, 0.03844314441084862, 0.004514284897595644, -0.018209021538496017, 0.0024997324217110872, -0.0099736163392663, -0.014268515631556511, 0.04853489249944687, 0.06807710230350494, -0.021128540858626366, 0.006366407498717308, 0.017905257642269135, 0.03201345354318619, 0.07418615370988846, 0.02131417579948902, -0.0023605069145560265, -0.06375689059495926, 0.03786936402320862, 0.06470193713903427, 0.047218576073646545, -0.013517540879547596, -0.04472095146775246, 0.007560372352600098, 0.052855104207992554, -0.009804857894778252, -0.04519347473978996, -0.04866989701986313, 0.0011728702811524272, -0.016318928450345993, 0.04934493079781532, 0.05569024384021759, 0.0025693452917039394, 0.00893575232475996, 0.009948302991688251, -0.03079839237034321, 0.007809291128069162, -0.04252709448337555, -0.013213776051998138, -0.010159250348806381, -0.04782610759139061, -0.041345786303281784, -0.013947874307632446, 0.027186963707208633, -0.021752946078777313, -0.05474519729614258, -0.03996196761727333, 0.03381916508078575, -0.047151073813438416, 0.007821948267519474, 0.020537886768579483, -0.0839066356420517, 0.042425841093063354, -0.00365572702139616, 0.016242988407611847, -0.0035270487423986197, 0.03554050251841545, -0.02522936835885048, 0.015475137159228325, -0.005619651637971401, -0.012277167290449142, 0.03550674766302109, 0.06838086992502213, 0.034561701118946075, -0.055217720568180084, 0.02895892597734928, -0.019120316952466965, 0.018614042550325394, -0.06365563720464706, -0.02531374618411064, 0.030038980767130852, 0.02052101120352745, -0.049513690173625946, 0.0387469083070755, -0.009762668050825596, -0.035709258168935776, -0.08761931955814362, 0.010564270429313183, 0.015964535996317863, 0.016648007556796074, -0.006303123198449612, -0.03766685724258423, 0.011340558528900146, 0.041210781782865524, -0.011188676580786705, -0.005147128365933895, -0.06605200469493866, 0.09274956583976746, -0.022697992622852325, -0.005990920122712851, -0.012454363517463207, 0.035776764154434204, -0.011197114363312721, 0.00845057237893343, 0.015618582256138325, 0.045632246881723404, 0.01036176085472107, 0.007568810600787401, -0.0020715082064270973, 0.01928907446563244, 0.03403855115175247, -0.0023626163601875305, 0.020892279222607613, 0.038004372268915176, 0.007881013676524162, -0.03459545597434044, 0.009906113147735596, -0.004640853498131037, 0.02166856825351715, -0.023136764764785767, 0.06848212331533432, 0.00008490652544423938, 0.027980128303170204, -0.004944618791341782, 0.02180357463657856, -0.03959070146083832, 0.008817621506750584, 0.0016960210632532835, -0.04060325026512146, 0.08289408683776855, 0.041852060705423355, 0.05690530315041542, 0.012074657715857029, 0.08377162367105484, 0.023626163601875305, -0.0037042449694126844, 0.014369770884513855, 0.0019375564297661185, 0.032688483595848083, -0.03631678968667984, -0.00961922388523817, -0.03783561289310455, -0.008488543331623077, -0.008868249133229256, 0.03776811063289642, 0.029853345826268196, -0.016487687826156616, 0.012066219002008438, 0.0009624497615732253, 0.0445859469473362, 0.025279995054006577, 0.01054739486426115, -0.011745578609406948, -0.05825537070631981, 0.02072352170944214, 0.04661104455590248, -0.010446139611303806, -0.021904829889535904, 0.00904544536024332, 0.039286933839321136, -0.031270913779735565, -0.010150812566280365, 0.05511646717786789, -0.01204090565443039, -0.007265045307576656, -0.018715297803282738, -0.05542023107409477, -0.02122979611158371, -0.021044161170721054, 0.0032696924172341824, -0.0037506534717977047, -0.010581145994365215, -0.006923309992998838, 0.002411134308204055, -0.012606246396899223, 0.012901573441922665, 0.010201440192759037, -0.006083737127482891, -0.0019227900775149465, -0.02036912925541401, 0.002104205312207341, 0.020824775099754333, -0.028705788776278496, 0.014268515631556511, 0.0053327628411352634, 0.02673131600022316, -0.030933398753404617, -0.007746006827801466, -0.03689056634902954, -0.06389189511537552, -0.0347304604947567, 0.050931259989738464, 0.031000902876257896, -0.016951773315668106, 0.002231828635558486, -0.04725232720375061, -0.009256393648684025, -0.037633102387189865, 0.01265687309205532, -0.014386646449565887, -0.03982696309685707, 0.02052101120352745, -0.06574823707342148, 0.03272223845124245, 0.008016020059585571, -0.00015293722390197217, 0.020554762333631516, -0.011669637635350227, -0.0601792149245739, 0.07958642393350601, -0.01464822143316269, -0.0554877333343029, -0.027794495224952698, 0.01873217336833477, -0.08167902380228043, -0.034561701118946075, -0.027507605031132698, -0.06031422317028046, 0.043202128261327744, -0.009695164859294891, -0.04053574800491333, -0.03483171761035919, 0.012926886789500713, -0.01851278729736805, -0.003891988657414913, -0.0063832830637693405, 0.016268301755189896, 0.024503707885742188, 0.03965820372104645, 0.00016361645248252898, -0.009315459057688713, 0.0015114416601136327, -0.03424106165766716, -0.005307449027895927, -0.05990920215845108, 0.03996196761727333, -0.02129729837179184, -0.003645179560407996, 0.01408288162201643, -0.021145416423678398, -0.09254705905914307, -0.013525978662073612, 0.009526406414806843, 0.030292117968201637, -0.0004746327467728406, 0.03339726850390434, -0.010209877975285053, 0.03547299653291702, 0.010454577393829823, 0.053800150752067566, 0.00018378834647592157, 0.024402452632784843, -0.06902214884757996, -0.10834283381700516, -0.031220288947224617, -0.02558376081287861, 0.011568382382392883, -0.011627447791397572, -0.04033323749899864, -0.01829340122640133, -0.027558233588933945, 0.0023900396190583706, 0.014842294156551361, 0.02266424149274826, 0.008125713095068932, -0.007948516868054867, 0.046138521283864975, 0.009889237582683563, -0.07648126780986786, -0.017086779698729515, -0.08302909135818481, 0.03422418609261513, -0.02222546935081482, -0.017398981377482414, 0.011770891956984997, -0.010302695445716381, -0.030427124351263046, 0.04512597247958183, 0.07216105610132217, 0.025043733417987823, -0.007691160310059786, 0.017069904133677483, -0.06254182755947113, 0.04397841542959213, 0.012319357134401798, 0.04603726789355278, -0.04168330505490303, 0.06233932077884674, 0.03211470693349838, 0.036418043076992035, 0.04890615865588188, 0.03729558736085892, 0.0324353463947773, 0.004505847115069628, 0.06365563720464706, -0.003379385219886899, 0.02895892597734928, -0.08606673777103424, -0.003128357231616974, 0.013711612671613693, 0.039793211966753006, 0.06703080236911774, 0.05849163234233856, -0.03273911401629448, -0.05525147169828415, -0.034139808267354965, 0.014226325787603855, 0.0005990919889882207, -0.04245959222316742, -0.009593910537660122, -0.0007240786217153072, 0.07141851633787155, 0.017770251259207726, 0.008631987497210503, 0.014344456605613232, 0.0005711414269171655, 0.030190862715244293, 0.0043708402663469315, -0.028351396322250366, -0.023913053795695305, -0.011500879190862179, -0.08154401928186417, 0.07823635637760162, -0.0034679833333939314, 0.01612485758960247, -0.07310610264539719, 0.007222855929285288, -0.01086803525686264, -0.008876686915755272, 0.006214525084942579, 0.035270486027002335, -0.01729772798717022, 0.05683780089020729, -0.046442288905382156, -0.010505205020308495, 0.016842080280184746, -0.047927360981702805, -0.011821519583463669, -0.03095027431845665, -0.07708879560232162, 0.0003596661554183811, -0.02507748454809189, 0.016529876738786697, -0.05990920215845108, -0.021398553624749184, -0.017314603552222252, 0.011213989928364754, 0.0016854736022651196, 0.06163053587079048, -0.00226979935541749, -0.02236047573387623, 0.014892920851707458, 0.00007205188740044832, 0.025398125872015953, 0.002053577685728669, 0.03952319547533989, -0.017922133207321167, 0.059436678886413574, -0.0577828474342823, -0.009087635204195976, 0.010960852727293968, 0.053800150752067566, -0.011028355918824673, 0.020892279222607613, -0.0364517942070961, -0.014774790033698082, -0.0006992922862991691, 0.027575109153985977, -0.01657206565141678, 0.07364612817764282, -0.005218850914388895, 0.026613185182213783, 0.020284749567508698, 0.03594551980495453, 0.012412173673510551, -0.030038980767130852, 0.014319143258035183, -0.01657206565141678, 0.03152405470609665, 0.04637478291988373, -0.019120316952466965, -0.04212207347154617, -0.0263094212859869, -0.011492441408336163, -0.026613185182213783, 0.017331479117274284, 0.03753184899687767, -0.022073587402701378, 0.033279139548540115, 0.047218576073646545, -0.05869414284825325, 0.02094290591776371, 0.0243011973798275, -0.059234168380498886, -0.00005886764483875595, 0.00017600964929442853, 0.04509222134947777, 0.0013131506275385618, -0.03945569321513176, 0.010471452958881855, 0.012462801299989223, 0.05275384709239006, 0.007573029492050409, 0.0024195723235607147, -0.027507605031132698, 0.008927314542233944, -0.0045564742758870125, -0.009096072986721992, 0.046509791165590286, -0.04812987148761749, -0.07067598402500153, -0.05255134031176567, -0.020672893151640892, -0.025820022448897362, 0.030933398753404617, -0.017854629084467888, 0.053226370364427567, -0.045632246881723404, -0.005547929555177689, 0.011484003625810146, -0.006961280480027199, -0.050222475081682205, -0.020504135638475418, 0.01922157220542431, 0.012741252779960632, 0.0007768156356178224, -0.015492013655602932, 0.04387716203927994, -0.021145416423678398, -0.02480747178196907, 0.05575774610042572, -0.0032401597127318382, -0.057074062526226044, 0.00037917884765192866, 0.03179406747221947, -0.03918568044900894, -0.006657515652477741, 0.0016991852317005396, -0.028115134686231613, -0.005661841481924057, -0.08748430758714676, -0.022141091525554657, 0.021702319383621216, 0.02551625669002533, 0.003645179560407996, -0.04144704341888428, -0.06196805462241173, -0.030477751046419144, 0.03604677692055702, -0.05339512974023819, -0.03665430471301079, 0.05241633206605911, -0.014935110695660114, -0.07715629786252975, 0.013787554576992989, -0.02423369325697422, -0.048568643629550934, -0.014344456605613232, 0.015711398795247078, -0.03278974071145058, -0.051640044897794724, 0.0016253534704446793, 0.04431593418121338, -0.015137621201574802, 0.03797062113881111, 0.013112520799040794, 0.012597807683050632, 0.013601919636130333, 0.014395084232091904, 0.015846405178308487, 0.03543924540281296, -0.06966343522071838, 0.07762882113456726, 0.01630205288529396, 0.029195187613368034, -0.030899647623300552, 0.05001996457576752, -0.013517540879547596, -0.010825845412909985, -0.00181415188126266, -0.03918568044900894, -0.01844528317451477, 0.029768966138362885 ]
729,358
tinytuya.core
set_socketRetryDelay
null
def set_socketRetryDelay(self, delay): self.socketRetryDelay = delay
(self, delay)
[ -0.0016402387991547585, 0.02638341672718525, -0.012074950151145458, 0.0409361757338047, 0.008196831680834293, -0.00004887181057711132, -0.02291099540889263, 0.007712612394243479, 0.008297165855765343, 0.005588154308497906, -0.03598055988550186, -0.015739312395453453, 0.030152475461363792, 0.022823749110102654, -0.010975641198456287, -0.003779965452849865, 0.004059155005961657, 0.04048249125480652, -0.03397388383746147, -0.03374704346060753, 0.010050825774669647, 0.016986941918730736, 0.006971015129238367, 0.021916383877396584, -0.030623609200119972, 0.06407400965690613, -0.0559077151119709, 0.049870241433382034, 0.037620797753334045, -0.06020025536417961, -0.04425154998898506, -0.00653478130698204, -0.0033459127880632877, 0.011603817343711853, -0.021043915301561356, 0.01795538142323494, -0.03481145203113556, -0.02826794609427452, -0.026453213766217232, 0.00966693926602602, -0.013025939464569092, 0.0027569972444325686, -0.010033375583589077, -0.02291099540889263, 0.02071237750351429, 0.029402153566479683, 0.008550181053578854, 0.05988616868853569, -0.004750585183501244, 0.010818596929311752, -0.04299519583582878, 0.0543372742831707, -0.03481145203113556, -0.04107576981186867, -0.028320293873548508, 0.03838856890797615, -0.008785747922956944, 0.08836350589990616, -0.019229182973504066, -0.0338517390191555, 0.0003994265280198306, -0.007001551333814859, -0.06274785846471786, 0.01795538142323494, 0.018618455156683922, -0.026941794902086258, -0.05716406926512718, 0.01395947951823473, 0.06895983219146729, -0.002994744572788477, 0.07705632597208023, 0.03957512602210045, -0.05252254381775856, -0.019438575953245163, 0.011525295674800873, 0.011237381026148796, -0.062433771789073944, -0.007272016257047653, -0.05684997886419296, 0.03158332407474518, 0.02807600423693657, 0.0031954122241586447, 0.05182456970214844, 0.006726724095642567, 0.016271518543362617, -0.04418175294995308, -0.029070615768432617, -0.03214170038700104, -0.02566799335181713, -0.018513759598135948, -0.028285395354032516, 0.03453226387500763, -0.005308964755386114, -0.016489636152982712, 0.02783171273767948, 0.028442440554499626, 0.00543547235429287, -0.0181124247610569, 0.02059023268520832, -0.040691882371902466, -0.017152709886431694, -0.008257905021309853, -0.00009890236833598465, -0.06316664814949036, 0.062154583632946014, -0.04641526937484741, -0.008628703653812408, -0.02437674067914486, 0.01665540412068367, -0.016097024083137512, 0.043693169951438904, 0.006329751573503017, 0.026488112285733223, 0.03713221475481987, 0.0029271284583956003, 0.033450402319431305, 0.029855836182832718, -0.0034397030249238014, 0.039784517139196396, 0.07691673189401627, -0.008715949952602386, 0.03331080824136734, -0.014003102667629719, 0.017737263813614845, -0.0041442206129431725, 0.004218380432575941, -0.017161434516310692, 0.04418175294995308, 0.11411874741315842, -0.055139943957328796, -0.00720658153295517, 0.009649490006268024, -0.010478334501385689, 0.02177678793668747, 0.04013350233435631, -0.013889682479202747, -0.017937932163476944, 0.0744040235877037, 0.007298190612345934, -0.021392902359366417, -0.040028806775808334, 0.04973064735531807, 0.027029043063521385, 0.028285395354032516, 0.08633938431739807, 0.0155560951679945, -0.006133446469902992, 0.02268415503203869, -0.020136550068855286, 0.012868895195424557, 0.05165007337927818, -0.015146035701036453, -0.011516571044921875, 0.0008435670170001686, -0.03247324004769325, -0.000749776721931994, -0.05405808612704277, -0.03208935260772705, 0.0026566635351628065, -0.0633760392665863, -0.04704344645142555, -0.0519641637802124, 0.018635904416441917, -0.01458765659481287, 0.011821934022009373, 0.010617929510772228, -0.047392431646585464, 0.020817073062062263, 0.03751610219478607, 0.03397388383746147, 0.010783698409795761, -0.008641790598630905, 0.033607445657253265, -0.030257172882556915, 0.018949992954730988, 0.046170979738235474, -0.017868133261799812, -0.004837831947952509, -0.046170979738235474, 0.029838386923074722, 0.025528397411108017, 0.022666705772280693, -0.0020361209753900766, -0.03212425112724304, 0.01823456957936287, 0.001183283980935812, -0.012868895195424557, 0.0586647130548954, -0.018635904416441917, 0.02826794609427452, 0.04020330309867859, 0.06082843244075775, 0.022631805390119553, -0.008689776062965393, 0.02582503668963909, 0.01676882430911064, 0.029541749507188797, -0.049905139952898026, 0.07593956589698792, 0.06662161648273468, -0.020799623802304268, 0.04397236183285713, 0.006102909799665213, -0.00710624735802412, 0.0401684008538723, -0.08166295289993286, 0.0012738024815917015, -0.004968702327460051, 0.0010851314291357994, -0.024778075516223907, -0.028843775391578674, 0.008017975836992264, 0.05430237576365471, -0.005705937277525663, 0.019351327791810036, -0.04941655695438385, -0.03390408679842949, -0.003276115283370018, 0.05500034987926483, -0.01626279391348362, 0.03118198737502098, -0.03563157096505165, -0.03531748428940773, -0.06225927919149399, 0.0075773801654577255, 0.030972596257925034, -0.013933305628597736, -0.11132685095071793, 0.017100362107157707, 0.09031783044338226, -0.008340789005160332, 0.047113243490457535, 0.011429323814809322, 0.00998102780431509, 0.08752593398094177, -0.03095514513552189, -0.036713432520627975, 0.033293358981609344, -0.010809872299432755, -0.037865087389945984, -0.029541749507188797, 0.04027310013771057, 0.014718526042997837, -0.005544530693441629, 0.037899985909461975, 0.030449114739894867, 0.041250262409448624, 0.026557909324765205, -0.002392742084339261, 0.03831877186894417, 0.04184354096651077, -0.05151047930121422, -0.04938165843486786, 0.00856763031333685, -0.01498026680201292, 0.023120388388633728, 0.0322812981903553, 0.02287609688937664, -0.06355053186416626, 0.0693088173866272, -0.023417027667164803, -0.00401771254837513, -0.0988331139087677, 0.0016882246127352118, -0.0003645278047770262, 0.0054965452291071415, -0.019473474472761154, 0.017074188217520714, -0.02629617042839527, -0.004920716397464275, 0.0791502520442009, -0.0008184835314750671, -0.0472528375685215, 0.003758153645321727, -0.0005752832512371242, 0.020066751167178154, -0.014064176008105278, -0.0196828655898571, 0.020782174542546272, -0.037620797753334045, 0.06941351294517517, 0.002204071031883359, 0.015564819797873497, 0.041599247604608536, -0.05042862147092819, 0.002281502354890108, -0.013985653407871723, 0.11998172849416733, -0.0547211617231369, -0.0006816152017563581, -0.0071585956029593945, -0.00799180194735527, 0.09101580828428268, -0.030763203278183937, -0.006560955196619034, -0.006133446469902992, 0.025266658514738083, 0.04327438771724701, 0.004619715269654989, 0.05161517485976219, -0.007337451446801424, -0.04819510504603386, -0.045612599700689316, 0.03905164450407028, 0.06037474796175957, -0.048404496163129807, -0.006081098224967718, 0.022771401330828667, -0.007764960639178753, 0.031234335154294968, -0.014317191205918789, -0.02268415503203869, -0.012371588498353958, -0.03437521681189537, 0.086618572473526, -0.005374399479478598, -0.007586104795336723, 0.025772688910365105, 0.003452789969742298, 0.03437521681189537, -0.0409361757338047, -0.011821934022009373, -0.02512706257402897, 0.02791895903646946, -0.012781648896634579, 0.0196828655898571, 0.08878228813409805, 0.02425459586083889, -0.054825857281684875, -0.010251493193209171, -0.04044759273529053, -0.03891205042600632, -0.03706241771578789, -0.0342705212533474, 0.008846820332109928, 0.016009777784347534, 0.028721628710627556, 0.011682339943945408, 0.0342705212533474, 0.023853261023759842, -0.008894805796444416, -0.01952582225203514, -0.015896357595920563, 0.03488124907016754, 0.05702447518706322, -0.03664363548159599, -0.02980348840355873, -0.002027396345511079, 0.004429953638464212, 0.030501462519168854, 0.012048776261508465, -0.0421227291226387, -0.028023654595017433, 0.019107038155198097, 0.042820703238248825, 0.010958191938698292, 0.0019608705770224333, 0.02826794609427452, 0.05465136095881462, -0.05688488110899925, -0.04289050027728081, -0.0016947680851444602, 0.03653893619775772, -0.018513759598135948, 0.021410351619124413, 0.09736736863851547, -0.017972830682992935, -0.03933083266019821, 0.053534604609012604, -0.020660029724240303, -0.037306711077690125, -0.0476367250084877, -0.023399578407406807, 0.001244356739334762, 0.010391087271273136, -0.019909707829356194, -0.06791286915540695, -0.002320763422176242, 0.0031888685189187527, -0.008951515890657902, 0.016446011140942574, -0.06013045832514763, 0.10218339413404465, -0.0019314248347654939, 0.017379552125930786, -0.0301175769418478, 0.00888171885162592, -0.024429088458418846, 0.008515282534062862, -0.008340789005160332, 0.026488112285733223, 0.03331080824136734, 0.01494536828249693, 0.01682117208838463, -0.039784517139196396, -0.010391087271273136, -0.02174188941717148, 0.008968966081738472, 0.013863508589565754, -0.058455321937799454, -0.008593804202973843, 0.021445250138640404, -0.011909181252121925, 0.03891205042600632, 0.02237006649374962, 0.07272888720035553, 0.03174036741256714, 0.020345941185951233, -0.000555925362277776, -0.009789085015654564, -0.040377795696258545, 0.016350040212273598, 0.006988464388996363, -0.03177526593208313, 0.007424698211252689, -0.016978217288851738, -0.03800468146800995, 0.023486824706196785, 0.06274785846471786, -0.013750087469816208, 0.0222479198127985, -0.02331233024597168, 0.03803958371281624, 0.06271295994520187, 0.024272045120596886, 0.009064937010407448, 0.008048512041568756, -0.024586133658885956, -0.018252018839120865, 0.018949992954730988, -0.01823456957936287, 0.04393746331334114, -0.01645473577082157, 0.0009760729735717177, 0.06595854461193085, -0.023050591349601746, 0.012057500891387463, 0.010626654140651226, -0.0401684008538723, -0.04138985648751259, 0.030606159940361977, -0.02650556154549122, 0.01992715708911419, -0.0559077151119709, 0.03692282363772392, -0.04379786550998688, 0.019159385934472084, -0.0025497861206531525, -0.03971472010016441, -0.010286391712725163, -0.02917531318962574, -0.035736266523599625, 0.017868133261799812, -0.025964632630348206, -0.03402623161673546, 0.0196828655898571, -0.018374165520071983, 0.008022338151931763, -0.011062887497246265, -0.0330839678645134, -0.011682339943945408, -0.023085489869117737, -0.01744062453508377, -0.003230310743674636, -0.03252558782696724, 0.05859491601586342, 0.06923902034759521, -0.022701604291796684, 0.0024647205136716366, 0.02004930190742016, -0.0028507874812930822, -0.07468321919441223, 0.012921242974698544, -0.04550790414214134, -0.04030799865722656, -0.03737650811672211, 0.038842253386974335, 0.07182152569293976, 0.015233281999826431, 0.010539406910538673, -0.04460053890943527, -0.021288206800818443, 0.04976554587483406, 0.0016849527601152658, 0.008262267336249352, -0.0393657311797142, -0.0760093629360199, -0.029192762449383736, 0.004397236276417971, -0.007433422841131687, -0.05503524839878082, 0.0626082643866539, 0.00044250459177419543, 0.03275242820382118, 0.024359291419386864, 0.01629769243299961, -0.06588874012231827, -0.004672063514590263, 0.012999765574932098, -0.024184798821806908, -0.037341609597206116, -0.020101651549339294, -0.03831877186894417, 0.0012181827332824469, 0.01823456957936287, -0.028634382411837578, -0.03447991609573364, 0.0409361757338047, 0.022195572033524513, -0.00529587734490633, 0.045612599700689316, 0.04634547233581543, -0.03447991609573364, 0.05301112309098244, -0.007320002187043428, -0.04753202944993973, -0.0051344712264835835, 0.041948236525058746, -0.02406265214085579, -0.0036861749831587076, 0.03905164450407028, 0.008070324547588825, 0.020729826763272285, -0.020625131204724312, 0.00045913600479252636, -0.05716406926512718, 0.051056794822216034, -0.008781385608017445, 0.0381791777908802, 0.05960697680711746, -0.004416866693645716, -0.009527345187962055, 0.05084740370512009, 0.009387750178575516, 0.06201498955488205, 0.055733222514390945, -0.03981941565871239, -0.06334114074707031, -0.14629535377025604, 0.002597771817818284, -0.016402387991547585, -0.010347464121878147, 0.02587738446891308, -0.07866166532039642, -0.05342990905046463, -0.0009040944278240204, -0.08557160943746567, 0.054441969841718674, -0.037271808832883835, -0.027569971978664398, 0.04976554587483406, -0.024935120716691017, -0.029855836182832718, -0.031670570373535156, -0.06505117565393448, -0.030187373980879784, 0.057268764823675156, -0.03212425112724304, 0.03796978294849396, 0.004602266009896994, -0.026348518207669258, -0.060898229479789734, 0.06435319781303406, 0.02118350937962532, -0.025493498891592026, -0.0358409620821476, -0.002551967278122902, -0.014648729003965855, -0.05838552489876747, -0.02287609688937664, 0.022579457610845566, 0.010958191938698292, 0.002608677837997675, 0.031321581453084946, -0.05342990905046463, 0.029681343585252762, 0.002147360472008586, -0.004628439899533987, 0.004157307557761669, 0.037899985909461975, 0.027622319757938385, 0.055139943957328796, -0.03591076284646988, -0.031478624790906906, -0.024481438100337982, -0.016166822984814644, 0.009823983535170555, 0.00479420879855752, -0.008681051433086395, -0.03957512602210045, -0.03870265558362007, 0.025650544092059135, -0.030571259558200836, -0.03146117553114891, -0.011403149925172329, 0.007141146343201399, 0.032037004828453064, 0.00897769071161747, 0.045856889337301254, 0.070076584815979, 0.04327438771724701, 0.05154537782073021, 0.01112395990639925, 0.019159385934472084, 0.011909181252121925, -0.00827099196612835, -0.05377889424562454, 0.058176130056381226, 0.0094488225877285, 0.03135647997260094, -0.043169692158699036, -0.012781648896634579, 0.017588945105671883, 0.016210446134209633, -0.05890900269150734, -0.025737790390849113, -0.04994003847241402, 0.014264843426644802, -0.012450111098587513, -0.047741420567035675, -0.041320059448480606, 0.016829896718263626, 0.022492211312055588, -0.02889612317085266, -0.05070780962705612, 0.02083452418446541, -0.029088065028190613, -0.06871553510427475, -0.03653893619775772, -0.0519641637802124, -0.014439336955547333, -0.0179204810410738, 0.06595854461193085, -0.046519964933395386, -0.08578100055456161, 0.0076777138747274876, -0.014421887695789337, 0.014395713806152344, 0.005204268265515566, -0.04020330309867859, 0.12123808264732361, -0.024481438100337982, -0.03845836594700813, -0.05796673893928528, -0.002990382257848978, 0.04236701875925064, -0.027674667537212372, 0.0034658771473914385, -0.026557909324765205, 0.011909181252121925, -0.028878673911094666, -0.001125483075156808, -0.00038933861651457846, 0.06941351294517517, -0.021358003839850426, -0.02118350937962532, 0.016829896718263626, 0.026331068947911263, 0.07747510820627213, -0.04945145547389984, -0.023713665083050728, -0.01559099368751049, -0.003075447864830494, -0.03235109522938728, 0.028948470950126648, 0.01104543823748827, -0.006726724095642567, -0.04641526937484741, -0.005631777457892895, -0.005937141366302967, 0.013837333768606186, -0.041878439486026764, 0.00064344477141276, 0.03381684049963951, 0.09932170063257217, -0.03447991609573364, -0.062224380671978, -0.03318866342306137, -0.034671857953071594, -0.010548131540417671, 0.02074727602303028, -0.009309227578341961, -0.04480993002653122, -0.04983534291386604, -0.01082732155919075, 0.027674667537212372, 0.024935120716691017, 0.03559667244553566, -0.024987468495965004, 0.011150134727358818, 0.0024189159739762545, 0.007171682547777891, -0.051405783742666245, 0.11356036365032196, -0.06784307211637497, -0.07147253304719925, -0.014718526042997837, -0.06875043362379074, 0.008689776062965393, -0.0043318010866642, 0.016035951673984528, 0.005775734782218933, -0.049521252512931824, -0.047741420567035675, 0.0011952804634347558, 0.011586368083953857, -0.011516571044921875, -0.01901979185640812, -0.008244818076491356, 0.03769059479236603, 0.030466563999652863, 0.01272057555615902, 0.055733222514390945, -0.009440097957849503, -0.0657840445637703, -0.0008991867653094232, 0.008135759271681309, -0.04599648714065552, -0.058176130056381226, 0.0586647130548954, -0.06009555980563164, 0.014168871566653252, -0.0009553518611937761, -0.003764697117730975, 0.0026806562673300505, 0.008022338151931763, -0.030571259558200836, 0.055139943957328796, 0.01033873949199915, 0.012842721305787563, 0.020694928243756294, -0.015931256115436554, -0.00007272834045579657, -0.01494536828249693, 0.0107313496991992, -0.00897769071161747, 0.032037004828453064, -0.0008948244503699243, 0.014003102667629719, 0.05583791807293892, -0.0023360317572951317, -0.025301557034254074, -0.055733222514390945, -0.022021079435944557, -0.067738376557827, -0.03278732672333717, -0.025458600372076035, 0.04474013298749924, 0.0492071658372879, 0.0022487849928438663, 0.0036294646561145782, 0.005771372467279434, 0.009754186496138573, -0.0071585956029593945, 0.02996053360402584, -0.021131161600351334, -0.04118046537041664, 0.04058718681335449, -0.003302289405837655, 0.017903031781315804, 0.01607085019350052, 0.010094448924064636, 0.00667437631636858, 0.012668227776885033, 0.023853261023759842, 0.016044676303863525, 0.028616933152079582, 0.028285395354032516 ]
729,359
tinytuya.core
set_socketRetryLimit
null
def set_socketRetryLimit(self, limit): self.socketRetryLimit = limit
(self, limit)
[ -0.0073384433053433895, 0.011178276501595974, -0.033431168645620346, 0.05003444850444794, -0.031098760664463043, 0.01802000403404236, -0.02719413861632347, 0.006781257223337889, -0.024343417957425117, -0.040324725210666656, -0.00989113375544548, 0.0032070595771074295, 0.009554230608046055, -0.009485121816396713, 0.007001540157943964, 0.009597422555088997, 0.01386486366391182, -0.00888042338192463, -0.0010333858663216233, 0.005723035894334316, -0.002664990955963731, 0.02062884345650673, 0.013545237481594086, -0.002742737764492631, -0.007429148070514202, 0.07899085432291031, -0.06212841346859932, 0.07097428292036057, 0.04975801706314087, -0.05659974366426468, -0.09308895468711853, 0.008582393638789654, -0.01579989865422249, 0.04650992527604103, 0.04530052840709686, -0.007511214353144169, -0.04433301091194153, 0.001442636945284903, -0.08921888470649719, 0.012715937569737434, -0.021734578534960747, 0.0037080952897667885, -0.022477492690086365, 0.0007018817123025656, 0.02114715613424778, 0.0017946576699614525, 0.011212830431759357, 0.06271583586931229, 0.03457145392894745, -0.0014037634246051311, -0.06516917794942856, 0.060124270617961884, -0.04381469637155533, 0.0016067692777141929, -0.01621454767882824, 0.03852790966629982, -0.04263985529541969, 0.0752590000629425, 0.011973022483289242, -0.05511391535401344, -0.038977112621068954, -0.018832026049494743, -0.01890113577246666, -0.00850896630436182, 0.024861730635166168, -0.036005452275276184, -0.05335165187716484, 0.029111895710229874, 0.029008232057094574, -0.002893912373110652, 0.06174831464886665, 0.036316439509391785, -0.04861772805452347, -0.01926395483314991, -0.005960595794022083, 0.020870722830295563, -0.02522454969584942, 0.03336205706000328, -0.07816155254840851, 0.024913562461733818, 0.056565187871456146, 0.012076685205101967, 0.060538921505212784, 0.0008033846388570964, 0.029267389327287674, -0.0731857493519783, 0.0007569524459540844, -0.027176860719919205, -0.013061479665338993, -0.011929829604923725, -0.043780144304037094, 0.05214225500822067, -0.007627834565937519, -0.0023885576520115137, -0.005848294589668512, -0.008478731848299503, 0.013502044603228569, -0.029993025586009026, 0.005420686677098274, -0.05290244519710541, -0.056668851524591446, -0.017233897000551224, -0.014054912142455578, -0.07629562169313431, 0.06281949579715729, -0.039288099855184555, 0.016482342034578323, -0.046440813690423965, -0.0114374328404665, 0.023358624428510666, 0.030062135308980942, -0.00458274781703949, 0.019661327823996544, 0.06827905774116516, -0.032705530524253845, 0.05501025170087814, -0.0067121488973498344, -0.031772565096616745, 0.05397362634539604, 0.028852738440036774, -0.01751033030450344, 0.04526597261428833, -0.0035288454964756966, 0.0055545843206346035, -0.0006176559254527092, 0.04723555967211723, 0.0013249367475509644, 0.03686930611729622, 0.0698685497045517, -0.05324798822402954, 0.014331345446407795, -0.036731090396642685, -0.004321431741118431, 0.012309925630688667, 0.013674816116690636, -0.0009599582408554852, -0.0246371291577816, 0.058811210095882416, -0.005900125950574875, -0.05048365518450737, -0.048375848680734634, 0.07774689793586731, 0.009796109050512314, 0.010970951057970524, 0.049516137689352036, 0.025777416303753853, 0.02804071456193924, 0.02292669750750065, -0.006647360045462847, -0.03137519210577011, 0.014979235827922821, -0.021164434030652046, -0.01540252473205328, -0.010927759110927582, -0.05079464241862297, 0.042847178876399994, -0.04053204879164696, -0.01916029118001461, 0.03237726539373398, -0.04872139170765877, -0.05310977250337601, -0.01683652400970459, 0.0242224782705307, -0.05476837232708931, -0.0034510984551161528, -0.013847586698830128, -0.016931546851992607, 0.006897877901792526, 0.025397321209311485, 0.04682091251015663, -0.007731497287750244, 0.013268804177641869, 0.023894213140010834, -0.024930838495492935, 0.030615001916885376, 0.05193492770195007, -0.002548370510339737, -0.023686889559030533, -0.03529709205031395, 0.044816769659519196, -0.0036001133266836405, -0.008133189752697945, 0.024291586130857468, -0.0689355880022049, 0.035418033599853516, -0.0026282770559191704, 0.015152007341384888, 0.03700752556324005, -0.0029889363795518875, 0.009657892398536205, 0.0480303056538105, 0.027125028893351555, 0.04872139170765877, -0.019125737249851227, -0.011005505919456482, -0.014944681897759438, 0.05027632787823677, -0.04671724885702133, 0.06423621624708176, 0.053593531250953674, -0.03849335387349129, 0.0721491202712059, 0.02783339098095894, -0.045749731361866, 0.040117401629686356, -0.041637785732746124, -0.0054897950030863285, -0.023324070498347282, -0.00458274781703949, 0.03137519210577011, -0.05034543573856354, 0.00883291196078062, 0.0493779219686985, 0.02249477058649063, 0.02964748442173004, -0.00506218709051609, 0.03700752556324005, -0.009312351234257221, 0.038769789040088654, 0.020594289526343346, 0.02954382263123989, -0.021216265857219696, -0.04395291581749916, -0.07995836436748505, 0.00039764298708178103, 0.025345489382743835, -0.025984741747379303, -0.07664116472005844, 0.06233573704957962, 0.06233573704957962, 0.01585172861814499, 0.035729020833969116, 0.0020818891935050488, 0.02767789736390114, 0.025241827592253685, -0.00020853985915891826, -0.009649254381656647, -0.00003367682438693009, -0.008940893225371838, -0.026606716215610504, -0.025500982999801636, 0.01587764546275139, 0.011843444779515266, 0.00648754695430398, 0.0239114910364151, 0.032031722366809845, 0.004859181120991707, 0.03135791793465614, 0.04892871528863907, 0.02104349434375763, 0.06040070205926895, -0.026952259242534637, -0.08714563399553299, -0.01057357806712389, 0.000007187538813013816, 0.0067510223016142845, -0.013614346273243427, -0.0031681861728429794, -0.050725534558296204, 0.04098125547170639, 0.0028636774513870478, 0.013743923977017403, -0.07781600952148438, -0.02140631340444088, -0.003958613146096468, -0.011791612952947617, -0.049930788576602936, 0.030062135308980942, -0.013355189934372902, 0.0011888797162100673, 0.08921888470649719, -0.005114018451422453, -0.02004142291843891, 0.034433238208293915, -0.02829987183213234, -0.016490980982780457, -0.004608663264662027, 0.02004142291843891, 0.006997221149504185, -0.058189235627651215, 0.04416023939847946, 0.013216973282396793, 0.013718008995056152, 0.014979235827922821, -0.024619851261377335, 0.026243899017572403, 0.010297144763171673, 0.06465086340904236, -0.057878248393535614, -0.01289734710007906, -0.022304721176624298, -0.023635057732462883, 0.03966819494962692, -0.026451222598552704, -0.026192067191004753, -0.0672769844532013, 0.02595018781721592, 0.0052522351033985615, 0.03090871125459671, 0.03508976846933365, -0.01555801834911108, -0.08237715810537338, -0.053386203944683075, 0.0478229820728302, 0.08486506342887878, -0.042674411088228226, 0.04474766179919243, -0.015082898549735546, -0.0029867766425013542, 0.01921212300658226, -0.007273654453456402, -0.001991184428334236, -0.02396332286298275, -0.056668851524591446, 0.07456791400909424, 0.02793705277144909, 0.007277973927557468, 0.020974386483430862, -0.020870722830295563, 0.023254962638020515, -0.029042785987257957, -0.0025375725235790014, -0.01665511354804039, -0.03804415091872215, -0.007234781049191952, 0.03296468406915665, 0.0933653861284256, 0.020507903769612312, -0.0699722096323967, -0.044609442353248596, -0.036143671721220016, -0.041534122079610825, -0.019661327823996544, -0.023254962638020515, -0.02553553692996502, 0.02636483684182167, 0.021423589438199997, 0.018348269164562225, 0.013743923977017403, 0.01957494206726551, 0.01106597576290369, -0.028006160631775856, 0.02280575782060623, 0.04060116037726402, 0.04201788082718849, 0.005407728720456362, 0.017493052408099174, 0.004260961897671223, -0.0023928768932819366, 0.018762918189167976, -0.009882494807243347, 0.0004200492112431675, -0.026399392634630203, 0.01018484402447939, -0.0020408560521900654, 0.01678469218313694, 0.014944681897759438, 0.0458533950150013, 0.03676564618945122, -0.04022106155753136, -0.06285405158996582, 0.005856933072209358, 0.017233897000551224, 0.0073168473318219185, 0.026554886251688004, 0.09267430752515793, -0.007982014678418636, -0.024412525817751884, 0.06319959461688995, -0.006634402088820934, -0.04108491912484169, -0.06572204828262329, -0.02088800072669983, -0.0012774247443303466, 0.016404595226049423, 0.018071835860610008, -0.09073927253484726, 0.008914978243410587, -0.004872139077633619, 0.010789542458951473, 0.029267389327287674, -0.053075216710567474, 0.08603990077972412, -0.04222520440816879, 0.008694695308804512, -0.0020041423849761486, 0.004824627190828323, -0.037145741283893585, 0.03147885575890541, 0.01399444229900837, 0.02026602439582348, 0.02563920058310032, 0.018762918189167976, 0.01297509390860796, -0.02584652416408062, -0.013372466899454594, -0.01195574551820755, 0.01973043568432331, 0.04015195369720459, -0.02259843237698078, -0.013407020829617977, 0.05739448964595795, -0.015886282548308372, 0.041845109313726425, -0.00003688253491418436, 0.04965435341000557, 0.06319959461688995, -0.004379741847515106, 0.013502044603228569, -0.024239756166934967, -0.03533164784312248, 0.023047637194395065, -0.007221823092550039, -0.00835347268730402, -0.009217326529324055, 0.021181711927056313, -0.02370416559278965, -0.008465773425996304, 0.05100196599960327, -0.0234968401491642, 0.03529709205031395, -0.02047334983944893, 0.02543187513947487, 0.05217680707573891, -0.014167212881147861, -0.016767414286732674, 0.00960606150329113, -0.05355897545814514, -0.02714230678975582, 0.012206262908875942, -0.012413588352501392, 0.02458529733121395, 0.004431573208421469, 0.013104671612381935, 0.046855464577674866, -0.03398403525352478, -0.04384925216436386, 0.009096387773752213, -0.04277807101607323, -0.05535579472780228, 0.05756726115942001, -0.05069097876548767, 0.03044223040342331, -0.041534122079610825, 0.06551472097635269, -0.029802978038787842, -0.011005505919456482, -0.006254306063055992, -0.06762252748012543, -0.023531395941972733, -0.05611598491668701, -0.08237715810537338, 0.005943318363279104, -0.013398382812738419, -0.020162362605333328, 0.010901843197643757, -0.032809190452098846, 0.02569103054702282, 0.019868651404976845, -0.059640511870384216, 0.0054034097120165825, -0.009113664738833904, 0.008305960334837437, -0.0033474359661340714, -0.04561151564121246, 0.0702831968665123, 0.07456791400909424, -0.012672744691371918, 0.014625055715441704, 0.01864197850227356, 0.01394261047244072, -0.03818236663937569, -0.029820255935192108, -0.051243845373392105, 0.013614346273243427, -0.008305960334837437, 0.008608309552073479, 0.06534194946289062, 0.05321343243122101, 0.010202120989561081, -0.0034554176963865757, -0.008444176986813545, 0.07712492346763611, -0.01054766308516264, -0.021751854568719864, -0.06413255631923676, -0.054111842066049576, -0.03206627815961838, -0.017190704122185707, 0.005144253373146057, -0.034225914627313614, 0.06123000383377075, -0.010400807484984398, 0.036420103162527084, 0.04799575358629227, 0.01789906434714794, -0.050725534558296204, 0.005299746990203857, 0.007290931418538094, -0.016076331958174706, -0.021337205544114113, -0.032912854105234146, -0.07816155254840851, -0.014124020002782345, 0.009096387773752213, 0.01769173890352249, -0.0459570549428463, 0.03586723655462265, 0.02840353362262249, -0.011212830431759357, 0.057083502411842346, 0.047166451811790466, -0.021423589438199997, 0.06686233729124069, 0.02099166251718998, -0.026278452947735786, 0.004412136506289244, 0.03337933495640755, -0.017864510416984558, -0.030269460752606392, 0.04108491912484169, -0.01289734710007906, 0.015359331853687763, 0.004140022210776806, 0.008064080961048603, -0.07905995845794678, 0.045818839222192764, -0.02484445460140705, 0.039184436202049255, 0.08887334913015366, 0.018728364259004593, 0.03230815753340721, 0.02354867197573185, 0.0032372944988310337, 0.040013737976551056, 0.004019082989543676, -0.046337153762578964, -0.05037999153137207, -0.06361424177885056, -0.004496362525969744, -0.058811210095882416, -0.003239454235881567, 0.01983409747481346, -0.06530739367008209, -0.07263287901878357, -0.011705228127539158, -0.051658496260643005, 0.0459570549428463, -0.01745849847793579, -0.05843111500144005, 0.08970264345407486, 0.02036968804895878, 0.007899949327111244, -0.017233897000551224, -0.06572204828262329, -0.07138893008232117, 0.048997823148965836, -0.05618509277701378, 0.022477492690086365, 0.010236674919724464, -0.019592218101024628, -0.04360737279057503, 0.07263287901878357, 0.011238746345043182, -0.023565949872136116, -0.0242224782705307, -0.009079109877347946, -0.0239114910364151, -0.045507851988077164, 0.006634402088820934, 0.004204811528325081, -0.018607424572110176, -0.023013083264231682, 0.02938832901418209, -0.03932265564799309, 0.02114715613424778, -0.00916549563407898, 0.0019415129208937287, 0.008318918757140636, 0.04381469637155533, 0.0071397568099200726, 0.03973730280995369, 0.004479085095226765, -0.04360737279057503, 0.009001363068819046, 0.038977112621068954, -0.004889416042715311, -0.013432936742901802, -0.019505834206938744, 0.02709047496318817, -0.016015861183404922, 0.03686930611729622, -0.05100196599960327, -0.06686233729124069, -0.010711794719099998, 0.05487203598022461, -0.02218378148972988, -0.00999479554593563, 0.06313048303127289, 0.07843798398971558, 0.018883857876062393, 0.05953684821724892, -0.02871452271938324, 0.028990956023335457, -0.01774357073009014, -0.0234450101852417, -0.03852790966629982, 0.03904622048139572, 0.017415305599570274, 0.048479512333869934, -0.056565187871456146, -0.003122833790257573, 0.003915420267730951, -0.0252072736620903, -0.08624722808599472, 0.009035917930305004, -0.03367304801940918, 0.0482376329600811, 0.011411516927182674, -0.03341389074921608, -0.02819621004164219, 0.03135791793465614, 0.012551805004477501, -0.012327202595770359, -0.05722171813249588, 0.032705530524253845, -0.024550743401050568, -0.027453294023871422, -0.07387683540582657, 0.003589315339922905, -0.0231340229511261, -0.027608787640929222, 0.053075216710567474, -0.012068046256899834, -0.06948845088481903, -0.02197645790874958, 0.018814750015735626, 0.02130264975130558, 0.009908410720527172, -0.024671683087944984, 0.09205233305692673, -0.01577398180961609, -0.00012154701835243031, -0.028697244822978973, 0.0009318829979747534, 0.05476837232708931, -0.007049052510410547, 0.004142181947827339, -0.02265026420354843, 0.010677240788936615, -0.01034033764153719, -0.009105025790631771, -0.010107097215950489, 0.03870067745447159, -0.024412525817751884, -0.013726647011935711, 0.016715584322810173, 0.06140277534723282, 0.05822379142045975, -0.0748443529009819, -0.051865819841623306, -0.012992370873689651, 0.014607778750360012, 0.0012806642334908247, 0.008897700347006321, 0.02829987183213234, -0.024187924340367317, -0.044713106006383896, -0.034796055406332016, -0.003423023270443082, 0.04536963626742363, -0.018659256398677826, -0.015177922323346138, 0.0492742583155632, 0.06081535294651985, -0.011454709805548191, -0.06406344473361969, -0.018987521529197693, -0.0744296982884407, -0.001843249425292015, 0.020905276760458946, -0.003107716329395771, -0.0691429078578949, -0.011817528866231441, 0.022425660863518715, 0.024775344878435135, -0.01662919856607914, 0.05549401044845581, -0.02734963223338127, 0.04747743904590607, 0.017596714198589325, 0.0056020962074398994, -0.058811210095882416, 0.07954371720552444, -0.09136124700307846, -0.048755943775177, -0.03320656344294548, -0.05511391535401344, 0.02401515282690525, -0.013251527212560177, 0.02506905607879162, 0.010841373354196548, -0.05977872759103775, -0.031513411551713943, -0.01203349232673645, -0.021630914881825447, -0.03137519210577011, -0.020922554656863213, 0.0029824574012309313, 0.025881079956889153, 0.03963364288210869, 0.04253619164228439, 0.04965435341000557, -0.013087394647300243, -0.07249466329813004, 0.06088446080684662, 0.018348269164562225, -0.027608787640929222, -0.043365493416786194, 0.031202422454953194, -0.033759430050849915, 0.03849335387349129, -0.012957816943526268, -0.0021995892748236656, 0.008409623056650162, 0.0027686534449458122, -0.005623692646622658, 0.051140181720256805, 0.0039262184873223305, 0.018158219754695892, 0.028006160631775856, -0.02845536544919014, -0.03382854163646698, -0.006871961988508701, -0.0005577260162681341, -0.010107097215950489, 0.022632986307144165, 0.011921191588044167, 0.005057867616415024, 0.0027362590190023184, 0.004720964469015598, -0.07719403505325317, -0.057670921087265015, -0.020438795909285545, -0.04526597261428833, -0.019920483231544495, 3.079168777730956e-7, 0.05535579472780228, 0.04713189974427223, 0.02724596858024597, 0.0016715583624318242, -0.00417025713250041, 0.02783339098095894, -0.005748951341956854, -0.0036692216526716948, -0.018935689702630043, -0.03821692243218422, 0.020231470465660095, 0.006154962815344334, 0.05214225500822067, -0.01116963755339384, 0.028109824284911156, 0.0001406462979502976, 0.011264662258327007, -0.0013281762367114425, 0.018158219754695892, 0.0488596074283123, 0.015523464418947697 ]
729,360
tinytuya.core
set_socketTimeout
null
def set_socketTimeout(self, s): self.connection_timeout = s if self.socket: self.socket.settimeout(s)
(self, s)
[ -0.02785167656838894, -0.009383405558764935, 0.016415219753980637, 0.03825012594461441, -0.024158939719200134, -0.006260196678340435, -0.05066947266459465, 0.03488808125257492, -0.023534297943115234, -0.034355297684669495, -0.029817460104823112, -0.0009243320673704147, -0.020062025636434555, -0.01750834286212921, -0.0030244605150073767, -0.013200150802731514, -0.019400639459490776, -0.03093814104795456, -0.004005056340247393, -0.04063846170902252, 0.014256530441343784, 0.032132308930158615, 0.010866929776966572, -0.0322425402700901, 0.0004420718760229647, 0.04431282356381416, -0.060884203761816025, 0.039903588593006134, 0.04453328624367714, -0.06591808050870895, -0.05783448368310928, 0.025426596403121948, -0.038507331162691116, 0.042328666895627975, 0.01740729808807373, 0.0018130687531083822, -0.05243316665291786, -0.011179250665009022, -0.01623150147497654, 0.026822853833436966, -0.07458958029747009, -0.0023745575454086065, -0.026620764285326004, 0.03413483873009682, 0.02781493216753006, 0.009176722727715969, -0.017636945471167564, 0.07708814740180969, 0.017260322347283363, 0.017388924956321716, -0.03082790970802307, 0.04365143924951553, -0.04203471913933754, -0.020208999514579773, -0.019161805510520935, 0.0062096742913126945, -0.028310971334576607, 0.06929849833250046, -0.02340569533407688, -0.014385133050382137, -0.014311646111309528, 0.029321420937776566, -0.054160118103027344, 0.0052405609749257565, -0.04953042045235634, -0.017297066748142242, 0.004340341780334711, 0.010912859812378883, 0.06338277459144592, 0.00970950536429882, 0.053461991250514984, 0.05882656201720238, 0.0030152746476233006, -0.02285454049706459, 0.02820073999464512, 0.038654305040836334, -0.05754053220152855, 0.01158343069255352, -0.06962919235229492, 0.039830099791288376, -0.010499494150280952, 0.024838697165250778, 0.014403505250811577, 0.025169391185045242, 0.007771278731524944, 0.005392128601670265, 0.03520040214061737, 0.011574245058000088, -0.04071194678544998, -0.02035597339272499, -0.018684139475226402, 0.019474126398563385, -0.0036330269649624825, 0.0008273058920167387, -0.013558401726186275, 0.04526815935969353, -0.010416820645332336, -0.033969491720199585, -0.0015719386283308268, -0.0592307411134243, -0.03020326793193817, -0.0006039735162630677, 0.01657138019800186, -0.07819045335054398, 0.06239069253206253, -0.041152872145175934, 0.0194924995303154, -0.05140434578061104, -0.02441614493727684, 0.00641635712236166, 0.06871059536933899, 0.018013566732406616, 0.0327385775744915, 0.07782302051782608, -0.005529917310923338, 0.014853614382445812, -0.016837770119309425, -0.02875189483165741, 0.002714436035603285, -0.002735104411840439, -0.05577683821320534, 0.03097488544881344, 0.028347713872790337, -0.007298204582184553, -0.030423730611801147, 0.028310971334576607, -0.002751179737970233, 0.027704700827598572, 0.0396096408367157, -0.048538342118263245, -0.00586060993373394, 0.010306589305400848, 0.04706859588623047, 0.07701466232538223, 0.012713298201560974, 0.009737063199281693, -0.09369627386331558, 0.08090948313474655, 0.014954660087823868, -0.05004483088850975, -0.05893678963184357, 0.03389600291848183, -0.010830186307430267, -0.023497555404901505, 0.05687914788722992, 0.06628552079200745, -0.014265716075897217, 0.01191412378102541, -0.04534164443612099, -0.025794032961130142, -0.024912184104323387, -0.017673688009381294, -0.03446552902460098, -0.029468394815921783, -0.0389849990606308, 0.014081998728215694, -0.032407887279987335, -0.04126310348510742, 0.02184409089386463, -0.008588824421167374, -0.05577683821320534, -0.020576436072587967, 0.02507753111422062, -0.06426461786031723, -0.03426343947649002, -0.03505342826247215, -0.043541207909584045, -0.0018417746759951115, 0.04659092798829079, 0.027318893000483513, -0.027410751208662987, 0.027704700827598572, -0.0028315563686192036, -0.0046090297400951385, 0.07128265500068665, 0.01172121986746788, 0.01688370108604431, 0.002243658294901252, -0.004896089434623718, 0.005470208823680878, -0.011445642448961735, -0.00885980948805809, -0.022707566618919373, -0.006572517566382885, 0.007201752625405788, 0.015285352244973183, 0.017214393243193626, 0.06220697611570358, 0.003557243151590228, -0.008469408378005028, 0.04872206225991249, -0.01644277758896351, 0.014274902641773224, -0.008965446613729, 0.028880497440695763, 0.03938917815685272, 0.04442305490374565, -0.0517350398004055, 0.08524523675441742, 0.11023090779781342, 0.004707778338342905, 0.05945120379328728, -0.0018544053891673684, -0.01534965354949236, 0.037129443138837814, -0.04394538700580597, 0.04192448779940605, -0.028880497440695763, -0.0005425427225418389, 0.003734071971848607, -0.02687796950340271, -0.032407887279987335, 0.0322425402700901, -0.015009774826467037, 0.00623263930901885, -0.012299931608140469, -0.0346125029027462, -0.010122871957719326, 0.03527389094233513, -0.0008933296194300056, 0.031819988042116165, -0.05316803976893425, -0.03696409612894058, -0.06183953955769539, 0.003991277422755957, 0.010086127556860447, -0.0433574914932251, -0.09825248271226883, 0.04776672646403313, 0.01636928878724575, -0.03079116716980934, 0.08553918451070786, 0.0019910456612706184, 0.04508443921804428, 0.018408561125397682, -0.017324624583125114, 0.012281560339033604, -0.02941328100860119, -0.057760994881391525, -0.10288217663764954, -0.044753748923540115, -0.007004255428910255, 0.002264326438307762, -0.0022126557305455208, 0.015358839184045792, -0.007256867829710245, 0.022413616999983788, 0.016323359683156013, 0.022211527451872826, 0.029523510485887527, 0.0366150327026844, -0.037331532686948776, -0.026418674737215042, -0.015377211384475231, 0.019198549911379814, -0.019621102139353752, 0.00970950536429882, 0.035769928246736526, -0.03942592069506645, 0.023956850171089172, -0.03488808125257492, -0.009268581867218018, -0.06871059536933899, 0.03170975670218468, 0.03308764472603798, -0.05055924132466316, -0.015579301863908768, 0.01848204806447029, -0.04563559591770172, -0.02109084650874138, 0.13911139965057373, -0.036743637174367905, -0.04501095414161682, 0.02347918227314949, -0.014302460476756096, 0.012897016480565071, -0.010031012818217278, -0.05055924132466316, -0.014568851329386234, -0.07752907276153564, 0.07598584145307541, 0.02625332772731781, 0.06128838285803795, 0.0022275829687714577, -0.05978189408779144, 0.0023492961190640926, -0.012180515564978123, 0.04842811077833176, -0.053388502448797226, -0.0018922971794381738, -0.060884203761816025, -0.023699644953012466, 0.04490072280168533, -0.022413616999983788, -0.05305780842900276, -0.00523596815764904, -0.01472501177340746, 0.05728332698345184, 0.0236812736839056, -0.011353783309459686, -0.0005169944488443434, -0.036082249134778976, -0.0517350398004055, 0.06779200583696365, 0.04453328624367714, -0.03488808125257492, -0.0083086546510458, 0.0007876916788518429, 0.017783919349312782, 0.015909994021058083, -0.026069609448313713, 0.0008502706768922508, -0.04886903613805771, -0.04390864446759224, 0.030644191429018974, 0.06668969988822937, -0.06779200583696365, -0.041189614683389664, -0.017747176811099052, 0.07113567739725113, 0.00021457708498928696, -0.06533018499612808, -0.027208661660552025, -0.02629007026553154, 0.017453227192163467, 0.012456092052161694, 0.07249519228935242, 0.01179470680654049, -0.016350917518138885, -0.039830099791288376, -0.014908730052411556, -0.044165849685668945, -0.0026730995159596205, -0.05386617034673691, 0.0068480949848890305, -0.02355267107486725, 0.0064944373443722725, 0.03766222670674324, 0.021164333447813988, 0.014091184362769127, -0.0026960643008351326, 0.006306126248091459, 0.015698717907071114, -0.0002401254023425281, 0.10104499757289886, 0.008818472735583782, -0.06202325597405434, -0.022046180441975594, 0.04526815935969353, 0.02008039690554142, 0.026143096387386322, 0.0050568426959216595, 0.0010173394111916423, 0.005047657061368227, 0.007348726969212294, 0.04306354001164436, 0.06128838285803795, 0.06621202826499939, 0.02417731285095215, -0.0692250058054924, -0.04629698023200035, 0.07863137871026993, 0.05761402100324631, -0.041814256459474564, 0.04842811077833176, 0.06558738648891449, 0.01918017864227295, -0.0002450054162181914, 0.06352974474430084, 0.0011137914843857288, -0.0638604387640953, -0.08789077401161194, 0.03843384236097336, 0.013512471690773964, 0.024011965841054916, 0.0047583007253706455, -0.07165008783340454, 0.005157887935638428, 0.00398668460547924, -0.0492364726960659, 0.030368614941835403, -0.07275240123271942, 0.08223225921392441, -0.025206133723258972, 0.011656918562948704, -0.02371801622211933, -0.014660710468888283, -0.012382605113089085, 0.041814256459474564, 0.017012303695082664, -0.015165935270488262, 0.007808022666722536, 0.023773131892085075, 0.02496729977428913, -0.042291924357414246, -0.00015099337906576693, -0.012419348582625389, 0.014348389580845833, 0.0037868910003453493, 0.014072812162339687, 0.021476654335856438, 0.016203943639993668, 0.020227370783686638, 0.03363879770040512, 0.027484240010380745, 0.06286835670471191, 0.027961906045675278, -0.019584357738494873, -0.015689533203840256, -0.028384458273649216, -0.026234956458210945, -0.0185555350035429, 0.014605594798922539, 0.009865665808320045, -0.019547613337635994, 0.023699644953012466, 0.008901145309209824, 0.0268044825643301, 0.06826967746019363, -0.005075214430689812, 0.004246186465024948, -0.041189614683389664, 0.008248946629464626, 0.08627405762672424, 0.0033666356466710567, -0.00785854458808899, -0.007289018481969833, -0.015900807455182076, -0.015322095714509487, -0.0033161130268126726, 0.026345185935497284, 0.04519467055797577, 0.03027675487101078, 0.030644191429018974, 0.05114714056253433, 0.033032529056072235, -0.006462286692112684, -0.03422669693827629, -0.028421202674508095, -0.006140780169516802, 0.03665177524089813, -0.034318555146455765, -0.025224504992365837, -0.013374683447182178, 0.058385636657476425, -0.02472846582531929, 0.009332883171737194, 0.027998650446534157, -0.016672424972057343, 0.01139052677899599, -0.008327026851475239, -0.024857070297002792, 0.024158939719200134, -0.031085114926099777, -0.015827320516109467, -0.006673562806099653, 0.01619475707411766, 0.04063846170902252, -0.02254221960902214, -0.03442878648638725, -0.016424404457211494, -0.014173856936395168, 0.042879823595285416, -0.01117006503045559, -0.05629124864935875, 0.044239338487386703, 0.06176605075597763, -0.023001516237854958, 0.0003367209865245968, 0.005585032515227795, 0.02597774937748909, -0.006108629517257214, -0.04096915200352669, -0.004383975174278021, 0.000644161831587553, -0.0673510804772377, 0.003984387964010239, 0.07231147587299347, -0.027208661660552025, 0.01193249598145485, 0.006774607580155134, 0.017159277573227882, 0.06617528945207596, -0.01602941006422043, -0.002475602552294731, -0.022946400567889214, 0.01326445210725069, -0.08024810254573822, -0.004147437866777182, -0.0016442777123302221, -0.018114611506462097, 0.06727759540081024, -0.002100128447636962, 0.0004986225976608694, 0.040491487830877304, -0.019988536834716797, -0.09266744554042816, 0.004310487769544125, -0.018564721569418907, -0.002288439543917775, -0.037405021488666534, -0.03367554023861885, -0.02746586687862873, -0.007210938259959221, 0.04956716299057007, 0.02250547707080841, -0.04372492805123329, 0.039830099791288376, -0.0027052501682192087, -0.011151693761348724, 0.033069271594285965, 0.024195684120059013, -0.012162143364548683, 0.058973535895347595, 0.0421082079410553, -0.0492364726960659, -0.009681947529315948, -0.010031012818217278, -0.03707432746887207, -0.04405561834573746, 0.011326225474476814, 0.013723747804760933, 0.026822853833436966, 0.012823528610169888, -0.0070318132638931274, -0.051514577120542526, 0.036670148372650146, 0.040454741567373276, 0.022248271852731705, -0.008492372930049896, 0.010839372873306274, 0.0013503285590559244, -0.055299170315265656, 0.017912521958351135, 0.049824368208646774, 0.04659092798829079, -0.038617562502622604, -0.01973133161664009, -0.09016887843608856, -0.01740729808807373, -0.02215641178190708, 0.02926630526781082, 0.0707314983010292, -0.028604920953512192, -0.05063273012638092, -0.0068343160673975945, -0.0489792674779892, 0.07473655790090561, -0.015459884889423847, -0.0021988770458847284, 0.032756950706243515, 0.024875441566109657, -0.032683465629816055, -0.014706640504300594, -0.06139861419796944, -0.049677394330501556, 0.046627674251794815, -0.04831787943840027, -0.002544496674090624, -0.008648533374071121, -0.011004718951880932, -0.013310382142663002, 0.07492027431726456, 0.04089566692709923, 0.007913660258054733, -0.00868987012654543, 0.04703185334801674, -0.052286192774772644, -0.05886330455541611, 0.025812404230237007, 0.0015030443901196122, 0.019363895058631897, -0.017802290618419647, 0.012162143364548683, -0.01179470680654049, 0.02035597339272499, -0.04677464812994003, 0.02390173450112343, -0.03237114101648331, 0.05239642411470413, 0.005369163583964109, 0.02597774937748909, -0.019951794296503067, -0.014881172217428684, 0.02480195462703705, -0.005382942501455545, -0.003065797034651041, 0.0002339536149520427, -0.033932749181985855, -0.018849484622478485, -0.022413616999983788, 0.013705375604331493, -0.062170229852199554, -0.04313702881336212, -0.01314503513276577, 0.011693662032485008, 0.043541207909584045, -0.03332647681236267, 0.06452182680368423, 0.04188774526119232, 0.014743383973836899, 0.06371346116065979, -0.0063658347353339195, 0.03938917815685272, -0.002891264855861664, -0.022634079679846764, -0.040528230369091034, 0.08744985610246658, 0.013108291663229465, -0.010389262810349464, -0.039866846054792404, 0.020172255113720894, 0.0021919875871390104, 0.0063796136528253555, -0.03047884628176689, 0.01941901072859764, -0.028494689613580704, 0.056548453867435455, -0.02313011884689331, -0.012860272079706192, -0.02902747131884098, 0.05974515154957771, 0.024783581495285034, -0.014431063085794449, -0.04012405127286911, 0.04247564077377319, -0.026143096387386322, -0.0033000377006828785, -0.06904128938913345, -0.06125164031982422, -0.03180161491036415, -0.01578139141201973, 0.046039775013923645, 0.018849484622478485, -0.05393965542316437, 0.016801027581095695, -0.025059159845113754, 0.026896340772509575, -0.014752569608390331, 0.0065219951793551445, 0.05551963299512863, -0.04409236088395119, 0.02926630526781082, -0.016341732814908028, -0.004726150073111057, 0.04265936091542244, -0.008891959674656391, 0.011004718951880932, -0.028733523562550545, 0.019639473408460617, -0.03051558881998062, 0.02234013006091118, 0.020502949133515358, 0.0047307428903877735, 0.0224319901317358, -0.02836608700454235, 0.023001516237854958, 0.005745785776525736, 0.0586060993373394, -0.04276959225535393, -0.0293030496686697, -0.018013566732406616, -0.02965211309492588, 0.016635680571198463, 0.07517747581005096, -0.019033202901482582, -0.052874092012643814, -0.011160879395902157, -0.0013526250841096044, 0.03016652539372444, 0.03409809246659279, -0.0021862462162971497, -0.007435993291437626, 0.05643822252750397, 0.04872206225991249, -0.023975221440196037, 0.01035251934081316, -0.03367554023861885, -0.06852687895298004, 0.005947875790297985, -0.005704449489712715, 0.01179470680654049, -0.005222189240157604, -0.051698293536901474, -0.00821679551154375, 0.001069584279321134, 0.03139743581414223, -0.007403842639178038, -0.03652317449450493, 0.007155823055654764, 0.0007653010543435812, -0.021219449117779732, -0.06793898344039917, 0.055960558354854584, -0.0346125029027462, -0.06488925963640213, -0.008588824421167374, -0.0673510804772377, 0.05081644654273987, 0.006770014762878418, 0.048464857041835785, 0.028935613110661507, -0.06595482677221298, -0.01861983723938465, 0.03780920058488846, -0.022450361400842667, 0.026234956458210945, -0.01539558358490467, 0.030331870540976524, 0.015064890496432781, 0.007266053929924965, -0.042438898235559464, 0.05059598758816719, 0.026418674737215042, -0.06290510296821594, 0.028586547821760178, 0.014973031356930733, -0.030680935829877853, -0.012823528610169888, 0.062096744775772095, -0.013916651718318462, 0.02008039690554142, -0.019970165565609932, 0.010802628472447395, 0.0008841437520459294, -0.010609724558889866, -0.02816399745643139, 0.03363879770040512, 0.023736389353871346, -0.009782993234694004, -0.019676215946674347, 0.014072812162339687, -0.004831788130104542, -0.004597547464072704, -0.06694690138101578, 0.0004179588577244431, 0.019988536834716797, -0.007936624810099602, -0.005511545110493898, 0.030331870540976524, -0.012263188138604164, -0.02812725305557251, -0.014045254327356815, -0.050926677882671356, -0.04141007736325264, -0.05574009567499161, -0.050449009984731674, 0.07374447584152222, 0.019088318571448326, 0.0346125029027462, 0.02035597339272499, -0.031507667154073715, 0.003504424123093486, -0.01484442874789238, 0.00785395223647356, -0.010003454983234406, -0.08473082631826401, 0.03259160369634628, -0.009094050154089928, 0.0714663714170456, 0.0021575402934104204, 0.03165464103221893, 0.06624877452850342, 0.009309918619692326, -0.021972693502902985, 0.01851879246532917, 0.005456429906189442, 0.0261798407882452 ]
729,361
tinytuya.core
set_status
Set status of the device to 'on' or 'off'. Args: on(bool): True for 'on', False for 'off'. switch(int): The switch to set nowait(bool): True to send without waiting for response.
def set_status(self, on, switch=1, nowait=False): """ Set status of the device to 'on' or 'off'. Args: on(bool): True for 'on', False for 'off'. switch(int): The switch to set nowait(bool): True to send without waiting for response. """ # open device, send request, then close connection if isinstance(switch, int): switch = str(switch) # index and payload is a string payload = self.generate_payload(CONTROL, {switch: on}) data = self._send_receive(payload, getresponse=(not nowait)) log.debug("set_status received data=%r", data) return data
(self, on, switch=1, nowait=False)
[ 0.026783239096403122, -0.0037048105150461197, -0.012725980021059513, -0.030707010999321938, 0.033246949315071106, -0.030251571908593178, -0.03573434054851532, 0.014679106883704662, -0.015695083886384964, -0.05209506303071976, -0.07125847786664963, -0.01977650634944439, 0.002769849495962262, 0.01968892104923725, -0.026660621166229248, -0.01968892104923725, 0.004116456024348736, -0.0320032574236393, 0.026152633130550385, 0.020196909084916115, 0.033246949315071106, 0.05206003040075302, 0.05184982717037201, 0.052935872226953506, -0.005184982903301716, 0.02566216140985489, -0.005942585878074169, -0.028447339311242104, 0.032598827034235, -0.06835068762302399, 0.015598740428686142, -0.008136569522321224, 0.01347044575959444, -0.0162994135171175, 0.0190933495759964, 0.062254827469587326, 0.00818474031984806, 0.02284195087850094, -0.037906430661678314, 0.01267342921346426, -0.055318161845207214, -0.046594779938459396, -0.009494123980402946, 0.002712919609621167, -0.03207332268357277, 0.008224153891205788, -0.035226352512836456, 0.03941287845373154, 0.09059706330299377, 0.02312222123146057, -0.00691039115190506, 0.020266976207494736, -0.06624867022037506, 0.003308492014184594, -0.052865806967020035, 0.00858324859291315, 0.02841230481863022, 0.025994982570409775, -0.01557246595621109, -0.019794022664427757, -0.056614406406879425, 0.05941710248589516, -0.021861009299755096, -0.025136657059192657, 0.012305576354265213, -0.02953338250517845, -0.022333962842822075, 0.026397868990898132, 0.026170149445533752, 0.032791513949632645, 0.0026822651270776987, 0.0046988907270133495, -0.014398837462067604, -0.02650297060608864, 0.006240372080355883, 0.02793935127556324, -0.057910654693841934, -0.008359909057617188, -0.04999304562807083, 0.009853219613432884, 0.05503789335489273, 0.03053184226155281, 0.05503789335489273, 0.031197480857372284, -0.019215967506170273, 0.010221072472631931, -0.013873332180082798, -0.01267342921346426, -0.06849081814289093, 0.01600162871181965, -0.030899696052074432, 0.01825254037976265, -0.016264380887150764, 0.007987676188349724, 0.07066290825605392, 0.0020888824947178364, 0.0026231459341943264, 0.00950288213789463, -0.04375705122947693, -0.023647725582122803, -0.055913735181093216, 0.017840895801782608, -0.030041370540857315, -0.06617859750986099, 0.011543593369424343, -0.07917609065771103, 0.009634259156882763, 0.03857206925749779, 0.021177852526307106, -0.06645886600017548, -0.023630209267139435, -0.021633289754390717, -0.08071757107973099, -0.03657514974474907, 0.025627128779888153, 0.06060824543237686, 0.02970855124294758, -0.029656000435352325, -0.09108753502368927, -0.005040469113737345, -0.01991664059460163, -0.008705866523087025, 0.028885260224342346, -0.05647427216172218, 0.04726041853427887, 0.0589616633951664, 0.025066589936614037, 0.016395756974816322, 0.021808458492159843, -0.015528673306107521, -0.04771585762500763, 0.04855666309595108, -0.011193256825208664, 0.03312433511018753, -0.018270058557391167, -0.0061002373695373535, -0.05184982717037201, 0.016588442027568817, 0.01609797030687332, -0.020056774839758873, -0.010667751543223858, -0.05472258850932121, -0.028745124116539955, -0.01484551653265953, 0.04498323053121567, 0.01343541219830513, 0.02198362722992897, -0.04351181536912918, 0.0031705470755696297, 0.035629238933324814, 0.015117027796804905, -0.004147110506892204, -0.04253087192773819, 0.03328198567032814, -0.0539168156683445, 0.04000844806432724, -0.023945512250065804, -0.03153030201792717, 0.029585933312773705, -0.004545618314296007, -0.047295451164245605, 0.008679591119289398, -0.019513752311468124, 0.016395756974816322, 0.02969103306531906, 0.054547421634197235, -0.10839416831731796, -0.0029143632855266333, 0.05598380044102669, -0.07413124293088913, 0.04701518267393112, -0.0010789275402203202, 0.04655974358320236, -0.01741173304617405, 0.03527890518307686, -0.0007576030911877751, -0.011990273371338844, -0.006743981037288904, 0.04007851704955101, -0.027466395869851112, 0.005815588869154453, 0.04799612611532211, -0.04112952575087547, 0.015143303200602531, 0.015826459974050522, -0.02177342399954796, 0.026748206466436386, -0.0025596474297344685, 0.017332907766103745, 0.03153030201792717, 0.046524710953235626, 0.022544166073203087, 0.0008971903589554131, 0.022806918248534203, 0.02198362722992897, -0.01129835844039917, 0.050273314118385315, -0.05612393468618393, 0.02161577343940735, 0.031337615102529526, 0.029953787103295326, 0.019741471856832504, -0.009362747892737389, 0.030496807768940926, 0.021037718281149864, -0.026467936113476753, 0.04140979424118996, 0.02816706895828247, 0.0381866991519928, -0.02427833154797554, -0.042250603437423706, 0.002861812710762024, 0.004563135094940662, 0.0455087348818779, 0.02695840783417225, -0.08800457417964935, -0.03503366932272911, 0.044177453964948654, 0.002526803407818079, -0.05808582156896591, -0.05437225475907326, 0.028061967343091965, -0.014197394251823425, 0.017035121098160744, 0.012866114266216755, 0.03396514058113098, -0.033544737845659256, -0.0275539793074131, -0.009441573172807693, 0.059592269361019135, 0.003168357303366065, 0.05009814724326134, 0.025224240496754646, 0.000009545306056679692, 0.000010340748303860892, 0.0108341621235013, -0.0030501186847686768, -0.035681791603565216, -0.11799339205026627, -0.008504423312842846, 0.027518946677446365, -0.012016547843813896, 0.06390140950679779, -0.02070489712059498, -0.018059855327010155, -0.010667751543223858, 0.0010307561606168747, 0.030251571908593178, -0.021790942177176476, 0.003295354312285781, -0.029498348012566566, -0.05374164879322052, 0.012927423231303692, -0.01925100013613701, -0.03839689865708351, -0.002923121675848961, -0.003661018330603838, 0.025977464392781258, -0.04326657950878143, -0.0005435692728497088, -0.009213854558765888, 0.0032143390271812677, -0.0483814962208271, 0.024943972006440163, 0.01607169583439827, -0.04091932624578476, 0.01816495694220066, 0.024400949478149414, -0.01015100535005331, -0.004109887406229973, 0.05878649652004242, 0.020564762875437737, -0.03207332268357277, -0.028342237696051598, -0.026783239096403122, -0.031092381104826927, 0.04102442413568497, -0.026783239096403122, -0.04687504842877388, -0.05482769012451172, -0.025522027164697647, -0.011140706948935986, -0.001355365035124123, 0.04403731971979141, -0.07392103970050812, -0.036995552480220795, 0.0477859228849411, 0.08274952322244644, 0.005605387035757303, -0.009739359840750694, -0.00816284492611885, 0.08218898624181747, 0.033632323145866394, 0.035384003072977066, 0.037766292691230774, -0.005241912789642811, -0.03419286012649536, 0.009949562139809132, 0.0009595940937288105, -0.016246864572167397, 0.061799392104148865, -0.06106368452310562, -0.08085770905017853, -0.05899669602513313, -0.013759473338723183, -0.05216513201594353, 0.04620940983295441, -0.010256106033921242, 0.01750807650387287, -0.02969103306531906, 0.025522027164697647, -0.011666211299598217, -0.035086218267679214, -0.030742043629288673, 0.01786717027425766, -0.0005736763123422861, -0.024330882355570793, 0.04267100617289543, 0.039132606238126755, 0.09241881966590881, 0.011517318896949291, 0.006809669081121683, 0.040358785539865494, 0.06176435574889183, -0.01370692253112793, -0.02739632874727249, 0.08786444365978241, 0.04410738870501518, -0.002669127658009529, 0.022158795967698097, -0.08541208505630493, 0.025311825796961784, 0.007545376196503639, -0.0365050807595253, -0.015668807551264763, 0.006616984028369188, 0.02970855124294758, -0.022474098950624466, -0.07910602539777756, 0.026467936113476753, 0.014828000217676163, 0.024646185338497162, 0.002605629153549671, -0.014819242060184479, -0.009362747892737389, 0.03923770785331726, -0.024453500285744667, 0.04796109348535538, 0.05850622430443764, 0.05304097384214401, -0.04421249032020569, 0.005990757141262293, 0.02816706895828247, 0.020739931613206863, 0.04077918827533722, -0.03871220350265503, 0.008232912048697472, 0.012034065090119839, 0.014792966656386852, -0.05952220410108566, -0.0455087348818779, -0.012226750142872334, 0.027851765975356102, -0.007326415739953518, -0.04239073768258095, -0.012279300950467587, -0.025767263025045395, 0.01977650634944439, 0.04571893811225891, 0.011911447159945965, -0.017840895801782608, -0.03384252265095711, -0.04144483059644699, 0.04147986322641373, 0.04316147789359093, 0.038291800767183304, -0.05262057110667229, -0.05016821250319481, 0.0077599575743079185, 0.03312433511018753, 0.029831169173121452, -0.06235992908477783, 0.04666484519839287, 0.009721842594444752, 0.012909906916320324, -0.033019233494997025, 0.012480744160711765, -0.011315874755382538, -0.04305638000369072, -0.011342150159180164, -0.005036090034991503, 0.02298208698630333, -0.03533145412802696, 0.030934728682041168, 0.010256106033921242, -0.010694026947021484, -0.0011161507572978735, -0.02396302856504917, 0.06288543343544006, -0.06537282466888428, -0.028797674924135208, 0.007676752749830484, -0.05868139490485191, 0.045088332146406174, 0.0007532238960266113, 0.04680497944355011, 0.002874950412660837, -0.010063420981168747, -0.04305638000369072, -0.08695356547832489, -0.03885233774781227, 0.052725668996572495, -0.04267100617289543, 0.011780071072280407, 0.004298193380236626, 0.03703058883547783, 0.013663130812346935, 0.05198996514081955, 0.05482769012451172, 0.0331418514251709, 0.0034026450011879206, 0.027238676324486732, 0.03322943300008774, 0.008158465847373009, 0.010580168105661869, 0.021808458492159843, 0.06060824543237686, 0.018567843362689018, -0.007203797809779644, 0.039728179574012756, 0.04372201859951019, -0.008491285145282745, -0.005390805657953024, -0.07973662763834, -0.014950618147850037, 0.0342278927564621, 0.0007920893258415163, -0.05160459503531456, 0.006402402650564909, -0.025714712217450142, 0.01671105995774269, 0.016509616747498512, -0.041725099086761475, -0.0023998061660677195, -0.014057259075343609, -0.011342150159180164, -0.02771163173019886, -0.03468333184719086, 0.03128506615757942, -0.037766292691230774, -0.0707329735159874, -0.02159825712442398, -0.015476122498512268, -0.002815830986946821, 0.03734588995575905, -0.010939262807369232, -0.07125847786664963, 0.005798072088509798, -0.015248403884470463, -0.015178336761891842, 0.04547370225191116, -0.031337615102529526, -0.12338858097791672, 0.02809700183570385, 0.039588045328855515, 0.040183618664741516, 0.05917186662554741, 0.01228805910795927, -0.01634320616722107, 0.0010493678273633122, -0.012419435195624828, -0.042565908282995224, 0.013190176337957382, 0.05917186662554741, 0.039658114314079285, 0.006271026562899351, -0.014547730796039104, -0.0014232427347451448, -0.008281083777546883, -0.020862549543380737, -0.062254827469587326, 0.021195368841290474, 0.022999603301286697, -0.002874950412660837, -0.02871009148657322, -0.023700276389718056, 0.018112406134605408, 0.004738303832709789, -0.003470522817224264, -0.03212587535381317, -0.01492434274405241, -0.007856300100684166, 0.01065023522824049, -0.025329342111945152, 0.02757149748504162, 0.04063905403017998, -0.09396030008792877, -0.03228352591395378, 0.014153601601719856, 0.014346287585794926, -0.008767175488173962, -0.026608070358633995, -0.09283921867609024, 0.04144483059644699, 0.036610182374715805, -0.0019487477838993073, -0.046910081058740616, -0.019180933013558388, 0.0005249576061032712, 0.021037718281149864, 0.042180538177490234, 0.033492185175418854, 0.012112890370190144, 0.017245322465896606, -0.013233968056738377, -0.00021129680681042373, 0.059276968240737915, -0.0007619822863489389, -0.014030983671545982, -0.023402489721775055, 0.004129593726247549, 0.0009415298118256032, 0.06922652572393417, 0.030584393069148064, -0.03230104222893715, -0.0058331056497991085, -0.016264380887150764, -0.014022225514054298, -0.010133488103747368, 0.009283921681344509, 0.018795562908053398, -0.0012185147497802973, 0.0026362836360931396, 0.04372201859951019, 0.06488235294818878, -0.07378090173006058, 0.021931076422333717, -0.038291800767183304, -0.04543866589665413, -0.02419074811041355, 0.008342391811311245, -0.07125847786664963, -0.04529853165149689, -0.015353505499660969, 0.012874873355031013, -0.014617797918617725, 0.00666077621281147, 0.02389296144247055, 0.03387755900621414, -0.04627947509288788, -0.037380922585725784, -0.048591699451208115, -0.00591631093993783, -0.005614145193248987, -0.05948716774582863, -0.003991648554801941, 0.060187842696905136, -0.027851765975356102, -0.000982584897428751, -0.012743497267365456, -0.025767263025045395, -0.006380506791174412, -0.006853461265563965, 0.04305638000369072, 0.029200563207268715, -0.022193828597664833, 0.03077707812190056, 0.011342150159180164, 0.054091982543468475, -0.06456705182790756, 0.06933163106441498, 0.022614233195781708, -0.01534474641084671, 0.005491527728736401, -0.019671404734253883, 0.039132606238126755, 0.057069845497608185, 0.004580652341246605, 0.002732626162469387, 0.06200959160923958, -0.022806918248534203, -0.01932106725871563, -0.08345019817352295, 0.004245642572641373, 0.027589013800024986, -0.002997568342834711, 0.03182808682322502, 0.02893780916929245, -0.011026847176253796, -0.028149552643299103, -0.041339728981256485, -0.01377698965370655, -0.004681373946368694, -0.015020685270428658, -0.013584304600954056, 0.022649265825748444, 0.06246503069996834, 0.008710245601832867, 0.03053184226155281, 0.07055781036615372, -0.023472556844353676, -0.005846243351697922, -0.01684243604540825, -0.059662338346242905, -0.00025700480910018086, -0.007339553441852331, -0.018655428662896156, 0.0029165528248995543, -0.04084925726056099, -0.0015064477920532227, 0.03389507532119751, -0.0033895072992891073, -0.017122704535722733, 0.05269063636660576, 0.011561110615730286, 0.015099510550498962, -0.024453500285744667, 0.00658632954582572, -0.04193530231714249, -0.025469476357102394, 0.05209506303071976, -0.005701729562133551, -0.007103076204657555, -0.03417534381151199, -0.011876413598656654, 0.005657937377691269, 0.0025180450174957514, -0.014249944128096104, -0.014030983671545982, -0.016649750992655754, 0.022929536178708076, -0.001987065887078643, -0.01328651886433363, 0.05335627496242523, 0.018217507749795914, -0.018725495785474777, -0.01657092571258545, 0.002710730070248246, 0.03636494651436806, 0.032248493283987045, 0.018305091187357903, 0.03755609318614006, 0.06267523020505905, -0.056614406406879425, 0.05717494711279869, -0.014057259075343609, -0.011412217281758785, 0.009932044893503189, -0.03396514058113098, 0.007672373205423355, -0.0038121009711176157, 0.024856386706233025, 0.015143303200602531, 0.08057744055986404, 0.014293736778199673, 0.043091412633657455, 0.01711394637823105, 0.036995552480220795, 0.07279996573925018, 0.009073720313608646, -0.10313911736011505, -0.0072256941348314285, 0.06158918887376785, -0.013444170355796814, 0.003036981215700507, 0.017446767538785934, 0.024698736146092415, -0.05444232001900673, 0.016772368922829628, -0.009975836612284184, 0.05013317987322807, 0.004278486594557762, 0.03478843346238136, -0.0010816644644364715, 0.06250006705522537, -0.03654011711478233, 0.031582850962877274, -0.06278033554553986, 0.030952244997024536, 0.015668807551264763, -0.018199991434812546, 0.015695083886384964, 0.030707010999321938, -0.00530760083347559, 0.04291624203324318, -0.047155316919088364, 0.0038318075239658356, -0.017289115116000175, -0.03357977047562599, -0.010159763507544994, -0.0584711916744709, -0.04680497944355011, -0.023770343512296677, 0.05819092318415642, -0.032931648194789886, -0.06887619197368622, -0.038361866027116776, -0.03993838280439377, -0.016422031447291374, 0.029200563207268715, 0.048977069556713104, -0.047750890254974365, 0.007821266539394855, -0.05475762486457825, -0.007470929529517889, -0.01698257029056549, -0.01153483521193266, -0.05910179764032364, 0.068560890853405, -0.042881209403276443, 0.033544737845659256, 0.05135935917496681, 0.02259671688079834, 0.0035515381023287773, 0.017656968906521797, 0.0060914792120456696, -0.1011071652173996, -0.014407595619559288, -0.004370450042188168, 0.0708380788564682, -0.040463887155056, -0.026222700253129005, 0.07483191788196564, -0.022964568808674812, -0.007996434345841408, -0.03731085732579231, -0.012314334511756897, 0.07462171465158463, -0.012550811283290386, 0.007856300100684166, -0.016238104552030563, -0.01221799198538065, -0.07125847786664963, 0.02245658077299595, -0.010247347876429558, -0.009362747892737389, 0.023244839161634445, -0.004904713481664658, 0.041795168071985245, 0.05009814724326134, 0.005333875771611929, -0.04235570505261421, 0.025101622566580772, -0.011175740510225296, -0.04112952575087547, -0.006463711615651846, 0.025819813832640648, -0.019636370241642, 0.015090752393007278, 0.013908366672694683, -0.005009814631193876, -0.06439188122749329, -0.0034858500584959984, -0.021878525614738464, 0.1044704020023346, 0.03449064493179321, -0.06207966059446335, 0.06884115934371948, -0.003251562360674143, -0.012971215881407261, -0.016544649377465248, 0.09403036534786224, -0.03282654657959938, 0.04176013171672821, -0.05037841573357582, 0.04694511368870735, -0.01549363974481821, 0.02673068828880787 ]
729,362
tinytuya.core
set_timer
Set a timer. Args: num_secs(int): Number of seconds dps_id(int): DPS Index for Timer nowait(bool): True to send without waiting for response.
def set_timer(self, num_secs, dps_id=0, nowait=False): """ Set a timer. Args: num_secs(int): Number of seconds dps_id(int): DPS Index for Timer nowait(bool): True to send without waiting for response. """ # Query status, pick last device id as that is probably the timer if dps_id == 0: status = self.status() if "dps" in status: devices = status["dps"] devices_numbers = list(devices.keys()) devices_numbers.sort() dps_id = devices_numbers[-1] else: log.debug("set_timer received error=%r", status) return status payload = self.generate_payload(CONTROL, {dps_id: num_secs}) data = self._send_receive(payload, getresponse=(not nowait)) log.debug("set_timer received data=%r", data) return data
(self, num_secs, dps_id=0, nowait=False)
[ 0.030608296394348145, 0.0027414909563958645, -0.012004162184894085, 0.005496886558830738, 0.014052748680114746, 0.010724954307079315, -0.07367496192455292, 0.039748143404722214, -0.03255491703748703, -0.029403245076537132, -0.06844689697027206, -0.003522456856444478, 0.020430250093340874, 0.010576640255749226, 0.027883026748895645, 0.015433922410011292, 0.0704120546579361, -0.03359311446547508, -0.031535256654024124, -0.0720805898308754, 0.04182453826069832, 0.09047152101993561, 0.05724919214844704, 0.048164963722229004, -0.028272351250052452, 0.040452636778354645, -0.03390828147530556, -0.017185881733894348, -0.018437281250953674, -0.04961102455854416, 0.015220721252262592, -0.003661501221358776, -0.008824680931866169, 0.0009478189749643207, -0.014126906171441078, 0.030218971893191338, -0.03364873304963112, -0.05439414829015732, -0.051724497228860855, 0.038858260959386826, 0.028309429064393044, -0.049499787390232086, 0.01638869382441044, 0.011559220030903816, -0.049462709575891495, 0.02945886179804802, -0.03385266289114952, 0.03618860989809036, 0.0666300505399704, -0.0018504485487937927, -0.004328913986682892, -0.0077911182306706905, -0.08795018494129181, -0.007679882925003767, -0.032202672213315964, 0.07078284025192261, 0.0023417386692017317, 0.06499859690666199, 0.03201727941632271, -0.018381662666797638, -0.0345756933093071, 0.02732684835791588, -0.029570098966360092, -0.013005281798541546, 0.015888134017586708, -0.024119559675455093, -0.029514480382204056, 0.015155834145843983, 0.04746047034859657, -0.0048016649670898914, 0.06607387214899063, -0.02284035086631775, -0.049203161150217056, -0.01952182687819004, 0.07734573632478714, 0.020671259611845016, -0.06755701452493668, -0.029013920575380325, -0.0018110526725649834, 0.05357842147350311, -0.016277458518743515, 0.019299356266856194, 0.06303343921899796, 0.05376381427049637, 0.030738070607185364, 0.05064922198653221, 0.043085210025310516, -0.0322582870721817, -0.10174338519573212, -0.0030937367118895054, -0.00010775936971185729, 0.009422572329640388, -0.00769842229783535, 0.0026650165673345327, 0.012161745689809322, -0.029088078066706657, -0.011707534082233906, 0.021894849836826324, -0.028309429064393044, -0.012430564500391483, -0.022321252152323723, -0.03631838411092758, 0.03794983774423599, -0.03105323761701584, 0.03129424899816513, -0.03042290359735489, -0.017862563952803612, 0.022784734144806862, 0.018131382763385773, -0.005153910722583532, -0.018177730962634087, 0.012217363342642784, -0.03908073157072067, -0.022654959931969643, 0.014951902441680431, 0.047497548162937164, 0.011948544532060623, -0.02124597690999508, -0.06581432372331619, 0.0016511516878381371, -0.03368581086397171, 0.009209370240569115, 0.012217363342642784, -0.012801350094377995, -0.02300720475614071, 0.04193577542901039, -0.03045998141169548, 0.03841331973671913, 0.07493563741445541, -0.052095282822847366, -0.038227926939725876, 0.022970126941800117, 0.06114243343472481, 0.07475024461746216, 0.022098781540989876, 0.007837465964257717, 0.002252518432214856, 0.014497690834105015, 0.0016511516878381371, -0.01968867890536785, -0.03242514282464981, 0.0082777738571167, -0.010984503664076328, 0.009918496944010258, 0.09084230661392212, 0.03088638372719288, -0.03453861549496651, 0.021338673308491707, -0.04679305851459503, 0.0001142770706792362, -0.06184692680835724, -0.04416048526763916, 0.0031377675477415323, 0.031201552599668503, -0.015684202313423157, 0.026881907135248184, -0.00583522766828537, 0.03578074648976326, -0.032999858260154724, -0.045569468289613724, -0.03340772166848183, -0.04126836359500885, -0.008291677571833134, -0.05324471741914749, 0.01928081549704075, 0.02258080244064331, -0.06262557208538055, 0.04601440951228142, 0.03930320218205452, 0.03787568211555481, 0.02597348392009735, 0.008027493953704834, -0.001750800060108304, -0.02513921819627285, 0.020226318389177322, -0.07675248384475708, -0.03335210308432579, 0.0037217538338154554, 0.0532076358795166, -0.006386770401149988, 0.025713935494422913, 0.04479081928730011, -0.07308170944452286, -0.0028365047182887793, -0.028142575174570084, 0.0005773237207904458, -0.006604606751352549, 0.05702672153711319, 0.0022942316718399525, 0.02354484237730503, 0.04034139961004257, 0.028939763084053993, 0.008884933777153492, 0.009214005433022976, 0.047237999737262726, 0.016583355143666267, 0.02995942160487175, -0.05213236063718796, 0.04093465581536293, 0.03033020719885826, 0.02869875356554985, 0.019113963469862938, 0.0022814860567450523, -0.01922519877552986, 0.025491463020443916, -0.08639288693666458, 0.03748635575175285, 0.0047599514946341515, -0.014210332185029984, -0.006980026140809059, -0.02769763395190239, 0.005617391783744097, 0.018678290769457817, 0.030478520318865776, 0.020856652408838272, -0.008671732619404793, -0.03227682784199715, -0.00357807450927794, 0.0024077845737338066, -0.06407163292169571, 0.027586398646235466, -0.016768747940659523, -0.00919546652585268, -0.0322582870721817, -0.011142087168991566, 0.055951446294784546, -0.005863036494702101, -0.027475163340568542, 0.044939134269952774, 0.035002097487449646, 0.050093043595552444, 0.062328945845365524, 0.025862248614430428, -0.011132817715406418, 0.020133621990680695, -0.06718622893095016, -0.002722951816394925, -0.020244857296347618, -0.0028156479820609093, -0.03155379742383957, -0.006544353906065226, 0.016472119837999344, 0.03971106559038162, 0.028809988871216774, -0.0027414909563958645, 0.011067929677665234, -0.00048317911569029093, 0.039748143404722214, -0.02853189967572689, 0.03668916970491409, 0.060808729380369186, -0.05995592474937439, 0.003967398777604103, 0.009751643985509872, -0.030738070607185364, 0.035335805267095566, -0.007452777121216059, 0.03029312938451767, -0.021765075623989105, -0.010085349902510643, 0.019540365785360336, 0.017547396942973137, -0.11257030069828033, -0.0025723204016685486, -0.01032636035233736, -0.004226948134601116, 0.030218971893191338, 0.0222100168466568, -0.029403245076537132, -0.0013197625521570444, 0.10648943483829498, 0.00949209462851286, -0.00967748649418354, -0.05131663382053375, -0.02513921819627285, 0.017575206235051155, -0.002322040731087327, -0.05146494880318642, -0.00804603286087513, -0.048164963722229004, 0.014349376782774925, 0.04645935073494911, 0.03687456250190735, 0.022395409643650055, -0.03767174854874611, -0.03490940108895302, 0.008273138664662838, 0.11153210699558258, -0.018928570672869682, 0.0073322718963027, -0.08535469323396683, 0.016017908230423927, 0.015480270609259605, -0.016416503116488457, 0.0005700818146578968, 0.006396039854735136, -0.06036378815770149, -0.023099901154637337, -0.018335314467549324, 0.012347138486802578, 0.019132502377033234, -0.0506862998008728, -0.0791996642947197, -0.012458373792469501, -0.04226948320865631, -0.03194312006235123, 0.002804060932248831, 0.013719042763113976, 0.02237687073647976, -0.04404924809932709, 0.009788721799850464, 0.0016129144933074713, -0.002113474067300558, -0.029607176780700684, 0.08246257156133652, 0.06929970532655716, -0.06262557208538055, 0.01865975186228752, 0.07434237748384476, 0.09061983972787857, -0.01915104128420353, 0.0012641448993235826, 0.03778298571705818, 0.004532845690846443, 0.08008954674005508, -0.0016048034885898232, 0.05228067561984062, 0.009603329934179783, 0.0007989256409928203, 0.014562577940523624, -0.06599971652030945, -0.022098781540989876, 0.010910346172749996, -0.0825367271900177, 0.0477571003139019, -0.03520602732896805, 0.015331956557929516, -0.018103573471307755, 0.00796260591596365, 0.0320543572306633, -0.006113316398113966, -0.010938155464828014, -0.0427515022456646, 0.025825170800089836, 0.014562577940523624, -0.024527423083782196, 0.00796260591596365, -0.013283370062708855, 0.09870294481515884, -0.015406114049255848, -0.015155834145843983, -0.022803273051977158, -0.00967748649418354, 0.03025604970753193, 0.020763956010341644, 0.0015885817119851708, 0.02912515588104725, 0.009274258278310299, 0.0017206737538799644, -0.09692317992448807, -0.08312997967004776, 0.050426751375198364, -0.008824680931866169, -0.01885441318154335, -0.02165384031832218, 0.013848816975951195, 0.011559220030903816, -0.016184762120246887, 0.059177275747060776, 0.01368196401745081, -0.05795368552207947, -0.024249333888292313, 0.010743493214249611, 0.07319294661283493, 0.02786448784172535, 0.0059418282471597195, -0.03874702379107475, -0.01154068112373352, -0.038821183145046234, -0.0506862998008728, 0.006312613375484943, -0.0331110954284668, 0.003807497676461935, 0.033166710287332535, 0.038227926939725876, -0.008588305674493313, -0.016601895913481712, 0.000921748171094805, -0.0043126922100782394, -0.010381978005170822, 0.051353711634874344, -0.006599971558898687, -0.018826603889465332, 0.04249195381999016, -0.03778298571705818, -0.03179480880498886, 0.00769842229783535, 0.002130854642018676, 0.024694276973605156, -0.06384916603565216, 0.02906953915953636, -0.019429130479693413, -0.035632431507110596, 0.05669301375746727, 0.032109975814819336, 0.021820692345499992, 0.044271718710660934, -0.09714565426111221, -0.034501537680625916, -0.03997061401605606, -0.010113159194588661, 0.03568805009126663, 0.009214005433022976, -0.03377850726246834, -0.038227926939725876, -0.013960052281618118, -0.11071638017892838, 0.03782006353139877, 0.056581780314445496, 0.006780729163438082, -0.008741254918277264, -0.01638869382441044, 0.025843709707260132, 0.014544039033353329, 0.005710087716579437, 0.0236746184527874, 0.015545157715678215, 0.02187631092965603, -0.022191477939486504, 0.03711557015776634, 0.014340107329189777, 0.0490177683532238, 0.0068780602887272835, -0.005167814902961254, 0.03138694539666176, 0.024824051186442375, -0.02597348392009735, -0.015294878743588924, -0.03277738764882088, -0.010697145015001297, 0.01678728684782982, 0.00924644898623228, -0.027660556137561798, 0.01439572498202324, 0.03222120925784111, -0.06651881337165833, -0.044976212084293365, -0.014043479226529598, 0.021190358325839043, -0.00904251728206873, -0.030144814401865005, 0.009269623085856438, 0.06885476410388947, 0.040786340832710266, 0.03952567279338837, -0.03743073716759682, -0.022135859355330467, 0.025917867198586464, 0.01736200414597988, -0.05016719922423363, -0.04093465581536293, -0.015331956557929516, -0.019336434081196785, 0.021635301411151886, -0.010901076719164848, 0.10070518404245377, 0.0331110954284668, 0.002586224814876914, -0.02287743054330349, 0.029903804883360863, -0.011800230480730534, 0.0020740781910717487, -0.02334091067314148, -0.0053485725075006485, -0.010344899259507656, -0.03956275060772896, -0.006887330207973719, 0.05354134365916252, 0.0037657844368368387, -0.021264515817165375, 0.04475374147295952, -0.009158387780189514, 0.05899188295006752, 0.002075236989185214, -0.0146645437926054, -0.012773540802299976, -0.00876442901790142, -0.011512871831655502, -0.023025743663311005, -0.040452636778354645, -0.033036936074495316, -0.03863579034805298, 0.004173648077994585, 0.010363439098000526, 0.006071603391319513, 0.0042478046379983425, -0.05354134365916252, -0.049091923981904984, 0.014062018133699894, 0.013190673664212227, -0.007119070738554001, -0.00819434691220522, -0.004940709099173546, 0.014979710802435875, 0.048461589962244034, -0.030441442504525185, -0.0929928570985794, 0.06640758365392685, -0.0222100168466568, 0.0012537165312096477, -0.0059418282471597195, 0.012856967747211456, -0.031572338193655014, -0.004011429380625486, -0.016416503116488457, -0.01981845498085022, 0.043975092470645905, -0.0253431499004364, -0.0532076358795166, -0.0456807017326355, 0.009130578488111496, 0.050093043595552444, -0.007619630079716444, 0.03344479948282242, 0.024490345269441605, 0.0025306071620434523, -0.045309919863939285, -0.006692667957395315, -0.01825188845396042, 0.018381662666797638, 0.02211732044816017, -0.02530607208609581, 0.010419056750833988, 0.018214808776974678, 0.038858260959386826, -0.019002728164196014, -0.03151671960949898, -0.08787602931261063, -0.0808311179280281, -0.04378969967365265, 0.01345022302120924, -0.029347626492381096, 0.038227926939725876, -0.036596473306417465, -0.00442161038517952, -0.031609416007995605, -0.026548201218247414, 0.0569896437227726, 0.052095282822847366, 0.008217521011829376, 0.010928886011242867, -0.04386385530233383, 0.02018923871219158, -0.05035259202122688, -0.0687064453959465, 0.030441442504525185, 0.039488594979047775, -0.028309429064393044, -0.006298709195107222, -0.0072256713174283504, -0.013357526622712612, -0.031368404626846313, 0.055246952921152115, -0.0002281196357216686, -0.025676855817437172, -0.036095913499593735, 0.006683398503810167, 0.0025908597745001316, -0.014377185143530369, -0.03487232327461243, -0.004354405682533979, 0.023748774081468582, -0.03472400829195976, -0.010196585208177567, -0.06559185683727264, 0.016638973727822304, 0.03967398777604103, -0.0010689034825190902, -0.0005225749919191003, 0.0297554899007082, -0.0001665635354584083, 0.07630753517150879, -0.03307401388883591, -0.06247726082801819, 0.014349376782774925, -0.02836504764854908, 0.005274415481835604, 0.004502719268202782, -0.0036452794447541237, 0.006113316398113966, -0.04746047034859657, 0.043085210025310516, -0.024119559675455093, -0.005812053568661213, 0.02417517825961113, 0.09692317992448807, 0.03598467633128166, 0.021987546235322952, 0.05053798481822014, 0.05862109735608101, -0.01672239974141121, 0.030904924497008324, -0.008185077458620071, -0.006789999082684517, 0.0205229464918375, -0.026844829320907593, 0.0013510475400835276, 0.004940709099173546, -0.017603013664484024, -0.034371763467788696, 0.02551000379025936, 0.004783125594258308, 0.02174653671681881, 0.08639288693666458, 0.027957184240221977, -0.025528542697429657, -0.052021127194166183, 0.030144814401865005, -0.005288320127874613, -0.06262557208538055, -0.026214495301246643, 0.013858086429536343, -0.035335805267095566, -0.07030082494020462, -0.015174373053014278, -0.05131663382053375, 0.0003777371603064239, -0.00288517028093338, -0.001689388882368803, -0.043641384690999985, -0.012653036043047905, -0.00897763017565012, 0.013088707812130451, -0.021635301411151886, -0.022784734144806862, 0.024453265592455864, -0.02782740816473961, 0.026956064626574516, 0.006498005706816912, 0.024620119482278824, 0.06210647523403168, -0.00912594422698021, -0.0018249570857733488, -0.0766783207654953, 0.02589932642877102, 0.03357457369565964, -0.04004477337002754, 0.029903804883360863, 0.015545157715678215, 0.03088638372719288, -0.027845948934555054, -0.012578878551721573, -0.017278578132390976, 0.003198019927367568, -0.02434203028678894, -0.016676051542162895, 0.01686144433915615, -0.02324821427464485, 0.026511121541261673, 0.01439572498202324, -0.011355288326740265, 0.008097016252577305, 0.02015216089785099, -0.06518398970365524, -0.007216401863843203, -0.042084090411663055, 0.02836504764854908, 0.027289770543575287, -0.0005865933489985764, -0.003388047218322754, 0.0846131220459938, -0.05309640243649483, -0.027215613052248955, 0.03025604970753193, 0.06407163292169571, -0.014386455528438091, -0.0025306071620434523, -0.06751993298530579, 0.013524380512535572, 0.040823422372341156, -0.012764271348714828, 0.014321567490696907, 0.004301105160266161, -0.0051029277965426445, -0.017417622730135918, -0.016778018325567245, 0.06607387214899063, -0.07630753517150879, -0.04404924809932709, -0.03585490211844444, -0.002966279396787286, -0.0266038179397583, -0.020059464499354362, 0.036132991313934326, -0.021598221734166145, -0.07111655175685883, 0.0020578564144670963, -0.01629599742591381, -0.0360402949154377, 0.011642646975815296, -0.017575206235051155, -0.018900761380791664, 0.006623145658522844, -0.042009931057691574, 0.0025306071620434523, -0.015304148197174072, 0.02074541710317135, 0.004569924436509609, 0.061401985585689545, -0.015712011605501175, 0.0762333795428276, 0.041045892983675, 0.051724497228860855, 0.06918846815824509, -0.040749263018369675, -0.060697492212057114, -0.07912550121545792, -0.0034390301443636417, -0.010205855593085289, 0.040823422372341156, 0.004690429195761681, 0.05157618224620819, 0.034260526299476624, -0.021004965528845787, -0.003911781124770641, 0.018798796460032463, 0.01742689125239849, 0.0205229464918375, 0.04931439459323883, 0.007114436011761427, -0.02799426205456257, -0.01217101514339447, -0.016101336106657982, -0.07033789902925491, -0.04512452706694603, -0.02580663189291954, 0.02510214038193226, -0.023618999868631363, 0.0464964285492897, 0.05609976127743721, -0.0381166897714138, 0.0030636105220764875, 0.04790541157126427, -0.02204316481947899, -0.06585140526294708, 0.01575835980474949, -0.006516545079648495, -0.022562263533473015, 0.04119420424103737, 0.006507275626063347, 0.048498667776584625, -0.02028193511068821, -0.028643134981393814, -0.006187473423779011, 0.03757905215024948, -0.01451622974127531, -0.04779417812824249, 0.03778298571705818, 0.024082481861114502, 0.03668916970491409, 0.046236880123615265, 0.04549530893564224, 0.02317405864596367, 0.03746781870722771, -0.045606546103954315, 0.05053798481822014, -0.04182453826069832, 0.046607665717601776 ]
729,363
tinytuya.core
set_value
Set int value of any index. Args: index(int): index to set value(int): new value for the index nowait(bool): True to send without waiting for response.
def set_value(self, index, value, nowait=False): """ Set int value of any index. Args: index(int): index to set value(int): new value for the index nowait(bool): True to send without waiting for response. """ # open device, send request, then close connection if isinstance(index, int): index = str(index) # index and payload is a string payload = self.generate_payload(CONTROL, {index: value}) data = self._send_receive(payload, getresponse=(not nowait)) return data
(self, index, value, nowait=False)
[ 0.015926962718367577, -0.010569044388830662, -0.09093782305717468, -0.04245966672897339, 0.032184209674596786, 0.021817002445459366, -0.04532211646437645, 0.016220547258853912, -0.007917609065771103, -0.08161651343107224, -0.06521247327327728, 0.011660812422633171, -0.013679206371307373, 0.009247913956642151, 0.00855065044015646, -0.001052202540449798, 0.05647833272814751, 0.02442256547510624, 0.031230058521032333, 0.050753433257341385, -0.0023486765567213297, 0.0011032357579097152, -0.006729508750140667, 0.017890309914946556, -0.024551009759306908, -0.011624113656580448, -0.0068992371670901775, -0.005871691275388002, 0.07765311747789383, -0.05904719606041908, 0.041322026401758194, -0.055303994566202164, 0.0058074695989489555, -0.019229788333177567, 0.04121193289756775, -0.0018222886137664318, -0.05750587582588196, -0.04139542579650879, 0.003942748997360468, 0.028679542243480682, 0.008160733617842197, -0.06972633302211761, -0.016936160624027252, -0.017137998715043068, -0.011247958987951279, 0.0690290704369545, -0.01983530819416046, 0.07218510657548904, 0.08734140545129776, -0.0033257626928389072, -0.03214751183986664, 0.042312875390052795, -0.03438609093427658, -0.0345512330532074, -0.02678959257900715, 0.06726756691932678, -0.01357828639447689, 0.03934033215045929, 0.04080825671553612, -0.02545011229813099, -0.03934033215045929, 0.042312875390052795, -0.0008968090987764299, -0.04609277844429016, -0.005490948911756277, 0.002990892855450511, -0.011183736845850945, 0.02684463933110237, 0.027890533208847046, 0.013257178477942944, 0.06363445520401001, 0.0009931415552273393, -0.03420260176062584, -0.036239344626665115, -0.00694510992616415, 0.030477747321128845, -0.01763342320919037, 0.08741480857133865, -0.042129386216402054, 0.032532840967178345, 0.03761552274227142, 0.023376671597361565, 0.07123095542192459, 0.038386180996894836, 0.0007167591829784214, 0.039817407727241516, -0.00953232403844595, -0.0034220952074974775, -0.01974356174468994, -0.010725011117756367, -0.004410649184137583, 0.005949674639850855, -0.02616572380065918, 0.021560117602348328, 0.025578554719686508, -0.024367518723011017, 0.056955404579639435, -0.05123050883412361, -0.044808343052864075, 0.004254682455211878, -0.058166444301605225, 0.03787240758538246, 0.0023647318594157696, -0.05123050883412361, -0.004981763195246458, -0.030661238357424736, 0.029083222150802612, 0.027083177119493484, 0.011706684716045856, -0.017156347632408142, 0.019798608496785164, -0.009119470603764057, -0.03009241819381714, -0.05368927866220474, -0.04363400489091873, 0.09857101738452911, 0.0283492598682642, -0.015174652449786663, 0.006215735804289579, 0.02014724165201187, 0.017312314361333847, 0.005578106734901667, 0.01723891869187355, 0.025284970179200172, 0.015257222577929497, 0.09989214688539505, -0.013835173100233078, 0.036551278084516525, 0.062313325703144073, 0.009697465226054192, -0.03959721699357033, -0.01893620379269123, 0.02080780640244484, 0.07357963174581528, -0.008981852792203426, 0.04139542579650879, -0.059414178133010864, -0.03970731422305107, -0.03273468092083931, -0.0380559004843235, -0.015394840389490128, -0.027083177119493484, 0.04161561280488968, 0.004688178654760122, 0.04671664535999298, 0.0029450200963765383, -0.01051399763673544, -0.00584875512868166, -0.035211797803640366, 0.0034014524426311255, 0.0010504822712391615, 0.029762135818600655, -0.03816599398851395, 0.020128892734646797, -0.007362550590187311, 0.01656917855143547, 0.005614805035293102, -0.02304638922214508, 0.007463470101356506, -0.010495648719370365, -0.0535791851580143, -0.002887679496780038, 0.022752804681658745, 0.02550515905022621, -0.026294168084859848, 0.07196491956710815, -0.05335899442434311, 0.025395065546035767, -0.014257200993597507, 0.010770883411169052, 0.008114861324429512, -0.0063900514505803585, -0.013431494124233723, -0.009761686436831951, 0.01462418120354414, -0.016844414174556732, -0.03381727263331413, -0.011009421199560165, 0.08528631925582886, -0.03897335007786751, -0.06319408118724823, 0.026642799377441406, -0.05372597649693489, -0.014752624556422234, -0.00029702502069994807, 0.003887701779603958, -0.016046231612563133, 0.03168878331780434, 0.08293764293193817, 0.020917899906635284, 0.04653315246105194, 0.014908591285347939, 0.007862561382353306, -0.02504643425345421, 0.024055585265159607, 0.000708158069755882, 0.04077155515551567, -0.042753253132104874, 0.03845957666635513, 0.04264315962791443, 0.0205876175314188, -0.016046231612563133, 0.03361543267965317, 0.0021686265245079994, 0.03102821856737137, -0.07552462816238403, 0.06785473227500916, 0.007463470101356506, -0.023963840678334236, -0.01225715596228838, -0.060625214129686356, 0.013899394311010838, 0.03299156576395035, 0.009004789404571056, -0.0013715904206037521, -0.02803732641041279, -0.034092508256435394, -0.029798833653330803, 0.07530444115400314, -0.03783570975065231, 0.010064446367323399, 0.046423058956861496, 0.027872184291481972, -0.04201929271221161, 0.033120010048151016, -0.01105529349297285, -0.043120235204696655, -0.06679049134254456, -0.030386002734303474, 0.04888182878494263, 0.0023360615596175194, 0.0678180381655693, 0.02071606181561947, 0.012385599315166473, 0.02111973986029625, -0.04609277844429016, 0.017560027539730072, -0.036679722368717194, -0.08726800978183746, 0.037799011915922165, 0.008165320381522179, 0.008747902698814869, 0.04256976395845413, 0.011348878033459187, -0.06913916766643524, 0.03300991654396057, 0.027982279658317566, 0.03251449018716812, -0.0016640281537547708, 0.006344179157167673, 0.010165365412831306, -0.03809259831905365, -0.06609322875738144, 0.0015516403364017606, 0.005183602683246136, 0.036019157618284225, 0.012991117313504219, 0.026147374883294106, -0.052221354097127914, -0.006835015490651131, -0.07357963174581528, -0.04278995096683502, -0.061469268053770065, 0.002747768070548773, 0.008926806040108204, -0.01696368306875229, 0.015303095802664757, 0.04055136814713478, -0.015202175825834274, 0.02594553679227829, 0.08829555660486221, 0.053432390093803406, -0.02473449893295765, -0.024752849712967873, -0.03526684641838074, -0.00042546825716271996, 0.03313835710287094, -0.00852771382778883, -0.05945087596774101, -0.05335899442434311, -0.011798430234193802, 0.024147329851984978, -0.026936383917927742, 0.0007018506294116378, -0.02644095942378044, -0.013257178477942944, 0.042349573224782944, 0.05699210241436958, -0.004424411337822676, -0.008610284887254238, 0.0048946053721010685, 0.05622144415974617, 0.003545951098203659, -0.015147129073739052, 0.03651458024978638, 0.010523172095417976, -0.08770839124917984, 0.03023921139538288, -0.002759236143901944, 0.01825729012489319, 0.016266420483589172, -0.07046029716730118, -0.08565329760313034, -0.007082727737724781, 0.018275639042258263, -0.05027635768055916, 0.03651458024978638, 0.02376200072467327, -0.024771198630332947, -0.011403925716876984, 0.012541566044092178, 0.006917586550116539, -0.02398218959569931, -0.026459308341145515, 0.0802219808101654, -0.023505114018917084, -0.027450157329440117, 0.018991252407431602, 0.021321579813957214, 0.0824972614645958, -0.012000269256532192, -0.039817407727241516, -0.012890197336673737, -0.021725257858633995, 0.03282642364501953, 0.030514445155858994, 0.02678959257900715, 0.03585401549935341, -0.04378079995512962, -0.006862539332360029, -0.10238761454820633, 0.006766207050532103, -0.00803687795996666, -0.012110363692045212, 0.010376379825174809, 0.035248495638370514, 0.008596522733569145, -0.004559735301882029, -0.004369364120066166, 0.04267985746264458, -0.01018371433019638, -0.009752511978149414, 0.006247846409678459, 0.007867149077355862, -0.013697555288672447, -0.012110363692045212, 0.030569493770599365, 0.012303028255701065, 0.02737676165997982, 0.00708731496706605, -0.02407393418252468, -0.015871915966272354, 0.021908748894929886, 0.011091992259025574, 0.014046186581254005, 0.010926851071417332, 0.04029448330402374, -0.06844190508127213, -0.036551278084516525, -0.05739578232169151, -0.03783570975065231, 0.0058900401927530766, 0.018633445724844933, -0.014789322391152382, -0.08484593778848648, 0.007894672453403473, -0.04759739711880684, 0.03345029056072235, 0.02803732641041279, 0.037578824907541275, -0.02715657278895378, -0.028973126783967018, 0.0022259673569351435, 0.07042359560728073, 0.05765267089009285, 0.002188122598454356, -0.06374455243349075, -0.027340061962604523, -0.042973440140485764, -0.05079013109207153, 0.004963414277881384, -0.06572624295949936, 0.03651458024978638, 0.028367608785629272, 0.015193001367151737, -0.0007259336998686194, 0.013514064252376556, -0.01549576036632061, -0.08110273629426956, 0.010458949953317642, -0.004857907071709633, 0.006917586550116539, -0.025028085336089134, -0.02902817353606224, 0.016816891729831696, 0.009761686436831951, 0.02255096472799778, -0.0029106156434863806, 0.042349573224782944, -0.0586802139878273, -0.02161516435444355, 0.006601065397262573, -0.04392759129405022, 0.06330417096614838, 0.045799192041158676, 0.01911969482898712, 0.03723019361495972, -0.034312695264816284, -0.01808297447860241, -0.0907176285982132, -0.035120055079460144, 0.03827608749270439, 0.028074024245142937, 0.00837633479386568, 0.010945199988782406, 0.013202130794525146, -0.05310210958123207, 0.013523238711059093, 0.03519345074892044, 0.023725302889943123, 0.0012144767679274082, -0.009624069556593895, 0.01323882956057787, 0.035707224160432816, -0.013468191958963871, -0.0442211739718914, 0.057982951402664185, -0.01666092500090599, -0.018826110288500786, 0.05501040816307068, 0.002880798652768135, -0.04730381444096565, -0.01965181715786457, 0.019615119323134422, -0.0039679789915680885, -0.004525330848991871, -0.01794535666704178, -0.056111350655555725, 0.018064625561237335, 0.022844549268484116, 0.03787240758538246, 0.00402073236182332, 0.010055271908640862, 0.023413369432091713, -0.006477209739387035, -0.04238627105951309, -0.011128690093755722, -0.012825976125895977, 0.019633468240499496, -0.027395110577344894, -0.03790910914540291, -0.019615119323134422, 0.001536731724627316, 0.021761955693364143, 0.007692832965403795, -0.013275527395308018, -0.06455190479755402, -0.023615209385752678, 0.03304661437869072, -0.012358075007796288, 0.03688156232237816, -0.006279957480728626, -0.07148784399032593, -0.06649690121412277, -0.009004789404571056, 0.09328649938106537, 0.027743741869926453, 0.010669964365661144, -0.004236333537846804, 0.01875271461904049, -0.055524181574583054, -0.012780102901160717, -0.035743921995162964, -0.014119583182036877, 0.015440713614225388, -0.027927232906222343, -0.02036742866039276, 0.012293853797018528, -0.015706773847341537, -0.055927861481904984, -0.030165813863277435, -0.022000493481755257, 0.05978115648031235, 0.04656985029578209, -0.04491844028234482, -0.023284925147891045, 0.024624405428767204, -0.00227757403627038, -0.013009466230869293, -0.054900314658880234, 0.0442211739718914, -0.03407415747642517, 0.021817002445459366, -0.0038097184151411057, 0.055487483739852905, 0.031285107135772705, -0.03058784268796444, 0.0026720783207565546, 0.004458815790712833, -0.008183670230209827, -0.023028040304780006, 0.001786737353540957, -0.05068003758788109, -0.02983553148806095, 0.0033647543750703335, -0.011348878033459187, -0.04719372093677521, -0.011752557009458542, -0.016936160624027252, -0.05581776425242424, 0.024771198630332947, 0.05266173183917999, 0.013312225230038166, -0.017963705584406853, 0.00783962570130825, 0.01612880267202854, 0.02014724165201187, -0.011972745880484581, -0.03616594895720482, -0.010642440989613533, 0.026862988248467445, -0.0038578847888857126, 0.028661193326115608, 0.01147732138633728, 0.019523372873663902, -0.04466155171394348, -0.020642664283514023, -0.04260646179318428, 0.007284567225724459, 0.02572534792125225, -0.03776231408119202, 0.010862628929316998, 0.04091835021972656, 0.10018573701381683, 0.07992839813232422, -0.06198304146528244, 0.0607353076338768, -0.027431808412075043, 0.020073844119906425, -0.02242252230644226, -0.05684531107544899, -0.01773434318602085, -0.04073485732078552, -0.07765311747789383, 0.007183647248893976, -0.07258878648281097, -0.028257515281438828, 0.008848822675645351, 0.05607465282082558, -0.02822081744670868, -0.028330910950899124, -0.01825729012489319, 0.055891163647174835, -0.010192888788878918, -0.059817854315042496, 0.014394818805158138, 0.02464275434613228, -0.011871825903654099, 0.01987200602889061, 0.008468080312013626, 0.012642485089600086, -0.03688156232237816, 0.01996375061571598, 0.00973416306078434, 0.025596903637051582, 0.0038188931066542864, -0.010495648719370365, -0.0711575597524643, 0.041285328567028046, -0.06546936184167862, 0.020110543817281723, 0.00014851251034997404, -0.010761708952486515, 0.03464297950267792, -0.022000493481755257, 0.01301864068955183, 0.03132180497050285, -0.03451453521847725, 0.017697645351290703, -0.004912954289466143, -0.001646825927309692, 0.05023965984582901, -0.027560250833630562, -0.06943275034427643, 0.08403858542442322, 0.039010047912597656, 0.03185392543673515, 0.011110341176390648, 0.02447761408984661, -0.024716150015592575, -0.03027590923011303, -0.026918035000562668, -0.060258232057094574, 0.007036854978650808, 0.035431988537311554, 0.05849672481417656, -0.05123050883412361, -0.012275504879653454, 0.038386180996894836, 0.03045939840376377, -0.029798833653330803, -0.0012247981503605843, -0.02572534792125225, -0.03198236972093582, 0.0097800362855196, 0.017927007749676704, -0.02812907099723816, 0.00009052668610820547, 0.02710152603685856, -0.02590883895754814, 0.029230013489723206, -0.012963593937456608, -0.023119784891605377, 0.04139542579650879, -0.048735037446022034, 0.014899416826665401, -0.014725101180374622, 0.04363400489091873, -0.0473405122756958, -0.008582761511206627, 0.006078117992728949, 0.004140001256018877, -0.03867976740002632, -0.07567141950130463, -0.004880843218415976, -0.013532414101064205, 0.00576159730553627, -0.001297047478146851, -0.04249636456370354, 0.004775336477905512, 0.008624047040939331, -0.022092238068580627, -0.0023291807156056166, 0.04532211646437645, -0.0014243439072743058, -0.029009824618697166, 0.016899460926651955, 0.013981965370476246, 0.027541901916265488, 0.06135917454957962, 0.03702835366129875, 0.040698159486055374, 0.03598245978355408, -0.057359084486961365, 0.053028713911771774, 0.016954509541392326, -0.014468214474618435, -0.009697465226054192, -0.05504710599780083, 0.00616068858653307, -0.0031445659697055817, -0.027982279658317566, -0.022606011480093002, 0.011853476986289024, 0.008183670230209827, 0.02093624882400036, 0.047267116606235504, 0.017789389938116074, 0.03497326001524925, 0.01924813911318779, -0.055267296731472015, 0.018899505957961082, 0.039817407727241516, -0.07559802383184433, 0.01639486290514469, 0.02545011229813099, 0.0038280675653368235, -0.047854285687208176, -0.008633221499621868, 0.014018663205206394, 0.07024011015892029, -0.027872184291481972, -0.011312180198729038, 0.05978115648031235, 0.09739667922258377, -0.015128780156373978, -0.0015241167275235057, -0.013449843041598797, 0.002816576976329088, 0.012660834938287735, -0.0002908608876168728, 0.003816599491983652, 0.025468461215496063, 0.011376402340829372, 0.0028028152883052826, -0.020881202071905136, -0.012247981503605843, -0.004140001256018877, 0.010752534493803978, -0.03930363431572914, -0.020110543817281723, -0.0503864511847496, -0.0865340530872345, 0.018459130078554153, -0.08763499557971954, -0.0617995522916317, 0.012220457196235657, -0.004004676826298237, -0.023284925147891045, 0.05255163833498955, 0.01368838082998991, -0.012192933820188046, 0.037799011915922165, -0.017027905210852623, -0.017092127352952957, -0.019229788333177567, -0.027395110577344894, -0.008793774992227554, 0.006146926898509264, -0.03765222057700157, 0.06866209208965302, 0.06201973930001259, -0.02223903127014637, 0.058386631309986115, -0.024495963007211685, 0.06869878619909286, -0.09592875838279724, 0.03361543267965317, -0.03009241819381714, 0.07699255645275116, -0.013321399688720703, 0.019523372873663902, 0.012000269256532192, -0.013725078664720058, -0.018633445724844933, -0.051377300173044205, 0.00821578036993742, 0.08411198109388351, -0.0000069167263063718565, 0.030257560312747955, 0.017137998715043068, -0.05805634707212448, -0.0002849834563676268, -0.05721229314804077, 0.0020757345482707024, -0.012110363692045212, 0.02093624882400036, -0.023505114018917084, 0.03009241819381714, 0.03678981587290764, -0.006477209739387035, 0.00410789018496871, -0.001018371433019638, -0.060441721230745316, -0.05537739023566246, 0.047670792788267136, 0.010440601035952568, -0.011220435611903667, 0.03174383193254471, 0.015238873660564423, 0.01839490793645382, 0.0013589754234999418, -0.007206583861261606, 0.02684463933110237, 0.09651592373847961, -0.036643024533987045, -0.0334135927259922, 0.07765311747789383, -0.015394840389490128, 0.00640840083360672, 0.00955984741449356, 0.06077200546860695, -0.014055361039936543, 0.0231748316437006, -0.04649645462632179, 0.041505519300699234, 0.028973126783967018, 0.032716330140829086 ]
729,364
tinytuya.BulbDevice
set_version
Set the Tuya device version 3.1 or 3.3 for BulbDevice Attempt to determine BulbDevice Type: A or B based on: Type A has keys 1-5 (default) Type B has keys 20-29 Type C is Feit type bulbs from costco
def set_version(self, version): # pylint: disable=W0621 """ Set the Tuya device version 3.1 or 3.3 for BulbDevice Attempt to determine BulbDevice Type: A or B based on: Type A has keys 1-5 (default) Type B has keys 20-29 Type C is Feit type bulbs from costco """ super(BulbDevice, self).set_version(version) # Try to determine type of BulbDevice Type based on DPS indexes status = self.status() if status is not None: if "dps" in status: if "1" not in status["dps"]: self.bulb_type = "B" if self.DPS_INDEX_BRIGHTNESS[self.bulb_type] in status["dps"]: self.has_brightness = True if self.DPS_INDEX_COLOURTEMP[self.bulb_type] in status["dps"]: self.has_colourtemp = True if self.DPS_INDEX_COLOUR[self.bulb_type] in status["dps"]: self.has_colour = True else: self.bulb_type = "B" else: # response has no dps self.bulb_type = "B" log.debug("bulb type set to %s", self.bulb_type)
(self, version)
[ -0.004325468093156815, -0.05387043580412865, -0.048605479300022125, 0.01561365183442831, -0.031093770638108253, -0.04700310155749321, -0.04261563718318939, 0.017282795161008835, -0.03544308617711067, -0.024798713624477386, -0.022490525618195534, 0.00627598213031888, -0.03323027491569519, 0.014936455525457859, -0.006223523523658514, -0.015670878812670708, 0.03748420998454094, 0.027221357449889183, 0.060852229595184326, -0.04368388652801514, -0.011674471199512482, 0.04799504950642586, -0.0031022236216813326, 0.07664710283279419, -0.003674501786008477, 0.0585249625146389, 0.005274495575577021, 0.02319633588194847, 0.021670259535312653, -0.02764102816581726, -0.004363619722425938, -0.02491316944360733, 0.04280639439821243, 0.057304102927446365, 0.008011892437934875, 0.006843490991741419, 0.02745026908814907, 0.014955531805753708, -0.10537545382976532, 0.018236592411994934, -0.007015174720436335, -0.04700310155749321, 0.030197203159332275, -0.0003606543759815395, -0.01539427787065506, 0.006905487738549709, -0.012799951247870922, 0.045209962874650955, -0.022604981437325478, 0.018207978457212448, 0.02056385576725006, 0.006204447243362665, 0.01188430655747652, 0.01621454395353794, -0.03887675330042839, -0.012790413573384285, 0.0071534751914441586, 0.060699619352817535, -0.014068501070141792, 0.05612139776349068, -0.04139477387070656, 0.03553846478462219, -0.022414222359657288, -0.056541066616773605, 0.020067881792783737, -0.005474792793393135, -0.018103061243891716, 0.011874768882989883, 0.02304372750222683, 0.09232752025127411, 0.03885767608880997, 0.00680057005956769, -0.03691193088889122, 0.04719385877251625, 0.00844110082834959, -0.01945745199918747, -0.08210282027721405, 0.06546860188245773, -0.01926669292151928, -0.02428366243839264, 0.025218384340405464, 0.03675932437181473, 0.059211697429418564, -0.02069738693535328, 0.0011660164454951882, -0.0024202591739594936, 0.004735600668936968, 0.013801437802612782, 0.005784776993095875, 0.017521245405077934, -0.09950006753206253, -0.034069616347551346, 0.013686981983482838, 0.08462084084749222, 0.03479450196027756, -0.00963334646075964, 0.005188653711229563, -0.026858914643526077, -0.021956399083137512, 0.017712004482746124, -0.05154317244887352, -0.036263350397348404, -0.025695282965898514, -0.050513070076704025, -0.0018658647313714027, -0.007253623567521572, -0.04852917417883873, 0.02853759564459324, 0.01334361545741558, -0.014564475044608116, -0.04452322795987129, -0.05329815670847893, 0.014574012719094753, -0.01659606210887432, -0.04742277041077614, -0.044637683779001236, 0.01659606210887432, -0.03544308617711067, -0.0020268179941922426, 0.036415956914424896, 0.017893224954605103, 0.02491316944360733, -0.002250960096716881, 0.02409290336072445, 0.045782241970300674, 0.05139056593179703, -0.007821132428944111, 0.018675338476896286, 0.03214294835925102, 0.03084578365087509, 0.000250073557253927, 0.005555865820497274, -0.03366902098059654, -0.000056631677580298856, 0.00427777785807848, -0.04131847247481346, -0.02792716585099697, 0.007329927291721106, 0.005732317920774221, 0.01917131245136261, -0.007573145441710949, -0.014841075986623764, 0.07866915315389633, -0.1056806743144989, 0.01587117649614811, 0.061615265905857086, 0.021975474432110786, -0.07153475284576416, -0.05875387415289879, 0.0006485817139036953, 0.006481048185378313, 0.03046426549553871, 0.032200176268815994, 0.007039019372314215, -0.04231042042374611, -0.015222595073282719, -0.03519509732723236, -0.0679103210568428, 0.018923325464129448, 0.022128082811832428, 0.018284281715750694, -0.014545399695634842, -0.004675988107919693, -0.015041373670101166, -0.02678261138498783, -0.0046950639225542545, -0.08439192920923233, 0.011216648854315281, 0.06501077860593796, 0.036034438759088516, -0.0011684009805321693, 0.009189831092953682, -0.02342524565756321, 0.05665552243590355, -0.007716215215623379, 0.042005203664302826, -0.021384121850132942, -0.05516760051250458, 0.058448661118745804, -0.03233370557427406, 0.013782361522316933, 0.029300633817911148, -0.01441186759620905, 0.03790387883782387, 0.05047491937875748, 0.02466518245637417, 0.030235353857278824, 0.028613900765776634, -0.006996098440140486, 0.05169577896595001, 0.032162025570869446, 0.02386399358510971, 0.06958900392055511, -0.003531432244926691, 0.02706874907016754, 0.013515299186110497, 0.055053144693374634, -0.0631413385272026, -0.004311161115765572, -0.018141211941838264, 0.0231391079723835, -0.029720304533839226, 0.008479252457618713, 0.04891069233417511, 0.037751272320747375, -0.02008695714175701, 0.0708480179309845, 0.01607147417962551, -0.021822867915034294, -0.02773640677332878, -0.018751641735434532, 0.03328750282526016, -0.0198008194565773, 0.009103989228606224, 0.012055990286171436, -0.12017837911844254, 0.020964451134204865, 0.018475040793418884, -0.00610906770452857, 0.0035195096861571074, 0.04192890226840973, 0.029815683141350746, 0.03979239612817764, 0.00414901552721858, -0.03284875676035881, 0.04856732487678528, 0.009919485077261925, 0.003250062232837081, 0.00517434673383832, 0.034737274050712585, -0.01899009197950363, 0.03174235299229622, -0.011960610747337341, 0.04700310155749321, -0.03662579134106636, -0.009518890641629696, 0.03139898553490639, -0.0009776415536180139, -0.03914381563663483, -0.05734225735068321, 0.07897436618804932, -0.030616873875260353, 0.04505735635757446, 0.019161775708198547, -0.05535835772752762, -0.05261142551898956, 0.004001176916062832, -0.006891180761158466, -0.0575711689889431, -0.06249275803565979, -0.03405054286122322, -0.06230199709534645, 0.06745249778032303, 0.024398118257522583, 0.00700563658028841, -0.08721517026424408, 0.034298527985811234, -0.053717829287052155, 0.011111731640994549, -0.052878487855196, -0.049940794706344604, 0.0025013317354023457, -0.05348891764879227, 0.06275982409715652, -0.04402725398540497, 0.020830919966101646, 0.0774482935667038, 0.017759693786501884, -0.038170941174030304, 0.017130188643932343, 0.11491342633962631, 0.025218384340405464, -0.07828763127326965, 0.004664065781980753, -0.010739750228822231, -0.025275612249970436, 0.019915275275707245, 0.012790413573384285, -0.0066098109818995, -0.03168512508273125, 0.0349852629005909, -0.008574631996452808, 0.0462019108235836, 0.09194599837064743, -0.011607705615460873, -0.025733433663845062, -0.03738883137702942, 0.0009675074834376574, -0.017626162618398666, -0.012723647989332676, -0.032772455364465714, 0.0034670508466660976, -0.019095009192824364, 0.047117557376623154, 0.017845535650849342, 0.00554632768034935, -0.0396016389131546, 0.051085349172353745, 0.029682151973247528, -0.0830947682261467, -0.03887675330042839, -0.01532751228660345, 0.03117007575929165, 0.032677073031663895, 0.002178233116865158, -0.029605848714709282, 0.10705413669347763, -0.03914381563663483, -0.02754564769566059, -0.0062425993382930756, 0.014497709460556507, 0.028194230049848557, 0.03637780621647835, 0.014955531805753708, -0.00026139989495277405, -0.04189075157046318, -0.003798495279625058, 0.03695008158683777, -0.009227982722222805, 0.04440877214074135, -0.06913118064403534, -0.03107469528913498, 0.014068501070141792, 0.04681234061717987, 0.0273548886179924, 0.01240889448672533, 0.07626558095216751, -0.028652051463723183, -0.05944060906767845, 0.015213057398796082, -0.06218754127621651, 0.001546342857182026, 0.024970397353172302, 0.024264587089419365, 0.023272639140486717, -0.036549489945173264, -0.022166235372424126, -0.003917719703167677, -0.003927257843315601, 0.023158183321356773, -0.007353772409260273, 0.017368637025356293, -0.03313489630818367, 0.03195218741893768, 0.024970397353172302, -0.01720649190247059, 0.0029925371054559946, 0.008879846893250942, 0.03113192319869995, 0.0707717165350914, -0.014001735486090183, -0.04330236837267876, 0.009304286912083626, 0.05707519128918648, 0.08996210247278214, -0.085078664124012, -0.02510392852127552, -0.003612504806369543, 0.01692989096045494, 0.005336492322385311, -0.025981420651078224, 0.020449399948120117, -0.008856002241373062, 0.05760931968688965, -0.0064095137640833855, -0.0075254556722939014, -0.04963557794690132, -0.004461383912712336, 0.04326421767473221, -0.019953425973653793, 0.022547753527760506, -0.022490525618195534, 0.031666047871112823, 0.008169268257915974, 0.049025148153305054, 0.00819788221269846, -0.021288741379976273, -0.022318841889500618, -0.0012602038914337754, 0.02088814787566662, 0.004385080188512802, 0.011931996792554855, -0.04154738411307335, 0.037655893713235855, 0.013515299186110497, -0.013171931728720665, -0.016462530940771103, -0.041623685508966446, -0.0089656887575984, 0.00831710733473301, 0.029949216172099113, 0.03179958090186119, -0.01940976269543171, 0.006638424936681986, -0.06260721385478973, 0.008836925961077213, -0.01460262667387724, 0.007630373351275921, 0.07096247375011444, -0.04360758513212204, -0.014497709460556507, -0.05196284130215645, -0.041051410138607025, 0.04582039266824722, -0.023825841024518013, -0.0153465885668993, 0.06432405114173889, 0.04856732487678528, -0.03342103585600853, -0.03338288515806198, -0.032677073031663895, 0.006452434696257114, -0.02466518245637417, -0.006881643086671829, -0.026801686733961105, 0.04604930430650711, 0.0273548886179924, 0.006638424936681986, 0.0038700299337506294, 0.016815435141324997, 0.020621083676815033, 0.0622638463973999, -0.0030998392030596733, 0.008970458060503006, 0.043111611157655716, 0.040517281740903854, 0.02935786172747612, 0.058639418333768845, 0.02558082714676857, -0.008708163164556026, 0.03637780621647835, 0.023253563791513443, -0.05516760051250458, -0.03862876445055008, 0.006066146772354841, -0.026286635547876358, 0.008627090603113174, -0.023272639140486717, -0.00481667323037982, -0.006371361669152975, -0.01974359154701233, 0.0012745107524096966, 0.0010366577189415693, 0.014230646193027496, 0.008808312006294727, -0.05226805806159973, -0.042005203664302826, -0.006428589578717947, 0.03088393621146679, -0.06192047894001007, -0.07874545454978943, -0.005436641164124012, 0.01501275971531868, -0.022128082811832428, 0.04093695431947708, 0.01302886288613081, -0.05776192620396614, -0.02294834703207016, 0.03130360692739487, -0.046163760125637054, -0.00667180772870779, 0.02050662785768509, -0.0349089577794075, 0.0169775802642107, 0.021288741379976273, 0.04128032177686691, 0.05676997825503349, -0.04173814132809639, 0.0169775802642107, 0.034832652658224106, -0.021250590682029724, -0.019667288288474083, 0.029777532443404198, 0.055587269365787506, -0.0026372477877885103, -0.04669788479804993, 0.004363619722425938, -0.0003919508308172226, -0.051848385483026505, -0.06451480835676193, -0.0027683947701007128, 0.018780255690217018, -0.009843181818723679, 0.015298898331820965, -0.02008695714175701, -0.04925405979156494, 0.012799951247870922, -0.02060200832784176, 0.014316488057374954, -0.031723275780677795, -0.043531280010938644, -0.029567696154117584, -0.03199034184217453, 0.003893874818459153, -0.04376019164919853, 0.018770718947052956, -0.016386227682232857, -0.0023379940539598465, 0.024550726637244225, 0.0019469374092295766, 0.009871795773506165, -0.017721543088555336, -0.04459953308105469, -0.06646054983139038, 0.02348247356712818, -0.02954862080514431, -0.01334361545741558, 0.01506044901907444, -0.009094451554119587, 0.01739725098013878, -0.03691193088889122, 0.028232380747795105, 0.022604981437325478, -0.0016107241390272975, -0.000008578581400797702, 0.050322312861680984, -0.027602875605225563, 0.01501275971531868, 0.000374961324268952, 0.02916710264980793, 0.02323448657989502, 0.04250118136405945, 0.07596036791801453, -0.04612560570240021, 0.03366902098059654, -0.0023379940539598465, -0.005117119289934635, -0.04192890226840973, 0.03338288515806198, 0.01591886579990387, -0.03601536154747009, -0.021345969289541245, -0.005884925369173288, 0.032543543726205826, 0.03273430094122887, -0.03513786941766739, -0.012380280531942844, 0.03132268413901329, -0.0556635744869709, -0.08950427919626236, 0.03160881996154785, -0.058067142963409424, 0.009070605970919132, -0.08462084084749222, -0.028079774230718613, -0.04227226972579956, -0.009499815292656422, -0.01688220165669918, -0.011722161434590816, -0.0005359144997783005, -0.015651803463697433, 0.010253313928842545, 0.06722358614206314, -0.005293571390211582, 0.005069429520517588, -0.04662157967686653, 0.010377307422459126, 0.003261984558776021, 0.029338786378502846, -0.0032166792079806328, -0.04547702521085739, -0.05268772691488266, 0.010386846028268337, 0.007916511967778206, -0.025790661573410034, 0.0071963961236178875, -0.04177629575133324, 0.04875808581709862, 0.040326524525880814, -0.032925061881542206, 0.029777532443404198, -0.029472317546606064, -0.01634807512164116, 0.03088393621146679, -0.03885767608880997, -0.0016262233257293701, -0.0015558808809146285, 0.043149761855602264, -0.002549021504819393, -0.017673851922154427, 0.0030712252482771873, 0.06920748949050903, 0.009499815292656422, -0.04856732487678528, -0.013954045251011848, -0.05043676868081093, 0.03279152885079384, 0.03715991973876953, 0.02107890695333481, -0.008736777119338512, -0.026992445811629295, -0.02863297611474991, -0.027564723044633865, -0.0585249625146389, -0.025714358314871788, -0.004397002514451742, -0.015937943011522293, -0.0699705258011818, -0.0013758516870439053, 0.04318791255354881, 0.021288741379976273, 0.028079774230718613, 0.010558528825640678, -0.037942033261060715, 0.04082249850034714, 0.0075254556722939014, -0.04120401665568352, -0.01360114011913538, -0.021632108837366104, -0.05024600774049759, 0.03357364237308502, 0.029186177998781204, -0.03828539699316025, 0.052420664578676224, -0.03338288515806198, -0.027621950954198837, -0.012990710325539112, 0.006862567272037268, -0.0023320328909903765, -0.021727487444877625, -0.031914036720991135, 0.06020364537835121, 0.027850862592458725, 0.012055990286171436, -0.0869099497795105, -0.0288237351924181, 0.0031284531578421593, -0.031189151108264923, 0.0062855202704668045, -0.011407407931983471, 0.0679103210568428, -0.025733433663845062, 0.03944902867078781, -0.022147158160805702, -0.06882596760988235, 0.0013961198274046183, 0.004375542048364878, 0.0007165397400967777, 0.07264115661382675, 0.05951691418886185, 0.06794847548007965, 0.0073585412465035915, 0.032162025570869446, 0.01190338283777237, 0.014965069480240345, 0.028232380747795105, -0.07264115661382675, 0.010548991151154041, -0.019381148740649223, -0.0033001364208757877, -0.06638424843549728, -0.03532863035798073, -0.012008300051093102, -0.009518890641629696, -0.02764102816581726, 0.02901449427008629, 0.03576737642288208, 0.07290821522474289, -0.02170841209590435, -0.017416326329112053, -0.062416452914476395, 0.0003380017005838454, 0.02542821876704693, -0.00515050208196044, 0.05463347211480141, 0.02291019633412361, 0.022986499592661858, -0.03178050369024277, -0.045248113572597504, -0.008283724077045918, 0.03532863035798073, -0.024169208481907845, -0.042234115302562714, -0.016243157908320427, -0.00733946543186903, -0.02529468759894371, -0.036702096462249756, 0.008259879425168037, 0.04154738411307335, -0.024684257805347443, 0.02539006806910038, 0.015127215534448624, -0.004652143456041813, 0.0115504777058959, 0.028461292386054993, 0.03656856343150139, -0.026095876470208168, 0.048262111842632294, -0.02180379256606102, -0.06958900392055511, -0.02180379256606102, -0.05440456047654152, -0.026439243927598, 0.06939824670553207, -0.018351048231124878, -0.04028837010264397, 0.01663421466946602, -0.00973349530249834, -0.05627400428056717, 0.005222036968916655, 0.04097510501742363, -0.06764326244592667, -0.06565936654806137, 0.03735067695379257, -0.007444383110851049, 0.016519758850336075, -0.03517602011561394, -0.053717829287052155, -0.025027625262737274, -0.023883068934082985, 0.04646897315979004, 0.05814344435930252, 0.008746315725147724, -0.024264587089419365, 0.012370742857456207, 0.013925431296229362, -0.07615112513303757, -0.0002545444876886904, -0.025370990857481956, 0.058448661118745804, -0.06195863336324692, 0.055434662848711014, 0.01964821107685566, 0.024016600102186203, 0.04307345673441887, 0.019858047366142273, 0.03235278278589249, 0.01774061843752861, -0.037560511380434036, -0.004797597415745258, 0.01840827614068985, -0.01653883419930935, -0.056159548461437225, -0.064095139503479, -0.0011737659806385636, -0.01280948892235756, 0.020239565521478653, -0.009337669238448143, 0.064095139503479, 0.011712622828781605, 0.006643193773925304, -0.01715880259871483, -0.047880593687295914, 0.003965409472584724, -0.04795689508318901, 0.05680812895298004, 0.012714109383523464, 0.00554632768034935, 0.02945324219763279, -0.0045329187996685505, 0.032390933483839035, -0.019667288288474083, -0.003529047593474388, 0.030903011560440063, 0.10529915243387222, -0.06863521039485931, 0.019915275275707245, 0.03319212421774864, 0.0022640747483819723, -0.015270284377038479, 0.05131426081061363, -0.024398118257522583, 0.01128341443836689, 0.039372727274894714, 0.041852597147226334, 0.03910566493868828, -0.03532863035798073, 0.013219621963799 ]
729,365
tinytuya.BulbDevice
set_white
Set white coloured theme of an rgb bulb. Args: brightness(int): Value for the brightness (A:25-255 or B:10-1000) colourtemp(int): Value for the colour temperature (A:0-255, B:0-1000). nowait(bool): True to send without waiting for response. Default: Max Brightness and Min Colourtemp
def set_white(self, brightness=-1, colourtemp=-1, nowait=False): """ Set white coloured theme of an rgb bulb. Args: brightness(int): Value for the brightness (A:25-255 or B:10-1000) colourtemp(int): Value for the colour temperature (A:0-255, B:0-1000). nowait(bool): True to send without waiting for response. Default: Max Brightness and Min Colourtemp """ # Brightness (default Max) if brightness < 0: brightness = 255 if self.bulb_type == "B": brightness = 1000 if self.bulb_type == "A" and not 25 <= brightness <= 255: return error_json( ERR_RANGE, "set_white: The brightness needs to be between 25 and 255." ) if self.bulb_type == "B" and not 10 <= brightness <= 1000: return error_json( ERR_RANGE, "set_white: The brightness needs to be between 10 and 1000." ) # Colourtemp (default Min) if colourtemp < 0: colourtemp = 0 if self.bulb_type == "A" and not 0 <= colourtemp <= 255: return error_json( ERR_RANGE, "set_white: The colour temperature needs to be between 0 and 255.", ) if self.bulb_type == "B" and not 0 <= colourtemp <= 1000: return error_json( ERR_RANGE, "set_white: The colour temperature needs to be between 0 and 1000.", ) payload = self.generate_payload( CONTROL, { self.DPS_INDEX_MODE[self.bulb_type]: self.DPS_MODE_WHITE, self.DPS_INDEX_BRIGHTNESS[self.bulb_type]: brightness, self.DPS_INDEX_COLOURTEMP[self.bulb_type]: colourtemp, }, ) data = self._send_receive(payload, getresponse=(not nowait)) return data
(self, brightness=-1, colourtemp=-1, nowait=False)
[ 0.025644849985837936, -0.06314332038164139, -0.07476898282766342, 0.024068167433142662, 0.008078128099441528, -0.010979794897139072, -0.05592476949095726, 0.019167151302099228, -0.0006713964394293725, -0.014598567970097065, 0.0027805666904896498, -0.002053962554782629, 0.022282525897026062, -0.005907813552767038, -0.038334302604198456, -0.022339513525366783, 0.02678462117910385, 0.04688258469104767, 0.03449707105755806, -0.03939808905124664, 0.021237734705209732, 0.0023840211797505617, 0.03293938562273979, 0.12514686584472656, -0.010998791083693504, 0.0033860700204968452, -0.009811529889702797, 0.012167057022452354, -0.020800823345780373, -0.011692152358591557, 0.04315933212637901, -0.03379421308636665, 0.03518093377351761, 0.026841608807444572, 0.017903905361890793, -0.00015716375492047518, 0.013401808217167854, 0.04540088400244713, -0.10014788806438446, -0.05231549218297005, -0.033414289355278015, -0.04718652367591858, 0.027506476268172264, -0.0041815354488790035, 0.001347541925497353, -0.020154953002929688, 0.030944785103201866, 0.09399312734603882, 0.003917963244020939, -0.014266135171055794, -0.0012976769357919693, 0.023878205567598343, -0.06359922885894775, 0.06078779324889183, 0.006491946056485176, 0.03776441514492035, -0.027696438133716583, 0.06390316784381866, 0.004369122441858053, -0.04057585075497627, -0.02161765843629837, 0.030412891879677773, 0.013401808217167854, -0.04262743890285492, 0.0002574873506091535, 0.025720834732055664, -0.07811231166124344, 0.02895018644630909, 0.03711854666471481, 0.06101574748754501, 0.014779032208025455, 0.027335509657859802, -0.043463271111249924, 0.016241738572716713, -0.020477887243032455, -0.015871312469244003, -0.04771841689944267, 0.0035760318860411644, -0.047338493168354034, 0.020363910123705864, 0.05056784674525261, 0.03820132836699486, 0.062497448176145554, 0.011008289642632008, -0.00008155003160936758, -0.04562883824110031, -0.01983201690018177, 0.000007100380571500864, -0.030089957639575005, -0.024372106418013573, -0.05998995155096054, 0.0045210919342935085, -0.01756197400391102, 0.03326231986284256, 0.06891816109418869, -0.01164466142654419, -0.007555732503533363, 0.00951233971863985, 0.007631717249751091, -0.011758638545870781, -0.07602273672819138, 0.01822683960199356, -0.02100978046655655, -0.05957203730940819, 0.030887797474861145, -0.025967784225940704, -0.03806835412979126, 0.007660211529582739, -0.013724743388593197, -0.02703157067298889, -0.031020769849419594, -0.0392841100692749, -0.01589980721473694, -0.06200354918837547, 0.006924109533429146, 0.02686060592532158, -0.02180762030184269, -0.009569328278303146, 0.013781731948256493, 0.0009029124048538506, 0.010552381165325642, -0.023118358105421066, 0.03854326158761978, -0.003015644382685423, 0.04657864570617676, 0.09057381004095078, 0.007028588559478521, 0.0442231185734272, 0.02370723895728588, 0.01779942587018013, -0.050035953521728516, 0.064283087849617, -0.015396407805383205, 0.016089769080281258, 0.02334631234407425, -0.00157787068746984, -0.07495895028114319, 0.02703157067298889, 0.056570637971162796, 0.005299935583025217, 0.032369498163461685, -0.0173055250197649, 0.012489992193877697, -0.005100475624203682, 0.025606857612729073, 0.006814881227910519, 0.009355621412396431, -0.06842426210641861, -0.007645964622497559, 0.08616669476032257, 0.0018248209962621331, 0.027012575417757034, -0.0304888766258955, 0.046350691467523575, -0.057558439671993256, 0.0304888766258955, 0.007869170047342777, 0.01847379095852375, 0.009023187682032585, -0.019983986392617226, -0.04836428910493851, -0.01645069569349289, 0.06348524987697601, -0.017229540273547173, 0.007384766824543476, 0.025454888120293617, -0.04433709755539894, 0.03719453141093254, 0.05334128811955452, 0.0035451629664748907, 0.026100758463144302, -0.021104762330651283, -0.028988178819417953, 0.041981570422649384, 0.01706807315349579, 0.032806411385536194, -0.02858925797045231, -0.07841625064611435, 0.03301537036895752, 0.008633766323328018, -0.008814229629933834, 0.017780428752303123, -0.021788625046610832, 0.0053521753288805485, 0.025758827105164528, -0.05144166946411133, -0.02784840762615204, 0.018274329602718353, -0.030203934758901596, 0.03426911681890488, 0.027753425762057304, 0.02353627420961857, 0.038524262607097626, 0.02925412543118, 0.04787038639187813, 0.016678649932146072, 0.038030363619327545, -0.056570637971162796, 0.04688258469104767, -0.02340329997241497, 0.007384766824543476, -0.0703238770365715, 0.005162213463336229, 0.016099266707897186, 0.08358321338891983, -0.09574077278375626, 0.010922806337475777, 0.009198903106153011, 0.005261943209916353, -0.030070960521697998, -0.07066580653190613, 0.017210543155670166, 0.02197858691215515, 0.036301709711551666, 0.0653848722577095, -0.08593874424695969, 0.043387286365032196, 0.02477102540433407, 0.025283923372626305, -0.026518674567341805, -0.028000377118587494, -0.036320704966783524, 0.014332621358335018, -0.009916008450090885, 0.004654065240174532, 0.044868990778923035, -0.029425090178847313, -0.03183760493993759, 0.003659140085801482, 0.01761896163225174, -0.00782167911529541, 0.04251346364617348, -0.02513195388019085, 0.011207749135792255, -0.02070584148168564, -0.033110350370407104, 0.05018792301416397, -0.02710755541920662, -0.052391476929187775, -0.027981380000710487, 0.00828233640640974, 0.023745231330394745, 0.04008195176720619, 0.011407209560275078, -0.0055611333809792995, -0.04441308230161667, 0.018274329602718353, 0.03250247240066528, -0.06337127089500427, 0.004022442270070314, -0.06698054820299149, -0.021218739449977875, 0.011568676680326462, 0.02554986998438835, -0.030716830864548683, 0.00809712428599596, 0.0005298155010677874, 0.0007159187225624919, -0.0009676181944087148, -0.019509082660079002, 0.02881721220910549, -0.06466301530599594, -0.005238198209553957, 0.10645461827516556, 0.023859208449721336, -0.012670455500483513, 0.02722153253853321, 0.027886399999260902, -0.021142754703760147, 0.030887797474861145, 0.04004395753145218, 0.018093867227435112, -0.019945994019508362, -0.029539067298173904, -0.04828830435872078, 0.006207003723829985, 0.011720646172761917, -0.03725152090191841, -0.02353627420961857, -0.03459205478429794, -0.020230937749147415, -0.045362889766693115, 0.029843006283044815, 0.046844594180583954, 0.0053521753288805485, -0.004473601467907429, 0.027392499148845673, 0.02285241149365902, 0.020952792838215828, -0.02327032759785652, -0.010181955061852932, 0.027240529656410217, -0.006145265884697437, -0.0007687518955208361, 0.07001993805170059, 0.009099172428250313, -0.016213243827223778, -0.003255471121519804, -0.0031628648284822702, -0.048136334866285324, 0.041981570422649384, -0.09444903582334518, 0.0038491019513458014, -0.01625123620033264, -0.016783129423856735, -0.04414713382720947, 0.05679859220981598, -0.0011742017231881618, -0.00011828093556687236, -0.01385771669447422, 0.005200205836445093, -0.03179961442947388, 0.03670062869787216, -0.01222404558211565, 0.031058762222528458, -0.05330329388380051, 0.05147966369986534, 0.03985399752855301, 0.011910608038306236, 0.07408512383699417, -0.008434305898845196, -0.07564280927181244, 0.021408701315522194, 0.03854326158761978, 0.04304535686969757, -0.015310925431549549, 0.02617674320936203, 0.034952979534864426, -0.018502283841371536, 0.020838815718889236, -0.09460100531578064, 0.03195158392190933, 0.005143217276781797, -0.009108670987188816, 0.03700456768274307, -0.055088937282562256, -0.010609369724988937, -0.019604062661528587, 0.013743739575147629, -0.027069563046097755, -0.012670455500483513, -0.016061274334788322, 0.012376015074551105, 0.0333762988448143, 0.0527334101498127, 0.0042314003221690655, 0.03170463442802429, 0.012309527955949306, 0.03535190224647522, 0.08001193404197693, 0.02477102540433407, 0.00024145931820385158, 0.004608949646353722, 0.06625869125127792, 0.05064383149147034, 0.007237546611577272, 0.006681907922029495, -0.025093961507081985, 0.021142754703760147, -0.013838720507919788, -0.01791340298950672, 0.010115468874573708, -0.0093033816665411, 0.03744148090481758, -0.030830807983875275, -0.00022231473121792078, -0.05710253119468689, 0.00861951895058155, 0.06086377799510956, -0.027183540165424347, 0.04612273722887039, -0.009355621412396431, -0.04509694501757622, -0.05106174573302269, -0.002737825270742178, 0.019756032153964043, -0.052087537944316864, -0.01639370806515217, 0.00014499432290904224, -0.014380112290382385, 0.040309906005859375, -0.013572773896157742, -0.006131018977612257, -0.014617564156651497, 0.048440273851156235, -0.03683360293507576, 0.00602179067209363, -0.06884217262268066, -0.062611423432827, -0.012167057022452354, 0.03136270120739937, -0.03178061917424202, 0.028133349493145943, 0.03607375547289848, -0.0369475819170475, -0.0021821868140250444, 0.035446882247924805, 0.02161765843629837, 0.030906792730093002, -0.024296121671795845, -0.020553871989250183, -0.025948788970708847, -0.07412311434745789, -0.01700158603489399, 0.0009005378815345466, -0.01694459654390812, 0.02507496438920498, 0.04540088400244713, -0.0010833762353286147, 0.03715653717517853, -0.00887121818959713, 0.03073582798242569, -0.04072782024741173, 0.011179255321621895, -0.025587862357497215, -0.0191576536744833, -0.040005967020988464, -0.013259337283670902, 0.0015256311744451523, 0.02148468606173992, -0.00039713899604976177, -0.023669246584177017, 0.05611472949385643, 0.004243272822350264, -0.002132321707904339, 0.012233543209731579, 0.06432108581066132, 0.027753425762057304, -0.023821216076612473, 0.024182144552469254, 0.04072782024741173, -0.020306922495365143, -0.021389704197645187, -0.06264942139387131, 0.03425012156367302, -0.00444748206064105, -0.001145707443356514, -0.016764134168624878, 0.06044586002826691, -0.04103175923228264, 0.05117572471499443, -0.003298212541267276, 0.0024101410526782274, -0.014874013140797615, -0.014579571783542633, -0.05212553218007088, -0.0571405254304409, -0.017030080780386925, 0.029539067298173904, 0.010856320150196552, -0.0835072323679924, 0.04771841689944267, -0.007171059958636761, -0.006957352627068758, 0.042285509407520294, -0.00984952226281166, -0.05394916608929634, -0.0006577429012395442, 0.0190246794372797, -0.0024338862858712673, 0.041107743978500366, -0.03320533037185669, -0.06272540241479874, 0.025150949135422707, 0.02741149440407753, 0.03576981648802757, 0.06929808109998703, -0.052087537944316864, -0.018074870109558105, -0.02857026271522045, -0.038087353110313416, -0.02587280422449112, 0.011568676680326462, -0.012888911180198193, 0.041183728724718094, -0.03155266493558884, -0.012015087530016899, 0.03504796326160431, 0.010143962688744068, -0.047034554183483124, -0.02271943725645542, 0.0011189940851181746, 0.033965177834033966, -0.004164913669228554, -0.03339529410004616, -0.014076173305511475, 0.006957352627068758, -0.00637322012335062, 0.06652463972568512, -0.005385418422520161, -0.056076738983392715, -0.08783835917711258, 0.00806388072669506, 0.016925601288676262, -0.11032984405755997, -0.0431213416159153, -0.02914014831185341, -0.023327315226197243, 0.028171341866254807, -0.032483477145433426, -0.004324006848037243, -0.01093230489641428, -0.05744446441531181, -0.012575474567711353, 0.019072169438004494, -0.09133365750312805, -0.017837418243288994, 0.0021335091441869736, 0.011540182866156101, -0.006463451776653528, -0.01711556315422058, 0.0038775962311774492, -0.002344841603189707, -0.049732014536857605, 0.00414354307577014, -0.03326231986284256, 0.041183728724718094, 0.032483477145433426, 0.005518391728401184, -0.08419109135866165, -0.022130556404590607, 0.05375920236110687, 0.06378918886184692, 0.06348524987697601, -0.010200951248407364, 0.04851625859737396, 0.024903999641537666, -0.05326530337333679, -0.04046187549829483, 0.025093961507081985, 0.008648013696074486, -0.006648664828389883, 0.04445107281208038, -0.015092468820512295, 0.02710755541920662, -0.049428075551986694, 0.01705857366323471, -0.07849223911762238, -0.06891816109418869, -0.05470901355147362, 0.023194342851638794, -0.049314096570014954, 0.034345101565122604, -0.05622870847582817, -0.06477699428796768, -0.0464266762137413, -0.034820009022951126, 0.0370805524289608, -0.01093230489641428, -0.05106174573302269, 0.004616072867065668, -0.021655650809407234, 0.010970297269523144, 0.016555175185203552, -0.03744148090481758, 0.0017144057201221585, -0.007261291611939669, -0.0036543910391628742, 0.02370723895728588, 0.009165659546852112, -0.03894218057394028, -0.02845628559589386, -0.010609369724988937, 0.017220042645931244, -0.04524891451001167, -0.02142769657075405, -0.03727051615715027, 0.03793538361787796, -0.007892915047705173, -0.08229147642850876, 0.03423112630844116, 0.06827229261398315, 0.029824011027812958, 0.013012386858463287, -0.007365770637989044, 0.019129158928990364, 0.027392499148845673, -0.04958004504442215, -0.0006078779115341604, -0.0049864985048770905, 0.005223950836807489, 0.011511688120663166, -0.029615052044391632, -0.0964246392250061, -0.02137070894241333, -0.02197858691215515, 0.015586369670927525, 0.011777634732425213, 0.004962753504514694, 0.02353627420961857, 0.0022178045473992825, 0.06610672175884247, 0.004364373628050089, -0.04266543313860893, -0.004335879348218441, 0.05588677525520325, 0.045058950781822205, -0.011274236254394054, 0.01281292736530304, 0.07321129739284515, -0.029425090178847313, -0.01182512566447258, -0.00945060234516859, -0.028038369491696358, 0.012594470754265785, -0.007622219156473875, 0.013743739575147629, -0.05018792301416397, -0.003177111968398094, -0.033965177834033966, 0.020458891987800598, -0.040499866008758545, 0.008163610473275185, 0.07017190754413605, 0.01493100170046091, -0.012850919738411903, -0.02180762030184269, 0.03328131511807442, 0.012157558463513851, 0.028000377118587494, 0.001809386652894318, 0.005057734437286854, -0.025853807106614113, -0.019680047407746315, -0.01154968049377203, -0.052999354898929596, 0.005219202022999525, -0.02309936098754406, -0.0488961823284626, -0.02334631234407425, -0.005827079992741346, 0.012603969313204288, 0.005713102873414755, -0.01135971862822771, -0.03092578984797001, 0.04057585075497627, 0.01934761367738247, 0.014494089409708977, 0.001400968641974032, -0.0035617847461253405, 0.07157762348651886, 0.02216854877769947, 0.028684239834547043, -0.04072782024741173, 0.022871406748890877, 0.037289511412382126, -0.03601676598191261, 0.013040880672633648, -0.02285241149365902, -0.01742899976670742, -0.07207152992486954, -0.03400317206978798, 0.006354223936796188, 0.0057985857129096985, -0.03073582798242569, 0.04350126534700394, 0.02007896825671196, 0.013572773896157742, 0.04429910331964493, 0.006938356440514326, -0.05888817459344864, 0.02648068219423294, 0.02727852202951908, -0.0333762988448143, 0.0075177401304244995, -0.008595773950219154, 0.030260922387242317, 0.005062483251094818, -0.0037469975650310516, -0.01847379095852375, 0.015937799587845802, -0.036795612424612045, -0.016412703320384026, -0.06306733191013336, 0.025036972016096115, 0.04152566194534302, -0.04870621860027313, -0.014332621358335018, 0.07317330688238144, -0.004948506131768227, 0.05375920236110687, 0.003224602434784174, -0.04068982973694801, 0.061927564442157745, 0.07089376449584961, 0.053189318627119064, -0.034952979534864426, -0.03029891476035118, -0.013990690000355244, 0.01896769180893898, -0.031495675444602966, -0.0848749577999115, -0.044565051794052124, 0.057558439671993256, -0.04749046266078949, -0.03480101004242897, -0.03185660392045975, -0.03388919308781624, -0.006667661014944315, 0.033110350370407104, 0.03265444189310074, -0.036491673439741135, -0.041601646691560745, -0.004167288076132536, 0.007522489409893751, -0.011264737695455551, 0.008624267764389515, -0.0015695597976446152, 0.02249148301780224, -0.01651718281209469, 0.017751935869455338, 0.08890214562416077, 0.008928206749260426, 0.05166962370276451, -0.03917013481259346, 0.009569328278303146, -0.08829426765441895, -0.04821231961250305, -0.0037517466116696596, 0.017656954005360603, -0.0516316294670105, 0.018616260960698128, 0.018749235197901726, -0.001157580059953034, 0.020097963511943817, -0.014579571783542633, 0.015567373484373093, 0.02334631234407425, 0.02562585473060608, -0.014864514581859112, 0.0185402762144804, 0.020477887243032455, -0.029349105432629585, 0.04650266095995903, 0.022320518270134926, -0.04281740263104439, 0.057064540684223175, 0.01743849739432335, 0.03381320834159851, 0.015054476447403431, -0.018388306722044945, -0.03136270120739937, -0.012499489821493626, -0.04144967719912529, 0.005162213463336229, 0.012053079903125763, 0.05235348641872406, 0.02703157067298889, 0.019737036898732185, 0.028038369491696358, 0.058736205101013184, -0.008529286831617355, -0.01947109028697014, 0.07955602556467056, 0.11808028817176819, -0.016241738572716713, -0.026404697448015213, 0.04897216707468033, 0.0008132741786539555, 0.000352023052982986, 0.05463302880525589, 0.05030189827084541, 0.008439055643975735, 0.048440273851156235, 0.02931111305952072, 0.08039185404777527, -0.013933701440691948, 0.02735450677573681 ]
729,366
tinytuya.BulbDevice
set_white_percentage
Set white coloured theme of an rgb bulb. Args: brightness(int): Value for the brightness in percent (0-100) colourtemp(int): Value for the colour temperature in percent (0-100) nowait(bool): True to send without waiting for response.
def set_white_percentage(self, brightness=100, colourtemp=0, nowait=False): """ Set white coloured theme of an rgb bulb. Args: brightness(int): Value for the brightness in percent (0-100) colourtemp(int): Value for the colour temperature in percent (0-100) nowait(bool): True to send without waiting for response. """ # Brightness if not 0 <= brightness <= 100: return error_json( ERR_RANGE, "set_white_percentage: Brightness percentage needs to be between 0 and 100.", ) b = int(25 + (255 - 25) * brightness / 100) if self.bulb_type == "B": b = int(10 + (1000 - 10) * brightness / 100) # Colourtemp if not 0 <= colourtemp <= 100: return error_json( ERR_RANGE, "set_white_percentage: Colourtemp percentage needs to be between 0 and 100.", ) c = int(255 * colourtemp / 100) if self.bulb_type == "B": c = int(1000 * colourtemp / 100) data = self.set_white(b, c, nowait=nowait) return data
(self, brightness=100, colourtemp=0, nowait=False)
[ -0.012731976807117462, -0.06030159443616867, -0.07425141334533691, 0.037716176360845566, 0.013949817977845669, 0.0009675841429270804, -0.04911959916353226, -0.000013388614206633065, 0.0035151327028870583, -0.030851978808641434, 0.03635071590542793, -0.011421875096857548, 0.03417336568236351, -0.021183056756854057, -0.04336253181099892, -0.012713524512946606, 0.037457846105098724, 0.042513731867074966, 0.02254851534962654, -0.02721690759062767, -0.008211202919483185, 0.0038403517100960016, 0.013709940947592258, 0.10311055928468704, -0.020666398108005524, -0.008091263473033905, 0.014429573900997639, 0.006527444813400507, -0.010988249443471432, 0.0026594148948788643, 0.055577848106622696, -0.03092578798532486, 0.018664339557290077, 0.03068591095507145, 0.018987253308296204, 0.007643799297511578, 0.012242995202541351, 0.050891004502773285, -0.12421981245279312, -0.044322043657302856, -0.023341957479715347, -0.05594689026474953, -0.015389085747301579, 0.006536670960485935, 0.013119472190737724, -0.026072874665260315, 0.03504061698913574, 0.0829608216881752, 0.03922925144433975, -0.029781755059957504, -0.023452671244740486, 0.016339370980858803, -0.07609663158655167, 0.057607583701610565, 0.008561793714761734, 0.053880251944065094, -0.02158900536596775, 0.05889923498034477, 0.019854502752423286, -0.013128697872161865, -0.01643163152039051, 0.013820653781294823, 0.04063161462545395, -0.03295552358031273, 0.001623788382858038, 0.024190757423639297, -0.06985980272293091, 0.033287663012742996, 0.009724278002977371, 0.053289782255887985, 0.0040825363248586655, 0.028748435899615288, -0.03334301710128784, 0.020075928419828415, -0.026921672746539116, 0.0031876072753220797, -0.0493779294192791, -0.004456191789358854, -0.0361846461892128, 0.05565165728330612, 0.05458143353462219, 0.027881184592843056, 0.057718295603990555, -0.00698874844238162, -0.01330399326980114, -0.0479755662381649, -0.0335828959941864, -0.014042079448699951, -0.0275859497487545, 0.020352711901068687, -0.06609556823968887, 0.008907770738005638, -0.0034228721633553505, 0.028711531311273575, 0.08414176106452942, -0.027143098413944244, -0.007985163480043411, 0.022105664014816284, 0.006472088396549225, -0.020463423803448677, -0.07011813670396805, 0.010157903656363487, -0.009216844104230404, -0.06908481568098068, 0.0414804108440876, -0.04649939388036728, -0.026663342490792274, 0.003016924951225519, -0.0030215380247682333, -0.021755073219537735, -0.03445014730095863, -0.0603754036128521, -0.021072344854474068, -0.052699312567710876, 0.008667892776429653, 0.04354705289006233, -0.0035243588499724865, -0.013110245577991009, 0.05605760216712952, -0.0010477355681359768, 0.02411694824695587, -0.0012109217932447791, 0.040705423802137375, -0.004963625688105822, 0.04568750038743019, 0.09727968275547028, 0.01763102039694786, 0.05096481367945671, 0.0021346821449697018, 0.030482936650514603, -0.034118007868528366, 0.06078135222196579, -0.010388555005192757, 0.001585730817168951, 0.02254851534962654, -0.011477231979370117, -0.08059895038604736, 0.02599906548857689, 0.0712621659040451, -0.01931939087808132, 0.01503849495202303, -0.029578780755400658, 0.0011947761522606015, -0.010702241212129593, 0.06041231006383896, 0.010351651348173618, 0.012418290600180626, -0.0541754849255085, -0.01788012497127056, 0.0781632661819458, 0.012990307062864304, 0.030390676110982895, -0.02830558456480503, 0.040705423802137375, -0.04878745973110199, 0.035059068351984024, 0.027844280004501343, 0.0019847583025693893, 0.006605866365134716, -0.009484400041401386, -0.029431164264678955, -0.008617149665951729, 0.068568155169487, -0.00923529639840126, 0.011218901723623276, 0.04114827513694763, -0.05576236918568611, 0.034579310566186905, 0.03893401846289635, -0.01822148822247982, 0.025002650916576385, -0.040004242211580276, -0.025113362818956375, 0.04037328436970711, 0.035059068351984024, 0.019356295466423035, -0.0219395961612463, -0.07912278175354004, 0.03046448342502117, 0.025482406839728355, -0.0015107690123841166, 0.0048990435898303986, -0.011800143867731094, -0.015139981172978878, 0.026921672746539116, -0.04491250962018967, -0.008432628586888313, 0.016145622357726097, -0.039745911955833435, 0.019393200054764748, 0.017944706603884697, 0.015130755491554737, 0.039007823914289474, 0.04782794788479805, 0.06598485261201859, -0.0024495217949151993, 0.04476489499211311, -0.04240301996469498, 0.0366828553378582, -0.00988112110644579, -0.006116884760558605, -0.07033956050872803, 0.0167914479970932, 0.007413147483021021, 0.07735137641429901, -0.08768457174301147, 0.0022246362641453743, 0.04041018709540367, 0.003284481121227145, -0.043473243713378906, -0.06598485261201859, 0.019467009231448174, 0.024504443630576134, 0.05620522052049637, 0.03286326304078102, -0.06251585483551025, 0.05181360989809036, 0.011947761289775372, 0.04823389649391174, -0.02782582864165306, -0.035298943519592285, -0.0455767884850502, 0.02002057246863842, -0.018322976306080818, 0.01013945136219263, 0.026571081951260567, -0.03707035258412361, -0.030519841238856316, 0.0034713090863078833, 0.00265480182133615, -0.012731976807117462, 0.04144350811839104, -0.03576024994254112, 0.015979554504156113, -0.03707035258412361, -0.031811490654945374, 0.0448756068944931, -0.00028730559279210865, -0.06890029460191727, -0.012575133703649044, 0.006176854018121958, 0.024153852835297585, 0.008506436832249165, 0.028342487290501595, -0.005734002683311701, -0.06454558670520782, 0.02003902569413185, 0.030759718269109726, -0.05332668498158455, 0.0025579279754310846, -0.0723692923784256, -0.008068198338150978, 0.010222486220300198, -0.00023699468874838203, -0.017649471759796143, 0.021256865933537483, -0.017188169062137604, 0.009548982605338097, -0.006176854018121958, -0.0007501948275603354, 0.022363994270563126, -0.08473222702741623, 0.01895034871995449, 0.09078453481197357, 0.01607181504368782, -0.020094381645321846, 0.013525418937206268, 0.0313870906829834, -0.026940125972032547, 0.038786400109529495, -0.00230651767924428, 0.022714585065841675, 0.0012213010340929031, -0.03203291445970535, -0.0340811051428318, 0.0009600879275240004, 0.023674096912145615, -0.03234660252928734, -0.00826194602996111, -0.03136863932013512, -0.01511230319738388, -0.051850516349077225, 0.036516785621643066, 0.0383804515004158, 0.02948652021586895, -0.008275785483419895, 0.03727332502603531, 0.02926509454846382, 0.018784279003739357, -0.028988312929868698, -0.01776018552482128, 0.009927251376211643, -0.0325864814221859, 0.007085621822625399, 0.07882754504680634, 0.02253006398677826, -0.012602811679244041, -0.015315276570618153, -0.001886731362901628, -0.026109779253602028, 0.037937600165605545, -0.11108189076185226, -0.011735561303794384, -0.0250395555049181, -0.003625845769420266, -0.0337858684360981, 0.06170395761728287, -0.011338840238749981, -0.025814544409513474, -0.00488981744274497, 0.004423900973051786, -0.01401440054178238, 0.04745890572667122, 0.008354206569492817, 0.02795499376952648, -0.05428619682788849, 0.05812424421310425, 0.035428110510110855, 0.013294767588376999, 0.05402786657214165, -0.01210460439324379, -0.0740668922662735, 0.06115039438009262, 0.03572334349155426, 0.042255401611328125, -0.008658667095005512, 0.02791808918118477, 0.04151731729507446, -0.03729177638888359, 0.0013769910437986255, -0.0849536582827568, 0.0191902257502079, 0.018009290099143982, -0.019725337624549866, 0.008132780902087688, -0.03151625767350197, -0.003452856792137027, -0.0222901850938797, 0.018009290099143982, -0.02564847469329834, 0.0002596273843664676, -0.019688434898853302, 0.026165135204792023, 0.04114827513694763, 0.025593118742108345, 0.0013343204045668244, 0.02291755937039852, 0.01168020535260439, 0.03487454727292061, 0.07093002647161484, 0.005789359100162983, 0.005171212367713451, 0.004564598202705383, 0.06709198653697968, 0.0500791110098362, 0.03382277488708496, 0.020408067852258682, -0.04823389649391174, 0.00953053031116724, -0.023526478558778763, -0.011855500750243664, 0.012805785983800888, -0.0035751021932810545, 0.04085303843021393, -0.03539120778441429, 0.01643163152039051, -0.06391821801662445, 0.04583511874079704, 0.05945279821753502, -0.021146154031157494, 0.03611084073781967, -0.00157304503954947, -0.041997071355581284, -0.04391609504818916, -0.0034782285802066326, 0.021773526445031166, -0.0606706403195858, -0.01665305718779564, -0.012381386011838913, -0.01619175262749195, 0.034320980310440063, -0.03275255113840103, -0.010951345786452293, -0.024356825277209282, 0.04827079921960831, -0.03635071590542793, 0.027493689209222794, -0.08214893192052841, -0.06281108409166336, 0.0006267961580306292, -0.00444004638120532, -0.028508557006716728, 0.03116566501557827, 0.017898576334118843, -0.02182888239622116, -0.0015361406840384007, 0.05919446796178818, 0.00044573453487828374, 0.026552630588412285, -0.027752019464969635, -0.01084063295274973, -0.04959935322403908, -0.07078241556882858, -0.011790918186306953, -0.004017953760921955, -0.020998535677790642, 0.02708774246275425, 0.03904473036527634, -0.000036615965655073524, 0.015020042657852173, -0.0311841182410717, 0.02697703056037426, -0.02815796621143818, 0.031147213652729988, -0.011892404407262802, -0.01264894288033247, -0.03624000400304794, -0.06657532602548599, -0.013903687708079815, 0.022345542907714844, 0.014724808745086193, -0.029781755059957504, 0.045023225247859955, 0.007759124971926212, 0.014678677543997765, 0.004686843603849411, 0.07041336596012115, 0.004779104609042406, -0.0190426092594862, 0.033287663012742996, 0.01620098017156124, -0.022566968575119972, -0.034929901361465454, -0.05849328637123108, 0.027622854337096214, -0.008529501967132092, 0.006236823741346598, -0.01760334149003029, 0.050632674247026443, -0.04624106362462044, 0.050780292600393295, 0.0028716144151985645, 0.01835065335035324, -0.0227883942425251, -0.011449553072452545, -0.03933996334671974, -0.06867887079715729, -0.014937007799744606, -0.00035981673863716424, -0.011855500750243664, -0.08399414271116257, 0.036387622356414795, -0.0025002651382237673, -0.0036650565452873707, 0.046351779252290726, -0.011135866865515709, -0.06915862113237381, -0.007108687423169613, 0.04384228587150574, 0.011043606325984001, 0.03581560403108597, -0.0011255806311964989, -0.05594689026474953, 0.028563912957906723, 0.029763303697109222, -0.006841131020337343, 0.07517401874065399, -0.05144456773996353, -0.011071284301578999, -0.02732762135565281, -0.02492884173989296, -0.01540753711014986, 0.014281956478953362, -0.01229835208505392, 0.04738509654998779, -0.028914503753185272, -0.02037116326391697, 0.025150267407298088, 0.02852701023221016, -0.04480179771780968, -0.028729982674121857, 0.007722220849245787, 0.053179070353507996, 0.011800143867731094, -0.03277100250124931, -0.005867780651897192, 0.008211202919483185, -0.015287598595023155, 0.06480392068624496, -0.015250694006681442, -0.06126110628247261, -0.06568962335586548, 0.014512608759105206, 0.040963754057884216, -0.10237247496843338, -0.033619798719882965, -0.006878035608679056, -0.0018521336605772376, 0.018267618492245674, -0.025021102279424667, 0.0036304586101323366, -0.011661753058433533, -0.019706886261701584, -0.02157055214047432, 0.013968270272016525, -0.0620729997754097, -0.005484899040311575, -0.017188169062137604, 0.01156026590615511, -0.005775520112365484, -0.014180470257997513, 0.0053511206060647964, -0.010001060552895069, -0.024504443630576134, -0.00007957485649967566, -0.0479755662381649, 0.0524778887629509, 0.026663342490792274, 0.018858088180422783, -0.08694648742675781, -0.024430634453892708, 0.048123184591531754, 0.06480392068624496, 0.039856623858213425, -0.003930306062102318, 0.03874949738383293, 0.02902521751821041, -0.04834460839629173, -0.06723959743976593, 0.024725869297981262, -0.007634573150426149, -0.012353708036243916, 0.040114954113960266, -0.023581836372613907, 0.028859147801995277, -0.0558730810880661, 0.01608104072511196, -0.0674610286951065, -0.01870124414563179, -0.0472743846476078, 0.006093819625675678, -0.0503743439912796, 0.03897092118859291, -0.04052090272307396, -0.03749474883079529, -0.022585419937968254, -0.04506012797355652, 0.030058536678552628, -0.009087678976356983, -0.05044815316796303, 0.021755073219537735, -0.03500371053814888, -0.013774523511528969, 0.015186111442744732, -0.02158900536596775, 0.016237884759902954, -0.020555684342980385, -0.02205030806362629, 0.014309635385870934, 0.011412649415433407, -0.01763102039694786, -0.008404949679970741, 0.007939033210277557, 0.005134308245033026, -0.05391715466976166, -0.0366828553378582, -0.04100065678358078, 0.048381514847278595, -0.03184839338064194, -0.09668921679258347, 0.040816135704517365, 0.08952978998422623, 0.03249422088265419, 0.008907770738005638, -0.009991833940148354, 0.008898545056581497, 0.03197756037116051, -0.06543128937482834, -0.005028208252042532, -0.0016837578732520342, -0.009322944097220898, -0.0037873019464313984, -0.03981972113251686, -0.07941801100969315, -0.012030796147882938, -0.013746844604611397, 0.024338373914361, 0.023877069354057312, 0.000280097738141194, 0.027143098413944244, -0.009244522079825401, 0.04480179771780968, 0.012981081381440163, -0.04941483214497566, 0.011892404407262802, 0.022714585065841675, -0.013377802446484566, -0.017077457159757614, 0.0020597202237695456, 0.05731235072016716, -0.01666228286921978, -0.002103544073179364, -0.026460370048880577, 0.008086650632321835, 0.014438800513744354, 0.0027101582381874323, 0.024910390377044678, -0.028674626722931862, -0.013405480422079563, -0.026072874665260315, 0.020555684342980385, -0.011551040224730968, 0.01978069543838501, 0.06731341034173965, -0.006070754490792751, 0.005383411888033152, -0.02265922911465168, -0.00048436870565637946, -0.018175357952713966, 0.05151837691664696, -0.022271733731031418, 0.015758128836750984, -0.012575133703649044, 0.0008003616239875555, -0.018138455227017403, -0.06506224721670151, 0.011311162263154984, -0.030372222885489464, -0.030722813680768013, -0.04343634098768234, -0.02841629646718502, 0.017667924985289574, -0.0000632850787951611, -0.0004114250768907368, -0.015730449929833412, 0.020832465961575508, 0.02062949351966381, 0.004852912854403257, 0.009964155964553356, -0.018138455227017403, 0.0541754849255085, 0.031959109008312225, 0.016348596662282944, -0.0493779294192791, 0.04343634098768234, 0.02972639910876751, -0.048012468963861465, 0.016616152599453926, -0.011652526445686817, -0.014466478489339352, -0.04893507808446884, -0.019134869799017906, 0.02998472936451435, 0.02649727463722229, -0.04088994488120079, 0.05288383364677429, 0.022751489654183388, -0.002389552304521203, 0.03723641857504845, -0.00367197603918612, -0.07941801100969315, 0.019928311929106712, 0.01906106062233448, -0.00946594774723053, 0.015619737096130848, 0.012565908022224903, 0.00894006248563528, -0.005129694938659668, -0.019743790850043297, -0.04339943453669548, 0.013405480422079563, -0.003307546256110072, -0.008497211150825024, -0.05764448642730713, 0.0009548983070999384, 0.050891004502773285, -0.06982289999723434, -0.011892404407262802, 0.05841947719454765, 0.013174828141927719, 0.057349253445863724, -0.016634603962302208, -0.040336377918720245, 0.05886232852935791, 0.05598379671573639, 0.08428937941789627, -0.04653630033135414, -0.02431992068886757, -0.03144244849681854, 0.01540753711014986, -0.03941377252340317, -0.0706716999411583, -0.049341022968292236, 0.03941377252340317, -0.0572754442691803, -0.018369106575846672, -0.034579310566186905, -0.041074465960264206, 0.017677150666713715, 0.03155316039919853, 0.030519841238856316, -0.039266154170036316, -0.05362192168831825, -0.0061676278710365295, 0.010037964209914207, -0.01572122424840927, 0.021552100777626038, -0.0014623322058469057, -0.01427273079752922, -0.020057477056980133, 0.003256802912801504, 0.062036097049713135, -0.009161488153040409, 0.042735159397125244, -0.035428110510110855, 0.02996627613902092, -0.08000848442316055, -0.05709092319011688, 0.016717638820409775, 0.007219400256872177, -0.03856497257947922, 0.024283017963171005, 0.047532714903354645, 0.01593342423439026, -0.0018602064810693264, -0.030482936650514603, 0.03247576951980591, 0.040963754057884216, 0.020334258675575256, -0.016745317727327347, 0.028969861567020416, 0.008497211150825024, -0.030501388013362885, 0.022253282368183136, 0.036516785621643066, -0.033287663012742996, 0.05033744126558304, 0.02013128623366356, 0.04221849888563156, -0.008953901007771492, -0.003067668294534087, -0.026681795716285706, -0.01907951384782791, -0.034339435398578644, 0.007413147483021021, -0.00476526515558362, 0.05170289799571037, 0.020887823775410652, 0.03611084073781967, 0.00402026018127799, 0.05380644276738167, 0.004816008731722832, -0.016496213153004646, 0.09499161690473557, 0.1408267319202423, -0.013931366614997387, -0.006730418186634779, 0.07288595288991928, 0.009096905589103699, 0.0017356545431539416, 0.04059470817446709, 0.04446965828537941, -0.0035520370583981276, 0.050632674247026443, 0.01776018552482128, 0.08790599554777145, -0.012123056687414646, 0.022511612623929977 ]
729,367
tinytuya.BulbDevice
state
Return state of Bulb
def state(self): """Return state of Bulb""" status = self.status() state = {} if not status: return error_json(ERR_JSON, "state: empty response") if "Error" in status.keys(): return error_json(ERR_JSON, status["Error"]) if self.DPS not in status.keys(): return error_json(ERR_JSON, "state: no data points") for key in status[self.DPS].keys(): if key in self.DPS_2_STATE: state[self.DPS_2_STATE[key]] = status[self.DPS][key] return state
(self)
[ 0.008718681521713734, -0.06265055388212204, -0.043983094394207, -0.01293012872338295, -0.023662980645895004, -0.015493618324398994, -0.0681343600153923, -0.013559263199567795, 0.04770156368613243, -0.052997563034296036, -0.04458405822515488, 0.01200990192592144, -0.02914678305387497, 0.011606128886342049, -0.02933458425104618, -0.008009730838239193, 0.019202696159482002, 0.008483929559588432, -0.03906269744038582, -0.010742241516709328, -0.0016996029298752546, 0.03222672641277313, 0.05085662752389908, 0.08466088771820068, -0.036170557141304016, 0.005483801942318678, -0.005432156380265951, -0.04728839918971062, 0.06550513952970505, 0.02150326408445835, -0.013202440924942493, -0.022461051121354103, 0.01729651167988777, -0.006483844481408596, -0.03895001858472824, 0.023418838158249855, 0.03857441246509552, -0.012676596641540527, -0.07842587679624557, -0.03694054111838341, -0.059420373290777206, -0.04897861182689667, -0.043419692665338516, 0.023324938490986824, 0.06543001532554626, -0.006774936802685261, -0.009221049956977367, -0.01628238335251808, 0.028940200805664062, -0.04146655648946762, 0.006972128059715033, 0.00419970927760005, -0.013643774203956127, 0.021578384563326836, 0.04571086913347244, -0.04394553601741791, -0.00449314946308732, 0.04360749199986458, -0.027231207117438316, 0.025240512564778328, -0.04559818655252457, 0.025165392085909843, 0.003878099611029029, -0.03992658481001854, 0.017052369192242622, 0.0023733405396342278, -0.03034871071577072, 0.008695206604897976, -0.023944683372974396, 0.04131631553173065, 0.05739211663603783, 0.02223568968474865, -0.019550129771232605, 0.04984249919652939, -0.018132228404283524, -0.027512909844517708, -0.040377307683229446, 0.031250156462192535, -0.03703444078564644, -0.017343461513519287, -0.0016256561502814293, 0.0011356117902323604, 0.0015751845203340054, 0.006488539278507233, -0.00202003913000226, -0.026217080652713776, 0.004981433041393757, 0.012122582644224167, -0.06246275454759598, 0.0017805923707783222, -0.01897733472287655, -0.004873447120189667, -0.0227239727973938, 0.020845958963036537, 0.017033590003848076, 0.008211617358028889, -0.05919501185417175, 0.04597378894686699, -0.039851464331150055, -0.036752741783857346, -0.08225702494382858, -0.023475179448723793, -0.052997563034296036, 0.0003802978899329901, -0.02783217281103134, 0.009066114202141762, 0.03254598751664162, -0.02165350504219532, -0.007314865943044424, -0.040001705288887024, -0.02208544872701168, 0.01061078067868948, 0.010732851922512054, -0.016714327037334442, 0.007023773621767759, 0.03455546498298645, 0.006882922258228064, -0.02963506616652012, -0.07628494501113892, 0.01916513592004776, 0.009131844155490398, 0.010319688357412815, 0.014348029159009457, 0.03553203120827675, 0.026085618883371353, 0.04788936674594879, -0.010385419242084026, 0.001720730564557016, 0.06437832862138748, 0.004347603302448988, 0.012094411998987198, 0.00812241155654192, -0.05378632992506027, 0.005774893797934055, 0.00019484398944769055, -0.014207178726792336, 0.024151263758540154, -0.011052113957703114, 0.02122156135737896, 0.0502556636929512, 0.049804940819740295, 0.009756284765899181, 0.013033418916165829, -0.022198129445314407, 0.06152375042438507, 0.0454479455947876, 0.009840794838964939, 0.0016092235455289483, 0.007493277080357075, 0.003556489711627364, 0.038499291986227036, -0.0012500532902777195, 0.03040505200624466, -0.013202440924942493, -0.046762555837631226, -0.03643347695469856, -0.01385035552084446, -0.03098723664879799, -0.015164965763688087, -0.0040283408015966415, -0.013934866525232792, -0.06595586240291595, -0.012977078557014465, -0.0676460787653923, -0.021202782168984413, 0.01099577359855175, -0.011671858839690685, -0.0036410002503544092, -0.005657518282532692, -0.010582610964775085, -0.025540994480252266, -0.007967475801706314, -0.060396939516067505, 0.0691109299659729, -0.02107132039964199, 0.008807887323200703, -0.0030376880895346403, 0.03324085474014282, 0.004500191658735275, -0.07850100100040436, 0.009831405244767666, 0.025597335770726204, -0.06738315522670746, 0.014977164566516876, -0.030968455597758293, -0.02048913575708866, 0.023869561031460762, -0.00026292199618183076, 0.04680011793971062, 0.08661402016878128, 0.0005343537777662277, 0.03459302335977554, 0.03391693904995918, 0.015108625404536724, 0.017888085916638374, 0.0205454770475626, 0.017953816801309586, -0.025879036635160446, 0.04571086913347244, -0.011221135966479778, 0.009601348079741001, -0.04131631553173065, -0.05513849854469299, 0.0449596643447876, -0.0316445417702198, 0.023080796003341675, -0.022968115285038948, 0.010573220439255238, 0.02604805864393711, -0.026367321610450745, -0.04781424626708031, -0.011521617881953716, -0.04634939506649971, 0.03427376225590706, 0.012103802524507046, -0.07812539488077164, 0.05085662752389908, 0.020770838484168053, 0.01732468232512474, 0.0029250073712319136, 0.057354558259248734, -0.05776771903038025, 0.0589696504175663, -0.030236029997467995, -0.07170258462429047, 0.05573946610093117, -0.0005883466801606119, -0.00915532000362873, -0.025841476395726204, -0.013596823439002037, 0.00027906117611564696, 0.009699943475425243, -0.005540142301470041, -0.014150837436318398, 0.0017301207408308983, 0.0023005674593150616, 0.032602328807115555, -0.05018054321408272, -0.01977549120783806, -0.005042468663305044, 0.029860427603125572, -0.04571086913347244, 0.0512322299182415, 0.008638866245746613, -0.06783387809991837, -0.05003030225634575, 0.06558025628328323, 0.01831064000725746, -0.07421912252902985, -0.016348114237189293, -0.04402065649628639, -0.0165546964854002, 0.015164965763688087, -0.00034420480369590223, 0.021709846332669258, -0.08128046244382858, 0.012526355683803558, 0.0015446668257936835, 0.018536001443862915, -0.010732851922512054, 0.020094752311706543, -0.03932562097907066, -0.08128046244382858, 0.04225532338023186, -0.02546587400138378, 0.03571983054280281, 0.03348499536514282, 0.0020775534212589264, -0.021953986957669258, 0.02306201495230198, 0.1531708538532257, -0.03440522402524948, -0.06152375042438507, -0.04920397326350212, -0.05059370398521423, -0.004772503860294819, 0.023719320073723793, -0.022273249924182892, -0.0024883688893169165, -0.05397413298487663, 0.01273293700069189, -0.03836783394217491, 0.015916170552372932, 0.028170214965939522, -0.021240342408418655, -0.032846469432115555, -0.0010376028949394822, -0.03243330866098404, -0.0013686029706150293, 0.009221049956977367, 0.02841435745358467, 0.0002054078213404864, -0.03440522402524948, 0.029559945687651634, 0.03292158991098404, 0.01466729212552309, 0.000057917666708817706, -0.014376199804246426, 0.049128852784633636, 0.015672029927372932, -0.014179008081555367, -0.023813221603631973, 0.05979597568511963, 0.04184215888381004, -0.04514746367931366, -0.0488283708691597, 0.06948652863502502, -0.005000213161110878, -0.02330615743994713, -0.045898668467998505, -0.03141918033361435, 0.004425071179866791, 0.05389901250600815, 0.010620171204209328, 0.009526227600872517, -0.0753834918141365, -0.03196380287408829, 0.007699858862906694, -0.013136710040271282, 0.08105509728193283, -0.05438729375600815, -0.019831830635666847, 0.021184001117944717, 0.044546499848365784, 0.03853685408830643, 0.011474667116999626, 0.06730803102254868, 0.0038851420395076275, 0.03391693904995918, 0.04079047217965126, -0.06246275454759598, -0.06482905149459839, 0.023944683372974396, 0.03823637217283249, 0.03451790288090706, -0.006037815939635038, 0.01138076651841402, -0.017550043761730194, -0.004286567680537701, -0.04056511074304581, 0.015596908517181873, -0.0517205148935318, -0.02140936255455017, 0.03921293839812279, 0.043382130563259125, -0.03510008752346039, 0.007066028658300638, 0.004795979242771864, 0.056340429931879044, 0.010601391084492207, -0.09900891780853271, 0.060734983533620834, -0.009427632205188274, 0.08398479968309402, 0.036170557141304016, -0.0261043980717659, 0.006840667221695185, -0.030630413442850113, 0.03339109569787979, 0.03733492270112038, 0.05389901250600815, 0.01839515008032322, -0.06944897025823593, 0.038405392318964005, 0.03566349297761917, 0.0033686882816255093, -0.012272823601961136, -0.036039095371961594, 0.027137307450175285, -0.012319773435592651, -0.006929873023182154, -0.03393571823835373, -0.0647539347410202, 0.04007682576775551, 0.011437106877565384, 0.051457591354846954, 0.049617137759923935, -0.0174091923981905, 0.018066497519612312, 0.028001192957162857, -0.0006919308798387647, -0.03996414318680763, -0.0379546694457531, 0.05588970705866814, 0.05987109616398811, 0.022949334233999252, -0.007958085276186466, -0.047438640147447586, -0.008638866245746613, -0.0401143841445446, -0.013343291357159615, -0.022442271932959557, -0.044246017932891846, 0.02420760504901409, -0.07992828637361526, -0.017587604001164436, 0.05506337806582451, -0.003821759019047022, 0.04931665584445, 0.002054078271612525, 0.018197959288954735, 0.00654957490041852, -0.03108113631606102, -0.025221731513738632, -0.007812539115548134, -0.07759954780340195, 0.024526866152882576, 0.04383285343647003, -0.03716590255498886, -0.06396516412496567, 0.032508429139852524, -0.0321328267455101, -0.04755132272839546, -0.015718979761004448, -0.0326211079955101, 0.01600068248808384, -0.010479319840669632, 0.019399886950850487, 0.040865592658519745, 0.03108113631606102, 0.03333475440740585, 0.0167988371104002, 0.049617137759923935, -0.002739553339779377, -0.027193646878004074, 0.0449596643447876, 0.0009114238200709224, 0.021446922793984413, 0.024470526725053787, 0.04999274015426636, 0.03541934862732887, 0.0015775320352986455, -0.034292541444301605, -0.07729906588792801, 0.027249988168478012, 0.0037137733306735754, 0.024226384237408638, -0.009568482637405396, 0.04732596129179001, 0.06828460097312927, 0.004892227239906788, 0.06178667023777962, 0.02614196017384529, 0.023287378251552582, 0.020338894799351692, -0.05138247087597847, -0.029804086312651634, -0.04999274015426636, 0.07305475324392319, -0.03233940526843071, -0.021428143605589867, -0.013455973006784916, 0.04537282511591911, -0.046574756503105164, 0.026254640892148018, 0.06937384605407715, -0.02368175983428955, -0.0004832952399738133, -0.02832045592367649, 0.016226043924689293, -0.005887574981898069, -0.01005676668137312, -0.07485765218734741, 0.06482905149459839, 0.0013498227344825864, -0.0231934767216444, -0.0009595479350537062, 0.006103546358644962, 0.006019035819917917, 0.04315676912665367, -0.07020017504692078, 0.02146570384502411, -0.025165392085909843, 0.010084937326610088, -0.00720218475908041, -0.01851722039282322, 0.008291433565318584, 0.01087370328605175, -0.019437449052929878, -0.052321478724479675, -0.05051858350634575, -0.0032137520611286163, -0.015953730791807175, -0.0273063275963068, 0.002619829960167408, -0.057692598551511765, 0.003054120810702443, 0.03590763360261917, -0.005357035901397467, -0.034292541444301605, -0.02266763336956501, -0.04818984866142273, -0.022104227915406227, -0.004634000360965729, -0.058556485921144485, 0.02619829960167408, 0.0007899397751316428, -0.01897733472287655, 0.04180459678173065, -0.021146440878510475, 0.04612402990460396, -0.012432455085217953, -0.018329419195652008, -0.01907123625278473, -0.0011432411847636104, -0.03620811551809311, 0.01162490900605917, -0.010207007639110088, 0.017709674313664436, 0.027043405920267105, -0.01569080911576748, 0.03510008752346039, 0.021597163751721382, 0.0060800714418292046, -0.056716032326221466, 0.03679030016064644, 0.014141447842121124, 0.04488454386591911, -0.035269107669591904, 0.00910836923867464, 0.04248068481683731, 0.03594519570469856, 0.05810576304793358, 0.00789235532283783, -0.03130649775266647, 0.04999274015426636, 0.029259463772177696, -0.06099790334701538, -0.04296896606683731, 0.01790686696767807, -0.01500533428043127, -0.02291177399456501, 0.02740022912621498, 0.062274955213069916, -0.01099577359855175, -0.026461221277713776, 0.01230099331587553, -0.02306201495230198, -0.17818599939346313, -0.03301549330353737, 0.06603098660707474, -0.03842417150735855, 0.03943829983472824, -0.019212085753679276, -0.008591915480792522, -0.007483887020498514, -0.02542831376194954, 0.01002859603613615, 0.0059908656403422356, -0.030761875212192535, 0.027813391759991646, -0.04428357630968094, 0.02349395863711834, -0.0676460787653923, 0.012742327526211739, -0.0017829398857429624, 0.019024284556508064, 0.045748427510261536, 0.0338418185710907, -0.02770071104168892, -0.04334457218647003, -0.026949506253004074, -0.03339109569787979, 0.023362498730421066, -0.047739122062921524, 0.024677108973264694, 0.013136710040271282, 0.06392760574817657, 0.01909940503537655, -0.014047547243535519, 0.023756880313158035, 0.043494813144207, -0.01892099343240261, -0.02063937671482563, 0.056002385914325714, -0.022836653515696526, 0.013606213964521885, 0.03485594689846039, 0.001413205754943192, 0.035550810396671295, 0.04717572033405304, 0.021240342408418655, 0.004223184660077095, -0.019212085753679276, -0.02939092367887497, 0.05622774735093117, -0.06757095456123352, 0.007019078359007835, 0.08969396352767944, 0.009878355078399181, -0.037973448634147644, -0.044922102242708206, 0.017052369192242622, -0.020564256235957146, 0.016667377203702927, 0.06441589444875717, 0.0321328267455101, -0.025259291753172874, -0.03633957728743553, 0.012254043482244015, 0.010554440319538116, 0.03662128001451492, 0.01928720623254776, -0.054988257586956024, 0.003169149160385132, 0.0014765887754037976, -0.010385419242084026, 0.04713815823197365, -0.03853685408830643, -0.002381556900218129, 0.03230184689164162, -0.0304426122456789, -0.011765759438276291, 0.03397328034043312, -0.0031128088012337685, -0.059720855206251144, 0.03025481104850769, 0.018282469362020493, -0.03504374623298645, 0.02450808696448803, -0.0013052199501544237, -0.00303299305960536, -0.030949676409363747, 0.047739122062921524, -0.02542831376194954, -0.05757991969585419, 0.056866273283958435, -0.021052541211247444, 0.005868794862180948, -0.059044770896434784, 0.0006655213073827326, 0.025259291753172874, 0.008944042958319187, -0.07215330749750137, -0.011700029484927654, 0.04717572033405304, 0.023381277918815613, 0.023324938490986824, 0.020432796329259872, 0.08571257442235947, 0.021522043272852898, 0.010911263525485992, -0.012488795444369316, 0.001241836929693818, -0.007709248922765255, 0.0035987449809908867, -0.05457509681582451, 0.03973878175020218, 0.04364505410194397, -0.011014553718268871, -0.05070638656616211, -0.031043576076626778, -0.0001383568305755034, 0.014319859445095062, -0.0454479455947876, 0.013991206884384155, 0.014930213801562786, 0.047100599855184555, 0.03558837249875069, -0.04360749199986458, -0.09547824412584305, -0.011822099797427654, -0.03382303938269615, -0.02788851223886013, 0.03108113631606102, 0.0401143841445446, -0.04991761967539787, 0.011784539557993412, -0.004589397460222244, -0.018742583692073822, 0.05525118112564087, 0.005202099680900574, 0.020996199920773506, -0.0024907165206968784, -0.0065589649602770805, 0.028733618557453156, 0.014498270116746426, 0.0023369539994746447, 0.09119637310504913, -0.002758333459496498, 0.0273063275963068, 0.05224635824561119, 0.0011250479146838188, 0.03519398719072342, 0.05660334974527359, 0.038799773901700974, 0.002392120659351349, -0.023756880313158035, -0.002243053400889039, 0.018958553671836853, -0.025484655052423477, -0.03059285320341587, 0.007112979423254728, 0.05476289615035057, -0.024432966485619545, -0.030799435451626778, 0.0004439743352122605, -0.015380937606096268, -0.038649532943964005, -0.0035752698313444853, 0.026705363765358925, -0.0217474065721035, 0.009098979644477367, 0.008897093124687672, 0.04713815823197365, 0.030761875212192535, 0.009822014719247818, -0.04800204560160637, 0.012995858676731586, -0.01695846952497959, 0.010563830845057964, 0.023137135431170464, -0.011718809604644775, 0.03943829983472824, -0.013521702960133553, 0.01428229920566082, -0.049128852784633636, -0.003328780410811305, -0.051795635372400284, 0.06238763406872749, -0.08090485632419586, -0.006051901262253523, -0.00814119167625904, 0.05442485585808754, 0.042706046253442764, 0.0377105288207531, 0.05194587633013725, -0.006497929338365793, -0.04646207392215729, 0.0299731083214283, -0.042405564337968826, 0.0036503903102129698, -0.07992828637361526, -0.03981390222907066, -0.006760851480066776, -0.026066837832331657, 0.042368002235889435, 0.043194327503442764, 0.04079047217965126, 0.0865388959646225, 0.05055614560842514, -0.015024114400148392, 0.008760936558246613, -0.042518243193626404, -0.039513420313596725, -0.004190319217741489, -0.0022324894089251757, -0.01563446968793869, -0.02948482520878315, -0.013362071476876736, 0.04379529505968094, 0.024320285767316818, -0.0015564044006168842, 0.0017336419550701976, 0.024902470409870148, -0.03973878175020218, -0.038799773901700974, 0.01290195807814598, 0.006094156298786402, -0.00200008531101048, -0.019982071593403816, -0.027907293289899826, 0.05224635824561119, 0.045898668467998505, 0.006483844481408596, 0.060058899223804474, -0.04097827151417732, -0.0032653973903506994 ]
729,368
tinytuya.core
status
Return device status.
def status(self, nowait=False): """Return device status.""" query_type = DP_QUERY log.debug("status() entry (dev_type is %s)", self.dev_type) payload = self.generate_payload(query_type) data = self._send_receive(payload, 0, getresponse=(not nowait)) log.debug("status() received data=%r", data) # Error handling if (not nowait) and data and "Err" in data: if data["Err"] == str(ERR_DEVTYPE): # Device22 detected and change - resend with new payload log.debug("status() rebuilding payload for device22") payload = self.generate_payload(query_type) data = self._send_receive(payload) elif data["Err"] == str(ERR_PAYLOAD): log.debug("Status request returned an error, is version %r and local key %r correct?", self.version, self.local_key) return data
(self, nowait=False)
[ 0.04589230939745903, -0.025067072361707687, -0.06892988085746765, -0.05368120223283768, 0.08037552982568741, -0.033386196941137314, -0.02477453276515007, -0.04442960396409035, 0.02409803308546543, -0.06746717542409897, -0.040041495114564896, -0.06161636486649513, -0.023074140772223473, -0.020093882456421852, -0.01473673339933157, 0.017616430297493935, -0.023604370653629303, -0.05357149988412857, 0.004136707168072462, -0.00038853049045428634, 0.02462826296687126, 0.07064855843782425, 0.013118618167936802, 0.034611210227012634, 0.024536844342947006, 0.05192595720291138, 0.018448341637849808, -0.09368612617254257, 0.03824968263506889, -0.04066314548254013, 0.025067072361707687, -0.008968197740614414, 0.022214801982045174, -0.021702855825424194, -0.02949175052344799, 0.0714530423283577, 0.00451838131994009, -0.0488908477127552, -0.025030504912137985, 0.0019095131428912282, -0.05942231044173241, -0.05115803703665733, -0.018082667142152786, 0.003453350393101573, 0.006888417061418295, 0.011930171400308609, -0.020624112337827682, 0.008520245552062988, 0.055180471390485764, 0.02287301793694496, -0.012533536180853844, 0.038651928305625916, -0.06874704360961914, 0.0068564205430448055, -0.0253047626465559, -0.03088131733238697, -0.02234278805553913, 0.011555354110896587, -0.023933477699756622, 0.016409698873758316, -0.030460791662335396, 0.04380795732140541, 0.01903342269361019, -0.03002198040485382, -0.0033779297955334187, -0.003519629128277302, -0.022470775991678238, 0.0059650857001543045, -0.024280870333313942, 0.06362758576869965, 0.007761468179523945, 0.01499270647764206, -0.0262006688863039, -0.0001791239919839427, 0.017780983820557594, -0.02841300703585148, -0.04479528218507767, -0.002323183696717024, -0.017305605113506317, 0.0005756536265835166, 0.07097766548395157, 0.019819626584649086, 0.061506662517786026, -0.011363374069333076, 0.0010918849147856236, 0.053973741829395294, -0.014078516513109207, -0.014444192871451378, -0.07540234178304672, -0.0021312041208148003, 0.007034687325358391, 0.044393036514520645, -0.015568645671010017, 0.0006456462433561683, 0.09310104697942734, -0.03695153445005417, -0.028376439586281776, -0.019325964152812958, 0.008122572675347328, 0.007491782307624817, -0.07393963634967804, 0.04739157855510712, -0.02300100587308407, -0.0401146300137043, 0.03887133300304413, -0.02791934460401535, -0.005731967743486166, -0.0021014928352087736, 0.01989276148378849, 0.02234278805553913, -0.021044639870524406, -0.02859584428369999, -0.026584627106785774, -0.04380795732140541, 0.0470624715089798, 0.05854468792676926, 0.010504036210477352, -0.013923104852437973, -0.05514390394091606, 0.001871802844107151, 0.004159561824053526, 0.0043972511775791645, 0.055765554308891296, -0.04304003715515137, 0.012963205575942993, 0.04556319862604141, -0.030588777735829353, 0.009009336121380329, 0.06655298918485641, 0.019435666501522064, -0.061982039362192154, 0.03086303360760212, 0.014297922141849995, 0.04969533532857895, 0.02252562716603279, 0.015120692551136017, -0.0019335105316713452, 0.010750867426395416, 0.03142983093857765, 0.021062923595309258, 0.004804065451025963, -0.03748176619410515, -0.02636522240936756, -0.032910820096731186, 0.03857879340648651, 0.00043595407623797655, -0.0020900655072182417, -0.007926021702587605, 0.029436899349093437, 0.009347586892545223, 0.003878448624163866, -0.01780840940773487, -0.014782442711293697, 0.04219898208975792, -0.0036339028738439083, 0.01300891488790512, -0.04815949872136116, -0.08161883056163788, 0.004170989152044058, -0.0435885488986969, -0.09734288603067398, -0.07715758681297302, 0.001790668466128409, -0.025853276252746582, 0.021373748779296875, 0.04431990161538124, -0.10845942795276642, -0.0014272781554609537, 0.029235776513814926, -0.017305605113506317, 0.04066314548254013, 0.007030116394162178, -0.008442538790404797, -0.025505883619189262, -0.010641164146363735, 0.030131682753562927, -0.007894025184214115, 0.006152494810521603, 0.04446617141366005, -0.06662612408399582, -0.0009399009868502617, 0.012816935777664185, -0.08754277974367142, -0.006723863072693348, 0.0013415729627013206, 0.00553084583953023, 0.030460791662335396, -0.0009781826520338655, 0.009288163855671883, 0.073208287358284, -0.04673336073756218, 0.02824845165014267, 0.028010763227939606, 0.04154076799750328, 0.011665056459605694, -0.0020706390496343374, 0.03781087324023247, 0.04914682358503342, 0.029583169147372246, 0.01936253160238266, 0.02426258660852909, -0.03589107468724251, -0.01658339612185955, 0.06366415321826935, -0.03956611827015877, -0.014809868298470974, 0.020550977438688278, 0.013740266673266888, 0.02457341179251671, -0.011180535890161991, -0.1064847782254219, 0.001759814564138651, -0.044941551983356476, 0.03773773834109306, -0.004458958748728037, -0.05529017373919487, 0.015943463891744614, 0.02724284492433071, -0.020496126264333725, -0.05287671461701393, -0.002434029243886471, -0.05024385079741478, 0.0021791988983750343, -0.029967129230499268, -0.02841300703585148, 0.02876039780676365, -0.014197361655533314, 0.022927870973944664, -0.009032191708683968, 0.012323273345828056, 0.03543398156762123, 0.03788400813937187, 0.038798198103904724, 0.0017518154345452785, -0.007304373197257519, -0.0035676241386681795, 0.006262197159230709, 0.008145427331328392, -0.0004168132145423442, 0.003373358864337206, 0.016016598790884018, -0.03956611827015877, 0.05177968740463257, -0.015038415789604187, -0.02111777476966381, -0.09098012745380402, 0.025707006454467773, 0.03473919630050659, -0.00985496211796999, -0.026785749942064285, -0.05305955186486244, -0.051377445459365845, 0.014380198903381824, -0.02514020912349224, -0.014974422752857208, -0.04168703779578209, -0.02459169551730156, 0.024683114141225815, -0.006787856109440327, -0.02598126232624054, 0.002827130723744631, 0.03982209041714668, -0.07642623037099838, 0.051889389753341675, -0.02980257384479046, 0.0023654650431126356, 0.0524013377726078, 0.004817778244614601, 0.016144584864377975, 0.039529550820589066, -0.009471002034842968, 0.020624112337827682, -0.046843063086271286, -0.03890790045261383, -0.05671631172299385, 0.022799883037805557, 0.038651928305625916, -0.05631406605243683, -0.022580478340387344, -0.05821558088064194, -0.06783284991979599, -0.0035561968106776476, 0.030405938625335693, 0.02318384312093258, -0.04146762937307358, -0.04446617141366005, 0.02424430288374424, 0.02706000581383705, 0.0006416466785594821, -0.004433818627148867, 0.011564495973289013, 0.04611171409487724, 0.0037938859313726425, -0.008501961827278137, 0.05686258152127266, 0.02545103244483471, -0.04325944185256958, 0.0017678136937320232, 0.02775478921830654, 0.02040470764040947, -0.012542678974568844, -0.023476384580135345, -0.09112639725208282, -0.008054008707404137, 0.009082471951842308, -0.007647194433957338, 0.023256978020071983, -0.004511524457484484, -0.016711382195353508, -0.02706000581383705, -0.008991052396595478, -0.03894446790218353, 0.04845203831791878, -0.025871559977531433, 0.03629332035779953, 0.012003307230770588, -0.045782603323459625, 0.06022679805755615, 0.036567576229572296, 0.09741602092981339, -0.018448341637849808, 0.07781580090522766, 0.0663335844874382, 0.06223801523447037, -0.01054974552243948, 0.007656336296349764, 0.06775971502065659, 0.0592760406434536, 0.023677505552768707, 0.01821979507803917, -0.05112146958708763, -0.017570720985531807, 0.0006336475489661098, -0.001883230172097683, 0.03020481765270233, 0.00650445744395256, 0.043515413999557495, -0.02722456119954586, -0.021903978660702705, 0.0287786815315485, 0.0022237657103687525, 0.012259279377758503, -0.012679806910455227, -0.002600868931040168, 0.027133140712976456, 0.005466852802783251, 0.0036956106778234243, -0.0017929539317265153, 0.0801561251282692, 0.010942847467958927, -0.0681619644165039, -0.021556586027145386, -0.004582374356687069, 0.0733545571565628, 0.02910779044032097, -0.03152124956250191, 0.0036019061226397753, -0.0009627557010389864, 0.000021247760741971433, 0.0244454238563776, -0.03261827677488327, 0.028138749301433563, -0.03486718237400055, 0.005869096145033836, -0.06088501214981079, -0.008643660694360733, -0.005247447174042463, -0.006312477868050337, 0.03386157378554344, 0.02300100587308407, -0.053827472031116486, -0.005599410273134708, -0.033550750464200974, 0.015056699514389038, 0.015477226115763187, 0.0322708860039711, -0.03821311518549919, -0.020642396062612534, -0.03773773834109306, 0.004312688484787941, -0.014928712509572506, -0.01623600348830223, -0.03506830707192421, -0.010961131192743778, 0.04450273886322975, 0.008369403891265392, -0.05514390394091606, -0.0018683745292946696, -0.07368366420269012, 0.003924157936125994, -0.019929328933358192, 0.0007102108793333173, -0.08447109907865524, 0.028723830357193947, -0.017881544306874275, 0.02287301793694496, 0.001759814564138651, -0.028376439586281776, -0.01161020528525114, -0.04812293127179146, -0.04900055006146431, 0.02234278805553913, -0.049439363181591034, 0.031996630132198334, 0.0014741304330527782, -0.0016124015673995018, 0.059714850038290024, -0.026237236335873604, -0.049110256135463715, -0.011802185326814651, 0.003204233944416046, 0.04048030823469162, -0.021373748779296875, 0.037957143038511276, -0.013310597278177738, 0.03503173589706421, -0.014965280890464783, 0.056972283869981766, 0.0854218602180481, 0.0714530423283577, -0.02025843784213066, 0.0083008399233222, 0.026566343382000923, 0.029235776513814926, -0.031667519360780716, 0.05291328206658363, -0.005933089181780815, 0.04516095668077469, 0.0045618051663041115, 0.022964438423514366, 0.05982455238699913, 0.04761098325252533, -0.027773074805736542, -0.04479528218507767, -0.01764385588467121, 0.04907368868589401, 0.026932019740343094, -0.05646033585071564, 0.019252829253673553, -0.003990436904132366, -0.023128991946578026, 0.03122870996594429, 0.003581336932256818, 0.03665899485349655, -0.008236846886575222, -0.017918111756443977, -0.04029746726155281, -0.030753331258893013, 0.041065387427806854, -0.039346709847450256, -0.025725290179252625, -0.03243543952703476, 0.01676623336970806, 0.007491782307624817, -0.009790968149900436, -0.03194177895784378, -0.06037306785583496, 0.03448322415351868, -0.04815949872136116, -0.011098259128630161, 0.006125068757683039, 0.016903361305594444, -0.11240872740745544, 0.009928097017109394, 0.027626803144812584, 0.00553084583953023, 0.013593995943665504, -0.016985639929771423, -0.030259668827056885, 0.03274626284837723, -0.008305410854518414, -0.008936201222240925, -0.041065387427806854, 0.05357149988412857, 0.0034807762131094933, -0.0077020456083118916, -0.0008559098350815475, 0.04399079456925392, -0.02514020912349224, -0.042491521686315536, -0.01360313780605793, 0.04486841708421707, 0.004177845548838377, 0.011235387995839119, -0.015212111175060272, -0.04084598273038864, 0.002379177836701274, 0.02581670880317688, -0.008725937455892563, -0.03963925316929817, -0.02738911472260952, -0.03923700749874115, 0.01883230172097683, -0.004221269395202398, 0.04512438923120499, -0.013767692260444164, -0.03803027793765068, -0.009064188227057457, 0.0270417220890522, 0.023238694295287132, 0.015998315066099167, -0.05020728334784508, -0.021922262385487556, 0.07342769205570221, 0.02684060111641884, -0.012268422171473503, -0.019947612658143044, 0.022708464413881302, 0.019124841317534447, 0.02927234396338463, 0.01697649620473385, 0.04936622828245163, 0.029180925339460373, -0.019289396703243256, -0.02371407300233841, -0.021574869751930237, 0.0681253969669342, -0.0071443901397287846, -0.04311317205429077, -0.011006840504705906, -0.0036978961434215307, 0.025396181270480156, 0.019819626584649086, 0.009973806329071522, -0.054302848875522614, 0.0015598356258124113, -0.005832528229802847, -0.008351120166480541, -0.034958600997924805, -0.0322343185544014, -0.017406165599822998, -0.009918955154716969, 0.0680888295173645, -0.033404480665922165, 0.04585574194788933, -0.04132135957479477, 0.029601452872157097, -0.042857199907302856, -0.11306694149971008, -0.051011767238378525, 0.08395915478467941, -0.06849107146263123, -0.017470158636569977, -0.03378843888640404, -0.009155606850981712, -0.049439363181591034, 0.0126340975984931, 0.01403280720114708, 0.05510733649134636, -0.056643176823854446, -0.033587317913770676, -0.054156579077243805, 0.029254060238599777, -0.03035108745098114, -0.04048030823469162, 0.07489039748907089, 0.03634817153215408, -0.01464531384408474, 0.0217759907245636, -0.034263819456100464, -0.025359613820910454, -0.013785975985229015, -0.032910820096731186, 0.0645052045583725, 0.00754663348197937, -0.0470624715089798, 0.008981910534203053, 0.05042668804526329, 0.01934424787759781, -0.030131682753562927, -0.0016375418053939939, 0.03876163065433502, -0.02618238516151905, 0.01343858428299427, 0.014727591536939144, 0.0035173436626791954, 0.04293033480644226, 0.00732265692204237, 0.02215995080769062, -0.007272376678884029, 0.0019540798384696245, -0.021190909668803215, -0.015184685587882996, -0.018759166821837425, -0.018887152895331383, -0.004330972209572792, -0.0030876747332513332, 0.02894323691725731, 0.03806684538722038, -0.010961131192743778, 0.0037138944026082754, -0.011875320225954056, 0.01150964479893446, -0.028705546632409096, 0.03559853509068489, 0.0339529924094677, 0.04728187620639801, 0.003931014332920313, -0.023458100855350494, 0.03159438446164131, -0.0058599538169801235, 0.025725290179252625, 0.025359613820910454, -0.07913223654031754, -0.002907122252508998, -0.032526858150959015, -0.03605562821030617, 0.023110708221793175, -0.025176776573061943, -0.014233929105103016, 0.020130449905991554, -0.010321198031306267, -0.0122227119281888, 0.09507569670677185, 0.01668395660817623, 0.020020747557282448, -0.002783706644549966, 0.010915420949459076, -0.0108879953622818, 0.030771614983677864, 0.038103412836790085, 0.03155781701207161, 0.018274646252393723, -0.02042299136519432, -0.023110708221793175, -0.042674362659454346, 0.02130061388015747, -0.03594592586159706, 0.0037413202226161957, -0.038322821259498596, 0.0014912714250385761, 0.042674362659454346, -0.008716795593500137, 0.03678698092699051, -0.01707705855369568, -0.05393717437982559, -0.02300100587308407, 0.004623512737452984, -0.036878399550914764, 0.05254760757088661, 0.0011604491155594587, 0.071416474878788, -0.01672966592013836, -0.021337181329727173, 0.040370602160692215, 0.00715353200212121, -0.06029993295669556, 0.03537913039326668, 0.018960287794470787, -0.0021689143031835556, -0.006778714247047901, 0.0025003079790621996, 0.0523647703230381, 0.06849107146263123, -0.036000777035951614, 0.0065227411687374115, 0.006006224546581507, 0.029967129230499268, 0.008785360492765903, 0.033733587712049484, -0.05006100982427597, -0.015029273927211761, 0.04157733544707298, -0.06765001267194748, 0.016044024378061295, 0.02285473421216011, 0.01237812452018261, -0.0113359484821558, -0.006243913434445858, -0.044941551983356476, 0.08768904954195023, 0.014316205866634846, 0.042857199907302856, 0.027443965896964073, -0.03329477831721306, -0.03232573717832565, 0.0253047626465559, 0.01220442820340395, 0.05561928451061249, 0.015513794496655464, 0.03194177895784378, -0.03417240083217621, 0.021702855825424194, -0.003595049725845456, 0.02910779044032097, -0.030314520001411438, 0.008474535308778286, -0.03614705055952072, -0.054522257298231125, -0.05872752517461777, -0.05916633829474449, -0.10546088963747025, 0.008543100208044052, 0.034940317273139954, -0.01903342269361019, -0.11116543412208557, -0.02998541295528412, 0.011143968440592289, 0.004173274617642164, -0.010266346856951714, 0.05708198621869087, -0.037426915019750595, 0.04077284783124924, -0.029729438945651054, 0.008341978304088116, 0.06775971502065659, -0.05024385079741478, -0.02250734344124794, -0.02195882983505726, -0.01501099020242691, 0.04549006372690201, 0.048232633620500565, 0.007734042126685381, 0.0022969008423388004, 0.040151197463274, 0.020313289016485214, -0.055802121758461, -0.022086815908551216, 0.03345933184027672, 0.07430531084537506, -0.03543398156762123, 0.016967354342341423, 0.008341978304088116, 0.00855681300163269, 0.005210879724472761, 0.03872506320476532, 0.0021506305783987045, 0.03629332035779953, 0.005567413289099932, 0.03002198040485382, -0.018375206738710403, -0.029912276193499565, -0.055180471390485764, 0.005850811954587698, 0.03431867063045502, 0.011802185326814651, 0.02078866772353649, -0.0036019061226397753, 0.07781580090522766, 0.07569488137960434, 0.011317664757370949, 0.04826920107007027, 0.04589230939745903, 0.007610626518726349, -0.031320128589868546, -0.029052939265966415, 0.03960268571972847, -0.028723830357193947, 0.002165486104786396, -0.025377897545695305, 0.0435885488986969, -0.009397867135703564, -0.0013724268646910787, -0.015650922432541847, 0.09807423502206802, 0.0013255745870992541, -0.04969533532857895, 0.06516341865062714, 0.017470158636569977, 0.04168703779578209, 0.04600201174616814, 0.0012615813175216317, 0.010540603660047054, 0.04219898208975792, -0.07426874339580536, 0.040919117629528046, -0.05964171513915062, 0.04084598273038864 ]
729,369
tinytuya.core
subdev_query
Query for a list of sub-devices and their status
def subdev_query( self, nowait=False ): """Query for a list of sub-devices and their status""" # final payload should look like: {"data":{"cids":[]},"reqType":"subdev_online_stat_query"} payload = self.generate_payload(LAN_EXT_STREAM, rawData={"cids":[]}, reqType='subdev_online_stat_query') return self._send_receive(payload, 0, getresponse=(not nowait))
(self, nowait=False)
[ 0.016070310026407242, -0.020421601831912994, -0.03047638013958931, -0.023819424211978912, 0.05391441658139229, 0.025240961462259293, 0.013357252813875675, -0.05887246131896973, 0.0146747762337327, -0.049615129828453064, -0.04666804149746895, -0.022467229515314102, -0.020733647048473358, -0.02187781035900116, -0.0007140192901715636, 0.02173912525177002, -0.017786556854844093, -0.05093265324831009, 0.04503847286105156, 0.03401288762688637, -0.04347825050354004, 0.07433601468801498, 0.020161565393209457, 0.012689824216067791, -0.01289785373955965, 0.049129728227853775, 0.018011922016739845, -0.06871920824050903, 0.02286595292389393, -0.039386995136737823, 0.01841064542531967, 0.04014977067708969, 0.016590384766459465, -0.07669369131326675, -0.032140620052814484, 0.0717703178524971, 0.009335341863334179, -0.02572636492550373, -0.0474654883146286, 0.04278481751680374, -0.025466326624155045, -0.08085428923368454, 0.009751401841640472, 0.016885094344615936, 0.03084043227136135, 0.006652622949331999, 0.014969484880566597, 0.008182509802281857, 0.01620899699628353, 0.029158856719732285, 0.005174743942916393, 0.0326780304312706, -0.05575201287865639, 0.022640587761998177, -0.03973371163010597, -0.02614242397248745, -0.048644326627254486, -0.019225429743528366, 0.04313153401017189, 0.004932042211294174, -0.033215440809726715, 0.0018787700682878494, 0.035989172756671906, 0.009760069660842419, 0.018029257655143738, -0.05287426710128784, -0.016798414289951324, 0.021704452112317085, -0.057658955454826355, 0.04923374205827713, -0.04340890422463417, 0.03675194829702377, 0.0005390358273871243, 0.01691976562142372, -0.009422020986676216, -0.04084320366382599, -0.01818528026342392, 0.013877327553927898, -0.05953122302889824, -0.024738222360610962, 0.07821924239397049, 0.04091254621744156, 0.048124250024557114, 0.04535051807761192, 0.03557311370968819, 0.05329032614827156, 0.0131838945671916, -0.009820744395256042, -0.030441708862781525, 0.04347825050354004, 0.010323483496904373, 0.04528117552399635, -0.0012178417528048158, 0.027980022132396698, 0.03689063712954521, -0.010505509562790394, -0.0786353051662445, 0.022397885099053383, -0.050967324525117874, -0.03259135037660599, -0.03432493284344673, -0.024616871029138565, 0.007948475889861584, -0.04760417714715004, 0.05568267032504082, -0.010782883502542973, -0.0072117033414542675, -0.02281394600868225, 0.03444628417491913, 0.07482142001390457, -0.011745021678507328, 0.05311696603894234, -0.009881420060992241, 0.004069584887474775, -0.003484500804916024, 0.04108590632677078, 0.021704452112317085, -0.030164334923028946, -0.02713056653738022, -0.024426177144050598, 0.001581894000992179, 0.018792035058140755, 0.04299284517765045, -0.004906038288027048, -0.03070174530148506, 0.0527355782687664, -0.029106849804520607, 0.005733824335038662, 0.06899658590555191, -0.007471740711480379, 0.0002445976424496621, 0.0003412990481592715, -0.004110757727175951, 0.017959915101528168, 0.05016987770795822, -0.017110459506511688, 0.07877399027347565, -0.025240961462259293, 0.0056168073788285255, -0.00909264013171196, -0.0311871487647295, -0.009630050510168076, -0.011857704259455204, -0.015056164003908634, -0.018445318564772606, -0.007103354204446077, -0.015966294333338737, -0.008429544977843761, 0.012299767695367336, -0.016599051654338837, -0.05433047562837601, -0.03184591233730316, -0.04455307126045227, -0.0003450912772677839, 0.014284719713032246, -0.004403299652040005, -0.026766514405608177, -0.07055680453777313, 0.03472365811467171, -0.021409744396805763, -0.06944731622934341, -0.036266546696424484, -0.051764775067567825, 0.0006955999997444451, -0.042230069637298584, 0.004427136387676001, -0.083003930747509, -0.01353061106055975, -0.058144357055425644, 0.008732921443879604, 0.07669369131326675, 0.025691691786050797, 0.0068909903056919575, -0.021981826052069664, -0.05051659420132637, 0.0028734130319207907, 0.0011084092548117042, 0.018705355003476143, 0.03831217437982559, -0.05713887885212898, -0.04198736697435379, 0.01279383897781372, -0.010696204379200935, -0.026905199512839317, 0.0019535308238118887, 0.03215795382857323, 0.0010780716547742486, -0.018844041973352432, 0.029176194220781326, 0.0075627537444233894, -0.066500224173069, 0.016746407374739647, 0.0157062578946352, 0.0010146874701604247, -0.050412580370903015, 0.027026550844311714, -0.013383257202804089, 0.051834117621183395, -0.02884681336581707, -0.021825803443789482, -0.026263775303959846, -0.0018636011518537998, -0.007974479347467422, -0.044587742537260056, -0.011198942549526691, 0.02082032524049282, 0.005547463893890381, -0.00753241591155529, 0.02515428140759468, -0.030788425356149673, -0.08591634780168533, 0.02123638615012169, 0.0031659549567848444, -0.0015775600913912058, -0.00047917303163558245, -0.022848617285490036, -0.008620238862931728, -0.009690726175904274, 0.009066636674106121, -0.06920461356639862, -0.00248552393168211, -0.09735799580812454, 0.008793597109615803, -0.044518399983644485, -0.09687259048223495, 0.020022878423333168, 0.02031758613884449, 0.022623252123594284, -0.015333537012338638, -0.023958109319210052, 0.035070374608039856, 0.02336869202554226, 0.035278402268886566, -0.008022152818739414, -0.10540181398391724, 0.07509879022836685, -0.010895566083490849, 0.05582135543227196, 0.028864149004220963, 0.0007931140135042369, -0.01662505604326725, -0.05599471554160118, 0.021132370457053185, -0.046425338834524155, -0.06157685071229935, -0.031724561005830765, 0.026593156158924103, 0.016182992607355118, 0.010635528713464737, 0.0010948657291010022, -0.0325566790997982, -0.060918089002370834, 0.009881420060992241, -0.016997776925563812, -0.01210907381027937, -0.04829761013388634, -0.09070103615522385, 0.032209962606430054, -0.024894244968891144, -0.06379583477973938, -0.004619997460395098, 0.04382496699690819, -0.06955132633447647, 0.07828858494758606, -0.02401011809706688, 0.038624219596385956, 0.02210317738354206, 0.023715408518910408, -0.03442894667387009, 0.02210317738354206, 0.005798833444714546, 0.018705355003476143, -0.017855899408459663, -0.02068164013326168, -0.05051659420132637, 0.012265096418559551, -0.021409744396805763, -0.03318076953291893, -0.02116704173386097, -0.03546909615397453, -0.04503847286105156, 0.0010336486157029867, -0.02699187956750393, 0.04441438242793083, -0.005434781312942505, -0.09687259048223495, 0.043582264333963394, 0.013469936326146126, -0.06906592845916748, -0.013201231136918068, -0.011814365163445473, -0.014848134480416775, 0.027251916006207466, -0.01605297438800335, 0.016078976914286613, 0.02721724472939968, -0.005031723063439131, 0.0020412933081388474, 0.028378745540976524, 0.0481589213013649, -0.027095895260572433, 0.0008147837943397462, -0.055093251168727875, 0.018081264570355415, 0.012143745087087154, -0.02132306434214115, 0.03377018868923187, 0.005361103918403387, 0.01218708511441946, -0.0598432682454586, -0.06892724335193634, -0.04014977067708969, 0.032851386815309525, -0.006860652938485146, -0.03403022512793541, -0.011849036440253258, -0.033215440809726715, 0.015056164003908634, 0.02749461866915226, 0.09770470857620239, -0.0061065442860126495, 0.06313707679510117, 0.07794187217950821, 0.03730669617652893, 0.025119610130786896, -0.009222659282386303, 0.066500224173069, 0.05235419049859047, 0.040669847279787064, 0.0022103176452219486, -0.02238054946064949, -0.029228201135993004, -0.01062686089426279, -0.017153799533843994, 0.026541147381067276, 0.01768254116177559, 0.03396088257431984, 0.029748275876045227, -0.01464010402560234, 0.0065399399027228355, -0.009474027901887894, 0.03671727702021599, 0.0005807501147501171, 0.03879757598042488, 0.03047638013958931, 0.014016014523804188, 0.005876844748854637, 0.006301572546362877, 0.04944177344441414, -0.05998195335268974, 0.0028799138963222504, -0.029314879328012466, -0.05270090699195862, 0.07856595516204834, 0.06344912201166153, 0.006717632059007883, -0.004815025255084038, 0.010028774850070477, 0.003425992326810956, 0.005959189962595701, 0.0003115030995104462, 0.0685805231332779, -0.03810414299368858, -0.025414319708943367, -0.030233679339289665, -0.04250744357705116, -0.0012611813144758344, -0.03068440966308117, 0.046425338834524155, 0.014891473576426506, -0.06081407517194748, 0.019520139321684837, 0.025813043117523193, 0.011667010374367237, 0.008823934942483902, 0.033007409423589706, -0.04327021911740303, -0.0011094928486272693, -0.0033631499391049147, 0.0041280933655798435, -0.04656402766704559, 0.009881420060992241, 0.028534768149256706, -0.033648837357759476, 0.025032931938767433, 0.04843629524111748, -0.11337629705667496, 0.014735450968146324, -0.03387420251965523, -0.006019865162670612, 0.01314055547118187, 0.03841618821024895, -0.06653489917516708, 0.01832396723330021, -0.030459044501185417, 0.005928852129727602, 0.050897981971502304, -0.06570277363061905, 0.0067783077247440815, -0.04299284517765045, -0.04001108556985855, 0.015948958694934845, -0.06896191090345383, 0.043166205286979675, 0.014371398836374283, -0.041397951543331146, 0.06320641934871674, -0.027529289945960045, -0.051903460174798965, 0.0008797931368462741, 0.013435264118015766, -0.02414880506694317, -0.049060385674238205, 0.10505510121583939, -0.013781980611383915, 0.016156988218426704, -0.01413736492395401, 0.060432687401771545, 0.0731571838259697, 0.06143816560506821, -0.027338596060872078, -0.02286595292389393, 0.0415019653737545, 0.003328478429466486, 0.005543129984289408, 0.034550298005342484, -0.012802506797015667, -0.012776503339409828, 0.0338221937417984, -0.022432558238506317, 0.023247340694069862, 0.03465431556105614, -0.024478184059262276, -0.030164334923028946, 0.012213088572025299, 0.02543165534734726, 0.004303618334233761, -0.009335341863334179, -0.004476976580917835, 0.010158793069422245, 0.007385061588138342, 0.051903460174798965, 0.024044789373874664, 0.008555229753255844, 0.03517438843846321, -0.020907005295157433, -0.021981826052069664, 0.0012546803336590528, 0.04538518935441971, -0.047708190977573395, -0.025275632739067078, -0.055439967662096024, 0.06767906248569489, 0.019294772297143936, -0.01905207149684429, -0.073850616812706, -0.03259135037660599, 0.06781774759292603, -0.024200811982154846, -0.02699187956750393, 0.009153315797448158, 0.021825803443789482, -0.09680324792861938, 0.003638356225565076, 0.03316343203186989, -0.007276712451130152, 0.03351014852523804, 0.028933491557836533, -0.005361103918403387, 0.0006555108702741563, 0.007328719832003117, 0.04680672660470009, -0.04538518935441971, 0.01541154831647873, 0.09992369264364243, -0.04157130792737007, -0.0515914149582386, -0.012568472884595394, -0.0252236258238554, -0.027442611753940582, -0.00983808096498251, 0.011701681651175022, 0.015376877039670944, 0.005278758704662323, -0.012447122484445572, -0.07239440828561783, 0.00835153367370367, 0.012741831131279469, -0.06767906248569489, -0.053810399025678635, 0.012256428599357605, -0.004188768565654755, 0.0169110968708992, -0.010505509562790394, 0.03524373099207878, 0.00319845974445343, -0.013261905871331692, -0.00891061406582594, 0.08272656053304672, 0.045177161693573, 0.002559201093390584, 0.0031789569184184074, -0.010678867809474468, 0.040669847279787064, -0.023247340694069862, 0.029453566297888756, 0.0183413028717041, 0.03675194829702377, 0.0017108292086049914, 0.005027389153838158, 0.018237287178635597, 0.012828510254621506, 0.021479086950421333, -0.029384223744273186, -0.008221515454351902, -0.02834407426416874, 0.06112612038850784, 0.033718179911375046, 0.013478604145348072, 0.0046676709316670895, -0.0007308133644983172, 0.029800282791256905, -0.030875103548169136, 0.02584771439433098, 0.03448095545172691, -0.022761939093470573, -0.04992717504501343, 0.032071277499198914, -0.04320087656378746, 0.017595862969756126, -0.001016854541376233, -0.00930933840572834, 0.020716311410069466, -0.021271057426929474, 0.03855487331748009, -0.07274112105369568, 0.014830797910690308, -0.006860652938485146, -0.0095173679292202, 0.0017899238737300038, 0.0515914149582386, -0.006986337248235941, 0.025448990985751152, -0.022432558238506317, -0.06265167146921158, -0.03352748602628708, 0.03810414299368858, 0.021912483498454094, 0.09541638195514679, -0.005521460436284542, 0.03935232385993004, -0.026159759610891342, -0.004084753803908825, -0.0045896596275269985, -0.05661880597472191, 0.06539072841405869, -0.04722278565168381, -0.03973371163010597, -0.024755557999014854, -0.018289295956492424, -0.011311626061797142, 0.010080782696604729, -0.021184377372264862, 0.10505510121583939, 0.05443448945879936, -0.03827750310301781, 0.015004156157374382, 0.049268413335084915, 0.013305245898663998, -0.008282190188765526, -0.007289714179933071, -0.018081264570355415, -0.043582264333963394, 0.015246857888996601, -0.000414976297179237, -0.01761319860816002, 0.03751472383737564, 0.01413736492395401, 0.025344975292682648, -0.007419733330607414, -0.017803892493247986, -0.02144441567361355, -0.012360443361103535, 0.008858606219291687, 0.027303924784064293, 0.02763330563902855, 0.040253784507513046, -0.003956901840865612, -0.006193223409354687, -0.03375285118818283, 0.0311871487647295, -0.021340399980545044, -0.0035603451542556286, 0.010349487885832787, -0.005122736096382141, -0.0054781208746135235, 0.012533801607787609, 0.025032931938767433, -0.017214473336935043, 0.029869627207517624, -0.04177933931350708, 0.034151576459407806, 0.06514803320169449, -0.08328130096197128, 0.0021247221156954765, -0.03709866479039192, 0.014302055351436138, -0.026402462273836136, -0.044657085090875626, 0.05145272985100746, 0.00650093425065279, 0.0710768848657608, -0.04382496699690819, 0.10283611714839935, 0.008927949704229832, -0.009179319255053997, 0.021929819136857986, 0.010817554779350758, 0.0325566790997982, 0.009083972312510014, -0.005452116951346397, 0.0823104977607727, 0.030736418440937996, -0.00007611510955030099, -0.042368754744529724, -0.01797725073993206, 0.0051574078388512135, -0.030493715777993202, 0.006453260779380798, 0.01804659329354763, 0.005660146940499544, 0.02279661037027836, -0.020074885338544846, 0.03720267862081528, -0.003443328198045492, -0.1270369291305542, -0.013062544167041779, -0.054122444242239, -0.020976347848773003, 0.016174323856830597, -0.02600373700261116, 0.04583591967821121, 0.01002010703086853, -0.016746407374739647, 0.03845085948705673, 0.00546945258975029, -0.07204768806695938, 0.010678867809474468, -0.013894664123654366, 0.009049301035702229, 0.03397821635007858, 0.023334020748734474, 0.03682129085063934, 0.08217181265354156, -0.054815877228975296, 0.01747451163828373, 0.0036903638392686844, 0.021565767005085945, 0.004305785521864891, 0.03893626108765602, 0.0037402042653411627, -0.05661880597472191, 0.0231606625020504, -0.07509879022836685, 0.012161081656813622, -0.017153799533843994, 0.03524373099207878, 0.030233679339289665, -0.040739189833402634, -0.01041016262024641, 0.08189443498849869, 0.011094927787780762, 0.014267384074628353, 0.019086742773652077, -0.04455307126045227, -0.009144647978246212, -0.023836759850382805, -0.022761939093470573, 0.03246999904513359, 0.013677965849637985, -0.02622910402715206, 0.017301153391599655, 0.003480166895315051, -0.020907005295157433, -0.00895395316183567, -0.008758925832808018, -0.0004854031139984727, -0.01896539330482483, 0.009794740937650204, -0.07364258170127869, -0.036058515310287476, -0.049615129828453064, -0.011502319946885109, 0.018670683726668358, -0.011606334708631039, -0.018948055803775787, 0.03139517828822136, 0.01712779514491558, -0.00930933840572834, 0.027442611753940582, 0.05866442993283272, 0.007463072892278433, 0.03377018868923187, 0.001061277580447495, 0.01995353400707245, 0.07877399027347565, -0.012195752933621407, -0.02999097667634487, 0.004130260087549686, 0.02421814762055874, 0.026246439665555954, 0.057658955454826355, -0.013383257202804089, -0.01498682051897049, 0.015576238743960857, 0.0030966117046773434, 0.01988419145345688, 0.01292385719716549, -0.0016685731243342161, 0.07648565620183945, 0.02742527425289154, 0.002604707609862089, 0.04666804149746895, 0.0249982587993145, 0.019866855815052986, 0.06175020709633827, 0.03980305418372154, 0.03435960412025452, 0.021219050511717796, -0.008858606219291687, -0.02336869202554226, -0.04132860526442528, -0.046286653727293015, 0.014362731017172337, 0.02928020805120468, 0.013209898956120014, 0.001819178112782538, -0.030511051416397095, 0.004888702649623156, -0.003005598671734333, 0.029158856719732285, 0.008646242320537567, 0.010418830439448357, -0.011892375536262989, -0.08023019880056381, -0.023923438042402267, 0.026957208290696144, -0.03973371163010597, 0.04441438242793083, -0.01726648211479187, 0.027095895260572433, -0.024426177144050598, -0.02777199074625969, 0.01790790632367134, 0.016573049128055573, 0.03716800734400749, -0.036058515310287476, 0.011094927787780762, -0.03820815682411194, -0.019017400220036507, 0.05724289268255234, 0.05845640227198601, 0.012958529405295849, 0.027251916006207466, -0.06136881932616234, 0.02584771439433098, -0.05419179052114487, -0.033787522464990616 ]
729,370
tinytuya.BulbDevice
turn_off
Turn the device on
def turn_off(self, switch=0, nowait=False): """Turn the device on""" if switch == 0: switch = self.DPS_INDEX_ON[self.bulb_type] self.set_status(False, switch, nowait=nowait)
(self, switch=0, nowait=False)
[ 0.01897341012954712, 0.03050045296549797, 0.026629040017724037, -0.0012021869188174605, -0.052560530602931976, -0.048584483563899994, -0.031825803220272064, 0.06382599472999573, -0.028739135712385178, -0.01606113091111183, -0.08245062828063965, -0.006766252685338259, -0.024571262300014496, 0.01647966168820858, -0.02809389866888523, 0.0038474341854453087, 0.0008550459169782698, 0.004119915422052145, 0.022391414269804955, -0.00818751472979784, 0.015738513320684433, 0.014988644979894161, 0.041155558079481125, 0.012503616511821747, -0.027361469343304634, 0.053362712264060974, -0.01626167632639408, 0.003799477592110634, -0.032017629593610764, -0.048479851335287094, 0.013628418557345867, -0.030029606074094772, 0.011073634959757328, -0.004438173491507769, 0.05259540677070618, 0.05807118862867355, 0.0029907533898949623, 0.04907276853919029, -0.031163128092885017, 0.018084030598402023, 0.06082651764154434, -0.03962094336748123, 0.024675896391272545, -0.006055621895939112, -0.07910237461328506, -0.0039956639520823956, 0.006064340937882662, -0.007934652268886566, 0.05263028293848038, 0.022530924528837204, -0.02847755327820778, 0.000027452479116618633, -0.05468806251883507, 0.06152407079935074, -0.04056263715028763, 0.015773391351103783, 0.02087423764169216, 0.020525462925434113, -0.015293823555111885, 0.0032784936483949423, -0.03927216678857803, 0.04066726937890053, 0.002417453099042177, -0.031372394412755966, 0.057617779821157455, -0.006901403423398733, -0.02127533033490181, 0.03745853155851364, 0.024972354993224144, 0.052944183349609375, -0.027326593175530434, 0.0029493363108485937, -0.01860719546675682, 0.0231935977935791, -0.01052431296557188, -0.02333310805261135, -0.046352319419384, 0.039062902331352234, -0.03738877922296524, -0.005671968217939138, 0.028651941567659378, 0.034546252340078354, -0.0076469117775559425, 0.05950117111206055, -0.034546252340078354, -0.0058768740855157375, 0.03801657259464264, -0.014482920058071613, -0.0472242571413517, -0.012643126770853996, -0.045515257865190506, -0.01678484119474888, 0.012721600942313671, 0.022705310955643654, 0.0710805281996727, -0.001441970351152122, -0.024274803698062897, 0.013933597132563591, -0.020490584895014763, -0.013811525888741016, 0.017752693966031075, -0.032157137989997864, 0.008558088913559914, -0.05343246832489967, 0.0067139361053705215, -0.06194259971380234, 0.011326497420668602, -0.0039062900468707085, -0.009469266049563885, -0.07289416342973709, -0.05894313007593155, 0.016967948526144028, -0.062326256185770035, -0.009626215323805809, -0.024013221263885498, 0.04070214927196503, 0.031180566176772118, -0.02099630981683731, -0.05932678282260895, 0.028843767940998077, -0.024606140330433846, -0.0025199060328304768, -0.052944183349609375, -0.07456828653812408, 0.08824030309915543, 0.03227921202778816, 0.007598955184221268, 0.06407013535499573, 0.04035337269306183, 0.0062300097197294235, -0.029332054778933525, 0.024797966703772545, -0.04938666895031929, 0.0011553202057257295, -0.005628371145576239, 0.013785367831587791, 0.02612331509590149, -0.0022365255281329155, 0.043631866574287415, -0.006168974097818136, -0.05629243329167366, -0.09947089105844498, 0.00528395501896739, 0.00419621029868722, 0.08363646268844604, 0.046108175069093704, 0.024013221263885498, -0.05011909827589989, -0.024606140330433846, 0.03520892933011055, 0.010297608561813831, 0.004704114980995655, -0.0477474220097065, 0.0021384323481470346, -0.05130493640899658, 0.03564489632844925, -0.06096602976322174, 0.03567977622151375, 0.00520984036847949, -0.007450725417584181, -0.026402335613965988, 0.011806064285337925, -0.0028599624056369066, 0.03288956731557846, 0.01627911627292633, 0.019374500960111618, -0.10623714327812195, 0.021990321576595306, 0.10358644276857376, -0.0477822981774807, 0.025111865252256393, -0.004922099877148867, 0.019915103912353516, 0.01168399304151535, 0.05601341277360916, 0.04063239321112633, 0.0014376107137650251, -0.01885133795440197, 0.04007435217499733, -0.0010970091680064797, 0.015686197206377983, 0.03794682025909424, -0.04401551932096481, -0.018258418887853622, 0.02113582007586956, -0.04516648128628731, -0.01051559392362833, 0.0011683993507176638, -0.012250754050910473, 0.02312384359538555, 0.04066726937890053, 0.0467359721660614, 0.03379638493061066, 0.006600583903491497, 0.05120030418038368, -0.0023956545628607273, 0.01879902184009552, -0.05371148884296417, -0.010184256359934807, -0.0046125613152980804, 0.02807646058499813, 0.029994728043675423, 0.006587504874914885, -0.010733578354120255, 0.04262041673064232, -0.00644363509491086, 0.025076987221837044, -0.0013427872909232974, 0.04924715682864189, 0.0032239973079413176, -0.005689407233148813, 0.023734200745821, -0.013576102443039417, 0.015790829434990883, 0.025042111054062843, -0.06626742333173752, -0.00716734491288662, 0.0474335253238678, 0.00814391765743494, -0.018066592514514923, -0.0706968754529953, -0.007638192269951105, -0.00843165721744299, 0.018293296918272972, -0.0009689430589787662, 0.06312844157218933, -0.011082354933023453, -0.004704114980995655, 0.006025103852152824, 0.008645283058285713, -0.017517270520329475, 0.022565800696611404, -0.031686291098594666, -0.022147269919514656, 0.03763291984796524, -0.01689819246530533, -0.043841131031513214, -0.055246103554964066, -0.08419450372457504, -0.02587917260825634, 0.05576926842331886, -0.0040109227411448956, 0.0074158478528261185, -0.001954234903678298, 0.007960810326039791, 0.010672543197870255, -0.027675367891788483, -0.0033896658569574356, -0.04192286357283592, -0.017839888110756874, -0.0005929190665483475, -0.06626742333173752, 0.02846011333167553, -0.0075422790832817554, -0.021833371371030807, -0.05650169774889946, -0.00010749382636277005, -0.01164039596915245, -0.05430440977215767, -0.007045273203402758, 0.013253484852612019, 0.017159774899482727, -0.055420491844415665, 0.008488333784043789, 0.048410095274448395, -0.01275647897273302, 0.024379435926675797, 0.009233842603862286, 0.03934192284941673, -0.0051662432961165905, 0.07714923471212387, -0.041364822536706924, -0.04425966367125511, -0.021711301058530807, -0.03288956731557846, 0.030012166127562523, 0.05671096220612526, 0.004922099877148867, -0.03588904067873955, -0.029802901670336723, -0.010358644649386406, -0.012782637029886246, 0.005571695044636726, 0.07477755844593048, -0.06839495897293091, -0.03524380549788475, 0.034057967364788055, 0.07721898704767227, 0.022025197744369507, 0.018240980803966522, 0.03070971928536892, 0.07596339285373688, 0.06522109359502792, 0.053013939410448074, 0.034336987882852554, -0.03447650000452995, -0.006914482451975346, -0.02104862593114376, 0.006073060445487499, -0.0233854241669178, 0.0467359721660614, -0.07359171658754349, -0.06605815887451172, -0.000760767434258014, 0.009844199754297733, -0.02582685649394989, 0.06434915214776993, -0.027727684006094933, 0.04931691288948059, -0.01679356023669243, 0.02851243130862713, -0.038539737462997437, -0.027727684006094933, 0.0038016573525965214, 0.006260527763515711, -0.021938005462288857, -0.038749001920223236, 0.04282968118786812, 0.012006610631942749, 0.044050395488739014, -0.00710194930434227, 0.01043711882084608, 0.024484068155288696, 0.07380098104476929, -0.017447514459490776, 0.0037231827154755592, 0.0477125458419323, 0.05625755339860916, -0.005863795056939125, 0.036412205547094345, -0.050642263144254684, 0.003043069737032056, 0.01906060427427292, -0.03461600840091705, -0.02117069810628891, -0.012320509180426598, 0.025199059396982193, -0.03027374856173992, -0.06623254716396332, 0.03714463487267494, -0.00834882352501154, 0.029924973845481873, -0.024396874010562897, -0.000007744425602140836, -0.011178268119692802, 0.05890825018286705, 0.0025504238437861204, 0.05590877681970596, 0.07700972259044647, 0.09144904464483261, 0.007476883474737406, 0.005741723347455263, 0.005536817479878664, 0.040771905332803726, 0.03048301488161087, -0.012922147288918495, -0.012346667237579823, 0.045829154551029205, 0.0034616009797900915, -0.06863909959793091, -0.022897139191627502, -0.050363242626190186, 0.004128634929656982, 0.010131940245628357, -0.02847755327820778, -0.022478606551885605, -0.04321333393454552, -0.0013558663194999099, 0.05360685661435127, 0.01525894645601511, -0.024117853492498398, -0.015651319175958633, -0.024274803698062897, 0.04059751704335213, 0.0467010959982872, 0.01612216606736183, -0.016924351453781128, -0.013776648789644241, 0.04875887185335159, 0.04439917206764221, 0.01539845671504736, -0.07938139885663986, 0.03791194036602974, 0.03053533099591732, 0.029070472344756126, 0.0019902025815099478, 0.024797966703772545, -0.012032768689095974, 0.013471469283103943, -0.07331269234418869, 0.04286455735564232, 0.017691658809781075, -0.017090018838644028, 0.019391940906643867, 0.0462825633585453, -0.016069849953055382, -0.008684519678354263, -0.03571465238928795, 0.0477822981774807, -0.03581928461790085, -0.06326794624328613, 0.041190434247255325, -0.06822057068347931, 0.03766779974102974, -0.03076203539967537, 0.05468806251883507, -0.017656780779361725, -0.02153691276907921, -0.03463344648480415, -0.08028821647167206, -0.004019642248749733, 0.06197747960686684, -0.04963081330060959, -0.007184783928096294, 0.08579887449741364, 0.027745123952627182, -0.013209887780249119, 0.038993146270513535, 0.04398064315319061, 0.0015640419442206621, -0.0021874788217246532, 0.019653523340821266, 0.01675868220627308, -0.02851243130862713, 0.013654576614499092, 0.03557514399290085, 0.029436687007546425, 0.03484271466732025, -0.0012359746033325791, 0.0467359721660614, 0.010934124700725079, -0.015912901610136032, -0.019915103912353516, -0.0711502879858017, 0.021746177226305008, 0.03142470866441727, 0.03271517902612686, -0.04506184905767441, 0.008893785998225212, -0.07624241709709167, 0.02825084887444973, 0.026402335613965988, -0.046422071754932404, -0.04296919330954552, 0.019496573135256767, -0.0051924013532698154, -0.02839035913348198, 0.0032915726769715548, 0.06462817639112473, -0.04262041673064232, -0.04000459611415863, -0.002476308960467577, -0.007267618086189032, -0.01848512329161167, 0.02556527405977249, -0.0475032776594162, -0.07554486393928528, -0.010027307085692883, 0.02106606401503086, -0.00714554637670517, 0.02778000198304653, -0.03550538793206215, -0.10951563715934753, 0.017447514459490776, 0.07240588217973709, 0.048584483563899994, 0.060094088315963745, 0.0035051978193223476, 0.009652373380959034, 0.00656134681776166, -0.02146715670824051, -0.07226637005805969, 0.046422071754932404, 0.026524407789111137, 0.02800670638680458, -0.021850811317563057, -0.009120490401983261, 0.036900490522384644, 0.031198004260659218, -0.0029972929041832685, -0.05353710055351257, -0.0003114459977950901, 0.00958261825144291, -0.0036534275859594345, -0.019339624792337418, -0.029471565037965775, -0.03524380549788475, -0.020647533237934113, 0.00808724109083414, -0.03826071694493294, -0.038818757981061935, -0.029855217784643173, 0.005580414552241564, -0.029105350375175476, 0.05015397444367409, 0.020438268780708313, -0.08126478642225266, -0.05566463619470596, 0.015468211844563484, -0.02591405063867569, 0.0013384275371208787, -0.02818109281361103, -0.12221107631921768, -0.02614075504243374, 0.005018013529479504, -0.01671508513391018, -0.01872926577925682, -0.033988211303949356, -0.025251375511288643, 0.03770267590880394, 0.03477295860648155, 0.019461695104837418, 0.022984331473708153, 0.015668757259845734, 0.011762467212975025, -0.03308139368891716, 0.03836534917354584, 0.001009270315989852, 0.025338569656014442, -0.025530396029353142, 0.007882335223257542, -0.01648838073015213, 0.007616393733769655, 0.03329066187143326, 0.0051924013532698154, -0.01871182769536972, 0.010733578354120255, -0.0037754992954432964, 0.009225122630596161, 0.0032457958441227674, 0.027431225404143333, -0.014491639100015163, 0.01613960601389408, 0.07247563451528549, 0.03993484005331993, -0.057443391531705856, 0.011178268119692802, -0.06703472882509232, -0.009730847552418709, -0.03029118850827217, 0.0008310676203109324, -0.09019345045089722, -0.0015411535277962685, -0.017447514459490776, 0.019636083394289017, -0.004904661327600479, -0.04017898440361023, 0.02097887173295021, 0.029105350375175476, 0.0004645804001484066, -0.004337900318205357, -0.027867194265127182, 0.021589228883385658, -0.02615819312632084, -0.04017898440361023, -0.0029929333832114935, 0.014561394229531288, 0.0033438890241086483, -0.013558663427829742, -0.013462750241160393, -0.06330282986164093, -0.00812211912125349, 0.03466832637786865, 0.020019738003611565, 0.06842983514070511, -0.03489502891898155, 0.04530598968267441, 0.0041220951825380325, 0.07547510415315628, -0.031599096953868866, 0.02812877669930458, -0.02811133861541748, 0.004573324229568243, 0.022670434787869453, -0.03574953228235245, 0.06518621742725372, 0.0714990645647049, -0.03996971994638443, -0.014570113271474838, 0.008658361621201038, -0.03805145248770714, -0.013305800966918468, -0.10191231966018677, -0.00653954828158021, 0.03353480249643326, -0.026541845872998238, 0.060128968209028244, 0.0018550518434494734, -0.0035858522169291973, -0.05353710055351257, -0.031215444207191467, 0.020455706864595413, 0.010881808586418629, -0.02800670638680458, -0.03517404943704605, 0.009198964573442936, 0.03717951104044914, 0.01293958630412817, 0.031546782702207565, 0.07938139885663986, 0.027675367891788483, -0.0021395222283899784, 0.016828438267111778, -0.036447081714868546, 0.005624011624604464, 0.03958606719970703, -0.02378651686012745, -0.036551713943481445, -0.014831695705652237, 0.02546064183115959, -0.007533559575676918, -0.004047980532050133, 0.005458342842757702, 0.06651156395673752, 0.012494896538555622, -0.01689819246530533, 0.0010980991646647453, -0.019479135051369667, -0.043352846056222916, -0.02115325815975666, 0.01852000132203102, -0.0016632251208648086, 0.01610472798347473, -0.02113582007586956, -0.03513917326927185, -0.03913265839219093, -0.005275235511362553, -0.025268815457820892, 0.026559285819530487, 0.04185310751199722, -0.003309011459350586, -0.03989996388554573, -0.029680829495191574, 0.046352319419384, -0.022042637690901756, -0.001413632300682366, -0.01883389987051487, 0.024274803698062897, 0.05918727070093155, 0.01632271334528923, 0.02805902250111103, 0.02608843706548214, 0.08063699305057526, -0.005052891094237566, 0.021589228883385658, -0.0702783465385437, -0.009042015299201012, -0.0009504143381491303, -0.06420964747667313, -0.01536357868462801, -0.025425763800740242, 0.029384370893239975, 0.01518047135323286, 0.0468754805624485, -0.031477026641368866, 0.03306395560503006, 0.039062902331352234, 0.022496046498417854, 0.048479851335287094, -0.01872926577925682, -0.029401808977127075, 0.006151535082608461, 0.013855122961103916, 0.018363051116466522, 0.00816571619361639, 0.0004686676256824285, 0.026838306337594986, 0.00232807919383049, -0.04537574574351311, -0.04331796616315842, -0.0077995010651648045, -0.014901450835168362, -0.01672380417585373, -0.06689521670341492, 0.031128250062465668, -0.05461830645799637, 0.008527571335434914, -0.031756047159433365, -0.0011629497166723013, 0.017752693966031075, -0.021589228883385658, -0.003690485144034028, 0.01871182769536972, -0.006142815575003624, 0.007171704433858395, 0.02577454037964344, -0.03344760835170746, 0.00035749530070461333, -0.019531451165676117, -0.04568964242935181, -0.038749001920223236, -0.04425966367125511, -0.005022373050451279, 0.055211227387189865, 0.013148851692676544, -0.08607789129018784, 0.00809160154312849, -0.03243615850806236, -0.004468691535294056, 0.03492990881204605, 0.06302380561828613, -0.0697900578379631, -0.008104680106043816, -0.03944655507802963, -0.011579359881579876, 0.004429453983902931, 0.024797966703772545, -0.03069227933883667, 0.048479851335287094, -0.021920565515756607, 0.03826071694493294, 0.04289943724870682, 0.004030541516840458, 0.020106930285692215, 0.041364822536706924, -0.059989456087350845, -0.11969989538192749, -0.02385627292096615, -0.017674218863248825, 0.019949981942772865, -0.010245292447507381, -0.015956498682498932, 0.055629756301641464, -0.0019978319760411978, -0.031808361411094666, -0.046422071754932404, -0.03030862659215927, 0.08238086849451065, 0.01299190241843462, 0.006308484356850386, -0.02561759017407894, -0.04893326014280319, -0.02570478431880474, 0.007904133759438992, 0.011003879830241203, -0.013811525888741016, 0.04052776098251343, 0.010812053456902504, 0.05873386189341545, 0.006012024823576212, -0.02566990628838539, -0.07254538685083389, 0.0235423743724823, 0.018153786659240723, -0.004041440784931183, -0.0009951012907549739, 0.007394049316644669, -0.004329180810600519, 0.008893785998225212, -0.01684587635099888, 0.012494896538555622, -0.015040961094200611, -0.0070670717395842075, 0.020490584895014763, 0.08921688050031662, -0.002476308960467577, -0.022775067016482353, 0.0704876109957695, -0.034424182027578354, -0.05556000396609306, 0.003838714910671115, 0.0956343561410904, -0.046422071754932404, -0.0029253580141812563, -0.03948143124580383, 0.013951036147773266, 0.005698126275092363, 0.013672015629708767 ]
729,371
tinytuya.BulbDevice
turn_on
Turn the device on
def turn_on(self, switch=0, nowait=False): """Turn the device on""" if switch == 0: switch = self.DPS_INDEX_ON[self.bulb_type] self.set_status(True, switch, nowait=nowait)
(self, switch=0, nowait=False)
[ 0.002358748810365796, 0.010552182793617249, 0.012664364650845528, 0.012673093006014824, 0.00295880064368248, -0.021907344460487366, -0.01165191363543272, 0.052193593233823776, -0.041266102343797684, -0.003955977503210306, -0.06738035380840302, -0.018171748146414757, 0.008793485350906849, 0.04105662927031517, -0.034178946167230606, -0.04119627922773361, 0.002705687889829278, 0.002542037284001708, 0.005603392142802477, 0.026253899559378624, 0.02211681567132473, 0.011294065043330193, 0.05994407832622528, 0.006175077985972166, -0.024752680212259293, 0.07205857336521149, -0.007641386240720749, 0.014872554689645767, -0.017857540398836136, -0.058966539800167084, 0.025939691811800003, -0.049505360424518585, 0.018904902040958405, -0.002463485114276409, 0.05090184509754181, 0.0533456914126873, 0.014907467179000378, 0.017010921612381935, -0.032119132578372955, 0.02784240059554577, 0.0535900741815567, -0.022465936839580536, 0.018712885677814484, 0.006371458526700735, -0.08183396607637405, -0.0018110652454197407, 0.008837125264108181, 0.023844964802265167, 0.07945994287729263, -0.006000517401844263, -0.02573021873831749, -0.01787499524652958, -0.048562731593847275, 0.021977167576551437, -0.04273241013288498, 0.016871273517608643, 0.037355948239564896, 0.015623165294528008, -0.012001034803688526, -0.006554747000336647, -0.024578118696808815, 0.04398924857378006, 0.014357601292431355, -0.01193121075630188, 0.04440819099545479, -0.018154293298721313, -0.015623165294528008, 0.03451061248779297, 0.022134272381663322, 0.03896190598607063, 0.0022256465163081884, 0.029500724747776985, -0.008007963187992573, -0.010587094351649284, -0.0412311926484108, 0.019079463556408882, -0.07561960816383362, 0.026445915922522545, -0.0286104679107666, -0.000531318539287895, 0.020947260782122612, 0.01436632964760065, -0.0036134023685008287, 0.027877312153577805, -0.045699939131736755, 0.003801055019721389, -0.005956877488642931, -0.0077504864893853664, -0.05690672621130943, -0.010037229396402836, -0.03163036331534386, 0.008946225978434086, 0.011468625627458096, 0.04384959861636162, 0.06769456714391708, -0.004141448065638542, 0.0010659100953489542, 0.0006966055370867252, -0.02822643332183361, 0.027021966874599457, -0.027336174622178078, -0.008863309398293495, -0.002450393047183752, -0.0586872436106205, -0.005568480119109154, -0.07897116988897324, -0.011407529003918171, 0.017787715420126915, -0.00199108081869781, -0.06193406879901886, -0.059664782136678696, -0.04067259654402733, -0.052612535655498505, -0.026777582243084908, -0.016548335552215576, 0.0334632508456707, 0.054427966475486755, -0.027196526527404785, -0.0669265016913414, 0.03145580366253853, -0.015370052307844162, -0.011285336688160896, -0.011564633809030056, -0.06563474982976913, 0.07247751951217651, 0.02541600912809372, 0.02236120030283928, 0.05226341634988785, 0.02696959860622883, -0.015780270099639893, 0.003478117985650897, 0.03986962139606476, -0.0287326592952013, 0.005494291894137859, -0.010360166430473328, 0.010517270304262638, -0.016111934557557106, -0.0070129684172570705, 0.022151729092001915, 0.0020161739084869623, -0.05564988777041435, -0.09642722457647324, -0.007052244618535042, -0.016775265336036682, 0.06469212472438812, 0.027248894795775414, 0.02037121169269085, -0.03676244243979454, -0.010761654935777187, 0.028191521763801575, 0.04011400416493416, -0.007095884531736374, -0.019463496282696724, 0.020249018445611, -0.07722556591033936, 0.018677974119782448, -0.05662743002176285, 0.0017052378971129656, 0.017909908667206764, 0.00026825041277334094, -0.039590321481227875, 0.004652037285268307, -0.016207942739129066, 0.06825315952301025, 0.007440641522407532, 0.04217381775379181, -0.15026168525218964, 0.01857323758304119, 0.0800185352563858, -0.04734081029891968, 0.07534031569957733, -0.002136184135451913, 0.027563104405999184, 0.012865109369158745, 0.06682176142930984, 0.02274523489177227, -0.013065854087471962, -0.019044551998376846, 0.0577097050845623, -0.03114159405231476, 0.014453609474003315, 0.046572744846343994, -0.036343496292829514, -0.018712885677814484, 0.005489927716553211, -0.018835078924894333, 0.016277767717838287, -0.002069632988423109, 0.010569638572633266, 0.02497960813343525, 0.05861741676926613, 0.06539036333560944, 0.016216671094298363, -0.006550382822751999, 0.029256340116262436, -0.005049162544310093, 0.018730342388153076, -0.07094138860702515, -0.020982172340154648, 0.013545894995331764, 0.023967158049345016, 0.020388666540384293, -0.0025594935286790133, 0.006144529674202204, 0.06308616697788239, -0.008863309398293495, 0.0224310252815485, 0.00968810822814703, 0.07582908123731613, -0.01667925715446472, -0.01644359901547432, -0.0027602380141615868, -0.02990221418440342, 0.04035839065909386, -0.005887052975594997, -0.09391355514526367, -0.0010140874655917287, 0.0317700132727623, 0.015919918194413185, -0.04604906216263771, -0.056732162833213806, 0.010578366927802563, -0.02417662926018238, 0.010752927511930466, 0.005197538994252682, 0.03213658928871155, -0.01199230644851923, -0.009321531280875206, -0.018590694293379784, 0.007968687452375889, -0.013318967074155807, 0.016059566289186478, -0.04405907168984413, -0.0042025442235171795, 0.015073299407958984, -0.015003475360572338, -0.009112058207392693, -0.028208978474140167, -0.09782370924949646, -0.0274059996008873, 0.06060740724205971, -0.0017630611546337605, 0.02298961952328682, -0.019830074161291122, -0.024333734065294266, -0.01818920485675335, -0.04447801783680916, -0.006580931134521961, -0.050238512456417084, -0.0016223216662183404, -0.028174065053462982, -0.0650063306093216, 0.016897456720471382, -0.01622539944946766, -0.060712143778800964, -0.03644823282957077, 0.0045822132378816605, 0.015937374904751778, -0.06287669390439987, -0.02019665017724037, -0.008365812711417675, 0.03770506754517555, -0.037600334733724594, 0.004665129352360964, 0.012681820429861546, 0.0005602301098406315, 0.017927363514900208, -0.006388914305716753, 0.03465025871992111, -0.00763265835121274, 0.09014304727315903, -0.002345656743273139, -0.036099113523960114, -0.017368771135807037, -0.023530757054686546, -0.0012197415344417095, 0.04185960814356804, 0.012454892508685589, -0.06923069804906845, -0.020528314635157585, -0.02604442834854126, -0.01748223416507244, -0.020894892513751984, 0.06961473077535629, -0.09887106716632843, -0.027248894795775414, 0.04011400416493416, 0.11946921050548553, 0.0242464542388916, -0.015675533562898636, 0.0044098347425460815, 0.08728025108575821, 0.07240770012140274, 0.039031729102134705, 0.03300939127802849, -0.02604442834854126, -0.01255090069025755, 0.007837766781449318, 0.0035894003231078386, -0.017735347151756287, 0.059036362916231155, -0.08127537369728088, -0.08602342009544373, -0.024333734065294266, -0.0020772700663655996, -0.009923764504492283, 0.05669725313782692, -0.023443475365638733, 0.016958553344011307, -0.03857787325978279, 0.017246577888727188, -0.01682763360440731, -0.029326165094971657, -0.016626888886094093, 0.0121232271194458, -0.033306144177913666, -0.049505360424518585, 0.06476195156574249, 0.02628881298005581, 0.033934563398361206, 0.0007036970346234739, 0.03288719803094864, 0.026899773627519608, 0.07345505803823471, -0.02099962905049324, 0.0019288936164230108, 0.10012790560722351, 0.052682362496852875, -0.02260558493435383, 0.027999505400657654, -0.06591404974460602, 0.01569299027323723, 0.029430901631712914, -0.0358896404504776, -0.027126703411340714, -0.00437055854126811, 0.0220644474029541, -0.02990221418440342, -0.07876169681549072, 0.04629344493150711, 0.006044157315045595, 0.04416380822658539, -0.030233880504965782, -0.004525481257587671, 0.005603392142802477, 0.050692372024059296, 0.0006251448066905141, 0.04597923904657364, 0.05104149132966995, 0.05477708578109741, -0.02541600912809372, 0.0051713548600673676, 0.013170590624213219, 0.0007200620602816343, 0.03571508079767227, -0.012515988200902939, -0.0008237073780037463, 0.02548583410680294, -0.003401747904717922, -0.04419872164726257, -0.028802484273910522, -0.04786448925733566, 0.016888728365302086, 0.0010037228930741549, -0.029675286263227463, -0.013109494000673294, -0.02742345631122589, 0.0014553982764482498, 0.06298143416643143, 0.030443351715803146, -0.013973568566143513, 0.00864510890096426, -0.04151048883795738, 0.0460839718580246, 0.036797355860471725, 0.023024531081318855, -0.01714184135198593, -0.0057299486361444, 0.034737542271614075, 0.03089720942080021, 0.03096703439950943, -0.04629344493150711, 0.04629344493150711, 0.031682733446359634, 0.018398677930235863, -0.022134272381663322, 0.045699939131736755, -0.010019772686064243, -0.002187461359426379, -0.057360582053661346, 0.038158927112817764, 0.02597460336983204, -0.021907344460487366, 0.01988244242966175, 0.025904778391122818, -0.04716625064611435, 0.021645503118634224, -0.03962523490190506, 0.03547069430351257, -0.038403309881687164, -0.033428337424993515, 0.0019005275098606944, -0.0548119992017746, 0.02497960813343525, -0.03805419057607651, 0.03599437698721886, -0.006515470799058676, -0.014383785426616669, -0.044827137142419815, -0.07820310443639755, -0.009644468314945698, 0.07841257750988007, -0.057116199284791946, -0.0042243641801178455, 0.033236321061849594, 0.027126703411340714, -0.0006922415341250598, 0.02904686890542507, 0.01685381680727005, 0.021104365587234497, -0.0011750104604288936, 0.022012079134583473, 0.00844000093638897, 0.011320249177515507, 0.026585565879940987, 0.012542172335088253, 0.04524608328938484, 0.051250964403152466, 0.018643062561750412, 0.02997203916311264, 0.029256340116262436, -0.00045276631135493517, 0.001874343492090702, -0.05694163590669632, 0.02030138671398163, 0.02791222557425499, 0.029430901631712914, -0.03627367317676544, 0.011608273722231388, -0.07743503898382187, 0.030111687257885933, 0.018730342388153076, -0.04985447973012924, -0.05900144949555397, -0.0025791313964873552, -0.0020532680209726095, -0.03578490391373634, -0.015719173476099968, 0.047689929604530334, -0.0363784097135067, -0.0482485257089138, -0.004621489439159632, 0.00472186179831624, 0.0012753827031701803, 0.019725337624549866, -0.025346186012029648, -0.07149998098611832, -0.00358285428956151, 0.028505731374025345, -0.026620477437973022, 0.028505731374025345, -0.04234837740659714, -0.10724997520446777, 0.022046992555260658, 0.061270736157894135, 0.04779466614127159, 0.05397410690784454, 0.02092980407178402, -0.008989865891635418, -0.006231809966266155, 0.01427032146602869, -0.06392405927181244, 0.0458395890891552, 0.03484227880835533, 0.05362498760223389, -0.023949701339006424, -0.01988244242966175, 0.024525750428438187, 0.014715450815856457, 0.005145170725882053, -0.08420798927545547, 0.01532641239464283, 0.042278554290533066, 0.0031159049831330776, -0.0075759259052574635, -0.00999358855187893, -0.01270800456404686, -0.017840083688497543, 0.00353485019877553, -0.03742577135562897, -0.03602928668260574, -0.013467343524098396, 0.020964717492461205, -0.039101552218198776, 0.044512927532196045, 0.047759752720594406, -0.08064695447683334, -0.05153026059269905, 0.02895958721637726, 0.006925688125193119, -0.019463496282696724, -0.019952265545725822, -0.11842184513807297, 0.013414975255727768, 0.015754085034132004, -0.006607115268707275, -0.03344579413533211, -0.03969505801796913, -0.026777582243084908, 0.043465565890073776, 0.045455556362867355, 0.018712885677814484, 0.013537167571485043, 0.011416257359087467, 0.01775280386209488, -0.010630735196173191, 0.04709642380475998, 0.014488521963357925, -0.00934771541506052, -0.04521116986870766, 0.005188811104744673, -0.019411128014326096, 0.042522940784692764, 0.02611425146460533, -0.014907467179000378, -0.00715261697769165, 0.018590694293379784, -0.0029391625430434942, -0.011381344869732857, 0.011416257359087467, 0.03581981733441353, -0.008981138467788696, -0.008562193252146244, 0.07883152365684509, 0.04168504849076271, -0.037914540618658066, 0.015186764299869537, -0.055161118507385254, -0.014523434452712536, -0.023007074370980263, 0.0031399070285260677, -0.10683102905750275, -0.015989743173122406, -0.03875243291258812, 0.03770506754517555, -0.015614436939358711, -0.01550970133394003, 0.0038883353117853403, 0.02311181090772152, -0.012786556966602802, 0.003373381681740284, -0.03606420010328293, 0.005005522631108761, -0.0013026577653363347, -0.01591118983924389, -0.02829625830054283, 0.03725121170282364, -0.027318719774484634, -0.023164179176092148, -0.0038992452900856733, -0.03053063340485096, -0.0060616135597229, 0.012219235301017761, 0.030879752710461617, 0.06123582646250725, -0.06758982688188553, 0.023216547444462776, 0.02941344492137432, 0.089724101126194, -0.039660148322582245, 0.03955541178584099, 0.002555129351094365, -0.013720455579459667, 0.03353307396173477, -0.03780980408191681, 0.0579540878534317, 0.036099113523960114, -0.030181512236595154, -0.017805172130465508, 0.007091520354151726, -0.04500169679522514, -0.028261346742510796, -0.08141501992940903, 0.021331293508410454, 0.034231316298246384, -0.015169307589530945, 0.041894521564245224, 0.02449083887040615, -0.021348750218749046, -0.046817127615213394, -0.048143789172172546, -0.020336298272013664, -0.021261470392346382, -0.000008105812412395608, -0.023338738828897476, 0.003639586502686143, 0.043151356279850006, -0.009661924093961716, 0.06999876350164413, 0.06155003607273102, 0.007479917723685503, -0.006196897942572832, -0.009539731778204441, -0.03868260979652405, 0.0036483146250247955, 0.021837519481778145, -0.0007418821332976222, -0.020039545372128487, -0.017089473083615303, 0.008710569702088833, 0.0035283041652292013, 0.002494033193215728, -0.019096920266747475, 0.05331077799201012, -0.017237849533557892, -0.0030460809357464314, -0.003960341680794954, -0.001919074566103518, -0.016085751354694366, 0.009496091865003109, 0.03808910399675369, -0.003931975457817316, 0.012332700192928314, -0.01818920485675335, -0.011643186211585999, -0.05687181279063225, 0.010237974114716053, -0.04992430657148361, 0.03899681568145752, 0.02218664065003395, 0.013545894995331764, -0.01326659880578518, -0.02716161496937275, 0.028819939121603966, -0.005359007511287928, -0.013074581511318684, -0.02279760129749775, 0.005219358950853348, 0.03861278295516968, 0.0024722132366150618, -0.006663847249001265, 0.0402536541223526, 0.08176413923501968, -0.02237865701317787, 0.06483177095651627, -0.05327586829662323, -0.036727529019117355, -0.009670652449131012, -0.044512927532196045, -0.01969042420387268, -0.0034759361296892166, 0.02902941219508648, -0.00610525393858552, 0.06999876350164413, -0.0023194728419184685, 0.035173941403627396, 0.020249018445611, 0.018992183730006218, 0.03857787325978279, -0.0029064323753118515, -0.0366227924823761, 0.009740476496517658, 0.03531359136104584, -0.006912596058100462, 0.014968563802540302, 0.002902068430557847, 0.02567785046994686, -0.01417431328445673, -0.053869374096393585, -0.007877042517066002, -0.019341304898262024, -0.016286496073007584, 0.0014728542882949114, -0.04374486207962036, 0.06148020923137665, -0.05882688984274864, 0.026445915922522545, -0.017176752910017967, 0.0028715203516185284, 0.018643062561750412, -0.018730342388153076, -0.011224240995943546, 0.03241588547825813, 0.0010948217241093516, -0.000010611710422381293, -0.021732782945036888, -0.03121141903102398, -0.024333734065294266, -0.005079710856080055, -0.013318967074155807, -0.0497148334980011, -0.03836840018630028, -0.00291297840885818, 0.05596409738063812, 0.0021438212133944035, -0.07478172332048416, -0.009146970696747303, -0.03623875975608826, -0.026149163022637367, 0.018730342388153076, 0.08567429333925247, -0.06636790186166763, 0.0032075492199510336, -0.04692186415195465, -0.016958553344011307, -0.01040380634367466, 0.009382626973092556, -0.028505731374025345, 0.05652269348502159, -0.012568356469273567, 0.030862297862768173, 0.04042821377515793, -0.0001856069138739258, 0.021767694503068924, 0.04105662927031517, -0.054427966475486755, -0.10564401745796204, -0.008758573792874813, -0.015701716765761375, 0.03623875975608826, -0.03794945403933525, -0.03189220279455185, 0.060851793736219406, -0.016548335552215576, -0.01588500663638115, -0.038542959839105606, 0.006127073895186186, 0.0829511508345604, 0.005956877488642931, 0.013353878632187843, -0.029326165094971657, -0.03531359136104584, -0.03707665205001831, 0.008863309398293495, 0.012655636295676231, -0.0070216963067650795, 0.040498036891222, 0.004861509893089533, 0.05331077799201012, -0.01680144853889942, -0.003061354858800769, -0.0921679437160492, 0.039171379059553146, -0.017421139404177666, 0.011730466037988663, -0.002507125260308385, 0.02354821190237999, -0.028400994837284088, 0.011843929998576641, 0.011817745864391327, -0.005363371688872576, -0.0014488522429019213, 0.0018328853184357285, 0.008684385567903519, 0.08783884346485138, 0.016059566289186478, -0.03690209239721298, 0.08518552780151367, 0.00015928645734675229, -0.05240306258201599, -0.005428831558674574, 0.05833812057971954, -0.044093985110521317, 0.003665770636871457, -0.04870238155126572, 0.022832514718174934, 0.008492368273437023, 0.03046080842614174 ]
729,372
tinytuya.core
updatedps
Request device to update index. Args: index(array): list of dps to update (ex. [4, 5, 6, 18, 19, 20]) nowait(bool): True to send without waiting for response.
def updatedps(self, index=None, nowait=False): """ Request device to update index. Args: index(array): list of dps to update (ex. [4, 5, 6, 18, 19, 20]) nowait(bool): True to send without waiting for response. """ if index is None: index = [1] log.debug("updatedps() entry (dev_type is %s)", self.dev_type) # open device, send request, then close connection payload = self.generate_payload(UPDATEDPS, index) data = self._send_receive(payload, 0, getresponse=(not nowait)) log.debug("updatedps received data=%r", data) return data
(self, index=None, nowait=False)
[ 0.025323454290628433, -0.012328523211181164, -0.08354635536670685, -0.03773966059088707, 0.020448163151741028, 0.0004724034224636853, -0.037283699959516525, -0.020869050174951553, 0.03837099298834801, -0.0034175263717770576, -0.07113014161586761, -0.0855104997754097, -0.020500773563981056, 0.029462190344929695, 0.0012451282236725092, -0.01820342428982258, 0.019886977970600128, -0.0009809769690036774, -0.026621192693710327, 0.0011475785868242383, -0.004044474568217993, 0.022798122838139534, 0.005318100564181805, 0.039247844368219376, -0.010811571031808853, 0.001442419714294374, 0.08137176185846329, -0.05194464698433876, 0.03538970276713371, -0.05643412098288536, 0.08530005067586899, -0.015783315524458885, 0.007751361932605505, -0.007834662683308125, 0.026656266301870346, 0.029760319739580154, -0.014739863574504852, -0.05141853541135788, -0.009136785753071308, 0.03805532678961754, 0.04745516926050186, -0.08593138307332993, 0.0064667752012610435, -0.03184722363948822, 0.029146524146199226, 0.08908805251121521, -0.0379851795732975, 0.06664066761732101, 0.08614183217287064, 0.01589730568230152, -0.034775905311107635, 0.02181605063378811, -0.0212373286485672, -0.02127240225672722, 0.0016714970115572214, 0.05131331458687782, -0.02121979184448719, 0.05832812190055847, 0.04026499390602112, -0.04812157526612282, 0.0002208568184869364, -0.019413478672504425, 0.06422055512666702, -0.025358527898788452, 0.03326772153377533, -0.0334957055747509, 0.0018019286217167974, -0.024481676518917084, -0.008409000001847744, -0.0003005954495165497, 0.05029616504907608, -0.010627432726323605, -0.07611065357923508, -0.02988307736814022, -0.0019575695041567087, 0.039247844368219376, 0.01550272386521101, 0.04892827942967415, -0.02653350681066513, 0.033951666206121445, -0.001915919128805399, -0.000138309522299096, 0.03386398032307625, 0.02176343835890293, 0.043141063302755356, 0.04801635444164276, 0.0076154498383402824, -0.016335731372237206, -0.07056895643472672, -0.028339819982647896, 0.012346060015261173, 0.03267146274447441, 0.001979490974918008, 0.007575991563498974, 0.05117301642894745, -0.05229538679122925, -0.021570531651377678, -0.038090404123067856, -0.018536627292633057, -0.007006038445979357, -0.05534682795405388, 0.015257205814123154, -0.016826769337058067, -0.043737322092056274, 0.030865151435136795, 0.005440859589725733, 0.0020956736989319324, 0.02427123300731182, -0.016686473041772842, 0.0033254569862037897, 0.0012758179800584912, -0.017677314579486847, -0.014932770282030106, -0.09042086452245712, 0.005379480309784412, 0.04661339148879051, 0.017238888889551163, 0.007080570794641972, 0.025621583685278893, 0.0035797436721622944, 0.0001452284341212362, 0.04973498359322548, -0.02093919925391674, 0.017773767933249474, -0.006795594468712807, 0.02237723395228386, -0.015248436480760574, 0.030654706060886383, 0.051278240978717804, 0.002349960384890437, -0.060187045484781265, 0.0049980501644313335, 0.004355756565928459, 0.06614962965250015, -0.016818000003695488, -0.03014613315463066, 0.005261105485260487, -0.07351517677307129, -0.02795400656759739, -0.07077940553426743, 0.006405395921319723, -0.012196996249258518, 0.03261885419487953, 0.02909391187131405, 0.018782146275043488, -0.0070148068480193615, -0.031075594946742058, -0.011276301927864552, -0.004268071614205837, 0.015143214724957943, -0.01353857759386301, 0.019729144871234894, -0.03293452039361, -0.024499213322997093, 0.03682773560285568, -0.031233428046107292, -0.023236548528075218, -0.031163280829787254, -0.02958494797348976, -0.05173420161008835, -0.06453622132539749, -0.05492594093084335, 0.007777667138725519, 0.03049687296152115, -0.042930617928504944, 0.01762470230460167, -0.09834759682416916, 0.004831448197364807, -0.007637371309101582, 0.012495124712586403, 0.0391075499355793, 0.04843724146485329, -0.014836316928267479, -0.050997648388147354, -0.006015196908265352, 0.014582030475139618, -0.014959076419472694, -0.028585338965058327, 0.10634447634220123, -0.0933670848608017, -0.03381137177348137, 0.016335731372237206, -0.038406070321798325, -0.009294619783759117, -0.023639900609850883, 0.05254090577363968, -0.04475446790456772, 0.04275524988770485, 0.005541697610169649, 0.01869446039199829, -0.0029001843649894, 0.025007788091897964, 0.0007551878225058317, 0.00042993095121346414, 0.009592748247087002, 0.016590017825365067, 0.005129577592015266, 0.003702502930536866, 0.01568686217069626, 0.049840204417705536, 0.009250776842236519, -0.024779805913567543, 0.004796374123543501, 0.02734021097421646, 0.004197923466563225, -0.04138736054301262, 0.036968033760786057, -0.018641849979758263, -0.0016068292316049337, 0.004281224217265844, 0.008049490861594677, 0.052400607615709305, 0.01902766339480877, -0.01285463385283947, -0.027252525091171265, 0.0014325551455840468, 0.06607948243618011, -0.01700213924050331, 0.025095472112298012, -0.04408806189894676, -0.01187256071716547, -0.020044811069965363, 0.016283120959997177, -0.01115354336798191, -0.013108920305967331, 0.018361257389187813, -0.026989469304680824, 0.03514418378472328, -0.016309427097439766, 0.0019608577713370323, 0.005484702065587044, 0.03931799530982971, 0.036757588386535645, -0.013731485232710838, 0.05636397376656532, -0.03945828974246979, -0.0391075499355793, -0.02455182559788227, -0.021921271458268166, 0.02344699203968048, 0.003347378224134445, -0.00571706797927618, 0.017808841541409492, -0.00699288584291935, -0.03959858417510986, -0.008373926393687725, 0.02542867511510849, -0.018343720585107803, 0.018098201602697372, -0.0092157032340765, 0.05282149836421013, -0.030795002356171608, -0.017668545246124268, 0.0334957055747509, -0.029725244268774986, 0.03595088794827461, -0.045982059091329575, 0.05471549555659294, -0.0335833877325058, -0.03819562494754791, -0.03102298453450203, -0.006808747071772814, -0.1118861734867096, 0.008939494378864765, 0.03714340180158615, 0.016362037509679794, 0.02770848758518696, 0.04268510267138481, 0.00018783789710141718, 0.04058066010475159, 0.03161924332380295, 0.04794620722532272, -0.016107751056551933, -0.03435501828789711, 0.003299151547253132, 0.03665236756205559, 0.028708098456263542, 0.003619201947003603, -0.020535847172141075, -0.053803570568561554, 0.013512272387742996, 0.021377624943852425, -0.005971354432404041, 0.04945439100265503, 0.01198655180633068, -0.016134055331349373, 0.03609118238091469, 0.03637177497148514, -0.011223691515624523, -0.01035560853779316, 0.01981683075428009, 0.04208884388208389, 0.031724464148283005, -0.031426336616277695, 0.016660166904330254, 0.07519873231649399, -0.04756039008498192, 0.016125287860631943, -0.0027949621435254812, 0.021640678867697716, 0.0015377772506326437, -0.047349948436021805, -0.07302413880825043, 0.026638729497790337, 0.03777473419904709, -0.019080275669693947, 0.01424005813896656, 0.0206761434674263, -0.020465699955821037, -0.05005064979195595, 0.011513052508234978, -0.018922442570328712, -0.04478954151272774, 0.01568686217069626, 0.026358136907219887, -0.07470769435167313, -0.04405298829078674, 0.05131331458687782, 0.03519679605960846, 0.06976225972175598, -0.049594685435295105, 0.04615743085741997, 0.06657052040100098, 0.007234019692987204, 0.01315276324748993, 0.049875278025865555, 0.04300076887011528, 0.011223691515624523, -0.01757209189236164, -0.008176634088158607, -0.06422055512666702, -0.0042308056727051735, -0.006558844819664955, -0.027007007971405983, -0.009662896394729614, 0.002913336968049407, 0.0021055382676422596, -0.05117301642894745, 0.019886977970600128, 0.018571700900793076, -0.003285998711362481, 0.012731874361634254, -0.0007798492442816496, 0.019623922184109688, -0.05955571308732033, -0.013073846697807312, 0.04328135773539543, 0.0024376455694437027, -0.009461221285164356, -0.017212582752108574, -0.029164060950279236, 0.003934868145734072, -0.010162701830267906, 0.07435695827007294, 0.04945439100265503, 0.03137372434139252, 0.030514411628246307, -0.013328133150935173, -0.020465699955821037, -0.04798128083348274, -0.08656271547079086, 0.018115738406777382, -0.01568686217069626, -0.016300657764077187, -0.05478564277291298, 0.0025560203939676285, -0.006041502580046654, -0.005532929208129644, -0.0016451914561912417, 0.024727195501327515, -0.06039748713374138, 0.008110870607197285, -0.024218620732426643, 0.03970380872488022, 0.02490256540477276, -0.02235969714820385, -0.07547932118177414, 0.004191347397863865, -0.033127427101135254, -0.054049089550971985, -0.05110286921262741, -0.09540137648582458, 0.03549492359161377, 0.04019484296441078, 0.030602095648646355, 0.011925172060728073, -0.027007007971405983, -0.017826378345489502, -0.032776687294244766, -0.022745512425899506, -0.03332033380866051, -0.00692712189629674, -0.052365534007549286, 0.020851513370871544, -0.012126848101615906, 0.011863792315125465, 0.032548703253269196, -0.02342945523560047, -0.05036631599068642, -0.10304751247167587, 0.009250776842236519, 0.00017235599807463586, -0.04612235724925995, 0.03482851758599281, 0.01841386780142784, -0.06790333241224289, 0.06520263105630875, -0.041457511484622955, -0.028076766058802605, -0.008128407411277294, 0.002766464604064822, 0.10725639760494232, 0.014169909991323948, 0.02151792123913765, 0.011618274264037609, 0.06183552369475365, -0.08530005067586899, 0.002680971520021558, 0.04384254291653633, 0.04433358088135719, 0.013547345995903015, -0.03182968869805336, 0.01734410971403122, 0.03637177497148514, 0.004756915848702192, -0.06295789033174515, 0.02630552649497986, -0.012951087206602097, -0.02679656259715557, 0.07070925831794739, 0.010548516176640987, 0.015730705112218857, -0.02988307736814022, 0.036512069404125214, 0.011679654009640217, -0.005870516877621412, 0.03489866480231285, -0.032566241919994354, 0.008422153070569038, 0.025025324895977974, 0.025639120489358902, 0.03914262354373932, 0.017957905307412148, 0.03156663104891777, 0.0026590502820909023, -0.026165230199694633, -0.022447383031249046, -0.08698360621929169, -0.021447772160172462, -0.02099180966615677, -0.027147304266691208, -0.05510130897164345, 0.05327745899558067, 0.011258765123784542, -0.008409000001847744, -0.03907247632741928, -0.006063424050807953, -0.006344016175717115, -0.02009742148220539, 0.0022513146977871656, 0.018115738406777382, -0.027568191289901733, -0.027164841070771217, -0.01187256071716547, 0.013485966250300407, 0.029567411169409752, 0.014354049228131771, 0.00016399851301684976, -0.005164651665836573, 0.05092749744653702, 0.013477197848260403, -0.011285071261227131, -0.06169522926211357, -0.05755649134516716, -0.012460051104426384, -0.015248436480760574, -0.03326772153377533, 0.013810401782393456, -0.007045496720820665, -0.04047543555498123, -0.07786435633897781, -0.02090412564575672, 0.06302804499864578, 0.052435681223869324, -0.04461417347192764, -0.08684331178665161, 0.014967844821512699, -0.02181605063378811, -0.037564292550086975, -0.09021041542291641, 0.0559430867433548, -0.07463754713535309, 0.059345267713069916, -0.019150422886013985, 0.020062347874045372, 0.003932676278054714, -0.019045202061533928, -0.013345670886337757, 0.08263442665338516, -0.01929071918129921, 0.027515580877661705, -0.00446536298841238, 0.009364767000079155, -0.02378019504249096, 0.03267146274447441, -0.019746681675314903, -0.043456729501485825, 0.04433358088135719, 0.0038121091201901436, 0.01869446039199829, 0.021921271458268166, 0.014082225039601326, 0.036862812936306, 0.0017295883735641837, 0.04994542524218559, 0.05120809003710747, 0.061028823256492615, 0.008996490389108658, 0.01018900703638792, 0.0012922589667141438, 0.03468821942806244, 0.02062353305518627, 0.0018150813411921263, 0.01200408861041069, 0.00782150961458683, -0.008207323960959911, -0.007006038445979357, -0.038686659187078476, -0.027848783880472183, 0.018589239567518234, -0.010566052980720997, 0.03328526020050049, 0.04131721332669258, 0.008150328882038593, 0.040685880929231644, -0.0351792573928833, 0.05611845478415489, -0.02791893295943737, -0.011425366625189781, -0.0071112606674432755, -0.01788775809109211, -0.028988691046833992, -0.006155493203550577, -0.08950893580913544, -0.006918353494256735, -0.027445431798696518, -0.030251355841755867, -0.04103662073612213, 0.052365534007549286, -0.029567411169409752, -0.010153933428227901, -0.03903740271925926, 0.04503506049513817, 0.009811961092054844, -0.04272017627954483, 0.030514411628246307, 0.010145165026187897, -0.01622174121439457, -0.021114569157361984, -0.004656078293919563, -0.030865151435136795, -0.061625078320503235, 0.0613795630633831, 0.009969794191420078, 0.025218231603503227, 0.023254085332155228, 0.016905685886740685, -0.00794865284115076, -0.006186183076351881, -0.024639509618282318, 0.02821706049144268, 0.018869830295443535, -0.008075796999037266, -0.023815270513296127, -0.0009464509203098714, -0.06625485420227051, 0.04812157526612282, -0.038406070321798325, 0.009285850450396538, -0.020886588841676712, 0.028445042669773102, 0.028059227392077446, 0.017756231129169464, -0.03714340180158615, 0.024797342717647552, 0.07695243507623672, 0.0021154028363525867, -0.0038252619560807943, 0.046788763254880905, 0.009250776842236519, -0.045385800302028656, -0.02230708673596382, -0.000824787886813283, 0.01563425175845623, 0.021465308964252472, 0.06565859168767929, -0.030584558844566345, 0.025568971410393715, 0.03102298453450203, 0.03994932770729065, -0.03233826160430908, 0.030251355841755867, 0.022201864048838615, -0.0742868036031723, 0.053768496960401535, -0.028164450079202652, -0.015379964374005795, 0.01032053492963314, 0.024692120030522346, -0.0005395372863858938, 0.07288384437561035, 0.008014417253434658, -0.028655486181378365, 0.054049089550971985, -0.03221550211310387, 0.010609895922243595, -0.015230899676680565, 0.023797733709216118, 0.012275912798941135, 0.030040910467505455, -0.001609021332114935, 0.058749008923769, 0.011416598223149776, -0.05359312519431114, -0.016949526965618134, -0.029532337561249733, 0.014143604785203934, -0.00397871108725667, -0.04531565308570862, 0.02062353305518627, 0.014713557437062263, -0.014318974688649178, 0.01411729957908392, 0.03272407501935959, -0.023815270513296127, -0.01986944116652012, -0.0005176160484552383, -0.05615353211760521, -0.02348206751048565, 0.10311766713857651, 0.056258752942085266, 0.02344699203968048, 0.03430240601301193, -0.06737722456455231, 0.07414650917053223, 0.016046371310949326, -0.04517535865306854, -0.016712777316570282, -0.013310596346855164, 0.031075594946742058, 0.002273235935717821, -0.045701466500759125, -0.014134836383163929, 0.013731485232710838, -0.03805532678961754, 0.027778636664152145, 0.013450892642140388, -0.03293452039361, 0.021412698552012444, -0.029269281774759293, -0.02209664136171341, 0.0003485482302494347, 0.03240840882062912, -0.06586904078722, -0.009347230195999146, 0.019062738865613937, -0.013442124240100384, 0.01592361181974411, -0.024183547124266624, 0.0340568870306015, 0.046823836863040924, -0.01187256071716547, -0.015169519931077957, 0.06397504359483719, 0.04208884388208389, -0.03777473419904709, 0.007133182138204575, -0.018852293491363525, -0.02537606470286846, 0.017440564930438995, 0.05636397376656532, -0.03379383310675621, 0.03991425037384033, -0.00797057431191206, -0.049594685435295105, 0.021570531651377678, 0.04563131928443909, -0.0025757495313882828, -0.00490159634500742, -0.011521820910274982, -0.03861651197075844, -0.0536983497440815, -0.016712777316570282, 0.011381524614989758, -0.014187447726726532, -0.11707712709903717, 0.032268110662698746, 0.024236157536506653, -0.04128213971853256, -0.006808747071772814, 0.00910171214491129, 0.01932579278945923, 0.05492594093084335, -0.02909391187131405, 0.00641854852437973, 0.05580278858542442, -0.05131331458687782, -0.010197775438427925, -0.047034282237291336, -0.024727195501327515, 0.044544026255607605, 0.02488502860069275, 0.030023373663425446, 0.041773177683353424, 0.06180045008659363, 0.06376459449529648, -0.04871783405542374, -0.039809029549360275, 0.00297252438031137, 0.07120028883218765, -0.042860470712184906, 0.010802802629768848, 0.0029396426398307085, 0.01409099344164133, 0.00551977613940835, -0.04212391749024391, -0.011776107363402843, 0.041176918894052505, 0.0038011486176401377, 0.026358136907219887, -0.0056995307095348835, -0.07744347304105759, -0.011732264421880245, -0.10466092079877853, 0.015713168308138847, -0.007532149087637663, 0.06264222413301468, 0.00012289613368920982, 0.01958884857594967, 0.03467068448662758, -0.03581058979034424, 0.03275914862751961, 0.012828328646719456, -0.023692511022090912, -0.0009387784521095455, 0.021921271458268166, -0.005278642289340496, -0.06292282044887543, 0.0066070714965462685, -0.04198361933231354, 0.06376459449529648, 0.01424005813896656, -0.012486356310546398, 0.028883468359708786, 0.04889320582151413, -0.04545595124363899, 0.00656761322170496, 0.05418938398361206, -0.025270842015743256, 0.005427706986665726, 0.03837099298834801, 0.05057675763964653, -0.0032487325370311737, 0.0653078556060791, -0.06769289076328278, 0.017721155658364296, -0.014757400378584862, 0.02013249695301056 ]
729,373
tinytuya.Cloud
Cloud
null
class Cloud(object): def __init__(self, apiRegion=None, apiKey=None, apiSecret=None, apiDeviceID=None, new_sign_algorithm=True, initial_token=None, **extrakw): """ Tuya Cloud IoT Platform Access Args: initial_token: The auth token from a previous run. It will be refreshed if it has expired Playload Construction - Header Data: Parameter Type Required Description client_id String Yes client_id signature String Yes HMAC-SHA256 Signature (see below) sign_method String Yes Message-Digest Algorithm of the signature: HMAC-SHA256. t Long Yes 13-bit standard timestamp (now in milliseconds). lang String No Language. It is zh by default in China and en in other areas. access_token String * Required for service management calls Signature Details: * OAuth Token Request: signature = HMAC-SHA256(KEY + t, SECRET).toUpperCase() * Service Management: signature = HMAC-SHA256(KEY + access_token + t, SECRET).toUpperCase() URIs: * Get Token = https://openapi.tuyaus.com/v1.0/token?grant_type=1 * Get UserID = https://openapi.tuyaus.com/v1.0/devices/{DeviceID} * Get Devices = https://openapi.tuyaus.com/v1.0/users/{UserID}/devices REFERENCE: * https://images.tuyacn.com/smart/docs/python_iot_code_sample.py * https://iot.tuya.com/cloud/products/detail """ # Class Variables self.CONFIGFILE = 'tinytuya.json' self.apiRegion = apiRegion self.apiKey = apiKey self.apiSecret = apiSecret self.apiDeviceID = apiDeviceID self.urlhost = '' self.uid = None # Tuya Cloud User ID self.token = initial_token self.error = None self.new_sign_algorithm = new_sign_algorithm self.server_time_offset = 0 self.use_old_device_list = True self.mappings = None if (not apiKey) or (not apiSecret): try: # Load defaults from config file if available config = {} with open(self.CONFIGFILE) as f: config = json.load(f) self.apiRegion = config['apiRegion'] self.apiKey = config['apiKey'] self.apiSecret = config['apiSecret'] if 'apiDeviceID' in config: self.apiDeviceID = config['apiDeviceID'] except: self.error = error_json( ERR_CLOUDKEY, "Tuya Cloud Key and Secret required", ) #return self.error raise TypeError('Tuya Cloud Key and Secret required') # pylint: disable=W0707 self.setregion(apiRegion) if not self.token: # Attempt to connect to cloud and get token self._gettoken() def setregion(self, apiRegion=None): # Set hostname based on apiRegion if apiRegion is None: apiRegion = self.apiRegion self.apiRegion = apiRegion.lower() self.urlhost = "openapi.tuyacn.com" # China Data Center if self.apiRegion == "us": self.urlhost = "openapi.tuyaus.com" # Western America Data Center if self.apiRegion == "us-e": self.urlhost = "openapi-ueaz.tuyaus.com" # Eastern America Data Center if self.apiRegion == "eu": self.urlhost = "openapi.tuyaeu.com" # Central Europe Data Center if self.apiRegion == "eu-w": self.urlhost = "openapi-weaz.tuyaeu.com" # Western Europe Data Center if self.apiRegion == "in": self.urlhost = "openapi.tuyain.com" # India Datacenter def _tuyaplatform(self, uri, action='GET', post=None, ver='v1.0', recursive=False, query=None, content_type=None): """ Handle GET and POST requests to Tuya Cloud """ # Build URL and Header if ver: url = "https://%s/%s/%s" % (self.urlhost, ver, uri) elif uri[0] == '/': url = "https://%s%s" % (self.urlhost, uri) else: url = "https://%s/%s" % (self.urlhost, uri) headers = {} body = {} sign_url = url if post is not None: body = json.dumps(post) if action not in ('GET', 'POST', 'PUT', 'DELETE'): action = 'POST' if post else 'GET' if action == 'POST' and content_type is None: content_type = 'application/json' if content_type: headers['Content-type'] = content_type if query: # note: signature must be calculated before URL-encoding! if type(query) == str: # if it's a string then assume no url-encoding is needed if query[0] == '?': url += query else: url += '?' + query sign_url = url else: # dicts are unsorted, however Tuya requires the keys to be in alphabetical order for signing # as per https://developer.tuya.com/en/docs/iot/singnature?id=Ka43a5mtx1gsc if type(query) == dict: sorted_query = [] for k in sorted(query.keys()): sorted_query.append( (k, query[k]) ) query = sorted_query # calculate signature without url-encoding sign_url += '?' + '&'.join( [str(x[0]) + '=' + str(x[1]) for x in query] ) req = requests.Request(action, url, params=query).prepare() url = req.url else: req = requests.Request(action, url, params=query).prepare() sign_url = url = req.url now = int(time.time()*1000) headers = dict(list(headers.items()) + [('Signature-Headers', ":".join(headers.keys()))]) if headers else {} if self.token is None: payload = self.apiKey + str(now) headers['secret'] = self.apiSecret else: payload = self.apiKey + self.token + str(now) # If running the post 6-30-2021 signing algorithm update the payload to include it's data if self.new_sign_algorithm: payload += ('%s\n' % action + # HTTPMethod hashlib.sha256(bytes((body or "").encode('utf-8'))).hexdigest() + '\n' + # Content-SHA256 ''.join(['%s:%s\n'%(key, headers[key]) # Headers for key in headers.get("Signature-Headers", "").split(":") if key in headers]) + '\n' + '/' + sign_url.split('//', 1)[-1].split('/', 1)[-1]) # Sign Payload signature = hmac.new( self.apiSecret.encode('utf-8'), msg=payload.encode('utf-8'), digestmod=hashlib.sha256 ).hexdigest().upper() # Create Header Data headers['client_id'] = self.apiKey headers['sign'] = signature headers['t'] = str(now) headers['sign_method'] = 'HMAC-SHA256' headers['mode'] = 'cors' if self.token is not None: headers['access_token'] = self.token # Send Request to Cloud and Get Response if action == 'GET': response = requests.get(url, headers=headers) log.debug( "GET: URL=%s HEADERS=%s response code=%d text=%s token=%s", url, headers, response.status_code, response.text, self.token ) else: log.debug( "POST: URL=%s HEADERS=%s DATA=%s", url, headers, body, ) response = requests.post(url, headers=headers, data=body) log.debug( "POST RESPONSE: code=%d text=%s token=%s", response.status_code, response.text, self.token ) # Check to see if token is expired if "
(apiRegion=None, apiKey=None, apiSecret=None, apiDeviceID=None, new_sign_algorithm=True, initial_token=None, **extrakw)
[ -0.012745682150125504, -0.07615730166435242, -0.043971020728349686, 0.04878628998994827, -0.021964389830827713, -0.03108805976808071, -0.06471047550439835, 0.03729722648859024, -0.047476876527071, -0.032629791647195816, 0.012714003212749958, 0.022091107442975044, -0.0026465507689863443, -0.023421643301844597, -0.01551235094666481, -0.005623095203191042, 0.020348740741610527, 0.002217558678239584, 0.014646447263658047, -0.06386569142341614, 0.013094156049191952, 0.024012992158532143, -0.004701752215623856, 0.0277934018522501, 0.019155483692884445, 0.04443565011024475, -0.007698096334934235, -0.020306501537561417, 0.031235897913575172, -0.03180612623691559, -0.024372026324272156, 0.02080281265079975, 0.052165426313877106, 0.04101427644491196, 0.001940363785251975, -0.05258781835436821, 0.015184996649622917, -0.023168208077549934, -0.09427792578935623, 0.026483986526727676, -0.05034914240241051, -0.03522750362753868, 0.03486847132444382, -0.04025397077202797, 0.028638185933232307, 0.06754050403833389, -0.022471262142062187, 0.08549216389656067, -0.019113244488835335, -0.01245000772178173, 0.024308666586875916, 0.018405737355351448, -0.030581189319491386, -0.01976795122027397, -0.03425600007176399, 0.03438271954655647, -0.001403133850544691, 0.01438245177268982, -0.03421376273036003, 0.02986312285065651, 0.024097470566630363, 0.04447789117693901, 0.028194675222039223, 0.0412888303399086, -0.008986392989754677, 0.04773031175136566, -0.03396032750606537, 0.030644549056887627, 0.0012559565948322415, 0.04620970040559769, 0.06623108685016632, -0.04257712513208389, -0.022534620016813278, -0.005596695933490992, 0.03896567225456238, -0.022365663200616837, -0.06965246051549911, 0.009255667217075825, -0.07717104256153107, -0.036600276827812195, 0.0012506766943261027, -0.02800459787249565, 0.056473828852176666, 0.0072915442287921906, 0.04198577627539635, 0.048068225383758545, 0.019873550161719322, -0.023991873487830162, -0.035607654601335526, 0.01352710835635662, -0.057234134525060654, 0.012618964537978172, -0.001434813253581524, -0.0008177247364073992, 0.054446347057819366, -0.027286531403660774, -0.028701545670628548, -0.017286397516727448, -0.032545313239097595, -0.011731941252946854, 0.02787788026034832, -0.016990723088383675, -0.043802063912153244, -0.012914638966321945, 0.040887556970119476, -0.03326338157057762, -0.02897609956562519, 0.007914572954177856, 0.024583222344517708, 0.03284098953008652, -0.04646313562989235, -0.043928779661655426, -0.011710821650922298, -0.01655777171254158, -0.010538683272898197, -0.025533603504300117, 0.028511468321084976, 0.017064642161130905, -0.05469978228211403, -0.018764769658446312, 0.00246307416819036, -0.021246323361992836, 0.012133213691413403, -0.013643265701830387, 0.011700262315571308, 0.0056336550042033195, 0.010718200355768204, 0.028321392834186554, 0.0047571915201842785, -0.02589263767004013, -0.04430893436074257, 0.011721381917595863, 0.0237384382635355, 0.02075001411139965, -0.01130954921245575, -0.05254558101296425, 0.0456605888903141, 0.007339063100516796, -0.04120435193181038, 0.06492166966199875, 0.010718200355768204, 0.018764769658446312, -0.011013874784111977, -0.041837941855192184, 0.0002867646689992398, 0.009857576340436935, -0.05094049125909805, -0.07805806398391724, -0.031130298972129822, -0.004984227009117603, 0.012428888119757175, -0.01195369753986597, 0.025280168280005455, 0.0257659200578928, -0.021003449335694313, -0.035544298589229584, 0.021140726283192635, -0.05284125357866287, -0.022027749568223953, 0.029419612139463425, -0.020390979945659637, -0.023168208077549934, -0.005834291223436594, -0.045914024114608765, -0.004759831354022026, 0.00541189918294549, -0.011531305499374866, 0.04882853105664253, -0.013748863711953163, 0.01957787573337555, -0.06014863774180412, 0.01441413164138794, -0.06901887059211731, 0.0044007981196045876, 0.00001811872425605543, 0.005908209830522537, 0.0214997585862875, -0.026188312098383904, -0.021172406151890755, -0.03495294973254204, -0.03184836730360985, -0.030686788260936737, -0.009440463967621326, 0.011995936743915081, 0.01667392998933792, 0.006478439085185528, 0.03704379126429558, 0.030369993299245834, 0.017761588096618652, 0.04663209244608879, 0.0033316179178655148, 0.007550259120762348, 0.03184836730360985, 0.027138695120811462, 0.0394725427031517, 0.031594932079315186, 0.02895498089492321, 0.0030385833233594894, 0.030116558074951172, 0.0030676228925585747, -0.01393894013017416, 0.01870141178369522, -0.0020789613481611013, -0.04764583334326744, 0.04209137707948685, -0.03482623025774956, 0.012608405202627182, 0.009371825493872166, -0.03856440261006355, 0.03079238533973694, -0.011256750673055649, -0.009773097932338715, -0.047012243419885635, 0.018616933375597, 0.0068216328509151936, -0.035628776997327805, 0.033580172806978226, 0.02058105729520321, -0.016167059540748596, -0.010496444068849087, 0.09951558709144592, 0.0006002588197588921, 0.002568672178313136, -0.08574560284614563, 0.0009002232109196484, 0.05250333994626999, 0.059261616319417953, 0.04954659566283226, -0.02880714274942875, -0.08350692689418793, 0.022323423996567726, 0.012798481620848179, 0.036663636565208435, 0.06648451834917068, -0.012186013162136078, -0.07379190623760223, 0.034615036100149155, -0.0012995158322155476, 0.013189193792641163, -0.032693151384592056, 0.05795219913125038, 0.0034609755966812372, 0.028194675222039223, 0.026251669973134995, -0.0740453377366066, 0.013991739600896835, 0.002851146971806884, 0.032481953501701355, 0.0006207184051163495, -0.06318986415863037, -0.02274581603705883, -0.0555868037045002, -0.014741485007107258, -0.0309402234852314, 0.02177431434392929, -0.06792065501213074, 0.09394001215696335, -0.013706624507904053, 0.049166444689035416, -0.02889162115752697, -0.019884109497070312, 0.020380420610308647, -0.009630540385842323, 0.0872662141919136, -0.04198577627539635, 0.007766735274344683, 0.0329677052795887, 0.004741351585835218, -0.022069988772273064, -0.0004544015391729772, 0.12156445533037186, 0.019313879311084747, -0.051278404891490936, -0.010316927917301655, -0.026103833690285683, -0.060402072966098785, 0.010079332627356052, 0.005876530427485704, -0.04215473309159279, -0.039557021111249924, -0.004501115996390581, -0.044984761625528336, 0.090476393699646, 0.016240976750850677, 0.0002742248761933297, -0.04040180891752243, -0.023168208077549934, 0.004165842197835445, 0.01393894013017416, -0.02259797975420952, -0.05997968092560768, 0.025554724037647247, -0.03186948597431183, 0.0015747306169942021, 0.024034112691879272, 0.0093084666877985, -0.06002192199230194, 0.02984200417995453, 0.05292573198676109, -0.030243275687098503, -0.018015025183558464, 0.08650590479373932, 0.031594932079315186, -0.04219697415828705, 0.03820536658167839, 0.001429533353075385, 0.051109448075294495, -0.011594664305448532, 0.0003448435745667666, -0.008025450631976128, 0.01083435770124197, -0.007729775737971067, 0.06716034561395645, -0.02705421671271324, -0.04980003088712692, 0.00976781826466322, 0.026019355282187462, -0.0006725274724885821, 0.0389445535838604, 0.06673795729875565, 0.010591482743620872, -0.015607389621436596, -0.00571813341230154, 0.0003946726501453668, 0.08608351647853851, -0.08718173205852509, 0.004052324686199427, -0.009493263438344002, -0.04268272593617439, 0.011541864834725857, -0.014044538140296936, 0.02475217916071415, -0.000055975207942537963, -0.005501657258719206, -0.012946318835020065, -0.02390739507973194, -0.04426669329404831, -0.01760319247841835, -0.03529086336493492, -0.015216676518321037, -0.05043362081050873, -0.004218641202896833, -0.047138962894678116, 0.05972624570131302, -0.04637865722179413, -0.048955246806144714, 0.017772149294614792, -0.05170079693198204, 0.029377372935414314, -0.009076151065528393, -0.008516481146216393, 0.033537935465574265, 0.07370742410421371, 0.08853338658809662, 0.12477463483810425, -0.06547077745199203, -0.04230257123708725, -0.04158450663089752, -0.019166043028235435, 0.02363283932209015, 0.02359060011804104, -0.020074186846613884, -0.03007431887090206, 0.03698043152689934, -0.03647356107831001, -0.04019061103463173, 0.009477423503994942, -0.019239962100982666, -0.0009569821413606405, 0.003550733905285597, -0.005124144721776247, -0.07450997084379196, 0.0026320309843868017, 0.04777254909276962, 0.016167059540748596, 0.03839544579386711, -0.02893386036157608, -0.012154333293437958, -0.07962091267108917, 0.012101534754037857, 0.0226190984249115, 0.0667801946401596, -0.0055280569940805435, 0.017064642161130905, 0.06441479921340942, -0.05651606619358063, -0.005303661338984966, -0.03170052915811539, 0.0623028390109539, 0.02272469736635685, 0.028110196813941002, -0.02684302069246769, 0.00008121973951347172, 0.0018030863720923662, 0.0027217892929911613, 0.0030438632238656282, -0.07117307186126709, 0.03163716942071915, 0.007196506019681692, -0.031616050750017166, 0.002837947104126215, -0.03611452877521515, 0.010052932426333427, 0.012682323344051838, 0.009134230203926563, -0.004714952316135168, 0.07159546762704849, -0.02770892344415188, 0.0040285647846758366, 0.035861093550920486, -0.07214457541704178, -0.03896567225456238, -0.05022242292761803, 0.015850264579057693, 0.009577741846442223, -0.01494212169200182, -0.014741485007107258, 0.07970539480447769, -0.013379271142184734, 0.03934582695364952, 0.016906244680285454, -0.006700195372104645, 0.00012605765368789434, 0.013273672200739384, -0.0114679466933012, 0.03391808643937111, -0.017962224781513214, -0.0036800913512706757, -0.0030069039203226566, -0.013020236976444721, 0.034720633178949356, 0.065724216401577, -0.0409720353782177, -0.0002824747352860868, -0.002696709707379341, 0.04156338423490524, -0.03231299668550491, -0.0077825747430324554, 0.06179596856236458, -0.0019522436195984483, -0.00416848249733448, -0.017360316589474678, -0.027223173528909683, 0.0016209298046305776, 0.0495043583214283, -0.002977864583954215, -0.07125755399465561, 0.01738143526017666, 0.0819440707564354, -0.024034112691879272, -0.014329653233289719, 0.019936908036470413, -0.015903063118457794, -0.007655857130885124, -0.01033804751932621, -0.03110918030142784, 0.03227075934410095, 0.006599877029657364, -0.015871385112404823, -0.03098246268928051, 0.012597844935953617, 0.018046703189611435, 0.037761855870485306, 0.03309442475438118, 0.035734374076128006, 0.03653692081570625, 0.016885126009583473, -0.009202868677675724, -0.011489066295325756, -0.03995829448103905, -0.02266133762896061, 0.0034108164254575968, -0.07721327990293503, 0.05385499820113182, 0.03820536658167839, -0.022386783733963966, 0.023421643301844597, 0.00043493189150467515, -0.09258835762739182, -0.058459069579839706, -0.02072889357805252, -0.022027749568223953, 0.015881944447755814, 0.03176388889551163, -0.016779527068138123, -0.05795219913125038, 0.016758408397436142, -0.06449928134679794, 0.03856440261006355, -0.05959952995181084, -0.016790086403489113, -0.011605223640799522, 0.00692723086103797, 0.03731834515929222, -0.07045500725507736, 0.02977864444255829, -0.04532267525792122, 0.011098353192210197, -0.06213388219475746, 0.0006438179989345372, 0.0031732209026813507, 0.006430920213460922, -0.004556555300951004, 0.02903945930302143, 0.04152114689350128, 0.01953563652932644, -0.040866438299417496, -0.005113584920763969, 0.003189060604199767, 0.017793267965316772, -0.050053466111421585, -0.014361332170665264, 0.03180612623691559, -0.04730791971087456, -0.009097270667552948, 0.019250521436333656, -0.035565417259931564, -0.0029013059101998806, -0.021436400711536407, 0.0008025450515560806, 0.03140485659241676, 0.038754478096961975, 0.021964389830827713, -0.015839705243706703, 0.04221809282898903, 0.018437417224049568, -0.013104715384542942, -0.034467197954654694, -0.004350638948380947, 0.040781959891319275, -0.03115141950547695, -0.0237384382635355, -0.008067689836025238, -0.019915789365768433, 0.0015958502190187573, 0.004994786810129881, -0.0454493947327137, -0.06986365467309952, 0.0373394638299942, -0.05698069930076599, 0.00026696501299738884, -0.01083435770124197, -0.0846051424741745, -0.07924076169729233, -0.04882853105664253, -0.0229358933866024, -0.009577741846442223, -0.011636903509497643, 0.017761588096618652, 0.008273606188595295, 0.02690637856721878, 0.010116291232407093, 0.08912473917007446, 0.001606410020031035, -0.012418328784406185, 0.021985510364174843, 0.04967331513762474, -0.007597778458148241, 0.022238945588469505, 0.011457386426627636, -0.001891524763777852, -0.010607322677969933, -0.08963160961866379, -0.024562101811170578, -0.07514356076717377, 0.003550733905285597, -0.007550259120762348, 0.05575576052069664, -0.007333783432841301, 0.016779527068138123, 0.013073036447167397, -0.003952006343752146, 0.04133107140660286, 0.03522750362753868, -0.030264396220445633, 0.017803827300667763, 0.0021014008671045303, 0.04114099219441414, 0.029102817177772522, -0.011763621121644974, 0.08342244476079941, 0.06682243198156357, 0.006726594641804695, -0.0602753572165966, -0.016283215954899788, 0.0017872466705739498, 0.06686467677354813, 0.002089521149173379, 0.0290183387696743, -0.029567448422312737, -0.06078222766518593, -0.016240976750850677, -0.018384616822004318, 0.01087659690529108, -0.05077153444290161, 0.07003261148929596, 0.012006496079266071, -0.017307518050074577, 0.046040743589401245, 0.0249633751809597, 0.0044905561953783035, 0.043886542320251465, -0.023463882505893707, -0.05507993325591087, 0.042006898671388626, 0.012756242416799068, -0.06563973426818848, -0.04346415027976036, -0.00022951072605792433, -0.0290183387696743, 0.08794204145669937, -0.028300272300839424, -0.02473105862736702, -0.015258915722370148, -0.004992146976292133, 0.013822782784700394, -0.01874365098774433, 0.05296797305345535, 0.03212292119860649, -0.04052852466702461, -0.013653825968503952, 0.005293101537972689, -0.047983746975660324, 0.016737287864089012, -0.08498529344797134, -0.013601026497781277, 0.0033580174203962088, -0.028595946729183197, -0.052165426313877106, -0.00676355417817831, -0.006668515503406525, -0.007460501044988632, 0.006948350463062525, 0.00415264256298542, 0.04105651378631592, 0.04120435193181038, 0.01138346828520298, 0.005644214805215597, -0.007919852621853352, 0.07573490589857101, 0.004775670822709799, 0.04570282995700836, -0.014139576815068722, 0.02705421671271324, -0.023168208077549934, 0.011900898069143295, -0.05698069930076599, -0.016705607995390892, -0.007244024891406298, -0.029229534789919853, -0.030391113832592964, 0.05672726407647133, 0.03170052915811539, -0.003981045912951231, -0.06897663325071335, -0.029673047363758087, -0.026990856975317, 0.03911351040005684, 0.04781479015946388, -0.015353953465819359, 0.02998984046280384, 0.009535502642393112, 0.031489335000514984, -0.02494225464761257, -0.05685397982597351, -0.041774582117795944, 0.02568144164979458, -0.05993744358420372, 0.009487982839345932, 0.037761855870485306, 0.042978398501873016, -0.030686788260936737, 0.05440410599112511, 0.04042292758822441, 0.05288349464535713, -0.0006778073729947209, 0.043844301253557205, -0.03613564744591713, 0.0436331070959568, 0.014741485007107258, 0.017180800437927246, 0.042915038764476776, 0.006752994377166033, 0.013284232467412949, -0.028511468321084976, 0.034678392112255096, 0.04878628998994827, 0.009947334416210651, -0.0371282696723938, -0.04137330874800682, -0.01393894013017416, -0.08046570420265198, 0.002266397699713707, 0.03474175184965134, -0.02477329783141613, 0.016874564811587334, -0.05757204815745354, 0.024203069508075714, -0.027223173528909683, 0.037656258791685104, 0.028490349650382996, -0.03438271954655647, 0.006409800611436367, 0.019936908036470413, -0.0011034994386136532, 0.0679628923535347, 0.00881743524223566, -0.054150670766830444, 0.01348486915230751, -0.03533310070633888, 0.052038710564374924, 0.011615783907473087, 0.053263645619153976, 0.006309482268989086, 0.012228252366185188, 0.022006629034876823, -0.06555525958538055, 0.04354862868785858, 0.035671014338731766, 0.00777729507535696, 0.0012632164871320128, -0.010734040290117264, 0.01138346828520298, -0.002917145611718297, 0.02677966095507145, 0.028743784874677658, 0.04223921149969101, 0.027180934324860573, -0.025596963241696358, -0.014107896946370602, -0.055206652730703354, 0.025026733055710793, -0.03495294973254204, -0.007560818921774626, -0.026652943342924118, -0.08000107109546661, 0.030750146135687828, -0.011520745232701302, 0.007624177727848291, 0.0634855404496193, -0.015163877047598362, 0.007096187677234411, -0.03803640976548195, 0.0035032148007303476, 0.03007431887090206, 0.0333900973200798, 0.031193658709526062, -0.06496390700340271, 0.028173554688692093, 0.03609340637922287, 0.05047585815191269, 0.014435251243412495, -0.026610704138875008, -0.020950648933649063, -0.0002206008939538151, 0.016082581132650375, -0.01292519923299551, 0.04333743080496788, -0.022323423996567726, -0.0010282607981935143, -0.005871250759810209, -0.03231299668550491, 0.011404587887227535, 0.019250521436333656, 0.03491070866584778, 0.08785755932331085, 0.0037592898588627577, 0.03311554342508316 ]
729,374
tinytuya.Cloud
__init__
Tuya Cloud IoT Platform Access Args: initial_token: The auth token from a previous run. It will be refreshed if it has expired Playload Construction - Header Data: Parameter Type Required Description client_id String Yes client_id signature String Yes HMAC-SHA256 Signature (see below) sign_method String Yes Message-Digest Algorithm of the signature: HMAC-SHA256. t Long Yes 13-bit standard timestamp (now in milliseconds). lang String No Language. It is zh by default in China and en in other areas. access_token String * Required for service management calls Signature Details: * OAuth Token Request: signature = HMAC-SHA256(KEY + t, SECRET).toUpperCase() * Service Management: signature = HMAC-SHA256(KEY + access_token + t, SECRET).toUpperCase() URIs: * Get Token = https://openapi.tuyaus.com/v1.0/token?grant_type=1 * Get UserID = https://openapi.tuyaus.com/v1.0/devices/{DeviceID} * Get Devices = https://openapi.tuyaus.com/v1.0/users/{UserID}/devices REFERENCE: * https://images.tuyacn.com/smart/docs/python_iot_code_sample.py * https://iot.tuya.com/cloud/products/detail
def __init__(self, apiRegion=None, apiKey=None, apiSecret=None, apiDeviceID=None, new_sign_algorithm=True, initial_token=None, **extrakw): """ Tuya Cloud IoT Platform Access Args: initial_token: The auth token from a previous run. It will be refreshed if it has expired Playload Construction - Header Data: Parameter Type Required Description client_id String Yes client_id signature String Yes HMAC-SHA256 Signature (see below) sign_method String Yes Message-Digest Algorithm of the signature: HMAC-SHA256. t Long Yes 13-bit standard timestamp (now in milliseconds). lang String No Language. It is zh by default in China and en in other areas. access_token String * Required for service management calls Signature Details: * OAuth Token Request: signature = HMAC-SHA256(KEY + t, SECRET).toUpperCase() * Service Management: signature = HMAC-SHA256(KEY + access_token + t, SECRET).toUpperCase() URIs: * Get Token = https://openapi.tuyaus.com/v1.0/token?grant_type=1 * Get UserID = https://openapi.tuyaus.com/v1.0/devices/{DeviceID} * Get Devices = https://openapi.tuyaus.com/v1.0/users/{UserID}/devices REFERENCE: * https://images.tuyacn.com/smart/docs/python_iot_code_sample.py * https://iot.tuya.com/cloud/products/detail """ # Class Variables self.CONFIGFILE = 'tinytuya.json' self.apiRegion = apiRegion self.apiKey = apiKey self.apiSecret = apiSecret self.apiDeviceID = apiDeviceID self.urlhost = '' self.uid = None # Tuya Cloud User ID self.token = initial_token self.error = None self.new_sign_algorithm = new_sign_algorithm self.server_time_offset = 0 self.use_old_device_list = True self.mappings = None if (not apiKey) or (not apiSecret): try: # Load defaults from config file if available config = {} with open(self.CONFIGFILE) as f: config = json.load(f) self.apiRegion = config['apiRegion'] self.apiKey = config['apiKey'] self.apiSecret = config['apiSecret'] if 'apiDeviceID' in config: self.apiDeviceID = config['apiDeviceID'] except: self.error = error_json( ERR_CLOUDKEY, "Tuya Cloud Key and Secret required", ) #return self.error raise TypeError('Tuya Cloud Key and Secret required') # pylint: disable=W0707 self.setregion(apiRegion) if not self.token: # Attempt to connect to cloud and get token self._gettoken()
(self, apiRegion=None, apiKey=None, apiSecret=None, apiDeviceID=None, new_sign_algorithm=True, initial_token=None, **extrakw)
[ -0.006221448071300983, -0.07108040153980255, -0.042617637664079666, 0.026071742177009583, -0.0035482817329466343, -0.03596102446317673, -0.052373021841049194, 0.04560163617134094, -0.06721650809049606, -0.023470306769013405, 0.009793640114367008, 0.037376511842012405, -0.0033713458105921745, -0.0014202691381797194, -0.025593535974621773, 0.0025153588503599167, -0.0007191009353846312, 0.04146994650363922, -0.004079089500010014, -0.07716317474842072, 0.012442896142601967, 0.037529535591602325, -0.006207101978361607, 0.04399487003684044, 0.010530075989663601, 0.06472983956336975, -0.013437563553452492, -0.017932690680027008, 0.026626460254192352, -0.05616040527820587, 0.0009372819913551211, 0.01772228069603443, 0.037529535591602325, 0.06407948583364487, 0.003615230554714799, -0.05114881694316864, 0.004982897080481052, -0.019988972693681717, -0.11629948019981384, 0.0005804214160889387, -0.01739710196852684, -0.05623691901564598, 0.039824921637773514, -0.04273240640759468, 0.03360825404524803, 0.06075117364525795, -0.004846608731895685, 0.055242251604795456, -0.035215023905038834, -0.0029385702218860388, 0.02215046063065529, 0.024962306022644043, -0.04556338116526604, 0.013035871088504791, -0.05256430432200432, 0.037453021854162216, -0.028386253863573074, -0.006331435404717922, -0.029514817520976067, 0.016230281442403793, -0.02756374143064022, 0.02492404915392399, 0.01772228069603443, 0.06851722300052643, 0.011256948113441467, 0.023011229932308197, -0.052449535578489304, 0.038409434258937836, 0.0001772347604855895, 0.05596912279725075, 0.07268717139959335, -0.013628845103085041, -0.027850665152072906, -0.019472511485219002, 0.03804599866271019, -0.01563730649650097, -0.09082071483135223, -0.007526948116719723, -0.04977158457040787, -0.017205819487571716, -0.02104102447628975, 0.008115140721201897, 0.026090869680047035, 0.027525484561920166, 0.03764430433511734, 0.062319688498973846, 0.028615793213248253, -0.04938902333378792, -0.05971825122833252, -0.014145306311547756, -0.0690910741686821, 0.013475819490849972, -0.022571280598640442, 0.00639360211789608, 0.05298512428998947, -0.042043790221214294, -0.030911177396774292, -0.00005858012445969507, -0.03456466272473335, 0.0021220350172370672, 0.011228255927562714, -0.06779035180807114, -0.036745280027389526, -0.013064563274383545, 0.041814252734184265, -0.036267075687646866, -0.036726150661706924, 0.04169948399066925, 0.02595697157084942, 0.04694061353802681, -0.05187568813562393, -0.04961856082081795, -0.00964539684355259, 0.03112158738076687, -0.025153588503599167, -0.013274973258376122, 0.0524112768471241, 0.002596653765067458, -0.02111753635108471, -0.023049484938383102, 0.008029063232243061, -0.009186320006847382, 0.0013365832855924964, -0.04143168777227402, 0.02764025516808033, 0.015101716853678226, 0.0056428201496601105, 0.014107050374150276, 0.00932978093624115, -0.030222561210393906, -0.032843124121427536, -0.00039571471279487014, 0.017368409782648087, 0.013361050747334957, -0.0031872368417680264, -0.03844768926501274, 0.039824921637773514, -0.019281229004263878, -0.04169948399066925, 0.050230663269758224, 0.01064484566450119, 0.012605486437678337, 0.022284356877207756, -0.035540200769901276, -0.016698921099305153, -0.004456871654838324, -0.07027702033519745, -0.07264892011880875, -0.013762742280960083, 0.011935998685657978, -0.01739710196852684, -0.013246281072497368, -0.004205813631415367, 0.03525327891111374, -0.04655804857611656, -0.022284356877207756, -0.00017902803665492684, -0.0325370728969574, 0.003452640725299716, 0.011888178996741772, -0.017837049439549446, -0.03802686929702759, -0.0016713268123567104, -0.02071584388613701, -0.019032562151551247, 0.019032562151551247, -0.024751896038651466, 0.03146589547395706, 0.0030366024002432823, 0.015254742465913296, -0.040551792830228806, 0.012261178344488144, -0.03620969131588936, -0.00561890983954072, -0.00320636504329741, -0.0031848459038883448, -0.014833921566605568, -0.05440061166882515, 0.007273499388247728, -0.011180435307323933, -0.047131892293691635, -0.00579584576189518, -0.015991177409887314, 0.004851390607655048, 0.030930304899811745, 0.0297826137393713, 0.04414789378643036, 0.058647073805332184, 0.012098588980734348, 0.04644327983260155, 0.007627371232956648, 0.009616704657673836, 0.031083330512046814, 0.0555865615606308, 0.04384184256196022, 0.03144676610827446, 0.051187071949243546, 0.009917973540723324, 0.0035219804849475622, 0.042043790221214294, -0.010759614408016205, 0.01977856270968914, 0.00857899896800518, -0.023871997371315956, 0.03852420300245285, -0.019874203950166702, 0.02199743501842022, 0.022265229374170303, -0.0492359958589077, 0.011610819958150387, -0.0017322979401797056, -0.014805229380726814, -0.018123973160982132, 0.01960640959441662, 0.02961045876145363, -0.031083330512046814, 0.024025022983551025, 0.04311497136950493, -0.0071922047063708305, -0.02071584388613701, 0.08156266063451767, 0.038332920521497726, 0.001222411752678454, -0.09105025231838226, -0.007340447977185249, 0.04774399474263191, 0.04104912653565407, 0.020467178896069527, -0.059373944997787476, -0.030318202450871468, 0.028462767601013184, -0.009965794160962105, 0.03420122712850571, 0.08600040525197983, -0.017043229192495346, -0.04177599772810936, 0.029572203755378723, -0.028462767601013184, 0.0037467367947101593, -0.03511938080191612, 0.05371199548244476, 0.022494766861200333, 0.02486666478216648, -0.002303753048181534, -0.05677250772714615, 0.005092884413897991, -0.024598870426416397, 0.026492562144994736, -0.006895717233419418, -0.06614533066749573, -0.013667101971805096, -0.007230461109429598, 0.013294101692736149, 0.012337691150605679, 0.003588929306715727, -0.057690661400556564, 0.08684204518795013, -0.04900645837187767, 0.019816819578409195, -0.036018408834934235, -0.01342799887061119, 0.022207845002412796, -0.03883025422692299, 0.09380470961332321, -0.038887638598680496, -0.0012564838398247957, 0.042770665138959885, 0.016938025131821632, -0.019022999331355095, -0.010463127866387367, 0.06549496948719025, 0.060406867414712906, -0.042923688888549805, 0.0017932690680027008, -0.017014537006616592, -0.04437743127346039, 0.028233228251338005, -0.0051024481654167175, -0.03121722862124443, -0.03632446005940437, -0.03850507363677025, -0.037854716181755066, 0.06205189228057861, 0.04407138004899025, 0.011285640299320221, -0.06932061165571213, -0.025383125990629196, 0.016421562060713768, 0.0005015176138840616, -0.03928932920098305, -0.042617637664079666, 0.01674674265086651, -0.03223102167248726, 0.008411627262830734, 0.03471769019961357, 0.00798124261200428, -0.10283322632312775, 0.03687917813658714, 0.033225689083337784, -0.05306163802742958, -0.023871997371315956, 0.06660440564155579, -0.021461844444274902, -0.032039742916822433, 0.036745280027389526, 0.01602943427860737, 0.04747620224952698, -0.011668204329907894, -0.010663973167538643, 0.0002196754649048671, 0.0178657416254282, -0.015675563365221024, 0.06622184067964554, -0.01905169151723385, -0.06373517215251923, 0.018688255921006203, 0.014460922218859196, 0.0305859986692667, 0.047284919768571854, 0.08041496574878693, 0.0008709310204721987, -0.007789961062371731, 0.0007681169081479311, 0.005728897172957659, 0.08293989300727844, -0.07739271223545074, 0.037204355001449585, -0.02255215309560299, -0.04996286705136299, -0.003993012476712465, -0.03462204709649086, 0.025536151602864265, -0.024675382301211357, -0.027200305834412575, -0.012500281445682049, -0.015579922124743462, -0.05172266438603401, -0.010979589074850082, -0.030528612434864044, 0.006675743032246828, -0.03607579320669174, -0.024522356688976288, -0.05742286890745163, 0.052602559328079224, -0.028137587010860443, -0.055624816566705704, 0.029093997552990913, -0.035387177020311356, 0.036018408834934235, 0.013007178902626038, 0.009965794160962105, 0.019166460260748863, 0.0714629665017128, 0.09097373485565186, 0.12563404440879822, -0.05283210054039955, -0.055318765342235565, -0.006355345714837313, -0.007020050659775734, 0.016976280137896538, -0.0050163716077804565, -0.03898327797651291, -0.0317528173327446, 0.035138510167598724, -0.03366563841700554, -0.03420122712850571, -0.00414842925965786, -0.019195152446627617, -0.022590408101677895, 0.005910614971071482, -0.011170870624482632, -0.07119517773389816, 0.0035745829809457064, 0.04797353595495224, 0.04900645837187767, 0.03330220282077789, -0.03781645745038986, -0.016737177968025208, -0.08454666286706924, 0.027028152719140053, 0.010396178811788559, 0.07130994647741318, 0.0150825884193182, 0.035310663282871246, 0.03462204709649086, -0.028175843879580498, -0.02890271507203579, -0.028252357617020607, 0.038332920521497726, 0.027735894545912743, 0.044606972485780716, 0.0020228074863553047, -0.016086818650364876, 0.015675563365221024, 0.011955127120018005, 0.013753178529441357, -0.07023876160383224, 0.012251614592969418, 0.023565946146845818, -0.04632851108908653, 0.004007358569651842, -0.07486779242753983, 0.021653126925230026, 0.036496613174676895, 0.008430755697190762, 0.0014788492117077112, 0.08385804295539856, -0.005886704660952091, -0.019357742741703987, 0.01029097381979227, -0.05088102072477341, 0.003211147151887417, -0.034908972680568695, 0.022571280598640442, -0.010185768827795982, 0.016239844262599945, -0.015914665535092354, 0.08875486254692078, -0.02438846044242382, 0.0770484060049057, -0.003938018810003996, 0.009143281728029251, 0.003227884415537119, 0.004664890468120575, 0.012681999243795872, 0.031810201704502106, -0.0038375959265977144, -0.01849697344005108, 0.0010921008652076125, -0.02215046063065529, 0.0166797935962677, 0.0555865615606308, -0.027908049523830414, -0.007627371232956648, 0.004865736700594425, 0.02892184443771839, -0.014432230032980442, -0.015790332108736038, 0.05596912279725075, -0.017923125997185707, -0.01771271601319313, -0.045142561197280884, 0.019204717129468918, 0.012796767987310886, -0.001245724270120263, -0.019319485872983932, -0.0929630696773529, 0.03389517590403557, 0.06786686927080154, -0.006474896799772978, -0.02549789473414421, 0.020371537655591965, -0.027353331446647644, -0.02127056196331978, 0.03353174030780792, -0.04464522749185562, 0.04537209868431091, -0.012748947367072105, 0.014843486249446869, -0.03112158738076687, 0.02310686931014061, 0.028787946328520775, 0.019644664600491524, 0.019262101501226425, 0.03265184536576271, 0.04024574160575867, 0.013820127584040165, -0.006446204613894224, -0.010023178532719612, -0.033780407160520554, -0.013007178902626038, 0.024560613557696342, -0.028175843879580498, 0.05677250772714615, 0.06698697060346603, -0.01322715263813734, 0.01890822872519493, 0.003055730601772666, -0.06568624824285507, -0.07349056005477905, -0.004134083166718483, -0.02144271694123745, 0.03240317851305008, 0.033703893423080444, -0.022743433713912964, -0.0178753063082695, -0.0013712530490010977, -0.06706348061561584, 0.02804194577038288, -0.05068973824381828, -0.03812250867486, 0.0174736138433218, -0.009215012192726135, 0.016153767704963684, -0.08309292048215866, 0.022896459326148033, -0.030318202450871468, 0.01644069142639637, -0.04759097099304199, 0.023604203015565872, 0.01644069142639637, 0.006498807109892368, 0.0034335125237703323, 0.003060512710362673, 0.034029074013233185, 0.015426896512508392, -0.048088304698467255, -0.000715514353942126, -0.0017490350874140859, 0.042617637664079666, -0.03161891922354698, -0.004354057367891073, 0.03508112579584122, -0.03217363730072975, 0.0030150830280035734, -0.00414842925965786, -0.04759097099304199, -0.003421557368710637, -0.009305871091783047, 0.013208025135099888, 0.01843958906829357, 0.03921281918883324, 0.056581225246191025, -0.00813426822423935, 0.031159844249486923, 0.0035076343920081854, -0.02391025424003601, -0.010176204144954681, -0.00018978765001520514, 0.05386502295732498, -0.044836509972810745, -0.030222561210393906, -0.02985912561416626, -0.027582868933677673, 0.007789961062371731, -0.028481895104050636, -0.05948871374130249, -0.05053671449422836, 0.011849922128021717, -0.05493620038032532, 0.025115331634879112, -0.027353331446647644, -0.06847897171974182, -0.0985485091805458, -0.030930304899811745, -0.043650560081005096, -0.03827553614974022, 0.007498255930840969, 0.0024101536255329847, 0.008119922131299973, 0.014480050653219223, -0.020428922027349472, 0.07349056005477905, 0.03242230415344238, -0.043956611305475235, 0.01497738342732191, 0.022513896226882935, -0.03620969131588936, 0.010807435028254986, 0.02312599867582321, -0.006470114924013615, 0.006713999435305595, -0.06958840787410736, -0.013523640111088753, -0.032039742916822433, -0.0014680896420031786, -0.027372458949685097, 0.040704816579818726, -0.02310686931014061, 0.019204717129468918, 0.021174920722842216, -0.0007430111872963607, 0.015752075240015984, 0.04988635703921318, -0.0817921981215477, 0.02063933201134205, 0.009702781215310097, 0.05749937891960144, 0.04020748287439346, -0.04537209868431091, 0.06767558306455612, 0.10390440374612808, 0.014566127210855484, -0.044913023710250854, -0.005944089498370886, -0.01754056289792061, 0.06503589451313019, 0.003897371469065547, 0.018783895298838615, -0.06243445724248886, -0.04039876535534859, -0.013246281072497368, -0.04311497136950493, 0.019348178058862686, -0.04009271413087845, 0.06610707193613052, 0.02708553709089756, -0.019013434648513794, 0.04518081620335579, 0.011658640578389168, -0.0305668693035841, 0.05994778871536255, -0.01676587015390396, -0.05306163802742958, 0.038237277418375015, 0.01843958906829357, -0.06779035180807114, -0.03592276573181152, -0.030624253675341606, -0.014040101319551468, 0.08806625008583069, -0.03033733181655407, -0.0034191664308309555, 0.007823435589671135, 0.012519408948719501, 0.010004050098359585, -0.021653126925230026, 0.03270922973752022, 0.05837927758693695, -0.05141661316156387, -0.00251057674176991, -0.0012116521829739213, -0.04835609719157219, 0.031408511102199554, -0.09326912462711334, -0.021557485684752464, 0.029801741242408752, -0.02239912748336792, -0.023871997371315956, 0.013858383521437645, 0.023011229932308197, -0.03477507457137108, 0.020677588880062103, 0.004958986770361662, 0.013925332576036453, 0.02764025516808033, 0.021901793777942657, -0.0027401151601225138, 0.026339536532759666, 0.05581609904766083, -0.0150825884193182, 0.05780543014407158, 0.007268717512488365, 0.018372640013694763, 0.002232022350654006, -0.0030844227876514196, -0.07016225159168243, -0.006455768831074238, -0.005336768925189972, -0.015589485876262188, -0.040857844054698944, 0.04850912466645241, 0.015933793038129807, 0.02368071675300598, -0.04464522749185562, -0.02010374143719673, -0.018544793128967285, 0.03318743407726288, 0.04093435779213905, 0.013973153196275234, 0.008622038178145885, 0.021308818832039833, 0.02048630639910698, -0.028233228251338005, -0.015264306217432022, -0.03366563841700554, 0.034679435193538666, -0.04231158643960953, 0.014594819396734238, 0.005140704568475485, 0.0492742545902729, -0.017903998494148254, 0.05692553520202637, 0.03762517496943474, 0.035865381360054016, -0.01819092221558094, 0.02741071581840515, -0.05202871561050415, 0.06327609717845917, -0.008249037899076939, 0.009368037804961205, 0.0341438427567482, 0.010195332579314709, -0.00524112768471241, -0.04977158457040787, 0.0325370728969574, 0.0555865615606308, 0.02454148605465889, -0.03714697062969208, -0.059450458735227585, -0.020352408289909363, -0.06840245425701141, -0.016794562339782715, 0.03875374048948288, -0.014298331923782825, -0.023374665528535843, -0.042847175151109695, -0.022054819390177727, -0.01960640959441662, 0.026492562144994736, 0.007464781403541565, -0.022093074396252632, -0.02930440753698349, 0.004901602398604155, -0.009898845106363297, 0.059373944997787476, 0.003060512710362673, -0.061975378543138504, -0.01258635800331831, -0.029323536902666092, 0.06530369073152542, 0.011343024671077728, 0.049924612045288086, -0.007660845760256052, 0.02128969132900238, -0.014422665350139141, -0.03527240827679634, 0.029744356870651245, 0.04361230507493019, 0.009157627820968628, 0.00506419176235795, 0.006125807296484709, -0.004251243080943823, 0.007302191574126482, 0.05654297024011612, 0.02677948586642742, 0.015465152449905872, 0.007952550426125526, -0.026224767789244652, -0.016469383612275124, -0.026301279664039612, -0.009717127308249474, -0.05677250772714615, 0.0005164614995010197, 0.005566307343542576, -0.05784368887543678, 0.017368409782648087, -0.019434254616498947, 0.04016922786831856, 0.07050655782222748, -0.037376511842012405, 0.020467178896069527, -0.021882664412260056, 0.0397101491689682, -0.023451177403330803, 0.025134459137916565, 0.04192902147769928, -0.05501271411776543, 0.044836509972810745, 0.0484708696603775, 0.042770665138959885, 0.0072400253266096115, -0.02802281826734543, -0.016651101410388947, 0.03112158738076687, -0.015216485597193241, -0.009344127960503101, 0.035368047654628754, -0.012318563647568226, -0.01223248615860939, -0.009793640114367008, -0.03033733181655407, 0.019912460818886757, 0.019415127113461494, 0.03993969038128853, 0.09204491972923279, -0.000052191604481777176, 0.02716204896569252 ]
729,375
tinytuya.Cloud
_build_mapping
null
@staticmethod def _build_mapping( src, dst ): # merge multiple DPS sets from result['status'] and result['functions'] into a single result for mapp in src: try: code = mapp['code'] dp_id = code if 'dp_id' not in mapp else str(mapp['dp_id']) if dp_id in dst: continue data = { 'code': code, 'type': mapp['type'] } if mapp['type'].lower() == 'string': values = mapp['values'] else: try: values = json.loads( mapp['values'] ) except: values = mapp['values'] if values and type(values) == dict and 'unit' in values: if values['unit']: # normalize some unicode and temperature units # not sure what a good replacement for '份' is (seen in a pet feeder) values['unit'] = values['unit'].replace('℉','°F').replace('℃','°C').replace('f','°F').replace('c','°C').replace('秒','s') # Tuya's 'JSON' mapping type is an ordered dict, but python's dict is not! so, save the raw value as well if mapp['type'].lower() == 'json': data['raw_values'] = mapp['values'] data['values'] = values dst[dp_id] = data except: log.debug( 'Parse mapping item failed!', exc_info=True )
(src, dst)
[ -0.004655725322663784, -0.03887971490621567, -0.05859808251261711, -0.028389248996973038, -0.05273084715008736, 0.007556850090622902, -0.03520341217517853, -0.03559332340955734, 0.06338842213153839, -0.02213210240006447, -0.010249094106256962, 0.04474695026874542, -0.0029243340250104666, 0.041590526700019836, 0.02539992891252041, 0.02038678526878357, -0.008062806911766529, 0.12336047738790512, 0.028742024675011635, 0.012523576617240906, -0.005287010222673416, 0.0015271521406248212, 0.03648454695940018, 0.07998749613761902, 0.011140319518744946, -0.007487223483622074, 0.025010017678141594, -0.04827471822500229, 0.012523576617240906, -0.007440805435180664, 0.0019460746552795172, -0.03165707364678383, 0.033068183809518814, 0.03678162395954132, -0.02549276500940323, 0.001331036095507443, 0.0051988158375024796, 0.03570472449064255, -0.13598616421222687, -0.03607606887817383, 0.005560876335948706, -0.07122378051280975, -0.03828556463122368, 0.02788793481886387, 0.044858355075120926, 0.011325991712510586, -0.09216757863759995, -0.016004925593733788, 0.02853778563439846, -0.03999374806880951, -0.04359578341245651, -0.0335509292781353, -0.004017477855086327, 0.07051822543144226, -0.03464639559388161, 0.045266833156347275, -0.06684191524982452, 0.053696341812610626, -0.010425482876598835, 0.019996874034404755, -0.0309329554438591, 0.02682960405945778, -0.042370349168777466, -0.006284996867179871, -0.014519549906253815, 0.0216307882219553, -0.0707038938999176, -0.0468636117875576, -0.025994079187512398, 0.030598744750022888, -0.009729213081300259, 0.0068605802953243256, -0.013786145485937595, 0.021797891706228256, 0.07018401473760605, 0.05057705193758011, 0.008104582317173481, -0.02720094658434391, 0.04749489575624466, -0.034906335175037384, 0.007812149357050657, -0.0176481232047081, -0.02098093554377556, -0.0216307882219553, 0.022057833150029182, 0.051394008100032806, 0.002754908287897706, 0.027052409946918488, -0.022819088771939278, -0.03249260038137436, -0.032845377922058105, -0.017527436837553978, -0.036893025040626526, 0.019941171631217003, -0.0057511902414262295, 0.04170193150639534, -0.02047962136566639, -0.011883007362484932, -0.04745776206254959, 0.0025599526707082987, 0.032102689146995544, -0.015772836282849312, -0.04649226740002632, -0.013164144940674305, 0.05611007660627365, -0.03006029687821865, -0.021240876987576485, -0.0011877205688506365, -0.03579756245017052, 0.010471900925040245, -0.07074102759361267, -0.018065884709358215, 0.0028477441519498825, -0.061048950999975204, 0.027052409946918488, -0.0251771230250597, 0.013656175695359707, -0.016292717307806015, -0.05365920811891556, 0.037301503121852875, 0.011075334623456001, 0.0477919727563858, 0.006795594934374094, -0.001790574286133051, 0.016237016767263412, -0.056221481412649155, 0.06576502323150635, 0.012328621000051498, 0.04742062836885452, 0.0015851747011765838, -0.033848006278276443, 0.010471900925040245, -0.036020368337631226, -0.0016141858650371432, 0.032195523381233215, -0.07181792706251144, -0.07048109173774719, -0.0015027826884761453, -0.013674742542207241, -0.011075334623456001, 0.006897714454680681, -0.014343162067234516, 0.05692703276872635, -0.04248175397515297, -0.005848668050020933, -0.03106292523443699, 0.04207327589392662, 0.06520800292491913, -0.0009887033374980092, 0.007450088858604431, -0.004836755339056253, 0.022911924868822098, -0.05666709318757057, 0.02604978159070015, -0.03369946777820587, -0.03019026666879654, 0.03626174107193947, -0.023784583434462547, 0.013099159114062786, -0.03213982284069061, 0.017156092450022697, -0.04363292083144188, -0.021240876987576485, -0.06071474403142929, -0.01702612265944481, -0.03936246410012245, 0.0021189816761761904, -0.034720662981271744, 0.032009851187467575, -0.04493262246251106, -0.00048274718574248254, -0.00214799284003675, 0.00868480745702982, -0.00445148628205061, 0.0371529683470726, 0.016032777726650238, 0.007273700553923845, -0.03470209613442421, 0.012699964456260204, 0.015550029464066029, -0.03589039668440819, 0.024323031306266785, -0.03906538709998131, 0.0269781406968832, -0.0036368502769619226, 0.004096388351172209, -0.005639786832034588, 0.04827471822500229, 0.03809989243745804, 0.031452834606170654, 0.012068679556250572, -0.0370415635406971, -0.013191995210945606, -0.005686204880475998, 0.0003104203788097948, -0.017267495393753052, -0.0057372646406292915, 0.030227400362491608, -0.012328621000051498, 0.05157968029379845, -0.07798223942518234, -0.024880047887563705, 0.02467580884695053, 0.07567990571260452, -0.047197822481393814, -0.028333546593785286, -0.01702612265944481, 0.04092210903763771, -0.02944757789373398, -0.032752539962530136, 0.04990863427519798, -0.054327625781297684, -0.01982976868748665, -0.016626928001642227, 0.02047962136566639, -0.023691747337579727, 0.022819088771939278, 0.044487010687589645, -0.00916291307657957, -0.008782285265624523, -0.009812764823436737, -0.07909627258777618, 0.010193392634391785, 0.0032655063550919294, 0.011697336100041866, -0.0073851034976542, -0.003026453545317054, 0.025567034259438515, 0.03936246410012245, -0.002478721085935831, 0.009515689685940742, -0.04329871013760567, 0.021333713084459305, 0.006981267128139734, 0.06940419226884842, -0.03572329133749008, 0.06309134513139725, -0.06427964568138123, 0.026495393365621567, -0.0004740438307635486, 0.008531628176569939, -0.01964409649372101, 0.007190147880464792, -0.009552824310958385, -0.03531481325626373, -0.020312516018748283, 0.03507344052195549, 0.010731841437518597, -0.024044523015618324, 0.008712658658623695, 0.042036138474941254, 0.00809065718203783, -0.0026110124308615923, 0.053176458925008774, 0.009794197976589203, -0.05726124346256256, 0.013776862062513828, -0.03906538709998131, 0.010100556537508965, -0.07441733777523041, 0.03637314587831497, -0.03531481325626373, -0.03171277791261673, 0.008926181122660637, -0.04879460111260414, -0.0370972640812397, 0.029800355434417725, 0.029948893934488297, -0.04378145560622215, -0.006842012982815504, 0.07025828212499619, -0.004709105938673019, -0.030413072556257248, -0.00924182403832674, -0.023171864449977875, 0.06650771200656891, 0.020795263350009918, -0.014881610870361328, 0.01490946114063263, -0.040068015456199646, 0.03932533040642738, -0.02324613370001316, -0.05611007660627365, 0.001283457619138062, 0.020591024309396744, -0.034776363521814346, 0.00902365893125534, 0.01417605672031641, 0.04088497534394264, -0.05232236906886101, -0.0028129308484494686, 0.008842628449201584, -0.048348989337682724, 0.006600639317184687, -0.026532528921961784, 0.043372977524995804, 0.03943673148751259, -0.04649226740002632, 0.04095924273133278, -0.030988655984401703, -0.04864606261253357, 0.004198507871478796, 0.12610842287540436, 0.047383494675159454, -0.0353519469499588, 0.025325659662485123, 0.008550195023417473, -0.04166479781270027, -0.0011865601409226656, 0.014018235728144646, -0.04300163313746452, -0.00478569557890296, 0.004386500921100378, 0.00400587311014533, -0.01399038452655077, -0.02894626371562481, -0.03780281916260719, 0.08340386301279068, 0.04289023205637932, 0.05009430646896362, -0.06309134513139725, 0.01472378894686699, 0.030468774959445, 0.018622901290655136, 0.0681416243314743, -0.012458590790629387, 0.04671507328748703, 0.005788324400782585, 0.06955272704362869, -0.04378145560622215, -0.030468774959445, -0.019458426162600517, 0.0397709421813488, 0.04898027330636978, 0.022837655618786812, -0.00793747790157795, -0.006902356632053852, -0.06331414729356766, 0.0046139489859342575, 0.011001065373420715, 0.0068280878476798534, 0.0017754884902387857, -0.03485063463449478, 0.032938212156295776, 0.06038053333759308, -0.010397631675004959, -0.03921392560005188, -0.006577430292963982, 0.010314079001545906, -0.03553761914372444, -0.022262072190642357, 0.009729213081300259, 0.024193061515688896, 0.0512826070189476, 0.06338842213153839, 0.009627092629671097, 0.0007571936002932489, -0.05629574880003929, 0.016069911420345306, 0.032604001462459564, 0.06413111090660095, -0.0432615764439106, 0.0015886559849604964, 0.004094067495316267, 0.04626946151256561, -0.00961780920624733, -0.00608539953827858, -0.015559312887489796, 0.047754839062690735, -0.03925105929374695, 0.005287010222673416, -0.027219515293836594, 0.029930325224995613, -0.007737880572676659, -0.01845579594373703, 0.05577586963772774, -0.0006452102097682655, 0.01344265230000019, -0.09580674767494202, 0.04021655395627022, -0.029837489128112793, 0.009255749173462391, -0.04760630056262016, 0.03936246410012245, 0.08771145343780518, -0.03824843093752861, 0.04095924273133278, -0.030301669612526894, -0.041590526700019836, -0.009515689685940742, 0.018353676423430443, 0.03124859742820263, 0.04771770164370537, -0.015828536823391914, -0.012087247334420681, -0.030301669612526894, -0.06364835798740387, -0.005584085360169411, 0.0022512730211019516, -0.0147702069953084, -0.008225269615650177, -0.0760512501001358, 0.022039266303181648, 0.055478792637586594, -0.007705387659370899, -0.10509034991264343, 0.047383494675159454, 0.0336066298186779, -0.02669963240623474, 0.02577127330005169, 0.024193061515688896, -0.025938378646969795, -0.03570472449064255, 0.004606986418366432, -0.05655568838119507, 0.04166479781270027, 0.003492954419925809, 0.0128206517547369, 0.0031424984335899353, 0.03139713406562805, 0.0918705016374588, -0.013498353771865368, 0.007765731308609247, -0.002859348664060235, -0.02044248767197132, -0.07601411640644073, 0.0018300296505913138, 0.010146974585950375, -0.05577586963772774, 0.0477919727563858, 0.028092173859477043, -0.0477919727563858, 0.0028082889039069414, -0.09736639261245728, 0.04092210903763771, 0.03724580258131027, 0.020795263350009918, 0.0009092125692404807, 0.08704303205013275, 0.021593652665615082, 0.00916291307657957, 0.04207327589392662, 0.03407081216573715, -0.007923552766442299, -0.010119123384356499, -0.022540580481290817, -0.06539367884397507, -0.02679246850311756, -0.03106292523443699, -0.009515689685940742, -0.006117892451584339, 0.03496203571557999, 0.026811037212610245, -0.02766512706875801, 0.0626828670501709, 0.0076218354515731335, 0.0015027826884761453, -0.013451935723423958, -0.03600180149078369, 0.05094839632511139, -0.0073851034976542, -0.0590808279812336, 0.056184347718954086, 0.05633288249373436, 0.0005242332699708641, 0.046232327818870544, 0.0019309887429699302, -0.022856222465634346, -0.02894626371562481, 0.03342095762491226, -0.024137359112501144, 0.018130870535969734, 0.012932054698467255, -0.010063421912491322, 0.03128573298454285, -0.000185962111572735, 0.0025878034066408873, -0.011446679010987282, 0.016942569985985756, 0.01879929006099701, 0.010211959481239319, -0.019996874034404755, 0.04474695026874542, 0.012375038117170334, -0.0353519469499588, -0.015800686553120613, 0.06587642431259155, -0.045860983431339264, -0.010926797054708004, 0.013516921550035477, -0.0073851034976542, -0.05061418563127518, 0.027535157278180122, -0.022837655618786812, -0.043372977524995804, 0.013433368876576424, 0.008002462796866894, 0.01845579594373703, 0.02673676796257496, -0.05848667770624161, 0.01003557164222002, -0.012375038117170334, -0.0929102674126625, -0.023134730756282806, 0.04753202944993973, 0.019551260396838188, -0.012532860040664673, 0.023134730756282806, -0.07709101587533951, 0.002255914732813835, -0.07389745116233826, -0.01221721712499857, 0.0036554173566401005, 0.0002151184162357822, 0.013099159114062786, 0.031452834606170654, 0.017100390046834946, -0.003205162938684225, -0.04801477864384651, -0.037895653396844864, 0.007046252489089966, 0.010286228731274605, 0.002810609759762883, 0.009794197976589203, -0.012885636650025845, 0.05748404935002327, 0.01049046777188778, 0.03732006996870041, -0.02885342761874199, -0.04541537165641785, -0.08436935395002365, -0.0176759734749794, 0.013544771820306778, -0.016264867037534714, 0.04894313961267471, 0.005500532686710358, 0.05670422688126564, -0.047197822481393814, -0.01574498601257801, 0.023413239046931267, 0.04289023205637932, 0.007027685176581144, -0.009237181395292282, -0.05937790498137474, 0.0512826070189476, 0.03600180149078369, -0.0344792902469635, 0.010202676057815552, 0.055255986750125885, 0.010063421912491322, -0.040253687649965286, -0.004302948713302612, 0.02324613370001316, 0.07657112926244736, 0.013544771820306778, 0.008796210400760174, -0.007538283243775368, -0.028890563175082207, -0.013099159114062786, 0.00014026938879396766, 0.002669034991413355, -0.011242439039051533, -0.016292717307806015, 0.009060793556272984, -0.08644887804985046, 0.010184109210968018, -0.04808904603123665, 0.06320274621248245, -0.04537823423743248, -0.002662072191014886, -0.005560876335948706, -0.022169236093759537, -0.01699827052652836, -0.05960071086883545, -0.006999834440648556, -0.03769141435623169, -0.02287478931248188, -0.06208871677517891, 0.06246006116271019, -0.0009388040052726865, -0.03553761914372444, 0.06739893555641174, 0.0547732375562191, 0.013544771820306778, 0.029800355434417725, 0.006985908839851618, -0.07051822543144226, 0.007686820812523365, 0.11578505486249924, -0.038731180131435394, -0.040662165731191635, 0.05358493700623512, -0.008072090335190296, 0.031545672565698624, 0.01207796297967434, -0.00378538784570992, -0.031601373106241226, -0.0024346241261810064, -0.013071308843791485, -0.05588727071881294, -0.04266742616891861, 0.005036353133618832, -0.035741858184337616, -0.03171277791261673, 0.05206242948770523, -0.024750076234340668, -0.008564121089875698, 0.021240876987576485, -0.03388513997197151, 0.02922477200627327, 0.04281596094369888, 0.013749011792242527, 0.08028457313776016, -0.04385572671890259, 0.08021030575037003, -0.08043310791254044, -0.017536720260977745, -0.010230527259409428, 0.03148997202515602, -0.05113406851887703, -0.026848170906305313, 0.03906538709998131, -0.015522179193794727, -0.00044764357153326273, -0.026198318228125572, 0.026216885074973106, 0.006823445670306683, 0.014844476245343685, -0.006572788581252098, -0.03405224531888962, -0.03496203571557999, -0.023598911240696907, 0.07497435063123703, -0.014825908467173576, -0.009501764550805092, 0.03928819298744202, 0.05458756536245346, 0.018075168132781982, 0.0003928123041987419, 0.012597844935953617, 0.02430446445941925, -0.044115666300058365, 0.024787211790680885, -0.024415867403149605, 0.00807673204690218, -0.006475310772657394, -0.021426549181342125, -0.004841397516429424, -0.017202509567141533, 0.025882676243782043, -0.009255749173462391, 0.009325375780463219, -0.020368218421936035, 0.06680478155612946, 0.05644428730010986, 0.0766453966498375, -0.03147140517830849, -0.012514292262494564, 0.019866904243826866, -0.010620438493788242, -0.033903706818819046, 0.005027069244533777, -0.010833960957825184, -0.04764343425631523, 0.0010519479401409626, -0.009450704790651798, 0.01779666170477867, -0.023264700546860695, 0.022076399996876717, 0.029800355434417725, 0.017267495393753052, -0.03414507955312729, -0.00023977797536645085, -0.0003403019509278238, -0.015345790423452854, -0.02209496684372425, 0.03906538709998131, 0.06899571418762207, 0.011270290240645409, -0.026012646034359932, 0.012347187846899033, -0.004391142632812262, 0.04155339300632477, 0.04671507328748703, -0.023487508296966553, 0.0159028060734272, 0.02075812965631485, -0.05076272413134575, -0.015568597242236137, -0.0006388277397491038, 0.014760923571884632, -0.03496203571557999, 0.012876353226602077, 0.004597702994942665, -0.028055038303136826, -0.004804262891411781, -0.014148206450045109, -0.03932533040642738, -0.0300045944750309, 0.019941171631217003, 0.016821883618831635, -0.03579756245017052, 0.012551426887512207, -0.07311762869358063, 0.010406915098428726, 0.009552824310958385, -0.03719010204076767, 0.0159028060734272, 0.024638673290610313, -0.019959740340709686, 0.020646726712584496, 0.03310531750321388, 0.04537823423743248, 0.025529898703098297, -0.004813546314835548, -0.011994411237537861, -0.06505946815013885, 0.09409856796264648, 0.025938378646969795, 0.0015816933009773493, 0.019347021356225014, 0.005059561692178249, 0.03917679190635681, 0.06401970237493515, -0.009924167767167091, -0.0062757134437561035, 0.022986192256212234, -0.009357868693768978, -0.018214423209428787, 0.008475926704704762, -0.03414507955312729, 0.04530396685004234, -0.04693787917494774, -0.04656653851270676, -0.02876059152185917, -0.04073643684387207, 0.007812149357050657, 0.02268911711871624, -0.04088497534394264, 0.04537823423743248, -0.045044027268886566, 0.011975843459367752, -0.002555310958996415, 0.02794363535940647, -0.021983563899993896, 0.0011674127308651805, 0.07657112926244736, 0.0017963765421882272, -0.05150541290640831, 0.0049203080125153065, 0.08377520740032196, 0.034367885440588, -0.05146827921271324, 0.01973693259060383, 0.02604978159070015, -0.023357536643743515, 0.056221481412649155, -0.005333428271114826, -0.009492481127381325, -0.014287460595369339, -0.007747163996100426, 0.025808406993746758, 0.0031726702582091093, 0.01618131436407566, 0.055850137025117874, 0.00313553586602211, 0.01673833094537258, 0.016534091904759407 ]
729,376
tinytuya.Cloud
_get_all_devices
null
def _get_all_devices( self, uid=None, device_ids=None ): fetches = 0 our_result = { 'result': [] } last_row_key = None has_more = True total = 0 if uid: # get device list for specified user id query = {'page_size':'75', 'source_type': 'tuyaUser', 'source_id': uid} # API docu: https://developer.tuya.com/en/docs/cloud/dc413408fe?id=Kc09y2ons2i3b uri = '/v1.3/iot-03/devices' if device_ids: if isinstance( device_ids, tuple ) or isinstance( device_ids, list ): query['device_ids'] = ','.join(device_ids) else: query['device_ids'] = device_ids else: # get all devices query = {'size':'50'} # API docu: https://developer.tuya.com/en/docs/cloud/fc19523d18?id=Kakr4p8nq5xsc uri = '/v1.0/iot-01/associated-users/devices' while has_more: result = self.cloudrequest( uri, query=query ) fetches += 1 has_more = False if type(result) == dict: log.debug( 'Cloud response:' ) log.debug( json.dumps( result, indent=2 ) ) else: log.debug( 'Cloud response: %r', result ) # format it the same as before, basically just moves result->devices into result for i in result: if i == 'result': # by-user-id has the result in 'list' while all-devices has it in 'devices' if 'list' in result[i] and 'devices' not in result[i]: our_result[i] += result[i]['list'] elif 'devices' in result[i]: our_result[i] += result[i]['devices'] if 'total' in result[i]: total = result[i]['total'] if 'last_row_key' in result[i]: query['last_row_key'] = result[i]['last_row_key'] if 'has_more' in result[i]: has_more = result[i]['has_more'] else: our_result[i] = result[i] our_result['fetches'] = fetches our_result['total'] = total return our_result
(self, uid=None, device_ids=None)
[ -0.045897483825683594, -0.030617257580161095, -0.050025228410959244, 0.019559448584914207, -0.0009070859523490071, 0.02823149785399437, -0.043473854660987854, -0.049949489533901215, -0.004769153892993927, -0.02459605224430561, 0.004818857181817293, -0.023005547001957893, -0.01723995804786682, 0.021566515788435936, 0.03508582338690758, 0.03447991609573364, -0.024823268875479698, 0.023819733411073685, 0.08611458539962769, -0.006333625875413418, -0.007966735400259495, 0.07770762592554092, 0.004369160160422325, 0.022759396582841873, -0.012761924415826797, 0.03663846105337143, 0.022948741912841797, -0.04044431820511818, 0.07664728164672852, -0.0022816199343651533, -0.02145290933549404, 0.025012614205479622, 0.06532438844442368, 0.007455501239746809, -0.04029284045100212, -0.014399767853319645, 0.04173187166452408, 0.020449373871088028, -0.06373388320207596, 0.03987627848982811, -0.036430180072784424, -0.06415044516324997, 0.027720263227820396, -0.025845736265182495, 0.027303701266646385, 0.02944331243634224, -0.008463769219815731, 0.008662582375109196, -0.0015928737120702863, 0.007654314395040274, 0.016047079116106033, 0.014371366240084171, -0.03722543641924858, 0.024009080603718758, 0.0026319101452827454, -0.010574977844953537, -0.0923251360654831, -0.04525370895862579, -0.029102489352226257, 0.027966413646936417, -0.03406335785984993, 0.01035722903907299, 0.06021204590797424, 0.016444705426692963, -0.017987875267863274, 0.015649450942873955, -0.0251451563090086, 0.01407787948846817, -0.04093661904335022, 0.05839432403445244, -0.00950517226010561, 0.026754599064588547, 0.007351360749453306, -0.032169897109270096, 0.021093150600790977, 0.020260028541088104, 0.0000014931341638657614, -0.024974744766950607, -0.04650339111685753, -0.05581921711564064, 0.007464968599379063, 0.046314045786857605, 0.03915676474571228, 0.05135064944624901, 0.029481181874871254, 0.08581163734197617, -0.0187641941010952, -0.008246021345257759, -0.03938398137688637, 0.018877802416682243, -0.06278715282678604, -0.0046200440265238285, 0.002991667715832591, 0.03868339955806732, 0.031734399497509, 0.028117889538407326, -0.06471848487854004, 0.01682339794933796, -0.010877931490540504, -0.009921733289957047, 0.01315008383244276, -0.0980055183172226, 0.016444705426692963, -0.03561599552631378, 0.04498862475156784, -0.08558441698551178, 0.000951463938690722, 0.02128249779343605, 0.05979548394680023, 0.07274675369262695, -0.09179496765136719, 0.02686820551753044, 0.03251072019338608, 0.002320672618225217, 0.005453166551887989, -0.021907338872551918, 0.048169638961553574, 0.020657654851675034, -0.03961119428277016, -0.013358364813029766, -0.019786663353443146, -0.0028898941818624735, 0.05078261345624924, -0.046238306909799576, -0.030920211225748062, -0.017684921622276306, -0.028212562203407288, -0.010366696864366531, 0.03896741941571236, 0.0401034951210022, -0.07274675369262695, 0.0016082581132650375, 0.03468819707632065, 0.004965600557625294, 0.03987627848982811, -0.015999741852283478, -0.014428169466555119, 0.004364426713436842, 0.060628607869148254, -0.002527769887819886, -0.03285153955221176, 0.008520572446286678, 0.03097701445221901, -0.03650591894984245, 0.03251072019338608, -0.011370230466127396, 0.027379440143704414, 0.01883993297815323, -0.05881088599562645, -0.03682781010866165, -0.04082300886511803, 0.04949505999684334, 0.02249431237578392, 0.0007195150246843696, -0.060628607869148254, 0.027227964252233505, 0.000004206663106742781, -0.04248925670981407, -0.027720263227820396, -0.019228091463446617, 0.002646111184731126, -0.038475118577480316, -0.020203225314617157, 0.0007899280753917992, -0.020979544147849083, 0.006721785292029381, -0.06789949536323547, 0.005055539775639772, -0.037168633192777634, -0.014182019978761673, -0.018792595714330673, -0.00008757255272939801, 0.05180508270859718, -0.04483714699745178, -0.04252712428569794, -0.018054146319627762, 0.0028023216873407364, -0.05733398720622063, -0.008851928636431694, 0.02889420837163925, -0.055857088416814804, -0.0125725781545043, 0.0336657278239727, -0.006896930281072855, 0.030787669122219086, 0.0005905230063945055, 0.04536731541156769, 0.0032188829500228167, 0.005154946353286505, 0.017684921622276306, -0.02717115916311741, -0.0161890871822834, 0.002365642227232456, 0.051009830087423325, 0.0007047223625704646, 0.0030200695618987083, 0.0323781743645668, 0.03222670033574104, -0.01355717796832323, 0.028345104306936264, -0.1062610074877739, 0.006745453458279371, 0.00886139553040266, -0.022948741912841797, 0.001181046012789011, -0.011540642008185387, -0.04180761054158211, 0.02126356214284897, 0.0004893412115052342, -0.004160879645496607, -0.005543105769902468, -0.015100347809493542, -0.016122816130518913, 0.04252712428569794, -0.002904095221310854, 0.06433979421854019, 0.02168012410402298, 0.0251451563090086, -0.026981813833117485, -0.05752333253622055, -0.020998477935791016, -0.06850540637969971, -0.04407976195216179, -0.06350667029619217, -0.05426657944917679, 0.0323781743645668, 0.0035620727576315403, 0.02022215910255909, 0.011663717217743397, -0.020241092890501022, 0.0799797773361206, -0.0029064619448035955, 0.0603635236620903, 0.05025244504213333, -0.053925756365060806, -0.02459605224430561, 0.03074979968369007, 0.03179120272397995, 0.07036099582910538, 0.013008073903620243, 0.01851804368197918, -0.0020851735025644302, 0.040179233998060226, -0.0794496089220047, -0.04207269474864006, -0.008993937633931637, -0.0044212304055690765, 0.04002775624394417, 0.016368966549634933, -0.05835645645856857, -0.0200517475605011, -0.022039880976080894, 0.07149707525968552, -0.030314303934574127, 0.013206887990236282, -0.12489265948534012, 0.013774925842881203, 0.008160815574228764, 0.03639231249690056, -0.06831605732440948, 0.05453166365623474, 0.007266154978424311, -0.03607042506337166, 0.08013125509023666, -0.0674450695514679, -0.030143892392516136, 0.020771263167262077, 0.0283072367310524, -0.054001495242118835, 0.028818469494581223, 0.06115877628326416, 0.05305476486682892, -0.02410375326871872, -0.07418578863143921, -0.0238576028496027, 0.031526118516922, 0.007010537665337324, 0.016482574865221977, -0.04968440532684326, -0.026565251871943474, -0.03584320843219757, -0.03819109871983528, -0.0012922869063913822, -0.008302824571728706, 0.029348639771342278, -0.08013125509023666, 0.02743624337017536, 0.048321112990379333, -0.027152225375175476, 0.0025561717338860035, -0.003805855754762888, -0.03139357641339302, -0.10929054766893387, -0.02677353285253048, -0.049873750656843185, 0.005349026061594486, -0.03133677318692207, -0.05074474215507507, 0.009249554947018623, 0.006333625875413418, -0.08081290125846863, 0.05078261345624924, -0.006447233259677887, 0.007365561556071043, 0.018972475081682205, 0.015639984980225563, 0.08543293923139572, -0.0559706948697567, 0.003034270601347089, -0.029651593416929245, -0.005150212906301022, -0.02879953570663929, 0.04457206279039383, -0.044041894376277924, -0.0067643881775438786, -0.025921475142240524, 0.023990144953131676, 0.04532944783568382, 0.022020947188138962, 0.06623325496912003, -0.017277827486395836, 0.0488891527056694, -0.0036236101295799017, 0.03851298987865448, 0.06672555208206177, 0.012771391309797764, 0.05131278187036514, 0.04354959353804588, -0.03209415823221207, -0.001727782771922648, 0.028685927391052246, -0.03722543641924858, -0.04983588308095932, 0.027227964252233505, 0.059833355247974396, -0.010224686935544014, 0.01828136295080185, -0.03514263033866882, 0.020828066393733025, 0.04820750653743744, -0.01892513781785965, -0.0308255385607481, -0.026338037103414536, 0.03650591894984245, 0.012913401238620281, -0.02442564256489277, 0.06108303740620613, 0.010773791000247002, 0.010063743218779564, 0.0030058687552809715, 0.03703608736395836, 0.026167625561356544, 0.03408228978514671, 0.06577882170677185, 0.08081290125846863, 0.015157151967287064, -0.05835645645856857, 0.013216354884207249, 0.014447104185819626, 0.039686933159828186, -0.01894407346844673, -0.0007733603124506772, 0.012610447593033314, 0.036430180072784424, -0.012629382312297821, -0.003384560812264681, -0.01602814346551895, 0.005017670802772045, 0.010849528945982456, -0.0019798497669398785, -0.04241351783275604, 0.003363259369507432, 0.03851298987865448, 0.06903557479381561, 0.06274928152561188, 0.04442058503627777, -0.06611964106559753, -0.004842525348067284, -0.05703103169798851, 0.04521583765745163, -0.030465781688690186, 0.022096684202551842, 0.0049798013642430305, -0.017211556434631348, 0.06195402890443802, -0.02071445807814598, 0.0054768347181379795, -0.03379826992750168, -0.04362533241510391, -0.0032283503096550703, 0.012941802851855755, 0.04415550082921982, -0.02993561141192913, -0.018660053610801697, -0.02936757355928421, 0.009164349175989628, 0.03874020278453827, -0.03665739670395851, -0.020657654851675034, -0.08429686725139618, -0.026565251871943474, -0.05366067215800285, -0.006915865000337362, 0.06786162406206131, -0.026186559349298477, -0.022210292518138885, 0.0585458017885685, -0.09065889567136765, -0.040254972875118256, 0.034915413707494736, -0.043246641755104065, -0.024293098598718643, -0.010130014270544052, 0.02896994724869728, -0.008804591372609138, 0.015630517154932022, -0.008435366675257683, 0.0794496089220047, 0.09406711906194687, 0.09921733289957047, 0.0012118148151785135, -0.04616256803274155, -0.010281491093337536, 0.005543105769902468, -0.01643523760139942, 0.007862594909965992, 0.006380962207913399, -0.02241857349872589, -0.007772655691951513, 0.008676783181726933, 0.02118782326579094, -0.0023549916222691536, -0.01714528538286686, -0.04532944783568382, 0.020752327516674995, -0.0014697987353429198, 0.024974744766950607, -0.03508582338690758, 0.045026492327451706, -0.03510475903749466, 0.006598710082471371, 0.012922868132591248, 0.00942943338304758, -0.006527705583721399, 0.009117012843489647, -0.021642254665493965, -0.042678602039813995, -0.0007739519933238626, -0.0020626885816454887, -0.019275428727269173, 0.015195021405816078, -0.04798028990626335, 0.054569534957408905, -0.0283072367310524, 0.0641125738620758, -0.039686933159828186, -0.01867898926138878, 0.015914537012577057, 0.0008532406645826995, 0.04911636933684349, 0.014702721498906612, 0.0011674368288367987, -0.019076615571975708, 0.015024609863758087, -0.0009082693723030388, 0.02758772112429142, -0.036524854600429535, -0.021945208311080933, 0.00376325286924839, 0.005410563666373491, 0.0018212724244222045, 0.031090622767806053, -0.03277580440044403, 0.04805602878332138, 0.005917064379900694, -0.04604896157979965, -0.011417567729949951, 0.004785721655935049, -0.025467045605182648, -0.053584933280944824, -0.008118212223052979, -0.029026750475168228, 0.05676594749093056, -0.03832364082336426, -0.005651979707181454, -0.033703599125146866, 0.034347373992204666, -0.049305714666843414, 0.013604514300823212, -0.035407714545726776, -0.03211309015750885, -0.02313808910548687, 0.012023475021123886, -0.01754291169345379, -0.01682339794933796, 0.004579807631671429, 0.021945208311080933, 0.033855076879262924, 0.00320468214340508, 0.03995201736688614, 0.04150465503334999, -0.009249554947018623, 0.02580786868929863, -0.0037869212683290243, -0.012354830279946327, 0.047450121492147446, 0.03637337684631348, 0.0032733199186623096, -0.022948741912841797, 0.00024259963538497686, -0.032567523419857025, 0.02395227737724781, 0.01602814346551895, -0.017419837415218353, -0.037812408059835434, -0.05502396449446678, -0.001531336223706603, 0.014579646289348602, -0.012506307102739811, -0.0009757239022292197, 0.022626854479312897, 0.07517038285732269, -0.03544558212161064, 0.07100477069616318, 0.017031678929924965, 0.0710805132985115, -0.03771773353219032, 0.005902863573282957, -0.03465032950043678, -0.02345997653901577, -0.03468819707632065, 0.010915799997746944, -0.00408277427777648, -0.04165613278746605, 0.00031301271519623697, -0.07664728164672852, -0.012638849206268787, -0.042186301201581955, 0.005737185478210449, -0.008771455846726894, 0.0699065625667572, 0.0007337160059250891, -0.006182149052619934, -0.09277956932783127, -0.020278962329030037, -0.039762672036886215, -0.014172552153468132, -0.004442532081156969, 0.055364787578582764, -0.020032813772559166, 0.013121682219207287, -0.022153489291667938, 0.02726583182811737, 0.019142886623740196, 0.0015053012175485492, 0.021396104246377945, -0.05112343654036522, -0.009008138440549374, -0.017419837415218353, -0.003375093452632427, 0.03461245819926262, 0.018991408869624138, -0.06763441115617752, 0.012440036050975323, -0.007133612874895334, -0.01577252708375454, -0.04351172596216202, 0.06191616132855415, -0.02662205509841442, -0.04479927942156792, -0.04767733812332153, -0.016605649143457413, -0.04926784336566925, 0.02185053564608097, -0.0021798464003950357, 0.0024638655595481396, 0.003140777815133333, -0.03713076189160347, 0.04669273644685745, -0.04536731541156769, -0.015062479302287102, 0.03639231249690056, 0.023365303874015808, -0.01002587378025055, 0.07233019173145294, -0.03003028593957424, 0.022626854479312897, 0.01002587378025055, 0.05369854345917702, -0.02450137957930565, 0.0024970010854303837, -0.053281981498003006, -0.07187576591968536, 0.02595934458076954, -0.03260539099574089, 0.06365814805030823, -0.04415550082921982, 0.008113478310406208, -0.02145290933549404, -0.014617515727877617, -0.027493048459291458, 0.06646046787500381, 0.01909554935991764, -0.06127238646149635, 0.02071445807814598, -0.007640113588422537, -0.04820750653743744, -0.01642576977610588, -0.03722543641924858, 0.018413905054330826, 0.02247537672519684, -0.0098649300634861, 0.031582921743392944, 0.061764683574438095, 0.02296767756342888, 0.00034496485022827983, 0.028458712622523308, 0.009817592799663544, 0.013642383739352226, -0.041921216994524, -0.013784392736852169, 0.048169638961553574, 0.02061978541314602, 0.024955810979008675, -0.05695529282093048, -0.005704049952328205, -0.03042791225016117, 0.024823268875479698, -0.0015597381861880422, 0.058621540665626526, -0.027644524350762367, -0.028269367292523384, 0.06608177721500397, 0.06505930423736572, -0.014125215820968151, -0.03447991609573364, 0.010622314177453518, -0.026432709768414497, 0.013131149113178253, -0.02378186583518982, 0.00021390187612269074, 0.08732639998197556, -0.010470837354660034, -0.01088739838451147, 0.012941802851855755, -0.030446846038103104, -0.06093156337738037, 0.03650591894984245, -0.004369160160422325, 0.007209351286292076, -0.01722102425992489, 0.013585579581558704, 0.030882341787219048, -0.0008532406645826995, -0.034025486558675766, 0.019786663353443146, -0.02694394439458847, 0.03868339955806732, 0.0011147749610245228, 0.009997472167015076, -0.03673313558101654, 0.015649450942873955, 0.022267095744609833, -0.08505424857139587, 0.014967805705964565, -0.01697487384080887, 0.0200517475605011, -0.06426405161619186, -0.03487754240632057, -0.00921641942113638, 0.063468798995018, 0.036202967166900635, 0.07096689939498901, 0.010679117403924465, 0.0014461305690929294, 0.034025486558675766, -0.0018899103160947561, -0.016208022832870483, -0.0011686201905831695, -0.013642383739352226, -0.007777389604598284, 0.029007816687226295, -0.01407787948846817, 0.02751198224723339, -0.0394597202539444, -0.007351360749453306, 0.03629763796925545, 0.0015502708265557885, -0.047374382615089417, -0.05835645645856857, 0.027038617059588432, -0.06309010833501816, 0.004553772509098053, 0.015554779209196568, -0.04248925670981407, 0.01894407346844673, -0.010584444738924503, 0.022588985040783882, 0.025864671915769577, 0.05184295028448105, 0.0061442796140909195, 0.021642254665493965, 0.001911211758852005, 0.005964400712400675, -0.0024425641167908907, 0.040330711752176285, -0.023005547001957893, -0.016776060685515404, -0.022039880976080894, 0.002975099952891469, 0.0375283882021904, 0.05422871187329292, 0.0023632755037397146, -0.034517787396907806, -0.036032553762197495, -0.0026106087025254965, 0.04328450933098793, 0.04188334941864014, 0.058280717581510544, 0.03548344969749451, 0.05873514711856842, 0.002403511432930827, 0.04180761054158211, 0.03362786024808884, -0.06081795319914818, 0.01885886676609516, 0.04328450933098793, 0.017258893698453903, -0.006238952744752169, -0.013017541728913784, -0.038058556616306305, 0.0260540172457695, -0.009883863851428032, 0.02054404653608799, -0.0007816441939212382, -0.06763441115617752, 0.019767727702856064, -0.04907849803566933, -0.024804333224892616, 0.03599468618631363, -0.048093900084495544, -0.02239963971078396, -0.0027313169557601213, 0.030711930245161057, -0.036430180072784424, -0.032567523419857025, 0.057485464960336685, 0.018877802416682243, 0.01354771014302969, 0.021244628354907036, 0.017987875267863274, -0.013528776355087757, -0.01819615624845028, 0.001080455956980586, 0.05059326812624931, 0.05066900700330734, -0.02677353285253048, -0.008326493203639984, -0.006986869499087334, 0.007417631801217794, -0.03625977039337158, 0.008771455846726894, -0.04252712428569794, 0.05672807991504669, -0.012714588083326817, 0.03663846105337143, 0.034252703189849854, 0.021471843123435974 ]
729,377
tinytuya.Cloud
_get_hw_addresses
null
def _get_hw_addresses( self, maclist, devices ): while devices: # returns id, mac, uuid (and sn if available) uri = 'devices/factory-infos?device_ids=%s' % (",".join(devices[:50])) result = self._tuyaplatform(uri) log.debug( json.dumps( result, indent=2 ) ) if 'result' in result: for dev in result['result']: if 'id' in dev: dev_id = dev['id'] del dev['id'] maclist[dev_id] = dev devices = devices[50:]
(self, maclist, devices)
[ 0.02616165392100811, 0.009819458238780499, -0.05755563825368881, -0.06777282059192657, -0.046737439930438995, -0.020257605239748955, -0.041964706033468246, -0.04850511997938156, -0.04691420868039131, 0.01691669039428234, -0.019479826092720032, 0.0029166708700358868, 0.01186112780123949, 0.03697985038161278, 0.04415662959218025, 0.01733209565281868, -0.0340455025434494, 0.04129298776388168, 0.06752534955739975, -0.03835863992571831, -0.01999245211482048, 0.05380815640091896, -0.0027531604282557964, 0.006231069564819336, 0.012877543456852436, 0.030474791303277016, 0.007751273922622204, -0.011003803461790085, 0.06317685544490814, -0.001767679350450635, 0.02160104177892208, -0.01946214959025383, 0.04175258427858353, -0.02701013907790184, 0.021424273028969765, -0.0019002552144229412, 0.049919262528419495, 0.015590931288897991, -0.06338898092508316, 0.012656583450734615, 0.048646535724401474, -0.07197990268468857, 0.06356574594974518, -0.0007606545113958418, 0.022378819063305855, 0.0271161999553442, -0.005523997824639082, 0.015387648716568947, 0.024075791239738464, -0.017818206921219826, -0.04539400339126587, -0.002870269352570176, 0.007671728264540434, 0.010464661754667759, -0.019320733845233917, -0.010871227830648422, -0.042282890528440475, -0.028901556506752968, 0.048929363489151, 0.024411650374531746, -0.045676831156015396, -0.019744977355003357, 0.047479864209890366, -0.02117679826915264, -0.0025189430452883244, -0.02647983655333519, 0.0005377611960284412, -0.009421730414032936, -0.028654081746935844, 0.039702076464891434, 0.049919262528419495, 0.03360358253121376, -0.0009291364112868905, -0.031517721712589264, 0.05232330784201622, 0.04702026769518852, -0.00010682030551834032, -0.0164659321308136, -0.025755086913704872, -0.0340455025434494, -0.003495585871860385, 0.06158594787120819, 0.004509791731834412, 0.030244993045926094, 0.023563165217638016, 0.06685362756252289, 0.012647745199501514, 0.05295967310667038, -0.05985362082719803, -0.006270842161029577, 0.0062266504392027855, 0.02170710265636444, -0.02372225560247898, 0.04189400002360344, 0.024694480001926422, -0.019851038232445717, 0.006407837383449078, 0.027399029582738876, 0.021106090396642685, -0.004816926084458828, 0.011083349585533142, -0.06710110604763031, -0.022272760048508644, -0.007711500860750675, 0.007729177828878164, -0.051510173827409744, -0.01323107909411192, 0.04306066781282425, -0.0007054145098663867, 0.05571725219488144, -0.05278290435671806, -0.0499899722635746, 0.05274755135178566, -0.04033844172954559, 0.06635867804288864, -0.01541416347026825, 0.06741929054260254, 0.04192935302853584, 0.03740409389138222, -0.04394450783729553, -0.011976026929914951, -0.01667805388569832, -0.023032860830426216, -0.0372273251414299, -0.004834603052586317, 0.000925269618164748, 0.0068364995531737804, -0.03305560350418091, 0.018224773928523064, -0.02658589743077755, -0.020116189494729042, 0.04192935302853584, -0.004874375648796558, 0.0207525547593832, 0.020045483484864235, -0.059818267822265625, -0.01573234610259533, -0.05204048007726669, 0.04634854942560196, -0.09630316495895386, -0.03485863655805588, 0.006429933477193117, 0.025136400014162064, -0.001979800872504711, -0.04422733560204506, 0.012267693877220154, 0.015661638230085373, -0.0020505080465227365, -0.019497502595186234, -0.004922986961901188, -0.016739923506975174, 0.02308589220046997, -0.038853589445352554, 0.0014185626059770584, -0.06031321734189987, 0.004065662156790495, -0.013416686095297337, -0.04755057394504547, 0.00828599650412798, 0.018542956560850143, -0.03240156173706055, 0.015652799978852272, -0.031747519969940186, 0.02563134953379631, -0.02285609394311905, 0.003245901083573699, -0.08647487312555313, 0.0058156647719442844, 0.031181862577795982, -0.03019196167588234, -0.03321469575166702, 0.00039082285366021097, 0.02720458433032036, -0.03498237207531929, 0.003690030425786972, -0.017508862540125847, -0.036626316606998444, -0.050979871302843094, -0.01988639123737812, 0.00894003827124834, -0.0424950085580349, 0.02688640169799328, 0.03178287297487259, 0.01732325740158558, 0.03595459833741188, 0.03683843836188316, 0.006332710850983858, 0.0648384764790535, 0.04924754425883293, 0.016448255628347397, -0.007061878684908152, -0.0044191982597112656, 0.00994319561868906, 0.04539400339126587, -0.0004482724179979414, -0.014327040873467922, 0.06642939150333405, 0.027823271229863167, -0.046843502670526505, -0.01848992519080639, -0.08166678249835968, 0.013080826960504055, -0.03623742610216141, 0.019939422607421875, 0.02934347651898861, -0.02158336341381073, 0.0065669286996126175, 0.010606075637042522, -0.004001583904027939, 0.002839334774762392, 0.002346594352275133, -0.017941944301128387, -0.05858089029788971, 0.004808087833225727, 0.03240156173706055, -0.03469954431056976, 0.00416951347142458, 0.026214683428406715, -0.011215925216674805, -0.05978291481733322, -0.0818789079785347, -0.05115664005279541, -0.014742445200681686, -0.07855566591024399, 0.003654676955193281, 0.012143956497311592, -0.07148495316505432, 0.021000029519200325, 0.004657834768295288, -0.004286622162908316, 0.08972740173339844, -0.011551784351468086, 0.0393485426902771, 0.020116189494729042, -0.010880066081881523, 0.03542429208755493, 0.004509791731834412, -0.07466677576303482, 0.020452048629522324, 0.010402793064713478, 0.01344320084899664, -0.002328917384147644, 0.07806071639060974, -0.08456578105688095, 0.022679325193166733, 0.025242460891604424, 0.005948240868747234, 0.015343456529080868, -0.011083349585533142, -0.05112128704786301, -0.026143977418541908, 0.01818941906094551, 0.07134353369474411, -0.008763270452618599, -0.02158336341381073, -0.08286880701780319, 0.011940673924982548, -0.00667298911139369, 0.05698997899889946, -0.03878288343548775, 0.006571347825229168, -0.005643316078931093, 0.028866203501820564, 0.029732365161180496, -0.040868744254112244, 0.02359851822257042, -0.02849498949944973, 0.08103042095899582, -0.07615162432193756, 0.03857076168060303, 0.05444452166557312, 0.00839647650718689, -0.01732325740158558, -0.04235359653830528, 0.014406586065888405, 0.023439427837729454, 0.02649751305580139, -0.03659095987677574, -0.03786369040608406, -0.03994955122470856, 0.0013511698925867677, -0.019444473087787628, -0.028441959992051125, 0.031111154705286026, 0.042035412043333054, -0.0574495755136013, 0.030969740822911263, 0.013628806918859482, 0.008604179136455059, -0.028636405244469643, 0.015405325219035149, -0.006814403459429741, -0.03659095987677574, -0.046843502670526505, -0.0027111780364066362, 0.009978549554944038, 0.0446515791118145, 0.017738662660121918, -0.004350700881332159, -0.009678044356405735, -0.0467727929353714, 0.0649091824889183, 0.0027111780364066362, 0.01345203910022974, -0.04090409725904465, 0.006898368243128061, 0.04443945735692978, -0.004684349987655878, -0.0006463077152147889, -0.05363139137625694, -0.024376297369599342, -0.003910990431904793, 0.02669195644557476, -0.017385125160217285, 0.024111146107316017, -0.01175506692379713, -0.015891436487436295, 0.08746477216482162, 0.005616800859570503, 0.07152030616998672, -0.0032923026010394096, 0.03850005567073822, -0.00867488607764244, 0.0435909703373909, 0.06448493897914886, -0.01536113303154707, 0.05713139474391937, 0.006818823050707579, 0.006275261286646128, -0.01388512086123228, -0.028229838237166405, -0.04730309918522835, 0.00693814130499959, 0.027522766962647438, 0.09446477890014648, 0.01414143480360508, -0.02096467651426792, 0.030457114800810814, -0.05893442779779434, -0.010703298263251781, -0.016536640003323555, 0.020487403497099876, -0.012479815632104874, -0.0022162278182804585, 0.01882578432559967, -0.013354817405343056, 0.00431092781946063, 0.04592430964112282, -0.08704052865505219, -0.011834613047540188, 0.03224246948957443, 0.05805058777332306, 0.076575867831707, 0.07152030616998672, 0.09290922433137894, 0.014530323445796967, -0.07388899475336075, 0.043979860842227936, 0.04511117562651634, 0.0553283616900444, -0.005722861737012863, -0.011542946100234985, -0.03775763139128685, 0.01207324955612421, -0.03712126612663269, -0.017941944301128387, -0.02978539653122425, 0.047373805195093155, 0.05582331120967865, -0.04648996517062187, -0.06409604847431183, 0.02094700001180172, 0.017818206921219826, 0.01211744174361229, 0.06816171109676361, 0.0007667308673262596, -0.04394450783729553, 0.020558109506964684, -0.05338391289114952, 0.05914654955267906, -0.026638926938176155, -0.00403693737462163, 0.03469954431056976, 0.005170461721718311, 0.0308460034430027, -0.04055056348443031, 0.00034994527231901884, -0.007061878684908152, -0.0393131859600544, 0.014344717375934124, -0.008003167808055878, 0.04090409725904465, -0.06720716506242752, 0.004083339124917984, 0.02646215818822384, 0.012691937386989594, -0.029219739139080048, -0.01990406960248947, -0.052500076591968536, -0.03155307471752167, -0.014318202622234821, -0.038535408675670624, 0.019851038232445717, 0.05819200351834297, -0.011622491292655468, -0.028035392984747887, 0.03712126612663269, -0.05225260183215141, -0.036007627844810486, -0.009952034801244736, -0.023439427837729454, -0.0135580999776721, -0.011428046971559525, -0.024941954761743546, -0.01574118435382843, 0.02593185566365719, 0.021229827776551247, 0.03751015290617943, 0.04836370423436165, 0.03570712357759476, -0.0019952680449932814, -0.0308283269405365, -0.033232372254133224, 0.03712126612663269, 0.014883860014379025, 0.003022731514647603, -0.001656094565987587, -0.007335869129747152, -0.004856698680669069, -0.04436875134706497, 0.041080866008996964, -0.009359861724078655, 0.016209619119763374, -0.03538893908262253, 0.04076268523931503, 0.010544206947088242, 0.05295967310667038, -0.05458593741059303, 0.048222292214632034, -0.04489905387163162, -0.02639145217835903, -0.006571347825229168, -0.016227295622229576, 0.0068099843338131905, -0.05218189209699631, -0.021724779158830643, -0.03392176702618599, -0.08117183297872543, -0.005784730426967144, -0.003822606522589922, 0.0018196048913523555, -0.06505059450864792, -0.007848495617508888, -0.02349245734512806, 0.08951527625322342, -0.03818187117576599, 0.014627546072006226, 0.027611151337623596, 0.004127531312406063, 0.02893690951168537, 0.02987378090620041, 0.0033033506479114294, 0.014601031318306923, 0.019090935587882996, 0.02296215482056141, 0.00027067589689977467, 0.0035618736874312162, 0.013018958270549774, 0.013425524346530437, 0.0037629473954439163, 0.026197006925940514, 0.005744957830756903, -0.01978033222258091, 0.036626316606998444, -0.01180809736251831, -0.04200005903840065, 0.028123777359724045, -0.015785375609993935, -0.043025314807891846, -0.07275767624378204, 0.01614774949848652, -0.036007627844810486, 0.052500076591968536, -0.013080826960504055, -0.018348511308431625, -0.029007617384195328, 0.047373805195093155, -0.10174761712551117, -0.0371919721364975, 0.011622491292655468, -0.04030308872461319, -0.058333415538072586, -0.01691669039428234, 0.002618375001475215, 0.020363666117191315, -0.05380815640091896, 0.0308283269405365, 0.0023620615247637033, 0.026550542563199997, -0.028883880004286766, 0.010703298263251781, -0.03127024695277214, 0.03637883812189102, -0.0510152243077755, -0.011657845228910446, 0.020929323509335518, 0.011949512176215649, 0.017941944301128387, -0.021777808666229248, 0.01990406960248947, 0.030686913058161736, -0.028689434751868248, 0.03445206955075264, -0.024181852117180824, -0.055257655680179596, -0.02285609394311905, 0.03335610777139664, 0.0048390221782028675, 0.003128792392089963, 0.07318191975355148, 0.007256323471665382, 0.035353586077690125, -0.00988132692873478, 0.03489398956298828, 0.003964020870625973, 0.04401521384716034, -0.021954577416181564, 0.014371233060956001, -0.01514901127666235, 0.009483599103987217, -0.04436875134706497, 0.027310645207762718, 0.019391441717743874, -0.03339146077632904, 0.027593472972512245, -0.03655560687184334, -0.01372602954506874, -0.07035363465547562, -0.007923622615635395, -0.004719703923910856, 0.06353039294481277, -0.05186371132731438, -0.06628797203302383, -0.08753547817468643, -0.04808087646961212, -0.056388970464468, -0.008692562580108643, -0.033638935536146164, -0.003769576083868742, 0.0012948251096531749, 0.02191922254860401, -0.017738662660121918, 0.053101085126399994, 0.03326772525906563, -0.014194464311003685, 0.03160610422492027, 0.008193193934857845, -0.022944476455450058, -0.01636870950460434, 0.02692175656557083, -0.014707092195749283, 0.007278419565409422, -0.03892429918050766, 0.03676772862672806, 0.00006911902164574713, 0.048116229474544525, -0.06759605556726456, 0.0069867526181042194, -0.06635867804288864, -0.0340455025434494, -0.04560612514615059, 0.016306841745972633, -0.014503808692097664, 0.0281768087297678, -0.0680910050868988, -0.042035412043333054, -0.016837146133184433, -0.04818693920969963, 0.04298996180295944, -0.0404091477394104, -0.024747509509325027, 0.05239401385188103, -0.016510125249624252, -0.02319195307791233, 0.0999799445271492, 0.011410369537770748, -0.015794213861227036, -0.032702066004276276, -0.05143946781754494, -0.05444452166557312, -0.05988897383213043, -0.04560612514615059, -0.06932838261127472, 0.04670208692550659, -0.0361136868596077, 0.04560612514615059, 0.010279054753482342, 0.009854812175035477, -0.0628233253955841, 0.02351013384759426, 0.035141464322805405, 0.05921725556254387, 0.07707081735134125, -0.061833422631025314, 0.11666683107614517, 0.0027155973948538303, -0.02541922777891159, -0.07417182624340057, -0.0659697949886322, -0.011843451298773289, 0.016121234744787216, 0.03796974942088127, 0.02987378090620041, 0.0207525547593832, 0.011295470409095287, -0.02202528342604637, -0.0007805408677086234, 0.009510114789009094, -0.017199520021677017, 0.005669831298291683, 0.030916711315512657, 0.02041669562458992, 0.011056833900511265, 0.008573244325816631, 0.022502558305859566, -0.005904048681259155, -0.0164659321308136, 0.028035392984747887, 0.0024548645596951246, 0.07289909571409225, 0.07176777720451355, 0.013266433030366898, 0.04528794437646866, 0.013787898235023022, -0.020575787872076035, -0.01817174255847931, 0.03634348511695862, -0.026108622550964355, -0.033638935536146164, 0.027133876457810402, -0.08597992360591888, 0.05776776000857353, 0.004092177376151085, -0.030881356447935104, 0.07254555821418762, 0.03796974942088127, -0.07523243129253387, -0.04316672682762146, -0.04161117225885391, 0.011710875667631626, 0.010968450456857681, -0.03860611468553543, -0.023244982585310936, 0.08378800004720688, 0.0010611600009724498, -0.006284100003540516, -0.03740409389138222, -0.012930573895573616, -0.03473489731550217, -0.01841921918094158, -0.031941965222358704, 0.0031862419564276934, -0.007746854331344366, -0.07494959980249405, 0.01175506692379713, 0.009589659981429577, 0.014565677382051945, -0.020363666117191315, -0.020239928737282753, 0.004852279555052519, 0.06784353405237198, -0.035989951342344284, 0.026656603440642357, 0.0000030123051146802027, -0.00020701182074844837, -0.0030426180455833673, -0.026532866060733795, 0.026532866060733795, -0.0018593776039779186, -0.009686882607638836, 0.07431323826313019, -0.048116229474544525, 0.016934366896748543, -0.006186877377331257, -0.004825764335691929, -0.005585866514593363, 0.07304050773382187, 0.035477325320243835, -0.0073270308785140514, 0.000967804400715977, -0.007698243483901024, -0.07296980172395706, -0.006032205652445555, 0.0850607305765152, -0.03998490422964096, 0.02669195644557476, -0.00850253738462925, -0.0701415166258812, 0.04698491469025612, 0.02328033559024334, 0.0015025273896753788, 0.023987408727407455, -0.008736754767596722, 0.00904168002307415, 0.03351520001888275, 0.01333713997155428, -0.0034359267447143793, 0.020027806982398033, -0.039277832955121994, -0.010217186063528061, 0.02540155127644539, 0.014857344329357147, 0.019497502595186234, -0.014848506078124046, 0.024058114737272263, -0.04458087310194969, -0.013655322603881359, 0.005837760865688324, 0.02670963481068611, 0.02243185043334961, 0.05773240700364113, 0.037899043411016464, 0.04139905050396919, -0.0031486786901950836, -0.03538893908262253, -0.015555577352643013, -0.01777401566505432, -0.000029587912649731152, -0.027947010472416878, 0.03666166961193085, -0.02860105037689209, -0.006571347825229168, -0.01596214435994625, 0.058121293783187866, -0.02934347651898861, -0.011401531286537647, 0.030686913058161736, -0.020345989614725113, -0.03687379136681557, 0.014963405206799507, -0.00033668766263872385, 0.008856073021888733, 0.03659095987677574, 0.06954050064086914, 0.00850253738462925, -0.005139527376741171, 0.056424323469400406, -0.006058720871806145, 0.020133867859840393, -0.016209619119763374, 0.0106414295732975, 0.0404091477394104, 0.003915409557521343, 0.017491186037659645, 0.07304050773382187, 0.015016435645520687, 0.004244640003889799, -0.013018958270549774, -0.00823738519102335, 0.0061559430323541164, -0.04751522094011307, 0.06232837215065956, -0.02955559827387333, 0.005780311301350594, -0.006845338270068169, 0.016837146133184433, 0.004816926084458828, 0.013549261726439 ]
729,378
tinytuya.Cloud
_getdevice
null
def _getdevice(self, param='status', deviceid=None): if not self.token: return self.error if not deviceid: return error_json( ERR_PARAMS, "Missing DeviceID Parameter" ) uri = 'iot-03/devices/%s/%s' % (deviceid, param) response_dict = self._tuyaplatform(uri) if not response_dict['success']: log.debug( "Error from Tuya Cloud: %r", response_dict['msg'], ) return response_dict
(self, param='status', deviceid=None)
[ 0.02761833742260933, 0.014908136799931526, 0.01753845438361168, -0.02241174876689911, 0.026375241577625275, -0.011944524943828583, -0.002009896095842123, 0.040679845958948135, -0.05927222967147827, -0.04147254303097725, -0.0018297373317182064, -0.014502779580652714, 0.0073279570788145065, -0.00926916766911745, 0.03165389224886894, -0.04298587888479233, -0.02003365382552147, 0.058335404843091965, 0.03208627179265022, -0.025312304496765137, 0.021601034328341484, 0.047597941011190414, 0.03758111596107483, 0.015241430141031742, -0.0274201612919569, 0.06741540133953094, 0.046733178198337555, -0.020664209499955177, 0.04968778416514397, -0.057362545281648636, 0.027924606576561928, 0.012890358455479145, 0.039923179894685745, 0.056497782468795776, -0.06424461305141449, 0.06265921145677567, 0.004287778399884701, 0.03219436854124069, -0.12272413820028305, -0.011647263541817665, -0.09598857909440994, -0.01713309809565544, 0.054443974047899246, -0.009575437754392624, 0.022700002416968346, -0.006719921249896288, -0.021402860060334206, -0.02327650971710682, -0.06849635392427444, 0.04529191181063652, 0.018682463094592094, 0.03772524371743202, -0.03543722629547119, 0.004621071740984917, -0.03772524371743202, -0.02947397157549858, -0.034176114946603775, -0.057362545281648636, 0.002519970526918769, 0.044571276754140854, -0.02124071680009365, 0.0098096439614892, -0.004053571727126837, 0.02295222505927086, -0.0015910270158201456, -0.035257067531347275, 0.011169842444360256, 0.03480667248368263, -0.019871510565280914, 0.07051413506269455, 0.020970478653907776, 0.01571885123848915, -0.013043493963778019, -0.04803032428026199, 0.05242619663476944, -0.05415572226047516, -0.04147254303097725, -0.03572548180818558, -0.04071587696671486, -0.007363989017903805, -0.004693135619163513, 0.03365365415811539, 0.03174397349357605, 0.04147254303097725, -0.025618573650717735, 0.06337984651327133, 0.00541377067565918, -0.023204447701573372, -0.07775651663541794, -0.028951510787010193, -0.03424817696213722, -0.04233730584383011, -0.02655540034174919, 0.029401907697319984, 0.020015636458992958, -0.02469976432621479, -0.01951119303703308, 0.07681968808174133, 0.0006395635427907109, -0.008584564551711082, -0.012854326516389847, -0.06413651257753372, -0.020448017865419388, -0.0036504666786640882, 0.059740640223026276, -0.06273127347230911, 0.005913711152970791, 0.05905603989958763, 0.05880381539463997, 0.0424814336001873, -0.05581318214535713, 0.000056721855798969045, -0.027348099276423454, -0.0005917088710702956, -0.000298669416224584, -0.01690789870917797, 0.015403573401272297, 0.009926747530698776, -0.0656498521566391, -0.010043850168585777, -0.026032939553260803, -0.007192838005721569, 0.023456668481230736, -0.07127080112695694, 0.012142700143158436, 0.03543722629547119, -0.041868895292282104, -0.01083654910326004, 0.013457858934998512, 0.027113892138004303, -0.01690789870917797, 0.03347349539399147, 0.02383500337600708, 0.01489012036472559, -0.03206825628876686, -0.02621309831738472, -0.0044251494109630585, 0.035527303814888, 0.01981746219098568, 0.03107738494873047, 0.028573177754878998, 0.0025537502951920033, -0.032554686069488525, -0.08287302404642105, 0.0011924257269129157, -0.007697282824665308, -0.007201846223324537, -0.0522100068628788, 0.016088176518678665, 0.032014209777116776, -0.011566191911697388, 0.004990397486835718, 0.05451603978872299, -0.03583357483148575, -0.03790540248155594, 0.0018759029917418957, 0.02197936736047268, -0.04936349764466286, 0.04276968911290169, -0.014637898653745651, 0.02763635292649269, -0.03392389416694641, -0.015250437892973423, -0.006751449313014746, 0.017709605395793915, 0.0006063468172214925, -0.08532318472862244, 0.06856842339038849, 0.011737342923879623, -0.045327942818403244, -0.029005559161305428, 0.020015636458992958, 0.00766125088557601, -0.030951272696256638, 0.010602342896163464, -0.03087921068072319, -0.0076252189464867115, -0.02091643027961254, 0.006197460927069187, 0.0022902681957930326, 0.010106906294822693, 0.028447067365050316, 0.02338460646569729, 0.10600540786981583, 0.02251984365284443, 0.03498683124780655, 0.05631762370467186, 0.025726670399308205, 0.011241906322538853, 0.017268216237425804, 0.016070161014795303, -0.0055083539336919785, 0.0037112701684236526, 0.03632000461220741, 0.02253785915672779, 0.011791390366852283, 0.08863810449838638, 0.00299063534475863, 0.019313018769025803, 0.026483336463570595, -0.007710794452577829, 0.01321464404463768, -0.024861907586455345, 0.03311317786574364, -0.0304288137704134, -0.003603175049647689, 0.02774444781243801, 0.03977905213832855, -0.019114842638373375, 0.04010333865880966, -0.025294288992881775, -0.039274606853723526, -0.024988017976284027, 0.03349151089787483, 0.028555162250995636, -0.04345428943634033, -0.010593334212899208, 0.009134048596024513, -0.006602818146348, -0.05080476775765419, -0.008787242695689201, -0.03305913135409355, 0.057362545281648636, -0.019655318930745125, -0.007764842361211777, 0.013854208402335644, 0.009629485197365284, 0.019439129158854485, -0.06928905844688416, 0.005593929439783096, 0.04712953045964241, -0.0228621456772089, 0.08827778697013855, 0.01371008064597845, -0.06208270415663719, -0.04313000664114952, 0.017070041969418526, -0.036013733595609665, 0.013502898626029491, -0.03473460674285889, 0.05891191214323044, -0.023546747863292694, 0.024105241522192955, 0.025276273488998413, -0.022483812645077705, -0.013800160028040409, 0.004118879325687885, 0.050660640001297, -0.018574366346001625, -0.07238778471946716, -0.04158063977956772, 0.003832877380773425, 0.04929143562912941, 0.015493652783334255, -0.004296786151826382, -0.08150381594896317, 0.021925320848822594, -0.04331016540527344, 0.027492225170135498, -0.02828492410480976, -0.042625561356544495, 0.06435270607471466, -0.029834289103746414, 0.07206349819898605, -0.06655064225196838, -0.015610755421221256, 0.018160002306103706, 0.04925540089607239, 0.006895576138049364, 0.025600558146834373, 0.026375241577625275, 0.04842667281627655, -0.0027812006883323193, -0.03379778191447258, -0.006864048540592194, -0.026915717869997025, 0.02329452708363533, 0.002378095407038927, 0.04875095933675766, -0.03210429102182388, -0.1271200180053711, -0.03941873461008072, 0.02241174876689911, 0.035058893263339996, -0.05966857820749283, -0.042949847877025604, 0.03132960572838783, 0.05015619471669197, -0.0070126792415976524, 0.03012254275381565, -0.023456668481230736, 0.01893468387424946, -0.08481874316930771, 0.04233730584383011, -0.027348099276423454, 0.007165814284235239, -0.09281779080629349, 0.01636742241680622, 0.05588524416089058, -0.03361762315034866, -0.046516988426446915, 0.05847952887415886, -0.06316366046667099, -0.01267416775226593, -0.031113415956497192, 0.037004608660936356, 0.058983974158763885, -0.0370766706764698, -0.046084608882665634, -0.04104016348719597, -0.0059902784414589405, -0.011575199663639069, 0.02133079618215561, 0.01364702545106411, -0.028194844722747803, -0.006413651630282402, -0.018232066184282303, 0.02251984365284443, 0.04712953045964241, 0.09598857909440994, 0.01755646988749504, 0.03999524191021919, 0.05873175337910652, 0.03913047909736633, 0.05956048145890236, -0.01213369145989418, 0.0357615128159523, 0.00021393851784523576, -0.011088770814239979, 0.049219369888305664, -0.019961589947342873, 0.032464608550071716, -0.028573177754878998, -0.021384844556450844, 0.05116508528590202, -0.03304111585021019, 0.01419650949537754, -0.002932083560153842, -0.06204667314887047, 0.049003180116415024, -0.023330558091402054, -0.02587079629302025, 0.004805734846740961, 0.010467223823070526, 0.010052857920527458, -0.009485358372330666, 0.0088232746347785, -0.015187382698059082, 0.045327942818403244, -0.00871517974883318, -0.01306150946766138, 0.06864048540592194, 0.02880738489329815, 0.07285619527101517, 0.04831857606768608, -0.029924368485808372, -0.043922703713178635, 0.05253429338335991, -0.03621190786361694, 0.03794143348932266, -0.05285857617855072, 0.03628397360444069, -0.03424817696213722, 0.028843415901064873, -0.030681034550070763, -0.02493397146463394, -0.04428302124142647, -0.011277938261628151, -0.005224603693932295, 0.0011152952210977674, -0.047814130783081055, 0.03783333674073219, 0.014538811519742012, 0.025600558146834373, 0.028086749836802483, 0.016106192022562027, -0.04168873652815819, -0.055092547088861465, -0.010980675928294659, 0.0625511184334755, -0.005188572220504284, 0.014457739889621735, 0.000054505060688825324, 0.014538811519742012, 0.005148036405444145, -0.02327650971710682, -0.04226524382829666, -0.04017540067434311, -0.03837381303310394, -0.009404286742210388, -0.0020290380343794823, 0.015763889998197556, -0.03675238415598869, 0.06939715147018433, 0.000840553198941052, 0.011773373931646347, -0.022141510620713234, -0.03704063966870308, 0.005220099817961454, -0.009233135730028152, -0.031023336574435234, -0.022483812645077705, -0.03920254483819008, 0.08438635617494583, 0.00932321511209011, -0.010521271266043186, 0.036356035619974136, -0.05012016370892525, -0.05581318214535713, -0.04702143371105194, -0.013565953820943832, 0.01360198576003313, -0.03372571989893913, 0.04006730765104294, 0.010034842416644096, 0.061794452369213104, 0.01310654915869236, 0.11465302854776382, 0.020430002361536026, 0.05188572034239769, -0.03502286225557327, -0.04911127686500549, 0.00761170731857419, -0.03477063775062561, -0.016862859949469566, 0.03804952651262283, 0.02176317758858204, 0.012367898598313332, 0.030572939664125443, -0.013827184215188026, 0.012890358455479145, 0.011034723371267319, -0.01039515994489193, -0.060281116515398026, 0.011331985704600811, -0.010683413594961166, 0.010124921798706055, 0.013899247162044048, 0.05880381539463997, -0.008327838033437729, -0.016403453424572945, 0.01217873115092516, -0.014421707950532436, 0.023330558091402054, -0.04331016540527344, 0.018141986802220345, -0.009332222864031792, 0.04529191181063652, 0.008539524860680103, -0.027258019894361496, 0.029708178713917732, -0.03347349539399147, 0.03747301921248436, -0.030681034550070763, 0.04064381495118141, -0.056930165737867355, -0.052822545170784, 0.02251984365284443, 0.03174397349357605, -0.013610993511974812, 0.017574485391378403, 0.059524450451135635, -0.022501828148961067, -0.022069446742534637, -0.0075981952250003815, 0.04042762517929077, 0.024627700448036194, -0.007809882052242756, 0.01788075640797615, -0.029437940567731857, -0.01526845432817936, 0.027546273544430733, -0.03704063966870308, 0.07393714785575867, 0.04777809977531433, -0.014592858962714672, -0.012836311012506485, -0.0034973316360265017, -0.042841751128435135, -0.042517464607954025, -0.003787837689742446, 0.026339208707213402, 0.019997620955109596, -0.0025424903724342585, -0.010332104749977589, -0.01810595393180847, 0.0207002405077219, -0.014151469804346561, 0.01732226461172104, -0.0608576275408268, -0.046841274946928024, 0.0318160355091095, -0.018132979050278664, -0.044679369777441025, -0.03549127280712128, 0.013980318792164326, -0.03650016337633133, -0.025384368374943733, -0.030897226184606552, 0.0522100068628788, 0.02122270129621029, -0.015619764104485512, -0.015178374946117401, -0.005224603693932295, -0.02307833544909954, -0.03686048090457916, -0.05765080079436302, 0.04212111607193947, 0.012376906350255013, 0.027690399438142776, -0.003983760252594948, 0.052606355398893356, 0.0008855928317643702, -0.01625031977891922, -0.012340874411165714, -0.011052739806473255, 0.0009818652179092169, -0.015835953876376152, -0.027456194162368774, 0.04842667281627655, 0.0030018952675163746, 0.05804714933037758, 0.04979587718844414, 0.027366114780306816, 0.02805071696639061, -0.016322383657097816, -0.06392032653093338, -0.0013151589082553983, -0.022880161181092262, 0.002722649136558175, -0.058659687638282776, 0.0013996083289384842, -0.003137014340609312, -0.008854802697896957, -0.018214048817753792, -0.12964223325252533, -0.05044445022940636, -0.032122306525707245, -0.032770875841379166, -0.06709112226963043, 0.05739857628941536, -0.02686166949570179, 0.013223652727901936, -0.03419413045048714, -0.03390587866306305, -0.03131159022450447, -0.015646787360310555, 0.018015874549746513, 0.023024288937449455, 0.01035012025386095, 0.02154698595404625, -0.03931063786149025, -0.0027947125490754843, 0.006719921249896288, -0.0742974653840065, 0.03682444989681244, -0.035293098539114, -0.0010922123910859227, -0.02392508275806904, -0.022141510620713234, 0.0018128474475815892, 0.010971668176352978, 0.0032541174441576004, 0.013232660479843616, 0.024195320904254913, -0.03615786135196686, -0.023150399327278137, 0.012142700143158436, -0.014466747641563416, -0.042013019323349, -0.007553155533969402, -0.028897464275360107, -0.02988833747804165, 0.03055492416024208, -0.03758111596107483, 0.03678841516375542, 0.016727739945054054, 0.007580179255455732, 0.02253785915672779, 0.013385795056819916, -0.023582780733704567, 0.06269524246454239, 0.0217811930924654, 0.022790081799030304, 0.008057599887251854, -0.042085085064172745, 0.03401397168636322, -0.016169248148798943, 0.03305913135409355, -0.07422540336847305, 0.004738175310194492, -0.045544132590293884, -0.015061271376907825, -0.015259446576237679, -0.01787174865603447, 0.06968540698289871, 0.024249367415905, 0.021384844556450844, 0.004141399171203375, -0.02666349522769451, 0.00707123102620244, 0.047273654490709305, 0.04442714899778366, -0.0742974653840065, 0.022033415734767914, 0.01201658882200718, -0.040463656187057495, -0.05404762551188469, -0.044463180005550385, -0.061037786304950714, 0.021583018824458122, -0.045760322362184525, -0.029852304607629776, 0.05019222944974899, 0.0023285518400371075, 0.01527746208012104, 0.003643710631877184, -0.0056930165737867355, -0.001053928746841848, -0.06129000708460808, 0.03154579550027847, 0.028104765340685844, -0.014079405926167965, 0.02956405095756054, -0.016862859949469566, -0.016970954835414886, 0.046841274946928024, -0.017034009099006653, -0.038193654268980026, 0.038950320333242416, 0.007386508863419294, 0.03826572000980377, 0.011187858879566193, 0.006981151644140482, -0.0320502407848835, -0.03023063763976097, 0.02372690662741661, -0.04561619460582733, -0.023132383823394775, 0.07465778291225433, -0.019331034272909164, 0.06777571886777878, 0.004476944915950298, 0.027005797252058983, 0.05102095752954483, 0.00931420736014843, -0.06215476989746094, 0.052137941122055054, -0.008242262527346611, -0.05019222944974899, -0.0032969051972031593, 0.003265377366915345, 0.0005672185798175633, 0.0342121459543705, 0.0019817461725324392, -0.018502304330468178, 0.02632119320333004, 0.044174924492836, -0.047273654490709305, 0.05188572034239769, 0.015655795112252235, -0.002348819747567177, -0.002122495323419571, -0.0741533413529396, -0.031581830233335495, -0.050660640001297, -0.014385676011443138, -0.07173921167850494, -0.0036662304773926735, -0.03650016337633133, 0.06763159483671188, 0.024970002472400665, 0.05188572034239769, -0.006053334102034569, -0.04071587696671486, -0.038842227309942245, 0.009719564579427242, -0.02219555899500847, 0.026086987927556038, -0.0020436758641153574, 0.020448017865419388, 0.018826588988304138, 0.031221510842442513, 0.05257032439112663, -0.014502779580652714, 0.005715536419302225, 0.05365127697587013, -0.0011879217345267534, -0.007818889804184437, -0.05246222764253616, -0.02612301893532276, -0.07984635978937149, -0.024231351912021637, 0.030843177810311317, -0.03507690876722336, -0.025636591017246246, -0.01489012036472559, 0.03974302113056183, -0.014016350731253624, 0.07501810044050217, -0.024411510676145554, -0.03075309842824936, 0.004670615773648024, 0.0282669086009264, 0.052173975855112076, -0.011241906322538853, 0.002878036117181182, -0.03141968697309494, -0.03859000280499458, -0.04939952865242958, 0.01658361218869686, -0.01267416775226593, 0.015448613092303276, -0.02729405090212822, 0.01414246205240488, -0.01295341458171606, -0.05894794315099716, 0.024735797196626663, 0.030140558257699013, 0.05851556360721588, -0.006850536447018385, -0.04374254494905472, 0.027330081909894943, 0.03714873269200325, 0.05624556168913841, 0.05880381539463997, 0.052390165627002716, 0.002235094550997019, -0.03615786135196686, -0.005566905252635479, -0.007881944999098778, -0.012764247134327888, -0.05393952876329422, 0.0010010070400312543, 0.01039515994489193, -0.0004188691091258079, 0.010269048623740673, -0.02143889106810093, 0.06957730650901794, 0.055092547088861465, -0.020772304385900497, 0.05300270393490791, 0.030681034550070763, 0.029095638543367386, 0.020321907475590706, 0.02761833742260933, 0.042013019323349, -0.02415928803384304, 0.043814606964588165, 0.013169604353606701, 0.03869809955358505, -0.054768260568380356, 0.013574961572885513, -0.01158420741558075, 0.04363444820046425, 0.0061479173600673676, -0.0392385758459568, 0.038734130561351776, 0.010431191883981228, 0.03033873438835144, -0.020952463150024414, 0.02491595596075058, 0.0014795537572354078, 0.005620953161269426, -0.037004608660936356, 0.05826333910226822, -0.02707786113023758, 0.011845437809824944 ]
729,379
tinytuya.Cloud
_gettoken
null
def _gettoken(self): # Get Oauth Token from tuyaPlatform self.token = None response_dict = self._tuyaplatform('token?grant_type=1') if not response_dict or 'success' not in response_dict or not response_dict['success']: self.error = error_json( ERR_CLOUDTOKEN, "Cloud _gettoken() failed: %r" % response_dict['msg'], ) return self.error if 't' in response_dict: # round it to 2 minutes to try and factor out any processing delays self.server_time_offset = round( ((response_dict['t'] / 1000.0) - time.time()) / 120 ) self.server_time_offset *= 120 log.debug("server_time_offset: %r", self.server_time_offset) self.token = response_dict['result']['access_token'] return self.token
(self)
[ 0.01465886551886797, -0.02077619545161724, -0.00037286357837729156, 0.08802894502878189, 0.04882500693202019, -0.013588805682957172, 0.010236584581434727, 0.04844622313976288, 0.00459746690467, -0.030435137450695038, 0.04382508248090744, -0.006344599183648825, 0.008693047799170017, -0.034582801163196564, 0.0454159677028656, 0.02424205094575882, 0.01288805902004242, 0.0048294709995388985, 0.0009972620755434036, -0.025264762341976166, 0.012263068929314613, 0.017016783356666565, -0.03488582745194435, -0.046968974173069, 0.0026135961525142193, 0.05719608813524246, -0.01838039979338646, -0.004552486818283796, 0.028768496587872505, -0.05908999964594841, -0.02623065747320652, 0.027310185134410858, 0.017414504662156105, 0.049923475831747055, -0.0336737260222435, 0.011865347623825073, -0.02234814129769802, 0.03282146528363228, -0.08568049967288971, -0.037404727190732956, -0.04802956432104111, -0.03414720296859741, 0.02657156065106392, 0.0011233255499973893, -0.002890580566599965, -0.03787820413708687, -0.0004974473849870265, 0.030056355521082878, -0.04302963986992836, -0.01157179195433855, 0.023995842784643173, 0.03909030929207802, -0.05999907851219177, -0.0321207195520401, -0.030302563682198524, -0.0033664254005998373, -0.002227711956948042, -0.026003386825323105, -0.0649232417345047, 0.045605357736349106, -0.038863036781549454, 0.021022403612732887, -0.0013707175385206938, 0.03558657318353653, 0.032688889652490616, 0.04094633832573891, -0.009654207155108452, 0.02577611804008484, 0.02937454730272293, 0.05272646248340607, 0.022859496995806694, 0.028844252228736877, -0.023579182103276253, -0.002968704327940941, 0.0438629612326622, -0.07590792328119278, -0.05329463258385658, -0.03016998991370201, -0.03208284080028534, 0.014895603992044926, -0.06208237633109093, 0.017026253044605255, 0.03721533715724945, -0.008569943718612194, 0.02901470474898815, 0.0254730936139822, -0.0265905000269413, -0.059279389679431915, -0.06064300611615181, -0.02420417219400406, -0.024071598425507545, 0.012944876216351986, -0.045150820165872574, 0.011600200086832047, -0.030207868665456772, -0.05515066534280777, -0.031003311276435852, 0.03534036502242088, -0.01879705861210823, -0.015340672805905342, 0.003619736060500145, 0.05552944913506508, -0.04534021019935608, 0.026817768812179565, 0.02933667041361332, -0.00936065148562193, 0.008290592581033707, 0.01636338420212269, 0.04905227571725845, 0.03414720296859741, -0.07079436630010605, -0.0289200097322464, 0.020662561058998108, 0.03912818431854248, 0.019327353686094284, 0.0028479674365371466, -0.01191269513219595, 0.034677498042583466, -0.00841369666159153, -0.0012618177570402622, 0.0028598045464605093, 0.0009724045521579683, 0.028635922819375992, -0.070642851293087, -0.01645807921886444, 0.05295373126864433, 0.03297297656536102, -0.037328969687223434, -0.00028097935137338936, -0.02346554771065712, -0.026893526315689087, 0.05355978012084961, 0.05844607204198837, 0.025510970503091812, -0.04094633832573891, -0.010833166539669037, 0.034696437418460846, 0.027310185134410858, -0.054620370268821716, -0.015283855609595776, 0.014999769628047943, 0.02431780844926834, -0.0007386250072158873, -0.05992332100868225, -0.009654207155108452, 0.004230522084981203, -0.026723073795437813, -0.037328969687223434, 0.041211485862731934, -0.008300061337649822, 0.04825683310627937, -0.07083224505186081, 0.04708261042833328, -0.025605667382478714, -0.04352205619215965, -0.01724405214190483, 0.012414582073688507, -0.02501855418086052, -0.0023673877585679293, -0.01683686301112175, -0.06287781894207001, -0.006567133590579033, -0.0262495968490839, -0.0407569482922554, 0.07280191034078598, 0.01349411066621542, 0.022594349458813667, -0.01756601780653, -0.00021395267685875297, -0.06863530725240707, 0.008854030631482601, 0.038541074842214584, -0.022537531331181526, -0.008266918361186981, -0.016164524480700493, -0.04105997458100319, -0.002731965621933341, 0.029582878574728966, 0.003532142611220479, 0.02041635289788246, -0.03729109466075897, -0.009450612589716911, -0.034601740539073944, 0.009038686752319336, 0.0025780852884054184, 0.05193101987242699, 0.09265009313821793, 0.02153375931084156, 0.0026585764717310667, 0.03554869443178177, -0.012244129553437233, -0.008162752725183964, 0.016638001427054405, -0.001486719585955143, 0.013844483532011509, 0.029582878574728966, 0.03132527694106102, 0.052234046161174774, 0.020492108538746834, 0.026401108130812645, -0.01154338289052248, 0.044355377554893494, -0.020113326609134674, -0.01678004488348961, -0.009199668653309345, -0.03471537306904793, -0.022177688777446747, 0.0073010241612792015, -0.04825683310627937, 0.0447341613471508, -0.03602217137813568, -0.032366927713155746, -0.024867041036486626, 0.05992332100868225, 0.007211063057184219, -0.018323581665754318, -0.024355685338377953, -0.01039756741374731, 0.02189360186457634, 0.014232735149562359, 0.052271921187639236, -0.010823696851730347, 0.023370852693915367, -0.07382462173700333, 0.05765062943100929, 0.011675956659018993, -0.001319818664342165, 0.009147586300969124, -0.06882470101118088, -0.07515035569667816, -0.04530233144760132, -0.011808530427515507, 0.02191254124045372, 0.012783894315361977, -0.04223419725894928, -0.07283978909254074, 0.0821957066655159, -0.0121304951608181, -0.014734622091054916, -0.01801108568906784, 0.015889907255768776, 0.020567866042256355, 0.005662791430950165, 0.04079482704401016, -0.044469013810157776, 0.028882130980491638, -0.009905150160193443, 0.031438909471035004, 0.025643544271588326, -0.01676110550761223, -0.029848026111721992, -0.009199668653309345, -0.028749557211995125, -0.003338016802445054, 0.017774347215890884, -0.08211994916200638, 0.008432635106146336, -0.02195041999220848, 0.027461698278784752, 0.008266918361186981, 0.008607822470366955, 0.011884286999702454, -0.011202478781342506, 0.0454159677028656, -0.03846531733870506, -0.008124874904751778, 0.008380552753806114, 0.027575332671403885, 0.020492108538746834, -0.024033721536397934, 0.10825590789318085, 0.02575717866420746, 0.003480060026049614, -0.033029794692993164, -0.023654939606785774, -0.06605958938598633, -0.0021424859296530485, 0.008200631476938725, -0.0321207195520401, -0.021363306790590286, -0.0897713452577591, -0.05530218034982681, 0.031211640685796738, 0.0019720341078937054, -0.0531810000538826, 0.0004933044547215104, 0.011268765665590763, -0.034696437418460846, 0.004320482723414898, 0.009914619848132133, -0.03996150568127632, -0.011846408247947693, 0.011013087816536427, 0.01999969221651554, 0.039658479392528534, -0.027613211423158646, -0.03282146528363228, 0.01249980740249157, -0.005553891882300377, 0.01328578032553196, -0.023579182103276253, 0.06863530725240707, -0.05329463258385658, 0.008674109354615211, 0.06852167099714279, 0.006586072966456413, 0.024033721536397934, 0.01191269513219595, -0.015558472834527493, 0.0006687870481982827, -0.008030179888010025, -0.026495805010199547, 0.05602186545729637, -0.003761779284104705, -0.04730987921357155, -0.010643775574862957, 0.025207946076989174, 0.010492262430489063, 0.05935514718294144, 0.0375562384724617, 0.006259373389184475, -0.012196782045066357, 0.07295342534780502, -0.008915582671761513, 0.07416552305221558, -0.004656651988625526, -0.01962091028690338, 0.018143659457564354, -0.04234783351421356, 0.06518839299678802, -0.054620370268821716, -0.00883509125560522, -0.06105966493487358, 0.021363306790590286, 0.010861575603485107, -0.026344291865825653, -0.010350219905376434, -0.011287705041468143, -0.007083224132657051, -0.017414504662156105, -0.038181230425834656, -0.059620294719934464, -0.025908691808581352, 0.021363306790590286, -0.0073152282275259495, -0.02034059539437294, 0.009142851456999779, -0.0580294094979763, 0.0353214256465435, -0.0270261000841856, -0.03713957965373993, 0.042802371084690094, 0.04727200046181679, 0.025189006701111794, 0.06174147501587868, -0.019355762749910355, -0.004370198119431734, 0.03789714351296425, -0.029109399765729904, 0.0164486113935709, -0.02316252328455448, -0.020226961001753807, 0.04098421707749367, 0.059620294719934464, -0.07727153599262238, -0.0230488870292902, -0.029204096645116806, -0.0038517399225383997, 0.044431135058403015, 0.00017281931650359184, -0.05397644266486168, -0.01327631063759327, 0.017338749021291733, 0.024734467267990112, -0.006879629101604223, 0.048673491925001144, -0.06056724861264229, -0.012196782045066357, -0.08075633645057678, 0.015151281841099262, 0.025586728006601334, 0.01717776618897915, -0.0037925553042441607, 0.0032883016392588615, 0.024564016610383987, -0.015350142493844032, -0.045264456421136856, -0.04651443660259247, 0.03721533715724945, 0.02077619545161724, -0.04503718391060829, -0.017461853101849556, -0.03666610270738602, 0.06075664237141609, -0.01099414937198162, 0.033067673444747925, -0.0946197584271431, -0.01349411066621542, 0.0063067213632166386, 0.026306413114070892, 0.04409023001790047, 0.028484409675002098, 0.0234844870865345, 0.018153129145503044, -0.03770775347948074, 0.004076641984283924, 0.019867118448019028, -0.032366927713155746, -0.05242343619465828, 0.011230887845158577, -0.07503672689199448, -0.042044807225465775, 0.02937454730272293, -0.021344369277358055, 0.03677973523736, 0.02035953477025032, -0.029071522876620293, 0.08719562739133835, 0.04503718391060829, 0.014223266392946243, -0.026742013171315193, -0.03560551255941391, -0.02583293616771698, -0.03058665059506893, -0.0485219806432724, 0.03727215528488159, 0.009256486780941486, 0.030321503058075905, -0.04738563299179077, -0.030283624306321144, 0.025340519845485687, 0.05552944913506508, -0.005894795525819063, -0.021609516814351082, 0.023276157677173615, 0.034222956746816635, -0.028749557211995125, 0.017452383413910866, -0.00025286662275902927, 0.00785025767982006, 0.041666027158498764, 0.053370390087366104, 0.0223670806735754, 0.03295403718948364, 0.09416522085666656, -0.00879247859120369, -0.07136254012584686, 0.062423281371593475, 0.05935514718294144, -0.028010932728648186, -0.007267880719155073, 0.0828775092959404, 0.0136835016310215, -0.0121304951608181, 0.011107783764600754, -0.012670259922742844, -0.05977180600166321, 0.021230733022093773, 0.03827592730522156, 0.019412580877542496, 0.01020817644894123, 0.03183663263916969, 0.05609762296080589, -0.017480792477726936, 0.021742090582847595, 0.034696437418460846, 0.040075141936540604, 0.051135577261447906, -0.027120795100927353, -0.06291569769382477, -0.01680845394730568, -0.013759258203208447, -0.07795334607362747, 0.013049041852355003, 0.014564169570803642, -0.042423591017723083, 0.019753484055399895, 0.02153375931084156, -0.0029616020619869232, -0.04268873855471611, -0.025264762341976166, 0.06655200570821762, -0.0006930527742952108, -0.008948725648224354, -0.021041342988610268, 0.030359381809830666, -0.0022312630899250507, -0.04545384645462036, 0.025965509936213493, -0.07662761211395264, -0.014299022033810616, 0.07708214968442917, -0.012064208276569843, 0.022158749401569366, -0.059620294719934464, 0.02820032276213169, -0.014488412998616695, -0.032669950276613235, -0.022954192012548447, 0.04310539737343788, -0.008030179888010025, 0.0035865926183760166, 0.007604049518704414, -0.011268765665590763, 0.01918531022965908, -0.006562399212270975, -0.06408992409706116, -0.0242609903216362, 0.01921371929347515, -0.013749788515269756, 0.002473920350894332, 0.029810147359967232, 0.005118292290717363, -0.04583262652158737, 0.005880591459572315, 0.019071675837039948, 0.006363538559526205, -0.017461853101849556, -0.04927954450249672, 0.06359750777482986, -0.02933667041361332, 0.029488181695342064, 0.015264916233718395, -0.026022326201200485, -0.016183463856577873, 0.02621171809732914, -0.03939333185553551, 0.04181753844022751, -0.0704534649848938, 0.005435522645711899, 0.015605820342898369, -0.05992332100868225, -0.021836785599589348, -0.0008321368368342519, -0.014175917953252792, -0.06060512736439705, -0.08113511651754379, -0.012045268900692463, 0.020814074203372, -0.00922334287315607, -0.003449284005910158, -0.09280160069465637, -0.013967588543891907, 0.01116460096091032, -0.06742320209741592, -0.01310585904866457, -0.023730695247650146, -0.019696665927767754, -0.029999539256095886, 0.034279774874448776, 0.0866653323173523, -0.03195026516914368, 0.030435137450695038, -0.03882516175508499, -0.03804865851998329, 0.038124412298202515, 0.04344630241394043, -0.028711678460240364, 0.0127365468069911, -0.0222723837941885, 0.030416198074817657, 0.014980830252170563, -0.04768865928053856, 0.010605897754430771, -0.04382508248090744, -0.06613534688949585, -0.06212025508284569, 0.05833243578672409, -0.012424050830304623, 0.002222977112978697, 0.0429917611181736, -0.014554699882864952, 0.0390145517885685, -0.01350358035415411, 0.01234829518944025, 0.07590792328119278, -0.01000931579619646, 0.04776441678404808, 0.054203711450099945, 0.02587081491947174, 0.05749911442399025, 0.021704211831092834, 0.02308676578104496, -0.023617060855031013, -0.023636000230908394, -0.03321918472647667, 0.007078489754348993, -0.055377934128046036, 0.06613534688949585, -0.0343555323779583, -0.04151451215147972, -0.006865424569696188, 0.014687273651361465, 0.03160936385393143, -0.02587081491947174, 0.04355993494391441, -0.0007445434457622468, 0.0023650203365832567, -0.009076564572751522, -0.008787743747234344, 0.057271845638751984, 0.040567558258771896, -0.034222956746816635, -0.004540649708360434, 0.02657156065106392, -0.028692740947008133, -0.08113511651754379, -0.05390068516135216, 0.015785742551088333, -0.00978204607963562, 0.031173761934041977, -0.0382380485534668, -0.03166617825627327, -0.033844176679849625, 0.010028255172073841, 0.07583216577768326, -0.0076135192066431046, 0.03554869443178177, 0.006638155318796635, -0.012793364003300667, 0.05374917387962341, 0.04545384645462036, -0.03795396164059639, 0.00979151576757431, -0.006235699634999037, 0.022916313260793686, 0.033787358552217484, -0.062385402619838715, -0.045946262776851654, 0.02267010509967804, -0.022045115008950233, 0.010085072368383408, -0.046741705387830734, -0.001660722540691495, -0.043673571199178696, 0.06791561841964722, 0.008622026070952415, -0.019753484055399895, 0.028484409675002098, 0.05155223608016968, -0.03329494222998619, 0.04136300086975098, 0.00036398586235009134, 0.016988374292850494, -0.026117023080587387, -0.0016642736736685038, -0.05090830847620964, 0.025510970503091812, 0.039203941822052, -0.002188649959862232, -0.035397183150053024, 0.007372045423835516, 0.06897620856761932, -0.006874894257634878, -0.038976673036813736, -0.09696820378303528, -0.01210208609700203, 0.025510970503091812, 0.03999938443303108, -0.012433520518243313, 0.019431518390774727, -0.002227711956948042, -0.017300870269536972, -0.025321580469608307, -0.04973408207297325, -0.049544692039489746, -0.018626607954502106, -0.004438851960003376, 0.04700685292482376, 0.022973131388425827, 0.04590838402509689, -0.03552975505590439, 0.06583231687545776, 0.024564016610383987, 0.031192701309919357, -0.009114443324506283, 0.03607898950576782, -0.0038541073445230722, 0.04492355138063431, 0.05435522273182869, 0.017821695655584335, 0.07253675907850266, 0.005904265213757753, 0.003977211657911539, -0.061589960008859634, 0.0152365081012249, 0.078029103577137, 0.04034028947353363, 0.013228963129222393, -0.03689337149262428, -0.02664731629192829, -0.04268873855471611, -0.037328969687223434, 0.018276233226060867, -0.050264377146959305, 0.03943121060729027, -0.01761336624622345, 0.0019282373832538724, -0.004159500356763601, 0.08022604137659073, -0.01249033771455288, -0.04552960395812988, -0.01464939583092928, -0.01094680093228817, 0.022007236257195473, 0.031552545726299286, 0.03321918472647667, -0.014100161381065845, -0.06143844872713089, -0.004980984143912792, 0.018673954531550407, -0.032234352082014084, 0.06693078577518463, 0.02352236583828926, 0.012054738588631153, -0.027253368869423866, -0.02782154083251953, 0.08795319497585297, 0.015340672805905342, 0.028863191604614258, -0.04113573208451271, -0.02933667041361332, 0.03721533715724945, 0.0846199095249176, 0.04382508248090744, 0.05465824902057648, 0.02232920192182064, 0.0022407325450330973, -0.029639694839715958, -0.0129069983959198, -0.03414720296859741, -0.0222723837941885, -0.0067565250210464, -0.0022679574321955442, -0.027272308245301247, -0.024469319730997086, -0.021798906847834587, -0.0016962334048002958, 0.004353626165539026, 0.07291554659605026, 0.0030184194911271334, 0.04492355138063431, -0.02535945735871792, 0.03329494222998619, 0.0027769459411501884, 0.023995842784643173, -0.010302871465682983, -0.06780198961496353, 0.04958257079124451, 0.05140072479844093, 0.030435137450695038, -0.033029794692993164, 0.009905150160193443, -0.014043344184756279, -0.042082685977220535, 0.05901424214243889, -0.031041188165545464, 0.010833166539669037, -0.02117391675710678, 0.017386095598340034, 0.00149027060251683, -0.011230887845158577, -0.020151205360889435, -0.000646296888589859, -0.06287781894207001, 0.03492370620369911, 0.009228077717125416, -0.005861652083694935 ]
729,380
tinytuya.Cloud
_getuid
null
def _getuid(self, deviceid=None): # Get user ID (UID) for deviceid if not self.token: return self.error if not deviceid: return error_json( ERR_PARAMS, "_getuid() requires deviceID parameter" ) uri = 'devices/%s' % deviceid response_dict = self._tuyaplatform(uri) if not response_dict['success']: if 'code' not in response_dict: response_dict['code'] = -1 if 'msg' not in response_dict: response_dict['msg'] = 'Unknown Error' log.debug( "Error from Tuya Cloud: %r", response_dict['msg'], ) return error_json( ERR_CLOUD, "Error from Tuya Cloud: Code %r: %r" % (response_dict['code'], response_dict['msg']) ) uid = response_dict['result']['uid'] return uid
(self, deviceid=None)
[ -0.03716174140572548, -0.00240612355992198, 0.06096114590764046, 0.05724136158823967, 0.022228427231311798, 0.007024255581200123, 0.03057085908949375, 0.051138024777173996, -0.04026758298277855, -0.05724136158823967, 0.014843028038740158, 0.02753724902868271, -0.023438261821866035, 0.024846723303198814, 0.02219231426715851, -0.0015563059132546186, -0.02258957177400589, 0.09664219617843628, 0.07096484303474426, -0.00982312299311161, -0.006599911022931337, 0.039148036390542984, 0.017687039449810982, -0.015050685964524746, -0.017578694969415665, 0.07836829870939255, 0.036710310727357864, -0.005611278582364321, 0.022300656884908676, -0.021163051947951317, 0.0030900402925908566, 0.02208396978676319, 0.05576067045331001, 0.010021752677857876, -0.06366972625255585, -0.01638692058622837, -0.014274225570261478, 0.051246367394924164, -0.08797473460435867, -0.025135638192296028, -0.032358523458242416, 0.012125417590141296, 0.04922395944595337, -0.041387129575014114, -0.0007256742101162672, 0.0035369563847780228, -0.02258957177400589, -0.021542252972722054, -0.08132968097925186, 0.012459476478397846, -0.001871178625151515, 0.06312800943851471, -0.040881529450416565, -0.013434565626084805, -0.0369269996881485, 0.010202324949204922, -0.031329263001680374, -0.06659499555826187, -0.0487905852496624, 0.04972956329584122, -0.01607091911137104, 0.010274553671479225, -0.005954365711659193, 0.00013937910262029618, -0.00664956821128726, -0.007141627371311188, 0.008387574926018715, 0.030083315446972847, -0.052076999098062515, 0.049874018877744675, -0.004907047376036644, 0.005701564718037844, -0.02235482819378376, -0.06327246874570847, 0.09714780002832413, -0.03048057295382023, -0.013569994829595089, 0.003254812443628907, -0.05041573569178581, 0.04738212376832962, 0.027627533301711082, 0.005403620656579733, 0.04163993149995804, 0.03100423328578472, 0.0004559445951599628, 0.06164732202887535, -0.008653919212520123, -0.026291299611330032, -0.0795239582657814, -0.0051779053173959255, 0.009024091996252537, -0.08761359006166458, 0.027591420337557793, 0.04257890582084656, 0.018138470128178596, -0.023113232105970383, -0.024034148082137108, 0.04680429399013519, 0.003117126179859042, -0.0024264378007501364, 0.022372884675860405, -0.013416508212685585, -0.030155543237924576, -0.01944761723279953, 0.03338778391480446, -0.03719785809516907, 0.009317521005868912, 0.04167604446411133, 0.04600977525115013, 0.057855308055877686, -0.08465220779180527, -0.06341692805290222, -0.012387247756123543, 0.03893134742975235, -0.010455125942826271, -0.06312800943851471, -0.018048183992505074, 0.039617523550987244, 0.020675508305430412, -0.009633522480726242, -0.04600977525115013, -0.0003902050666511059, 0.01516805775463581, -0.047634925693273544, -0.014960399828851223, -0.024810608476400375, -0.04192884638905525, 0.0060988231562078, 0.006956540979444981, 0.00901506282389164, 0.008491403423249722, 0.005417163483798504, 0.04998236149549484, -0.03925637900829315, -0.014879142865538597, -0.007990316487848759, 0.02576764114201069, 0.06211680918931961, 0.028765138238668442, 0.09700334072113037, 0.046262577176094055, 0.021307509392499924, -0.018183613196015358, -0.034164246171712875, 0.003239012323319912, 0.019357331097126007, 0.00929043535143137, -0.019230930134654045, -0.02993885800242424, -0.030986174941062927, -0.014030453749001026, 0.013786680996418, 0.05189642682671547, 0.015655603259801865, -0.03885912150144577, 0.008906720206141472, 0.010771126486361027, -0.051679741591215134, 0.02168671227991581, -0.02816925011575222, -0.013010221533477306, -0.06543933600187302, -0.009498093277215958, -0.03936472162604332, 0.01329913642257452, 0.008355975151062012, 0.02004350535571575, 0.035139333456754684, 0.02833176590502262, -0.00886157713830471, -0.012820620089769363, 0.03656585514545441, 0.0015879060374572873, -0.0019095501629635692, -0.010635698214173317, -0.06330858170986176, -0.016206348314881325, -0.015845203772187233, -0.006076251622289419, 0.08046293258666992, 0.0066811684519052505, 0.009615465067327023, 0.08703576028347015, 0.06442812830209732, 0.026959417387843132, 0.022643743082880974, 0.056519072502851486, 0.047996070235967636, 0.012477532960474491, 0.002695038914680481, 0.0027875821106135845, -0.037811800837516785, -0.013362336903810501, 0.0504518486559391, 0.048898931592702866, 0.04167604446411133, 0.06868963688611984, 0.015285429544746876, -0.01204416062682867, -0.03712562844157219, -0.022481229156255722, 0.0028552967123687267, -0.014012396335601807, -0.0192128736525774, -0.033803101629018784, -0.006031108554452658, -0.003902614815160632, 0.05987771600484848, -0.020675508305430412, 0.01700989343225956, -0.02275208756327629, -0.04900727421045303, -0.02295071631669998, 0.06533098965883255, 0.004744532518088818, -0.05218534171581268, -0.004475931171327829, -0.016098003834486008, -0.026489930227398872, 0.0029591256752610207, -0.00004013497527921572, -0.01944761723279953, 0.03705339878797531, -0.03712562844157219, -0.01682029291987419, 0.010725983418524265, 0.0011161613510921597, 0.016468176618218422, -0.005697050131857395, -0.017398124560713768, 0.051246367394924164, -0.05911931023001671, 0.07649035006761551, 0.021397795528173447, -0.08797473460435867, -0.044492971152067184, 0.030047200620174408, -0.05597735568881035, 0.07815161347389221, 0.008978948928415775, 0.011926788836717606, -0.01471662800759077, 0.07291502505540848, 0.04597366228699684, 0.012640048749744892, 0.018183613196015358, -0.015845203772187233, 0.051643624901771545, -0.011872616596519947, -0.05232980102300644, -0.027374733239412308, 0.013795710168778896, 0.003936472348868847, 0.02459392324090004, 0.007240941748023033, -0.05771084874868393, -0.004672303795814514, 0.010346782393753529, 0.014843028038740158, -0.01642303355038166, 0.01861698552966118, 0.011737187393009663, -0.02031436376273632, 0.037811800837516785, -0.10971561819314957, -0.023636890575289726, -0.0064193387515842915, 0.02887348271906376, 0.021163051947951317, 0.01744326576590538, 0.05095745250582695, 0.06392253190279007, 0.0006099952151998878, -0.027573361992836, -0.022210370749235153, -0.011845530942082405, -0.03578939288854599, 0.026219071820378304, 0.03788403049111366, -0.05240203067660332, -0.08392991870641708, -0.028927654027938843, 0.019375387579202652, -0.0027176104485988617, -0.01874338649213314, -0.0498017892241478, 0.0061033377423882484, 0.004749046638607979, -0.01874338649213314, 0.03387533128261566, -0.027446962893009186, -0.023131288588047028, -0.11816639453172684, 0.017930811271071434, -0.048898931592702866, -0.02954159863293171, -0.08313540369272232, 0.0038868149276822805, 0.03799237310886383, 0.004712932277470827, -0.07598474621772766, 0.07403457164764404, -0.095558762550354, 0.004866418428719044, -0.012324047274887562, 0.05539952591061592, 0.028259536251425743, -0.04041203856468201, -0.06406699120998383, -0.013714452274143696, -0.03364058583974838, -0.01771412417292595, 0.0032096693757921457, 0.01759675331413746, -0.024918952956795692, 0.029180454090237617, 0.01363319531083107, 0.006112366449087858, 0.03694505617022514, 0.04749046638607979, -0.005827965214848518, -0.003929700702428818, 0.06475315988063812, 0.04680429399013519, 0.076201431453228, 0.035464365035295486, -0.006211680825799704, 0.03127508983016014, -0.052040886133909225, 0.04564863070845604, -0.02816925011575222, 0.0187072716653347, -0.04149547219276428, -0.04633480682969093, 0.05059630796313286, -0.04380679503083229, 0.020404649898409843, 0.01433742605149746, -0.050271276384592056, 0.008933805860579014, -0.03885912150144577, 0.009967581368982792, 0.004943161737173796, 0.01284770667552948, 0.036078307777643204, 0.0033518699929118156, 0.017190465703606606, -0.02298683114349842, 0.04373456537723541, 0.002902696840465069, -0.014536055736243725, 0.030932003632187843, -0.03338778391480446, -0.005972422659397125, 0.013389422558248043, -0.04106209799647331, -0.07526245713233948, 0.04727378115057945, -0.010346782393753529, 0.051174137741327286, -0.04842944070696831, -0.07392622530460358, 0.0138679388910532, -0.015745889395475388, -0.021307509392499924, -0.0027695249300450087, -0.06543933600187302, -0.005362991709262133, 0.009141463786363602, 0.02620101533830166, -0.05048796534538269, 0.05359380319714546, 0.021813111379742622, -0.007940659299492836, 0.0055571068078279495, 0.008342431858181953, -0.024918952956795692, -0.020856080576777458, -0.0731678232550621, 0.013579023070633411, 0.011655930429697037, 0.00040515870205126703, -0.032828010618686676, 0.03792014345526695, 0.01015718188136816, -0.005769279319792986, -0.060527775436639786, -0.036240823566913605, -0.021542252972722054, 0.005900193937122822, 0.0015596916200593114, 0.02612878568470478, 0.017018921673297882, 0.03788403049111366, -0.028042849153280258, 0.007945173420011997, -0.03932860866189003, -0.015736859291791916, 0.010527354665100574, 0.042181648313999176, -0.019790703430771828, -0.014120739884674549, -0.021433910354971886, 0.06753396987915039, 0.017307838425040245, 0.04192884638905525, 0.012414333410561085, -0.033243328332901, -0.06565602123737335, -0.025785699486732483, -0.013010221533477306, 0.005895679816603661, -0.016007717698812485, 0.012640048749744892, 0.035608820617198944, 0.022246485576033592, -0.07013420760631561, 0.07916281372308731, 0.012631019577383995, 0.06471704691648483, -0.059661027044057846, -0.006857226137071848, -0.06637831032276154, 0.0017933069029822946, -0.051246367394924164, -0.0025821812450885773, 0.02322157472372055, 0.006572824902832508, 0.005381049122661352, -0.003155497834086418, 0.00100443244446069, 0.011448272503912449, -0.00937169324606657, -0.011376043781638145, 0.02623712830245495, -0.01642303355038166, 0.013479708693921566, 0.07576806098222733, 0.0035933852195739746, -0.00664956821128726, -0.00025505811208859086, 0.003934214822947979, -0.0023226088378578424, -0.003934214822947979, -0.026471871882677078, -0.00428407359868288, -0.048501670360565186, 0.055218953639268875, -0.0008249888778664172, -0.000014600948816223536, 0.03528379276394844, -0.015574345365166664, 0.019375387579202652, -0.022282598540186882, 0.016748063266277313, -0.025207867845892906, -0.10213159024715424, 0.03311692550778389, 0.04308450594544411, -0.008130259811878204, -0.028494279831647873, 0.025388440117239952, 0.030263887718319893, 0.010689869523048401, -0.006663111038506031, 0.04907950013875961, 0.020838022232055664, -0.010735012590885162, -0.0025325240567326546, -0.016395948827266693, 0.01700989343225956, 0.03519350662827492, -0.007344770710915327, 0.07233718782663345, -0.013488736934959888, -0.003135183360427618, -0.028783196583390236, -0.026038499549031258, -0.058830395340919495, -0.014545083977282047, -0.007462142966687679, 0.04247056320309639, 0.053918834775686264, 0.03795626014471054, -0.010527354665100574, 0.027844220399856567, 0.04055649787187576, -0.02542455494403839, 0.01571880280971527, -0.059733256697654724, -0.030029144138097763, 0.027158046141266823, -0.041351016610860825, -0.04073707014322281, -0.01440062653273344, -0.028963766992092133, 0.008513974957168102, -0.01618828997015953, -0.03548242151737213, 0.024070262908935547, 0.004740017931908369, -0.020964423194527626, 0.04460131376981735, -0.0053449347615242004, 0.009326550178229809, -0.016278576105833054, -0.019050357863307, 0.040448155254125595, 0.023275746032595634, -0.0011725901858881116, -0.0040764156728982925, 0.02813313528895378, 0.011041984893381596, -0.03421841561794281, -0.008942834101617336, 0.012802563607692719, 0.019321216270327568, -0.011041984893381596, -0.027555305510759354, 0.027392789721488953, -0.03893134742975235, 0.035464365035295486, 0.010500269010663033, 0.036511681973934174, 0.03857020288705826, -0.0017797639593482018, -0.05529118329286575, 0.06070834770798683, -0.03609636798501015, -0.006622482556849718, -0.07374565303325653, 0.0018723071552813053, 0.0028440109454095364, -0.005746707785874605, -0.017741210758686066, -0.07230107486248016, -0.0879025086760521, -0.04597366228699684, -0.04900727421045303, -0.03896746411919594, 0.028819309547543526, -0.015574345365166664, -0.002028050599619746, -0.020856080576777458, -0.039978668093681335, -0.05724136158823967, -0.04026758298277855, 0.04254279285669327, 0.030029144138097763, 0.026020443066954613, 0.04871835932135582, -0.019230930134654045, 0.005688021890819073, -0.006970083806663752, -0.027139989659190178, 0.03374892845749855, -0.04832109808921814, 0.03723397105932236, -0.03391144424676895, -0.023871634155511856, 0.01850864291191101, 0.0068120830692350864, 0.037811800837516785, -0.03501293435692787, 0.010762098245322704, -0.0464431494474411, -0.0879025086760521, -0.007037798408418894, -0.025334268808364868, -0.02957771345973015, -0.05554398521780968, 0.013398450799286366, -0.0160348042845726, 0.022138141095638275, -0.08248534053564072, -0.0022797230631113052, 0.013958225026726723, 0.023167403414845467, 0.07389011234045029, 0.019664304330945015, -0.036674197763204575, 0.059733256697654724, 0.05319654569029808, 0.008355975151062012, -0.019537903368473053, -0.04460131376981735, 0.009091806598007679, 0.005155333783477545, 0.05854148045182228, -0.060130514204502106, -0.019357331097126007, -0.03745065629482269, -0.023781348019838333, -0.0005668271915055811, -0.011186442337930202, 0.06789511442184448, 0.0421094186604023, -0.0158722884953022, 0.011150328442454338, -0.05493003875017166, 0.05496615171432495, 0.07627366483211517, 0.028187308460474014, -0.024250835180282593, 0.01881561428308487, -0.0023519517853856087, -0.06478927284479141, -0.07591252028942108, -0.022047854959964752, -0.041712161153554916, 0.01650429144501686, -0.031022289767861366, -0.005209505558013916, 0.07298725098371506, 0.0030900402925908566, 0.0243952926248312, 0.023817462846636772, -0.06200846657156944, -0.0024038662668317556, -0.0149513715878129, 0.0012403047876432538, 0.02286043018102646, -0.01692863553762436, -0.007611114997416735, 0.013822795823216438, -0.01811138354241848, 0.021090824156999588, 0.050235163420438766, -0.05633850023150444, 0.06543933600187302, -0.030625032261013985, 0.0032999555114656687, -0.0040764156728982925, -0.03470596298575401, -0.02867485210299492, 0.005561621394008398, -0.021090824156999588, -0.028656795620918274, -0.046732064336538315, 0.052582599222660065, -0.019971275702118874, 0.02943325601518154, -0.04954899102449417, 0.006848197430372238, 0.05305209010839462, 0.02219231426715851, -0.06861740350723267, 0.03355029970407486, -0.04337342455983162, -0.023709118366241455, -0.0002776296460069716, 0.0017278494779020548, 0.009732836857438087, 0.014220054261386395, -0.011014899238944054, 0.0272302757948637, 0.01794886775314808, 0.053918834775686264, -0.0400870107114315, 0.04124267026782036, 0.03421841561794281, 0.023131288588047028, 0.0004319623694755137, -0.03745065629482269, -0.017786353826522827, -0.02867485210299492, -0.009723808616399765, -0.05763861909508705, 0.012856734916567802, -0.030191658064723015, 0.017343951389193535, 0.02141585387289524, 0.05308820307254791, 0.012910906225442886, -0.06034720316529274, -0.041820503771305084, -0.00901506282389164, 0.004925104323774576, -0.013777652755379677, 0.00913694966584444, 0.03154594823718071, 0.030065257102251053, 0.02742890454828739, 0.011601758189499378, -0.038245175033807755, -0.026652444154024124, 0.09173063933849335, 0.01094267051666975, 0.005656421650201082, -0.018210697919130325, 0.0016736778197810054, -0.02710387483239174, -0.01964624598622322, 0.042253874242305756, -0.066486656665802, -0.005466820672154427, -0.0048754471354186535, 0.07230107486248016, -0.0035211562644690275, 0.04333730787038803, -0.004627160727977753, -0.01764189638197422, -0.0009733965853229165, 0.005286248866468668, 0.030263887718319893, 0.009195635095238686, 0.029595769941806793, 0.0036949568893760443, 0.004424016922712326, -0.020856080576777458, 0.019772646948695183, -0.05734970420598984, 0.021000538021326065, -0.008793862536549568, 0.017696067690849304, -0.05110190808773041, -0.03374892845749855, 0.05135471001267433, 0.029523542150855064, 0.059299882501363754, -0.004288587719202042, -0.049874018877744675, 0.023600775748491287, 0.031293150037527084, 0.006306481081992388, 0.03587967902421951, 0.06937580555677414, -0.012107360176742077, -0.018635042011737823, 0.03225018084049225, -0.011267700232565403, 0.019826818257570267, -0.02529815398156643, 0.016395948827266693, 0.004216358996927738, 0.0032999555114656687, -0.014689541421830654, -0.04749046638607979, 0.032196007668972015, 0.05171585455536842, -0.026020443066954613, 0.02659827284514904, 0.017984982579946518, 0.03253909572958946, 0.07363730669021606, 0.03394755721092224, 0.02286043018102646, 0.004645217675715685, 0.03658391162753105, 0.046768177300691605, 0.06590882688760757, -0.03217795118689537, -0.056519072502851486, -0.01355193741619587, 0.04117044433951378, 0.021813111379742622, -0.03994255140423775, 0.025280097499489784, 0.012342104688286781, 0.025316210463643074, -0.012233761139214039, -0.02251734398305416, -0.05467723682522774, 0.0013441337505355477, 0.006017565727233887, 0.06590882688760757, -0.0218853410333395, 0.03932860866189003 ]
729,381
tinytuya.Cloud
_tuyaplatform
Handle GET and POST requests to Tuya Cloud
def _tuyaplatform(self, uri, action='GET', post=None, ver='v1.0', recursive=False, query=None, content_type=None): """ Handle GET and POST requests to Tuya Cloud """ # Build URL and Header if ver: url = "https://%s/%s/%s" % (self.urlhost, ver, uri) elif uri[0] == '/': url = "https://%s%s" % (self.urlhost, uri) else: url = "https://%s/%s" % (self.urlhost, uri) headers = {} body = {} sign_url = url if post is not None: body = json.dumps(post) if action not in ('GET', 'POST', 'PUT', 'DELETE'): action = 'POST' if post else 'GET' if action == 'POST' and content_type is None: content_type = 'application/json' if content_type: headers['Content-type'] = content_type if query: # note: signature must be calculated before URL-encoding! if type(query) == str: # if it's a string then assume no url-encoding is needed if query[0] == '?': url += query else: url += '?' + query sign_url = url else: # dicts are unsorted, however Tuya requires the keys to be in alphabetical order for signing # as per https://developer.tuya.com/en/docs/iot/singnature?id=Ka43a5mtx1gsc if type(query) == dict: sorted_query = [] for k in sorted(query.keys()): sorted_query.append( (k, query[k]) ) query = sorted_query # calculate signature without url-encoding sign_url += '?' + '&'.join( [str(x[0]) + '=' + str(x[1]) for x in query] ) req = requests.Request(action, url, params=query).prepare() url = req.url else: req = requests.Request(action, url, params=query).prepare() sign_url = url = req.url now = int(time.time()*1000) headers = dict(list(headers.items()) + [('Signature-Headers', ":".join(headers.keys()))]) if headers else {} if self.token is None: payload = self.apiKey + str(now) headers['secret'] = self.apiSecret else: payload = self.apiKey + self.token + str(now) # If running the post 6-30-2021 signing algorithm update the payload to include it's data if self.new_sign_algorithm: payload += ('%s\n' % action + # HTTPMethod hashlib.sha256(bytes((body or "").encode('utf-8'))).hexdigest() + '\n' + # Content-SHA256 ''.join(['%s:%s\n'%(key, headers[key]) # Headers for key in headers.get("Signature-Headers", "").split(":") if key in headers]) + '\n' + '/' + sign_url.split('//', 1)[-1].split('/', 1)[-1]) # Sign Payload signature = hmac.new( self.apiSecret.encode('utf-8'), msg=payload.encode('utf-8'), digestmod=hashlib.sha256 ).hexdigest().upper() # Create Header Data headers['client_id'] = self.apiKey headers['sign'] = signature headers['t'] = str(now) headers['sign_method'] = 'HMAC-SHA256' headers['mode'] = 'cors' if self.token is not None: headers['access_token'] = self.token # Send Request to Cloud and Get Response if action == 'GET': response = requests.get(url, headers=headers) log.debug( "GET: URL=%s HEADERS=%s response code=%d text=%s token=%s", url, headers, response.status_code, response.text, self.token ) else: log.debug( "POST: URL=%s HEADERS=%s DATA=%s", url, headers, body, ) response = requests.post(url, headers=headers, data=body) log.debug( "POST RESPONSE: code=%d text=%s token=%s", response.status_code, response.text, self.token ) # Check to see if token is expired if "token invalid" in response.text: if recursive is True: log.debug("Failed 2nd attempt to renew token - Aborting") return None log.debug("Token Expired - Try to renew") self._gettoken() if not self.token: log.debug("Failed to renew token") return None else: return self._tuyaplatform(uri, action, post, ver, True) try: response_dict = json.loads(response.content.decode()) self.error = None except: try: response_dict = json.loads(response.content) except: self.error = error_json( ERR_CLOUDKEY, "Cloud _tuyaplatform() invalid response: %r" % response.content, ) return self.error # Check to see if token is expired return response_dict
(self, uri, action='GET', post=None, ver='v1.0', recursive=False, query=None, content_type=None)
[ -0.015370008535683155, -0.06892362236976624, -0.04148292914032936, 0.04598931595683098, -0.04800109937787056, -0.006568465381860733, -0.06844079494476318, 0.03947114571928978, -0.04373612254858017, -0.02552950382232666, 0.032771915197372437, 0.022411242127418518, 0.011135208420455456, -0.01986633986234665, 0.0011297408491373062, -0.039290085434913635, 0.04301188141107559, 0.01523924246430397, 0.008374039083719254, -0.07564297318458557, 0.02615315467119217, 0.03395886719226837, -0.009475489147007465, 0.03178614377975464, 0.027722343802452087, 0.034924522042274475, 0.0002472290361765772, -0.025147264823317528, 0.007549209054559469, -0.010124288499355316, -0.034180160611867905, 0.020147988572716713, 0.05258795991539955, 0.02621350809931755, 0.0001601566473254934, -0.028708117082715034, -0.012332218699157238, -0.012875399552285671, -0.0908520370721817, 0.00518536614254117, -0.036292534321546555, -0.037821486592292786, 0.0206811111420393, -0.053191494196653366, 0.038022663444280624, 0.048765577375888824, -0.04651238024234772, 0.0716596469283104, -0.01696937344968319, -0.010783147066831589, 0.021063348278403282, 0.01478659175336361, -0.009581107646226883, -0.02774246223270893, -0.040658097714185715, 0.04574790224432945, -0.02152605913579464, 0.013599640689790249, -0.021023113280534744, 0.037238068878650665, 0.019685279577970505, 0.06031319871544838, 0.0038324431516230106, 0.054237619042396545, -0.020137930288910866, 0.03709724545478821, -0.03770077973604202, 0.016194839030504227, -0.00018844731675926596, 0.03132343292236328, 0.018216678872704506, -0.03659430146217346, -0.01771373301744461, -0.018277032300829887, 0.048765577375888824, -0.03345591947436333, -0.04073856770992279, 0.007956594228744507, -0.08377056568861008, -0.03084060549736023, -0.0019728029146790504, -0.04132198542356491, 0.0654633566737175, 0.0009807433234527707, 0.03337544947862625, 0.03836466744542122, 0.013126872479915619, -0.018779978156089783, -0.03438134118914604, 0.0025750799104571342, -0.05399620532989502, -0.028808707371354103, 0.0011548881884664297, 0.006110785529017448, 0.04100010171532631, -0.023437250405550003, -0.024986322969198227, -0.011064796708524227, -0.023718900978565216, -0.047759685665369034, 0.04095986485481262, 0.0008996434044092894, -0.045023661106824875, -0.01017458364367485, 0.04836321994662285, -0.01726108230650425, -0.014776532538235188, 0.01289551705121994, 0.011728684417903423, 0.02615315467119217, -0.06333087384700775, -0.05789906159043312, -0.014243410900235176, -0.02526797167956829, -0.011758861131966114, -0.0239401962608099, 0.01816638372838497, 0.016325604170560837, -0.04220717027783394, -0.017240963876247406, 0.004569258075207472, -0.0014912327751517296, 0.04804133623838425, -0.03263109177350998, 0.0035583379212766886, 0.013891348615288734, 0.025549620389938354, 0.04325329512357712, -0.02243136055767536, -0.010018670000135899, -0.050978533923625946, 0.04184504970908165, 0.025549620389938354, 0.04896675422787666, -0.023759135976433754, -0.04932887479662895, 0.036453474313020706, 0.01486706268042326, -0.04017527028918266, 0.040497153997421265, 0.008006889373064041, -0.0025851388927549124, -0.01842791587114334, -0.03399910032749176, 0.00903792679309845, 0.0023273793049156666, -0.04993240907788277, -0.06683137267827988, -0.025851387530565262, 0.005678252317011356, 0.029774362221360207, -0.017824381589889526, 0.032128144055604935, 0.016235074028372765, -0.009450342506170273, -0.022612420842051506, 0.026193391531705856, -0.06152026727795601, -0.033294979482889175, 0.033335212618112564, -0.011396740563213825, -0.013328050263226032, -0.01400199718773365, -0.06059484928846359, 0.005482103675603867, -0.009198869578540325, -0.010073994286358356, 0.035286642611026764, -0.0009882875019684434, 0.00687023252248764, -0.04542601853609085, 0.03741912916302681, -0.07411401718854904, -0.0017024697735905647, 0.006653966382145882, -0.00543180899694562, 0.027199281379580498, -0.01794508844614029, -0.030699780210852623, -0.022089356556534767, -0.039974093437194824, -0.028124701231718063, -0.013670053333044052, 0.014062350615859032, 0.013468874618411064, 0.008907160721719265, 0.03389851376414299, 0.016144543886184692, -0.008454510010778904, 0.051139477640390396, -0.019514277577400208, 0.006120844278484583, 0.03584994003176689, 0.024020668119192123, 0.03993385657668114, 0.023779254406690598, 0.020640874281525612, 0.01787467487156391, 0.049449581652879715, -0.021385233849287033, -0.017593026161193848, 0.010320437140762806, 0.02152605913579464, -0.016778254881501198, 0.033395566046237946, -0.056128695607185364, 0.009908022359013557, 0.009747079573571682, -0.039028555154800415, 0.0224715955555439, 0.003857590490952134, 0.0021614073775708675, -0.05121994763612747, 0.016567017883062363, -0.015712011605501175, -0.01826697401702404, 0.01621495559811592, 0.0018445518799126148, -0.018015500158071518, -0.021546175703406334, 0.06964786350727081, 0.03317427262663841, 0.0057184877805411816, -0.06799820065498352, 0.009047986008226871, 0.03564876317977905, 0.07266553491353989, 0.06160074099898338, -0.03369733318686485, -0.06856150180101395, 0.01634572260081768, 0.005067173857241869, 0.051702775061130524, 0.04989217221736908, -0.0210029948502779, -0.07149869948625565, 0.028567293658852577, -0.00791132915765047, 0.03695642203092575, -0.022914187982678413, 0.06357228755950928, -0.02168700098991394, 0.030136482790112495, 0.021284645423293114, -0.07858017086982727, 0.01086361799389124, 0.004941437393426895, 0.03574934974312782, -0.0023915048222988844, -0.062284745275974274, -0.010581969283521175, -0.07310812920331955, -0.009681697003543377, -0.05053594335913658, 0.031605083495378494, -0.046713560819625854, 0.11378634721040726, -0.0065584066323935986, 0.052024662494659424, -0.02836611494421959, -0.002078421413898468, 0.039290085434913635, -0.01045120321214199, 0.07186082005500793, -0.074918732047081, -0.024905851110816002, 0.04546625539660454, 0.015460538677871227, -0.04285093769431114, 0.006186227314174175, 0.08425339311361313, 0.0014346514362841845, -0.04470177739858627, -0.00078145123552531, -0.02546915039420128, -0.029874950647354126, 0.01716049388051033, 0.008580246940255165, -0.021928414702415466, -0.048242513090372086, -0.021023113280534744, -0.05608845874667168, 0.0986577495932579, 0.008182919584214687, -0.02693774923682213, -0.0335363931953907, -0.02168700098991394, 0.00016125683032441884, 0.016406076028943062, -0.020137930288910866, -0.03448192775249481, 0.021023113280534744, -0.024382788687944412, 0.024966204538941383, -0.009767198003828526, 0.014454647898674011, -0.07169988006353378, 0.021244408562779427, 0.07664886116981506, -0.01931309886276722, -0.022290535271167755, 0.0810747817158699, 0.015842776745557785, -0.0657852441072464, 0.05347314476966858, 0.0012812531786039472, 0.038927964866161346, -0.004911260679364204, -0.006759584881365299, -0.004523993004113436, -0.00518536614254117, -0.01017458364367485, 0.03699665516614914, -0.035387229174375534, -0.05564586818218231, -0.000030432120183832012, 0.04325329512357712, 0.005009335000067949, 0.03673512488603592, 0.05785882845520973, -0.007096557877957821, -0.004536566790193319, -0.002605256624519825, 0.005783870816230774, 0.08131619542837143, -0.09439277648925781, 0.010853559710085392, -0.030357778072357178, -0.025288090109825134, 0.012875399552285671, 0.01797526516020298, 0.03562864288687706, -0.002147576306015253, 0.0028542145155370235, -0.043977536261081696, -0.03800254687666893, -0.0332145057618618, -0.01434400025755167, -0.039974093437194824, 0.005376485176384449, -0.06204333156347275, 0.011406798847019672, -0.02569044567644596, 0.03273167833685875, -0.03599076345562935, -0.03094119392335415, 0.019685279577970505, -0.01357952319085598, 0.04598931595683098, -0.020701227709650993, -0.012875399552285671, 0.015390126034617424, 0.07117681950330734, 0.0664290115237236, 0.11418870091438293, -0.07073422521352768, -0.038927964866161346, -0.0491679310798645, -0.031705670058727264, 0.01663742959499359, 0.022511830553412437, 0.0067495256662368774, -0.0241011381149292, 0.0586233027279377, -0.023034894838929176, -0.055444687604904175, 0.0005299785989336669, -0.0040009296499192715, 0.009259223006665707, -0.00012392886856105179, 0.003010127693414688, -0.05463997647166252, 0.009173722006380558, 0.04033621400594711, 0.0061057559214532375, 0.04578813910484314, -0.04043680056929588, -0.03140390291810036, -0.06377346068620682, 0.013509110547602177, 0.03442157432436943, 0.06912480294704437, -0.024463258683681488, -0.009188810363411903, 0.06437699496746063, -0.06437699496746063, 0.013589581474661827, -0.024644318968057632, 0.06248592212796211, 0.017582967877388, 0.021063348278403282, -0.023779254406690598, -0.002806434640660882, 0.009651520289480686, 0.005467015318572521, 0.00791132915765047, -0.08018960058689117, 0.02894953079521656, -0.016717901453375816, -0.023497603833675385, 0.0179149117320776, -0.023497603833675385, 0.015168829821050167, 0.015410243533551693, 0.020862171426415443, 0.017331494018435478, 0.05387549847364426, -0.018880566582083702, -0.001197009813040495, 0.023195836693048477, -0.06671066582202911, -0.03532687574625015, -0.042086463421583176, 0.003681559581309557, 0.006975851021707058, -0.007116675842553377, -0.0011058509116992354, 0.08409245312213898, 0.0020708772353827953, 0.02784305065870285, 0.02874835394322872, -0.014283646829426289, -0.009807433001697063, 0.037660542875528336, -0.011245856992900372, 0.046190496534109116, -0.007262530270963907, -0.007956594228744507, -0.03832443058490753, -0.002771228551864624, 0.05592751502990723, 0.04800109937787056, -0.02731998823583126, 0.006578524596989155, 0.0017452201573178172, 0.04053739085793495, -0.04562719538807869, 0.007835887372493744, 0.03832443058490753, -0.006191256456077099, -0.014515001326799393, -0.004838333930820227, -0.034964755177497864, -0.026394568383693695, 0.07439567148685455, 0.022129593417048454, -0.05399620532989502, 0.01037073228508234, 0.06365275382995605, -0.04361541569232941, -0.01531971339136362, 0.0426497608423233, -0.01839773915708065, 0.010541733354330063, -0.019645042717456818, -0.03273167833685875, 0.013931584544479847, 0.003560852725058794, -0.028607528656721115, -0.01736167073249817, 0.03232932463288307, 0.01637589931488037, 0.055243510752916336, 0.03762030974030495, 0.052507489919662476, 0.02055034413933754, 0.006724378559738398, 0.00043756241211667657, 0.004865995608270168, -0.04872534051537514, -0.015168829821050167, -0.008519893512129784, -0.06864197552204132, 0.07113657891750336, 0.025972094386816025, -0.023879842832684517, 0.0208420529961586, -0.011718625202775002, -0.0827244445681572, -0.05641034245491028, -0.03562864288687706, -0.014655825681984425, 0.019514277577400208, 0.020701227709650993, -0.018448034301400185, -0.058019768446683884, 0.02647504024207592, -0.05616892874240875, 0.04180481284856796, -0.06502076983451843, -0.007358089555054903, -0.006327051669359207, 0.012161217629909515, 0.06465864926576614, -0.07053304463624954, -0.006900409236550331, -0.05443879961967468, 0.0030956282280385494, -0.061077676713466644, 0.0022393639665097, 0.011789037846028805, -0.0021978709846735, 0.013277756050229073, 0.048765577375888824, 0.04337400197982788, 0.052346546202898026, -0.019232628867030144, -0.007644768338650465, -0.011004443280398846, 0.004961555358022451, -0.07169988006353378, -0.02546915039420128, 0.03673512488603592, -0.04747803509235382, 0.00034923263592645526, 0.04140245541930199, -0.015279478393495083, -0.0024191669654101133, -0.015380066819489002, -0.005391573533415794, 0.025770917534828186, 0.02595197781920433, 0.023779254406690598, -0.007931447587907314, 0.04566743224859238, 0.013217402622103691, -0.02400054968893528, -0.0179149117320776, -0.01326769683510065, 0.050455473363399506, -0.041281748563051224, -0.023980431258678436, -0.008962485007941723, -0.02862764708697796, -0.0065081119537353516, -0.005155189428478479, -0.0680384412407875, -0.055444687604904175, 0.05979013815522194, -0.04268999770283699, 0.006935615558177233, -0.008032036013901234, -0.0735909566283226, -0.06598642468452454, -0.07005021721124649, 0.009289399720728397, 0.007931447587907314, -0.009440283291041851, 0.030035892501473427, 0.015168829821050167, -0.016406076028943062, 0.007961624301970005, 0.08666753023862839, 0.0281649362295866, -0.04506389796733856, 0.013378344476222992, 0.05327196419239044, -0.0067998203448951244, 0.00999855250120163, 0.0008644371991977096, -0.00972193293273449, -0.007589444518089294, -0.08425339311361313, -0.027279753237962723, -0.06952715665102005, -0.0008468341547995806, -0.01276475191116333, 0.07206200063228607, 0.021465705707669258, 0.02116393856704235, 0.02158641256392002, -0.028084464371204376, 0.05105900764465332, -0.005814047530293465, -0.011225738562643528, 0.03100154735147953, -0.00201429589651525, 0.003794722259044647, 0.03383816033601761, 0.0025801092851907015, 0.06542312353849411, 0.047598741948604584, 0.013066519051790237, -0.050455473363399506, -0.011105031706392765, -0.01400199718773365, 0.10533685982227325, 0.01515877153724432, 0.031444139778614044, -0.03468310832977295, -0.0843338668346405, 0.00020353567379061133, 0.0010995641350746155, 0.0066791134886443615, -0.05117971450090408, 0.06115814670920372, -0.004561713896691799, -0.015400185249745846, 0.04059774428606033, 0.02820517122745514, 0.02158641256392002, 0.04635143652558327, -0.028406349942088127, -0.05415714904665947, 0.021123701706528664, 0.021043231710791588, -0.06433676183223724, -0.04389706626534462, -0.0036790447775274515, -0.0223106537014246, 0.08187949657440186, -0.0294725950807333, -0.004116607364267111, -0.012332218699157238, 0.011819214560091496, 0.015148712322115898, -0.026595747098326683, 0.03812325373291969, 0.013106754049658775, -0.06131909042596817, -0.018548622727394104, 0.014967652037739754, -0.052024662494659424, -0.001814375165849924, -0.08835742622613907, 0.015199006535112858, 0.007172000128775835, -0.027299869805574417, -0.06622783839702606, -0.0065584066323935986, 0.005532398354262114, 0.00047748369979672134, -0.0012416462413966656, 0.016727959737181664, 0.04341423884034157, 0.02353784069418907, 0.012171275913715363, 0.0003602345532272011, 0.0033395567443221807, 0.0827244445681572, 0.02526797167956829, 0.03852561116218567, -0.01039084978401661, 0.00849977508187294, -0.010300319641828537, 0.02915070950984955, -0.029231181368231773, -0.03146425634622574, -0.020882287994027138, -0.023598194122314453, -0.029874950647354126, 0.046713560819625854, 0.04699520766735077, 0.005964931100606918, -0.05946825072169304, -0.008882014080882072, 0.0031911879777908325, 0.028185054659843445, 0.04832298308610916, -0.02894953079521656, 0.029673771932721138, -0.0018307209247723222, 0.033134035766124725, -0.02820517122745514, -0.06015225872397423, -0.03649371117353439, 0.03836466744542122, -0.06852126866579056, 0.021666882559657097, 0.025388678535819054, 0.04188528284430504, -0.05488139018416405, 0.039290085434913635, 0.03898831829428673, 0.05419738590717316, 0.0012039253488183022, 0.035387229174375534, -0.025710564106702805, 0.018518446013331413, 0.015349890105426311, -0.000029980254112160765, 0.04615025967359543, -0.029090356081724167, 0.019584689289331436, -0.03822384402155876, 0.011497328989207745, 0.0791434720158577, 0.02136511541903019, -0.03937055915594101, -0.048443689942359924, -0.014947534538805485, -0.07157917320728302, -0.008308656513690948, 0.029673771932721138, -0.025187499821186066, 0.03253050148487091, -0.05484115332365036, 0.03862619772553444, -0.016265250742435455, 0.04715615138411522, 0.061721447855234146, -0.03422039747238159, 0.008177890442311764, 0.024463258683681488, 0.004448551218956709, 0.07278624176979065, 0.002565020928159356, -0.038827378302812576, -0.003887767205014825, -0.01852850429713726, 0.017643321305513382, -0.0016760651487857103, 0.06622783839702606, 0.005592751782387495, -0.007307795342057943, 0.0017930000321939588, -0.07266553491353989, 0.049972645938396454, 0.04120127856731415, 0.004063798114657402, -0.013227460905909538, -0.005416720639914274, 0.028386231511831284, -0.001820661942474544, 0.03729842230677605, 0.033395566046237946, 0.055605631321668625, 0.03705700859427452, 0.0004227883764542639, -0.027923522517085075, -0.04490295425057411, 0.019363394007086754, -0.008006889373064041, -0.03989361971616745, -0.019303040578961372, -0.06570477038621902, 0.021928414702415466, -0.017663437873125076, 0.022169828414916992, 0.056450579315423965, -0.016818489879369736, -0.0034728371538221836, -0.03568899631500244, -0.014907298609614372, 0.06365275382995605, 0.014183057472109795, 0.03182637691497803, -0.05190395563840866, 0.038505490869283676, 0.009681697003543377, 0.03665465489029884, 0.004016018006950617, -0.03943091258406639, -0.01749243773519993, -0.005112438928335905, 0.021988768130540848, 0.0001493118907092139, 0.029432358220219612, -0.021747354418039322, -0.0014447103021666408, 0.010214818641543388, -0.04132198542356491, -0.00033728769631125033, 0.025408796966075897, 0.027621755376458168, 0.07624650746583939, 0.030659545212984085, 0.029331769794225693 ]
729,382
tinytuya.Cloud
_update_device_list
null
def _update_device_list( self, result1, result2 ): for new_device in result2: if 'id' not in new_device or not new_device['id']: continue found = False for existing_device in result1: if 'id' in existing_device and existing_device['id'] == new_device['id']: found = True for k in new_device: if k not in existing_device or not existing_device[k]: existing_device[k] = new_device[k] if not found: result1.append( new_device )
(self, result1, result2)
[ 0.025576597079634666, -0.005221888422966003, -0.06208137795329094, 0.013059565797448158, 0.010569722391664982, -0.020364396274089813, -0.027087941765785217, -0.03361772373318672, 0.06258516013622284, 0.018969310447573662, -0.03419901058077812, -0.06909556686878204, 0.010095005854964256, 0.04510781541466713, 0.03049815446138382, -0.039604973047971725, -0.024879053235054016, 0.039546843618154526, 0.039546843618154526, -0.026681041345000267, -0.003989077173173428, 0.01454184576869011, 0.03303643688559532, 0.06758422404527664, -0.018475215882062912, -0.012400774285197258, 0.023793986067175865, 0.008607881143689156, 0.023658351972699165, 0.026138506829738617, 0.019899368286132812, 0.009634820744395256, 0.06967685371637344, 0.0034271671902388334, -0.001558573916554451, -0.007203106302767992, 0.010899118147790432, 0.05169573053717613, -0.01569472998380661, 0.02910306677222252, -0.026681041345000267, -0.026216011494398117, -0.026138506829738617, 0.013098318129777908, 0.04146508872509003, 0.04669666662812233, -0.06208137795329094, 0.04530157893896103, 0.028599286451935768, 0.026119131594896317, -0.024123381823301315, -0.00775048416107893, -0.03040127456188202, 0.06421276181936264, -0.027242951095104218, -0.019453715533018112, -0.03007187880575657, -0.019773421809077263, -0.03191261738538742, 0.012022938579320908, -0.03071129322052002, -0.009513719007372856, -0.024859678000211716, -0.0018298408249393106, -0.04929307848215103, 0.0027586878277361393, -0.02900618687272072, 0.01797143556177616, -0.019879991188645363, 0.05297455936670303, -0.025479717180132866, 0.008651478216052055, 0.019686229526996613, -0.03057565912604332, 0.024569034576416016, 0.07219576090574265, 0.03720232471823692, 0.026797298341989517, 0.018882116302847862, -0.055570971220731735, -0.01637289673089981, 0.01523938961327076, 0.027804860845208168, -0.00853522028774023, -0.019414963200688362, 0.12524782121181488, 0.0027998622972518206, 0.014028375968337059, -0.04320894926786423, -0.08688292652368546, -0.026816675439476967, -0.012468591332435608, 0.002185878809541464, 0.021391335874795914, 0.054485902190208435, 0.03479967266321182, -0.06297267973423004, -0.05956247076392174, -0.03551659360527992, 0.013611787930130959, 0.024045877158641815, -0.038946181535720825, 0.0029839363414794207, -0.04611537978053093, 0.07370710372924805, -0.06467778980731964, -0.009363553486764431, 0.019075879827141762, 0.01715763472020626, 0.06122882291674614, -0.07878366857767105, 0.019608724862337112, 0.021836988627910614, -0.018920868635177612, 0.009121350944042206, -0.03452840819954872, 0.03379211202263832, -0.01748703047633171, -0.009537939913570881, 0.03214513137936592, 0.005095943342894316, -0.005415650550276041, 0.03193199262022972, 0.01629539206624031, -0.0033617725130170584, -0.05266454070806503, 0.005091099068522453, 0.03652415797114372, 0.01802956312894821, -0.013989623636007309, -0.03181573748588562, -0.04313144460320473, -0.023929620161652565, 0.03656290844082832, 0.04681292548775673, -0.08409275114536285, -0.06553034484386444, -0.02902556210756302, 0.06607287377119064, 0.015336270444095135, -0.020984435454010963, -0.015345958061516285, 0.057043563574552536, 0.008859772235155106, -0.06053128093481064, -0.039294954389333725, -0.03051753155887127, 0.04836301878094673, -0.03096318431198597, 0.007222482468932867, -0.02964560128748417, 0.038519904017448425, 0.022243889048695564, -0.027514219284057617, -0.08207762986421585, 0.026041626930236816, -0.006016313098371029, -0.06692542880773544, 0.020403148606419563, -0.022786423563957214, 0.008636945858597755, -0.06901805847883224, 0.05076567083597183, 0.03005250170826912, -0.012429839000105858, -0.020868178457021713, -0.04921557381749153, 0.0018794924253597856, -0.03377273306250572, 0.0025576597545295954, 0.03152509406208992, 0.0056578535586595535, 0.07928745448589325, -0.06041502207517624, -0.03625288978219032, 0.0012134352000430226, -0.00046775382361374795, -0.07304831594228745, 0.02821176126599312, -0.013175822794437408, -0.0014071972109377384, -0.005357522051781416, 0.036427274346351624, 0.042666416615247726, 0.022863928228616714, 0.04603787511587143, 0.010821613483130932, 0.052122004330158234, 0.056229762732982635, -0.007532501593232155, -0.01410588063299656, -0.03578786179423332, 0.010172510519623756, 0.0064813424833118916, -0.003555534640327096, 0.03100193664431572, -0.01853334531188011, 0.027804860845208168, -0.03613663092255592, 0.07959747314453125, -0.07157572358846664, -0.03412150591611862, 0.014929370023310184, 0.023232076317071915, 0.03712482005357742, -0.006452277768403292, -0.00849646795541048, 0.03553596884012222, 0.06239139661192894, -0.024627164006233215, 0.03447027876973152, 0.0031413680408149958, 0.011674166657030582, 0.0024922650773078203, 0.023406462743878365, 0.01807800494134426, 0.021120069548487663, 0.014638726599514484, -0.053284578025341034, -0.06758422404527664, -0.056849800050258636, -0.05692730471491814, -0.01528782956302166, -0.025654101744294167, -0.053517092019319534, 0.03429589048027992, -0.005967872682958841, -0.007450152654200792, -0.025169696658849716, 0.06758422404527664, 0.06905681639909744, -0.020926307886838913, 0.009886710904538631, -0.01564629003405571, 0.011877616867423058, -0.008544908836483955, 0.0012104075867682695, -0.03156384453177452, 0.011771047487854958, 0.00742108840495348, -0.011616038158535957, -0.018775546923279762, 0.07816363126039505, -0.024394648149609566, -0.018853051587939262, -0.014096193015575409, 0.03400524705648422, -0.03631101921200752, 0.005120163317769766, -0.01465810276567936, -0.022825175896286964, 0.005880679935216904, 0.025809111073613167, 0.005769266746938229, 0.013175822794437408, -0.10587161034345627, -0.04510781541466713, 0.0039697010070085526, 0.023464590311050415, -0.053749606013298035, 0.015568784438073635, 0.04565035179257393, -0.02962622605264187, 0.008569128811359406, -0.06390274316072464, -0.004236123990267515, 0.018649602308869362, 0.11338958144187927, -0.01573348231613636, 0.037628598511219025, 0.1472591906785965, -0.05026188865303993, -0.026661666110157967, 0.020713169127702713, 0.011945433914661407, 0.07277704775333405, 0.004916713107377291, 0.019686229526996613, -0.07304831594228745, -0.038578033447265625, 0.023503342643380165, 0.004575207829475403, -0.024491529911756516, 0.025305330753326416, -0.007479216903448105, -0.01751609332859516, 0.013311455957591534, 0.01579161174595356, -0.01751609332859516, -0.014057440683245659, 0.009407149627804756, 0.03565222769975662, -0.03319144621491432, 0.013795861974358559, -0.06006625294685364, 0.07723357528448105, 0.0019981716759502888, -0.027126694098114967, -0.011112256906926632, 0.011102568358182907, -0.07707856595516205, 0.07967497408390045, 0.027242951095104218, -0.012042314745485783, -0.014929370023310184, -0.026816675439476967, 0.05739233270287514, -0.023425837978720665, 0.010405024513602257, 0.008094411343336105, -0.03245515376329422, 0.006273047998547554, -0.019008062779903412, 0.02976185828447342, 0.004027829505503178, -0.019008062779903412, -0.022398898378014565, 0.06262391060590744, 0.0027562659233808517, 0.07339708507061005, -0.01731264404952526, 0.012778610922396183, -0.021662602201104164, 0.07831864058971405, 0.0063021122477948666, -0.03011063113808632, 0.08858802914619446, 0.038345519453287125, 0.04828551411628723, 0.03272641822695732, -0.04499156028032303, -0.024840300902724266, -0.008782267570495605, 0.007595474366098642, 0.06812675297260284, -0.03669854253530502, 0.00798299815505743, -0.06983186304569244, 0.024181509390473366, 0.04510781541466713, 0.009751077741384506, -0.04375148192048073, -0.023522719740867615, -0.008467404171824455, 0.03388899192214012, -0.0077650160528719425, -0.011490092612802982, 0.03111819364130497, -0.04553409293293953, 0.011606349609792233, -0.012420150451362133, 0.01702200062572956, -0.008782267570495605, 0.05041689798235893, 0.08998312056064606, 0.022825175896286964, -0.05033939331769943, -0.025169696658849716, 0.0022500623017549515, 0.01842677593231201, -0.053827110677957535, 0.010385648347437382, 0.0036427276208996773, 0.013999312184751034, -0.003078395500779152, 0.022011375054717064, -0.036214135587215424, -0.00887914840131998, -0.04274392127990723, -0.06715794652700424, -0.040535032749176025, 0.01638258621096611, 0.027339832857251167, -0.03543908894062042, 0.04739420861005783, -0.00434753717854619, -0.07440464943647385, 0.05913619324564934, -0.05882617458701134, 0.04487530142068863, -0.021333208307623863, -0.0013490685960277915, -0.01702200062572956, 0.005401118658483028, -0.023251451551914215, -0.008961496874690056, -0.022050127387046814, -0.03309456631541252, 0.0005603963509202003, 0.022612037137150764, -0.020538782700896263, 0.01650853082537651, -0.0022767046466469765, -0.0034344331361353397, -0.0011020218953490257, 0.02894805744290352, -0.006888242904096842, -0.03431526944041252, -0.06312768906354904, -0.06467778980731964, -0.028056751936674118, -0.025557221844792366, -0.03069191612303257, 0.05987248942255974, -0.020577535033226013, -0.055183447897434235, 0.010899118147790432, -0.0006448645144701004, -0.053052064031362534, -0.01668291725218296, -0.021120069548487663, -0.054098378866910934, -0.004739905241876841, -0.003027532948181033, -0.019695917144417763, 0.036640413105487823, 0.0019691074267029762, 0.00872413907200098, 0.056656040251255035, 0.10261640697717667, 0.0069948118180036545, 0.002678761025890708, -0.026971684768795967, -0.002824082737788558, -0.053168319165706635, -0.04224013909697533, 0.03491593152284622, 0.053517092019319534, -0.041658852249383926, -0.022050127387046814, 0.040767546743154526, 0.0062439837493002415, 0.03020751103758812, -0.022030750289559364, 0.002185878809541464, 0.006626663729548454, 0.10292642563581467, -0.002431714441627264, 0.06181010976433754, 0.03166072815656662, -0.0002859504893422127, -0.006176167167723179, -0.003875242080539465, -0.01817488484084606, -0.056617286056280136, -0.012720482423901558, -0.04913806915283203, -0.039604973047971725, -0.01473560743033886, 0.03565222769975662, 0.056307267397642136, -0.025576597079634666, -0.0004374785057734698, -0.03350146859884262, 0.04448777809739113, -0.03528407961130142, -0.03082755021750927, 0.005154071841388941, -0.004146508872509003, 0.04545658826828003, 0.00914072711020708, -0.01483248919248581, -0.04847927764058113, 0.08471278846263885, -0.000024541937818867154, 0.03669854253530502, -0.027669228613376617, -0.003390836762264371, -0.001516188494861126, 0.05119194835424423, 0.010695667937397957, -0.06677041947841644, 0.025189073756337166, 0.019075879827141762, -0.025615349411964417, -0.019879991188645363, 0.00854975264519453, -0.006592755671590567, 0.010840989649295807, 0.014134945347905159, -0.02980061061680317, -0.011761359870433807, 0.03175760805606842, -0.03619476035237312, -0.001427784445695579, -0.09254077821969986, 0.026487279683351517, -0.03602037578821182, -0.025518469512462616, 0.007111069280654192, -0.005338145885616541, -0.10649164766073227, 0.00033454239019192755, -0.026216011494398117, 0.013098318129777908, -0.039876241236925125, -0.038946181535720825, 0.05855490639805794, 0.03100193664431572, 0.0041222888976335526, -0.0005019649397581816, -0.04212388023734093, 0.011519157327711582, -0.03656290844082832, 0.03613663092255592, 0.055997248739004135, -0.023290203884243965, 0.011887304484844208, -0.04522407427430153, 0.018969310447573662, -0.038403648883104324, -0.004841630347073078, 0.054175883531570435, -0.01695418357849121, -0.00014532158093061298, -0.01523938961327076, -0.01652790792286396, 0.022708918899297714, -0.00880164373666048, -0.006447433959692717, -0.010753796435892582, 0.011315707117319107, 0.025905992835760117, -0.010521282441914082, -0.005517375655472279, 0.0004129554727114737, -0.01760328747332096, -0.038016125559806824, 0.010744108818471432, -0.06471654027700424, -0.08765797317028046, 0.007769860327243805, -0.001866171252913773, -0.04855678230524063, 0.002293658908456564, 0.019695917144417763, 0.02958747372031212, -0.0009948472725227475, -0.04696793481707573, 0.010521282441914082, 0.05010687932372093, 0.01826207898557186, -0.013495530001819134, -0.06041502207517624, -0.05146321281790733, 0.05808987841010094, -0.04154259338974953, -0.01641165092587471, -0.011102568358182907, -0.0013781329616904259, -0.05231576785445213, -0.0053865863010287285, 0.04654165729880333, 0.02978123538196087, -0.03131195530295372, -0.039043065160512924, -0.038791172206401825, -0.039217449724674225, 0.040612537413835526, 0.01793268322944641, 0.021449465304613113, -0.004960309714078903, 0.007125601172447205, 0.018940245732665062, 0.03452840819954872, -0.009373242035508156, -0.05994999408721924, 0.005342990159988403, -0.006093818228691816, 0.01410588063299656, -0.0040108757093548775, -0.013543970882892609, -0.05068816617131233, -0.026041626930236816, -0.021933870390057564, -0.014415900222957134, 0.039294954389333725, -0.041193824261426926, 0.01730295643210411, -0.06072504445910454, -0.04336395859718323, 0.06990936398506165, 0.03133133053779602, -0.04909931495785713, 0.05917494744062424, -0.04638664796948433, -0.0036499935667961836, 0.005081410985440016, 0.06181010976433754, -0.002448668470606208, -0.03538095951080322, 0.03532283008098602, -0.03111819364130497, -0.005066879093647003, -0.024394648149609566, 0.002136227209120989, -0.009160103276371956, -0.009523407556116581, -0.07835739105939865, -0.002562503796070814, 0.02854115702211857, -0.01662478782236576, 0.04169760271906853, -0.08021751046180725, 0.022224513813853264, -0.01745796576142311, -0.053129568696022034, -0.054330892860889435, -0.03348208963871002, 0.040767546743154526, 0.01809738017618656, 0.053090814501047134, 0.04758797213435173, 0.02871554344892502, 0.05855490639805794, -0.01562691293656826, 0.022670166566967964, -0.0006872499361634254, 0.004289408680051565, 0.03171885758638382, -0.025421587750315666, 0.04778173565864563, 0.05967872589826584, -0.01779704913496971, -0.05801237374544144, -0.019686229526996613, -0.0010947558330371976, 0.026041626930236816, 0.04758797213435173, 0.022844551131129265, 0.00797331053763628, -0.03691168129444122, 0.06076379492878914, 0.005129851866513491, -0.03410213068127632, -0.04452653229236603, 0.011528844945132732, -0.04177510738372803, 0.03138945996761322, 0.03264891356229782, 0.05223826318979263, -0.013272703625261784, 0.002586724003776908, -0.014367460273206234, 0.020887553691864014, -0.0016227576415985823, -0.010027188807725906, -0.01435777172446251, -0.020519407466053963, 0.039914991706609726, -0.025615349411964417, 0.01870773173868656, -0.020248139277100563, 0.009654196910560131, -0.0007883695652708411, 0.01833958365023136, -0.07246702909469604, -0.021933870390057564, -0.010104693472385406, 0.0017850333824753761, 0.03534220904111862, 0.02904493920505047, -0.026177259162068367, -0.054679665714502335, 0.01605319045484066, 0.04212388023734093, 0.06343771517276764, -0.0018698042258620262, 0.012613913044333458, 0.006108350120484829, 0.021895118057727814, -0.04351896792650223, 0.04580536112189293, 0.019608724862337112, -0.05157947167754173, -0.03324957564473152, -0.04448777809739113, 0.03646602854132652, 0.0022876039147377014, 0.003412635065615177, -0.013805549591779709, -0.04402275010943413, 0.026138506829738617, -0.025208448991179466, -0.06246890127658844, 0.041116319596767426, 0.038364894688129425, -0.03106006421148777, -0.010385648347437382, -0.01616944745182991, 0.009741390123963356, -0.042085129767656326, 0.026235388591885567, -0.00828817393630743, -0.04340270906686783, -0.010802237316966057, -0.03171885758638382, -0.007600318640470505, -0.023561472073197365, 0.04402275010943413, 0.012458902783691883, 0.023871490731835365, 0.00745984073728323, -0.05099818482995033, 0.027320455759763718, 0.011771047487854958, -0.06068629026412964, 0.000329092814354226, -0.0012497655116021633, -0.0025503935758024454, 0.014677478931844234, 0.04406150057911873, 0.019075879827141762, -0.03125382587313652, 0.03530345484614372, 0.004115022718906403, -0.03206762671470642, -0.002189511666074395, 0.06405775249004364, 0.019027438014745712, 0.019114632159471512, 0.019686229526996613, 0.03044002689421177, 0.025944745168089867, -0.023445215076208115, -0.012865803204476833, 0.052935805171728134, -0.02896743454039097, -0.06227513775229454, -0.0009009937639348209, -0.023038314655423164, 0.06095755845308304, -0.025053439661860466, 0.01704137772321701, 0.025595974177122116, -0.01667322963476181, -0.0027199354954063892, -0.020674416795372963, -0.02931620553135872, 0.06700293719768524, -0.00827364157885313, -0.01616944745182991, 0.011092880740761757, 0.057547345757484436, -0.054214637726545334, -0.042666416615247726, 0.06157759577035904, 0.006679948419332504, -0.008506156504154205, -0.01826207898557186, 0.04235639423131943, -0.003751718671992421, -0.020693792030215263, 0.05332333222031593, 0.04340270906686783, 0.037454213947057724, 0.006432901602238417, 0.02993624471127987, 0.053129568696022034, -0.004560675472021103, 0.009203699417412281, 0.039081815630197525, -0.024452777579426765, 0.020286891609430313, -0.024724043905735016, 0.042085129767656326, 0.005846771411597729, 0.013321144506335258 ]
729,383
tinytuya.Cloud
cloudrequest
Make a generic cloud request and return the results. Args: url: Required. The URL to fetch, i.e. "/v1.0/devices/0011223344556677/logs" action: Optional. GET, POST, DELETE, or PUT. Defaults to GET, unless POST data is supplied. post: Optional. POST body data. Will be fed into json.dumps() before posting. query: Optional. A dict containing query string key/value pairs.
def cloudrequest(self, url, action=None, post=None, query=None): """ Make a generic cloud request and return the results. Args: url: Required. The URL to fetch, i.e. "/v1.0/devices/0011223344556677/logs" action: Optional. GET, POST, DELETE, or PUT. Defaults to GET, unless POST data is supplied. post: Optional. POST body data. Will be fed into json.dumps() before posting. query: Optional. A dict containing query string key/value pairs. """ if not self.token: return self.error if action is None: action = 'POST' if post else 'GET' return self._tuyaplatform(url, action=action, post=post, ver=None, query=query)
(self, url, action=None, post=None, query=None)
[ -0.02177347056567669, -0.043869245797395706, -0.05504247173666954, 0.029848992824554443, -0.004051190335303545, 0.010358513332903385, -0.029347630217671394, -0.02250760793685913, -0.0028291186317801476, -0.04293814301490784, 0.008760419674217701, 0.009046913124620914, -0.01784314401447773, -0.017082147300243378, 0.06800628453493118, -0.02827328070998192, 0.009937726892530918, 0.008272485807538033, 0.06693193316459656, -0.07065634429454803, 0.05002884566783905, 0.05876688286662102, 0.020520063117146492, -0.0041116224601864815, 0.025497879832983017, 0.06381632387638092, 0.027807729318737984, -0.051855240017175674, 0.04043132811784744, -0.02109305001795292, -0.0004330968949943781, 0.06539203226566315, -0.007941228337585926, 0.03097705915570259, -0.02868511527776718, 0.02646479383111, 0.03864074870944023, -0.01029584277421236, -0.06302846968173981, -0.05035115033388138, -0.0821518748998642, -0.06467580050230026, 0.013124962337315083, -0.027252649888396263, 0.07642201334238052, 0.06227642297744751, -0.025999242439866066, -0.0030305590480566025, -0.04343950375914574, -0.0038005090318620205, -0.01802220195531845, 0.11968246102333069, 0.0006132741109468043, -0.06012772396206856, -0.04533752053976059, -0.013089150190353394, -0.03613393381237984, -0.02256132662296295, -0.0700475424528122, 0.05411136895418167, -0.001338459667749703, 0.07420169562101364, 0.016929946839809418, 0.042078662663698196, -0.07427331805229187, 0.03240952268242836, -0.024781646206974983, 0.04343950375914574, 0.004098193254321814, 0.0024665258824825287, -0.007847223430871964, -0.014763344079256058, -0.03835425525903702, -0.037888702005147934, 0.05045858398079872, 0.012677316553890705, 0.04594631865620613, -0.012158048339188099, -0.0541829951107502, -0.04186379536986351, -0.008791754953563213, -0.018165448680520058, 0.04197122901678085, -0.026643851771950722, 0.008209816180169582, 0.005098680499941111, -0.04046713933348656, -0.04329625889658928, -0.0403238944709301, 0.06746910512447357, -0.055185720324516296, -0.020054511725902557, -0.05361000820994377, 0.0005964874289929867, 0.016750888898968697, 0.0004386924556456506, -0.032624393701553345, 0.02782563492655754, -0.03770964592695236, -0.010179455392062664, 0.0594831146299839, -0.0024665258824825287, 0.0014749914407730103, -0.02170184627175331, 0.008823090232908726, -0.09203588217496872, 0.003274525748565793, 0.046125378459692, 0.019266655668616295, 0.04197122901678085, -0.02442353032529354, 0.027682388201355934, -0.017780473455786705, -0.000847168848849833, 0.018890634179115295, -0.006020830012857914, 0.018460894003510475, 0.03470146656036377, -0.08000317960977554, -0.033233191817998886, -0.045480769127607346, -0.002471002284437418, 0.037996139377355576, -0.06532040983438492, 0.006396851968020201, 0.024602588266134262, -0.001441418076865375, -0.009776574559509754, -0.03104868158698082, 0.004337683320045471, -0.053466763347387314, 0.0072697605937719345, 0.024262377992272377, 0.040288083255290985, 0.02295525372028351, -0.015005072578787804, 0.009499034844338894, -0.0027597337029874325, -0.013527842238545418, 0.051174815744161606, 0.00036399162490852177, -0.018657859414815903, -0.00756072998046875, -0.04075363278388977, 0.011790978722274303, -0.029419252648949623, 0.0014436562778428197, -0.07900045067071915, 0.025086045265197754, 0.042400967329740524, 0.0015522103058174253, 0.02782563492655754, 0.0766368880867958, -0.06091558188199997, 0.001863323850557208, 0.008966336958110332, 0.03810357302427292, -0.0917493924498558, 0.0024396672379225492, -0.01063605397939682, -0.01955314911901951, 0.006781827192753553, -0.032069314271211624, -0.022776195779442787, 0.0240654144436121, -0.030386166647076607, -0.010170502588152885, -0.005188209470361471, -0.015837693586945534, -0.01696575991809368, -0.053144458681344986, 0.027557048946619034, 0.0038855616003274918, -0.02881045453250408, 0.025408349931240082, -0.027807729318737984, -0.02293734811246395, 0.004304110072553158, -0.01910550333559513, -0.031388893723487854, -0.020734932273626328, 0.003963899798691273, 0.02091399021446705, 0.0728408545255661, -0.005130015779286623, -0.031245645135641098, 0.00853212084621191, -0.00005756439350079745, -0.07022660225629807, 0.08809660375118256, -0.02232854999601841, -0.02752123586833477, 0.03131726756691933, -0.02096770890057087, 0.04014483466744423, -0.023707298561930656, 0.0030484648887068033, 0.03067266009747982, 0.05156874656677246, 0.05292958766222, -0.054648544639348984, 0.028309091925621033, 0.025891806930303574, -0.0029566974844783545, -0.02734217792749405, -0.024566777050495148, 0.0024195231962949038, -0.001404487295076251, -0.03606231138110161, 0.010403278283774853, 0.008823090232908726, 0.035346075892448425, -0.008921572007238865, 0.00203790538944304, -0.005371744278818369, -0.008567932061851025, -0.02021566405892372, 0.00800389889627695, -0.041040126234292984, -0.03839006647467613, 0.047522030770778656, 0.004243677947670221, 0.02882836014032364, -0.00899767130613327, -0.031567949801683426, 0.03359130769968033, 0.03240952268242836, 0.036277178674936295, -0.06521297246217728, -0.05980541929602623, -0.010394325479865074, -0.004557029809802771, 0.09848197549581528, 0.03896305337548256, 0.0020144041627645493, -0.05837295576930046, -0.0007934513851068914, 0.0058507248759269714, 0.053466763347387314, -0.05472016707062721, 0.07316315919160843, -0.02114676684141159, -0.008447067812085152, -0.014942402020096779, -0.04501521587371826, -0.038569122552871704, -0.011567155830562115, 0.05565126985311508, 0.013671088963747025, -0.03210512548685074, -0.009687045589089394, -0.06646638363599777, -0.009785527363419533, -0.04111174866557121, 0.005622425582259893, -0.05232078954577446, 0.05826551839709282, 0.019947076216340065, 0.016715077683329582, -0.02913275919854641, -0.04952748119831085, 0.03420010581612587, 0.017861049622297287, 0.07599227875471115, -0.060951393097639084, -0.02084236778318882, 0.024889081716537476, 0.008764896541833878, 0.01973220705986023, 0.021003520116209984, 0.04630443453788757, 0.08566141873598099, 0.00720261363312602, -0.03996577858924866, -0.01630324311554432, -0.05013627931475639, -0.016240574419498444, 0.019839642569422722, 0.00751596549525857, -0.07219624519348145, -0.0053806970827281475, -0.06976105272769928, 0.01060919463634491, -0.02913275919854641, -0.04118337109684944, -0.07620714604854584, -0.011513439007103443, 0.02671547420322895, 0.005027057137340307, 0.0005349362036213279, 0.0023881879169493914, 0.03896305337548256, -0.057799968868494034, -0.02696615643799305, -0.03674273192882538, -0.008975289762020111, -0.027592860162258148, 0.024566777050495148, 0.060020290315151215, 0.011710402555763721, 0.00047954008914530277, 0.013877006247639656, 0.0055418494157493114, -0.03190816193819046, 0.03910629823803902, -0.009302070364356041, 0.029598310589790344, -0.008724608458578587, -0.029043231159448624, -0.021558599546551704, -0.022543421015143394, -0.000890814233571291, -0.028309091925621033, -0.022185303270816803, -0.06585758179426193, 0.05070926621556282, 0.02071702666580677, 0.005197162739932537, 0.007363765966147184, 0.02857767976820469, -0.002079312689602375, 0.03362711891531944, 0.008881283923983574, 0.04343950375914574, 0.003943755757063627, -0.05937568098306656, 0.04576726257801056, 0.016168950125575066, -0.005662713665515184, 0.031943973153829575, 0.03763802349567413, 0.07513279467821121, -0.019624771550297737, -0.014145593158900738, -0.04634024575352669, -0.06514135003089905, -0.016598690301179886, -0.02895370125770569, -0.01573025807738304, 0.028971606865525246, -0.012355011887848377, 0.02820165827870369, -0.029759462922811508, -0.02641107700765133, 0.027968881651759148, 0.010036208666861057, 0.07570578157901764, -0.02454887144267559, 0.05514990910887718, -0.03248114883899689, 0.023922167718410492, -0.027413802221417427, -0.0026299164164811373, 0.044871971011161804, 0.059518925845623016, -0.002072598086670041, -0.016419632360339165, -0.06463999301195145, -0.004136242903769016, -0.02555159665644169, 0.039679285138845444, 0.006325229071080685, -0.014208263717591763, 0.03842587769031525, -0.01292799785733223, -0.060270972549915314, 0.039177920669317245, -0.023510335013270378, -0.027055684477090836, 0.03425382450222969, -0.02053796872496605, -0.048202451318502426, 0.005519467405974865, 0.07137257605791092, 0.0001509404246462509, -0.009239399805665016, -0.05224916711449623, -0.06997592002153397, -0.012793703936040401, 0.07620714604854584, -0.016168950125575066, 0.025265103206038475, -0.00023557337408419698, -0.02918647788465023, 0.05715535953640938, -0.05095994845032692, -0.018263930454850197, 0.03004595637321472, 0.026088772341609, 0.023098500445485115, 0.0398225300014019, -0.015587011352181435, -0.017252251505851746, 0.01670612394809723, -0.02034100517630577, 0.03389570489525795, -0.03770964592695236, -0.03389570489525795, -0.017395498231053352, -0.020949803292751312, -0.004856952000409365, -0.005635855253785849, -0.036330897361040115, 0.04372599720954895, -0.002578437328338623, 0.023957978934049606, -0.009561704471707344, -0.05776415765285492, -0.0012567642843350768, -0.015184130519628525, -0.028434433043003082, -0.04261583834886551, -0.05901756510138512, -0.008930524811148643, 0.0004767423088196665, -0.01867576502263546, -0.02633945271372795, 0.07341384142637253, 0.005358315072953701, 0.04727134853601456, 0.0036639771424233913, -0.02623201720416546, 0.03828263282775879, 0.009221494197845459, -0.004995722323656082, 0.012811610475182533, 0.000122892641229555, -0.008688796311616898, 0.03017129749059677, 0.01122694555670023, -0.0013988917926326394, 0.050064656883478165, -0.022239021956920624, -0.02257923223078251, 0.004436165560036898, 0.05110319331288338, -0.015846645459532738, 0.011182180605828762, 0.0667886883020401, 0.003061894327402115, -0.06585758179426193, 0.024942798539996147, -0.03536398336291313, -0.029759462922811508, 0.0652846023440361, 0.01570339873433113, -0.016670312732458115, -0.020609593018889427, 0.038246817886829376, -0.04748621955513954, -0.0036550243385136127, 0.03871237114071846, 0.036509957164525986, 0.029526688158512115, 0.031872350722551346, -0.06406700611114502, -0.05547221377491951, 0.021934622898697853, 0.012202812358736992, 0.05386069044470787, 0.03475518524646759, 0.012444540858268738, 0.004120575729757547, -0.05189105123281479, 0.026697568595409393, 0.03661739081144333, 0.0322662778198719, 0.03699341416358948, 0.02974155731499195, -0.09769412130117416, -0.024405624717473984, 0.021558599546551704, -0.04676998779177666, 0.08881283551454544, -0.01791476644575596, -0.013760617934167385, 0.01351888943463564, -0.02417284995317459, -0.005474702920764685, -0.04197122901678085, -0.004214581102132797, -0.044549666345119476, 0.019141316413879395, 0.008035234175622463, -0.01862204633653164, -0.011737260967493057, 0.024638401344418526, 0.019033880904316902, 0.08587628602981567, -0.07785447686910629, -0.036885976791381836, 0.044549666345119476, 0.045373331755399704, -0.01623162068426609, -0.08738037198781967, 0.01193422544747591, -0.04540914669632912, -0.026088772341609, -0.017279110848903656, 0.06127369776368141, 0.006898215040564537, 0.022865725681185722, 0.02827328070998192, 0.018290789797902107, -0.026500605046749115, 0.022006245329976082, 0.05282215401530266, 0.0602351576089859, 0.03817519545555115, -0.010770346969366074, -0.03643833100795746, 0.021057236939668655, 0.060020290315151215, -0.014951354824006557, -0.03439706936478615, -0.02913275919854641, -0.03885561600327492, -0.012632551603019238, -0.04136243090033531, 0.010000397451221943, 0.03971509635448456, 0.06575015187263489, 0.002753018867224455, -0.0064998106099665165, -0.007645782548934221, 0.006737062707543373, -0.010376418940722942, 0.030690565705299377, -0.055006660521030426, 0.06793466210365295, -0.002647822257131338, -0.001107922289520502, 0.005882060155272484, -0.02517557516694069, -0.014709626324474812, 0.020412627607584, -0.09088991582393646, -0.036295086145401, -0.0009568419773131609, -0.015810834243893623, 0.020573779940605164, 0.003402104601264, -0.006441616918891668, -0.02689453214406967, -0.07943019270896912, -0.013859100639820099, 0.025712748989462852, 0.018058013170957565, 0.01212223619222641, -0.010779299773275852, 0.011370192281901836, 0.0020591686479747295, 0.02436981350183487, -0.02585599571466446, 0.006289417389780283, 0.08816822618246078, 0.019893359392881393, -0.020806556567549706, 0.018075918778777122, -0.05020790174603462, -0.003630403894931078, -0.019212938845157623, -0.05575870722532272, 0.06349401921033859, -0.0410759374499321, -0.01471857912838459, -0.006334181874990463, 0.06349401921033859, 0.00398180540651083, -0.05790740251541138, 0.04415573924779892, -0.006732586305588484, 0.007981516420841217, 0.04379762336611748, 0.040861066430807114, 0.04125499725341797, 0.02078865095973015, -0.004736087750643492, 0.044012490659952164, 0.004042237531393766, 0.02059168554842472, 0.011217992752790451, -0.0008107976755127311, 0.0021945813205093145, -0.006002924405038357, -0.033358532935380936, 0.035095397382974625, -0.03253486379981041, 0.0034155340399593115, -0.04433479532599449, -0.009373693726956844, -0.02764657698571682, -0.021880904212594032, 0.050816699862480164, -0.06009191274642944, 0.010618147440254688, -0.02225692756474018, 0.01685832440853119, -0.013205538503825665, 0.027360083535313606, -0.018783198669552803, 0.04383343458175659, -0.023026878014206886, -0.0677914097905159, -0.0045704590156674385, 0.021809281781315804, -0.07205300033092499, -0.040968503803014755, 0.043690185993909836, -0.012184906750917435, 0.06481904536485672, -0.034862618893384933, -0.0718381255865097, 0.05164036899805069, 0.026876626536250114, 0.008008375763893127, -0.019678490236401558, 0.04261583834886551, 0.04354694113135338, -0.06009191274642944, 0.042078662663698196, 0.026196205988526344, 0.018819011747837067, 0.02838071621954441, -0.01635696180164814, 0.049885597079992294, -0.03525654971599579, -0.035095397382974625, -0.07190974801778793, 0.019123408943414688, 0.011540297418832779, 0.010501760058104992, -0.014915543608367443, 0.04634024575352669, -0.00850526150316, -0.04651930555701256, 0.030278731137514114, -0.014691720716655254, -0.01917712762951851, 0.06288521736860275, -0.02313431166112423, 0.08172213286161423, -0.0014313460560515523, -0.009064818732440472, 0.013474125415086746, 0.0017737947637215257, -0.034038953483104706, 0.005121062975376844, 0.03443288058042526, -0.029598310589790344, -0.0036505479365587234, 0.0390704870223999, 0.10593079775571823, 0.02734217792749405, -0.0471281036734581, 0.019374091178178787, -0.011799931526184082, 0.014217216521501541, 0.002676919335499406, -0.01696575991809368, -0.011235898360610008, 0.012355011887848377, 0.05651075020432472, -0.05070926621556282, -0.04043132811784744, -0.03085171803832054, 0.07137257605791092, -0.1083659902215004, -0.0020591686479747295, 0.03140679746866226, -0.005510514136403799, 0.00023669248912483454, 0.05332351475954056, 0.053968124091625214, 0.04268746078014374, -0.03505958616733551, 0.05514990910887718, 0.0016473348950967193, -0.031012870371341705, 0.012399776838719845, 0.04967072978615761, 0.026500605046749115, -0.0006725871353410184, 0.058301329612731934, -0.03597278147935867, 0.007927799597382545, 0.042830709367990494, -0.013671088963747025, -0.015936175361275673, 0.000007033802376099629, -0.0020356671884655952, -0.018944351002573967, -0.0014022490940988064, 0.04379762336611748, -0.024692118167877197, 0.034790996462106705, -0.029204383492469788, -0.02628573589026928, 0.012811610475182533, 0.07656526565551758, 0.07441656291484833, -0.009848197922110558, -0.017699897289276123, 0.031156117096543312, 0.0026791575364768505, 0.03996577858924866, 0.006629627663642168, -0.019338279962539673, -0.007305572275072336, -0.01570339873433113, 0.012355011887848377, -0.014369416050612926, 0.03264230117201805, -0.020752837881445885, -0.014951354824006557, 0.03029663860797882, -0.02034100517630577, 0.021003520116209984, -0.030153391882777214, 0.062133174389600754, -0.0009271854651160538, -0.04404830187559128, 0.038497500121593475, -0.02084236778318882, -0.003373007755726576, 0.03574000671505928, -0.015273659490048885, 0.026554321870207787, 0.026572229340672493, -0.014100829139351845, -0.05690467730164528, 0.012274435721337795, 0.018836917355656624, -0.03659948334097862, 0.004232486709952354, -0.06431768834590912, -0.0011560441926121712, -0.04200704023241997, 0.06976105272769928, 0.02220320887863636, -0.05164036899805069, -0.023026878014206886, -0.002560531487688422, -0.014091875404119492, 0.025891806930303574, -0.01282951608300209, 0.04605375602841377, -0.015345282852649689, -0.005434414837509394, 0.021361635997891426, 0.029544593766331673, -0.032624393701553345, 0.02282991260290146, -0.024190755560994148, 0.02795097604393959, 0.02596343122422695, -0.005474702920764685, -0.003146946895867586, 0.007166801951825619, 0.003245428903028369, -0.008174004033207893, 0.004865904804319143, -0.031245645135641098, 0.022543421015143394, 0.004330968949943781, 0.032248370349407196, 0.03334062546491623, 0.004333206918090582 ]
729,384
tinytuya.Cloud
filter_devices
null
def filter_devices( self, devs, ip_list=None ): json_mac_data = {} # mutable json_mac_data will be modified self._get_hw_addresses( json_mac_data, [i['id'] for i in devs] ) tuyadevices = [] icon_host = 'https://images.' + self.urlhost.split( '.', 1 )[1] + '/' for i in devs: dev_id = i['id'] item = { 'name': '' if 'name' not in i else i['name'].strip(), 'id': dev_id, 'key': '' if 'local_key' not in i else i['local_key'], 'mac': '' if 'mac' not in i else i['mac'] } if dev_id in json_mac_data: for k in ('mac','uuid','sn'): if k in json_mac_data[dev_id]: item[k] = json_mac_data[dev_id][k] if ip_list and 'mac' in item and item['mac'] in ip_list: item['ip'] = ip_list[item['mac']] for k in DEVICEFILE_SAVE_VALUES: if k in i: if k == 'icon': item[k] = icon_host + i[k] else: item[k] = i[k] if 'gateway_id' in i: k = 'gateway_id' item[k] = i[k] tuyadevices.append(item) return tuyadevices
(self, devs, ip_list=None)
[ 0.02504865452647209, -0.03949839249253273, -0.037059538066387177, -0.02614888735115528, -0.05904587730765343, -0.039058297872543335, -0.0393516942858696, -0.02867942675948143, 0.0027574608102440834, 0.05490166321396828, -0.008283843286335468, -0.00006095696153352037, -0.013771259225904942, 0.01551329530775547, 0.03572092205286026, -0.012221762910485268, -0.030421461910009384, 0.021197836846113205, 0.07708971202373505, -0.03913164511322975, -0.009902103804051876, 0.04635651409626007, 0.006821448914706707, 0.021032800897955894, 0.040708646178245544, 0.06539055705070496, 0.023196594789624214, -0.0045590936206281185, 0.027835913002490997, 0.00627591647207737, 0.04697997868061066, 0.013963799923658371, 0.06219987943768501, 0.01163497194647789, 0.012185088358819485, 0.006583065260201693, 0.03777468949556351, 0.013404514640569687, -0.09674721956253052, -0.003761423984542489, 0.01698027364909649, -0.06733430176973343, 0.02383839711546898, -0.016540180891752243, 0.02218804694712162, 0.06821449100971222, -0.0272674597799778, 0.027010738849639893, 0.02763420343399048, -0.005455325357615948, -0.020519359037280083, 0.04147881269454956, -0.024260153993964195, 0.0444127693772316, 0.027322471141815186, -0.03034811280667782, -0.04353258013725281, 0.008577238768339157, 0.04709000512957573, 0.011790838092565536, -0.02453521266579628, -0.0008246022625826299, 0.08831209689378738, -0.04367927834391594, -0.0011965042212978005, -0.00771080469712615, -0.05101417005062103, 0.0006320613319985569, -0.05449824407696724, 0.05336133763194084, -0.010608087293803692, -0.020702730864286423, 0.005001479294151068, 0.0025488748215138912, 0.004174011759459972, 0.024480201303958893, 0.020519359037280083, -0.0136337298899889, -0.06575730443000793, -0.07569608092308044, 0.0335938036441803, 0.0437159538269043, -0.006106297019869089, 0.04096537083387375, 0.023673363029956818, 0.05325131118297577, -0.00501064769923687, 0.01434888131916523, -0.034345630556344986, -0.009782911278307438, -0.012515158392488956, 0.032200172543525696, -0.0250853281468153, 0.04334921017289162, -0.0027322471141815186, 0.026643993332982063, -0.03610600531101227, 0.01686108112335205, 0.008146313950419426, 0.0025763807352632284, 0.013963799923658371, -0.044486116617918015, -0.05075744912028313, -0.033832188695669174, 0.05394812673330307, -0.054058149456977844, -0.041405461728572845, 0.03377717360854149, -0.015256574377417564, 0.05009730905294418, -0.048960402607917786, -0.006784774828702211, 0.03621602803468704, -0.02486528269946575, 0.07708971202373505, -0.021546244621276855, 0.01372541580349207, -0.020482685416936874, 0.02867942675948143, -0.048080213367938995, -0.03262193128466606, 0.015907546505331993, -0.004041066858917475, 0.001831430708989501, -0.03854485601186752, 0.009709563106298447, 0.055451780557632446, -0.01055307500064373, 0.023948421701788902, 0.05974269285798073, -0.07470586895942688, 0.0002084427251247689, -0.02721244841814041, 0.032016802579164505, 0.0439726747572422, -0.0861116275191307, -0.012029222212731838, -0.010076306760311127, 0.06058620288968086, -0.04562302678823471, -0.031283311545848846, -0.0013924833619967103, -0.013597055338323116, 0.027909262105822563, -0.040341902524232864, -0.021234510466456413, 0.0021603547502309084, -0.016090918332338333, -0.0008601306471973658, -0.03537251427769661, -0.04870367795228958, 0.07063500583171844, -0.059999413788318634, -0.02776256389915943, -0.010736447758972645, 0.008095886558294296, -0.01984088122844696, -0.026038864627480507, 0.008989826776087284, 0.0425790436565876, -0.018979031592607498, -0.023049896582961082, -0.04111206531524658, 0.012194257229566574, -0.034363966435194016, -0.048263587057590485, -0.060512855648994446, 0.038508180528879166, -0.004914377350360155, -0.004229023586958647, -0.0021202419884502888, -0.00766954617574811, 0.029302891343832016, -0.026093875989317894, -0.04316583648324013, 0.026020526885986328, -0.037994738668203354, -0.07485257089138031, 0.013963799923658371, -0.00277121365070343, -0.03306202217936516, 0.017979653552174568, 0.038178108632564545, 0.04514625668525696, 0.028092633932828903, 0.01914406754076481, -0.012762711383402348, 0.06153973937034607, 0.034217268228530884, 0.015064033679664135, 0.020097602158784866, 0.017282838001847267, -0.003222767962142825, -0.008801870048046112, -0.01820886880159378, -0.017273670062422752, 0.04595309495925903, -0.006550975143909454, -0.02908284403383732, -0.03696785494685173, -0.06872793287038803, 0.00766037730500102, -0.0013615392381325364, 0.01046138908714056, -0.0028285174630582333, -0.011882524006068707, -0.0037178732454776764, 0.02757919207215309, 0.011020674370229244, 0.03938836604356766, 0.029449589550495148, -0.011607466265559196, -0.022481443360447884, 0.010241342708468437, 0.03803141415119171, -0.019932568073272705, -0.0028193488251417875, 0.047163352370262146, -0.015494958497583866, -0.056368641555309296, -0.05046405270695686, -0.042285650968551636, -0.06498713791370392, -0.012130076996982098, -0.046099793165922165, 0.041735533624887466, -0.04606311768293381, 0.016668541356921196, -0.0032411052379757166, -0.027010738849639893, 0.04364260286092758, -0.025690456852316856, 0.0577622689306736, 0.028606077656149864, -0.023783385753631592, 0.020702730864286423, 0.05057407543063164, -0.04888705164194107, 0.02613055147230625, -0.02039099857211113, 0.00862308219075203, -0.041258763521909714, 0.0718085914850235, -0.06594067811965942, 0.03749963268637657, -0.008091302588582039, -0.004063988104462624, -0.005299459211528301, 0.019254090264439583, -0.06091627478599548, 0.02778090164065361, 0.020519359037280083, 0.0476401187479496, -0.01842891424894333, -0.009810416959226131, -0.05860578268766403, -0.014367219060659409, 0.009416166692972183, 0.038874924182891846, -0.06740765273571014, 0.009718731045722961, -0.023875072598457336, -0.014431399293243885, 0.025855492800474167, -0.03557422384619713, -0.010094644501805305, 0.014954010024666786, 0.07789655029773712, -0.07576943188905716, 0.028110971674323082, 0.02238975651562214, 0.023710036650300026, 0.00015629622794222087, -0.050940822809934616, -0.014752300456166267, -0.0023471652530133724, 0.007142350543290377, -0.03122830018401146, -0.0257821436971426, -0.07114844769239426, -0.012084233574569225, -0.005776226986199617, -0.013578717596828938, 0.03588595613837242, 0.07485257089138031, -0.06370352953672409, 0.030421461910009384, 0.009406998753547668, -0.021417884156107903, -0.016659371554851532, 0.005478247068822384, 0.020427672192454338, -0.06817781925201416, -0.0639602541923523, -0.04001183435320854, 0.05559847876429558, 0.010048801079392433, -0.01532075461000204, 0.004439901560544968, -0.0382147841155529, -0.06667416542768478, 0.05849575996398926, 0.061429716646671295, 0.028551064431667328, -0.015036527998745441, 0.041772205382585526, 0.003839357290416956, -0.03187010437250137, 0.009627045132219791, -0.039241667836904526, 0.029119519516825676, -0.032585255801677704, 0.017631245777010918, -0.02655230648815632, 0.021362870931625366, 0.012478483840823174, -0.006830617785453796, 0.07103842496871948, -0.002764337230473757, 0.09792080521583557, 0.05215108022093773, 0.04096537083387375, -0.05556180328130722, 0.08244418352842331, 0.07437580078840256, -0.03478572145104408, 0.058349061757326126, 0.0002575807739049196, -0.014999853447079659, 0.03777468949556351, -0.0036972437519580126, 0.0012572462437674403, 0.003000429132953286, 0.036527760326862335, 0.12161250412464142, 0.0711117759346962, -0.028092633932828903, -0.025011980906128883, -0.019052380695939064, 0.0017810033168643713, -0.03379551321268082, -0.0219863373786211, -0.007412824779748917, 0.007201946806162596, -0.04155215993523598, -0.02345331571996212, 0.04569637402892113, 0.035427525639534, -0.05977936461567879, 0.0335938036441803, 0.05196770653128624, 0.048080213367938995, 0.05376475304365158, 0.07430244982242584, 0.07929017394781113, 0.011249889619648457, -0.0805371105670929, 0.07023158669471741, 0.022793175652623177, 0.02581881731748581, 0.024205142632126808, 0.03594096750020981, -0.0030898230616003275, -0.01612759195268154, 0.021216174587607384, -0.018768154084682465, 0.027285795658826828, -0.012276774272322655, 0.001287044258788228, -0.03500577062368393, -0.07378900796175003, 0.0418822318315506, 0.021766290068626404, -0.03594096750020981, 0.07951022684574127, -0.015018190257251263, -0.018071338534355164, -0.02563544549047947, -0.027524180710315704, 0.1017349436879158, -0.07419242709875107, 0.02976132184267044, 0.07092840224504471, 0.024278491735458374, 0.05629529058933258, 0.000881906074937433, -0.03880157694220543, 0.0008228831575252116, -0.02943125180900097, -0.021876314654946327, -0.005148177035152912, 0.0283126812428236, -0.031283311545848846, 0.04874035343527794, 0.004630150273442268, -0.013578717596828938, -0.017722930759191513, 0.021509569138288498, -0.04206560179591179, -0.03716956451535225, -0.03377717360854149, -0.030769869685173035, -0.0341622568666935, 0.03753630816936493, -0.009182367473840714, -0.02596551552414894, 0.008769779466092587, -0.07444915175437927, -0.03990181162953377, -0.009425335563719273, 0.020079266279935837, -0.03320872038602829, 0.028789449483156204, 0.004776848014444113, -0.0005661619361490011, 0.099461130797863, -0.02004259079694748, 0.05343468487262726, 0.053141288459300995, 0.03825145959854126, 0.012579338625073433, -0.052774544805288315, 0.00010013845894718543, -0.0022806928027421236, -0.028404368087649345, -0.022774837911128998, 0.053691405802965164, -0.02202301099896431, 0.0021901526488363743, -0.00816465076059103, 0.051490940153598785, 0.008893555961549282, -0.010864808224141598, -0.03755464404821396, 0.04235899820923805, -0.0002515638479962945, 0.054021477699279785, -0.08127059787511826, 0.022316407412290573, 0.016741890460252762, -0.04760344699025154, -0.04452279210090637, -0.0073899030685424805, 0.022279733791947365, -0.09337317198514938, 0.016870250925421715, -0.052444472908973694, 0.013468694873154163, 0.0207210686057806, -0.005698293913155794, 0.018584782257676125, -0.06960812211036682, 0.023545002564787865, -0.025837155058979988, 0.11266393214464188, -0.029908020049333572, 0.04690663143992424, 0.009700394235551357, -0.016118424013257027, 0.02745083160698414, 0.06025613471865654, 0.020501021295785904, 0.0012434932868927717, -0.041258763521909714, -0.004983142018318176, 0.04661323502659798, -0.01865812949836254, -0.004504081793129444, 0.07679631561040878, 0.02614888735115528, 0.026754016056656837, 0.019950905814766884, -0.02202301099896431, 0.03172340616583824, 0.024388514459133148, 0.006408861372619867, 0.000819444889202714, 0.010479725897312164, -0.06095295026898384, -0.0577622689306736, -0.008985241875052452, -0.05266452208161354, 0.014660614542663097, -0.03225518390536308, -0.045036233961582184, -0.0745958462357521, 0.030256427824497223, -0.06344681233167648, -0.00041631239582784474, 0.00852222740650177, -0.02814764529466629, -0.07089172303676605, -0.024205142632126808, -0.03198012709617615, -0.0024365591816604137, 0.0004882287175860256, -0.006821448914706707, 0.025855492800474167, 0.034932419657707214, -0.03880157694220543, -0.009526190347969532, -0.011598297394812107, -0.026295585557818413, -0.011249889619648457, -0.003527624299749732, -0.002904158551245928, -0.013881281949579716, -0.015394103713333607, -0.048446957021951675, -0.008499305695295334, 0.017301175743341446, -0.030421461910009384, 0.007151519414037466, -0.015467452816665173, -0.042138952761888504, -0.07279879599809647, -0.0027735058683902025, 0.0209411159157753, -0.002865192014724016, 0.014678951352834702, -0.005079412367194891, 0.03462068736553192, -0.01533909235149622, 0.025030316784977913, 0.0323285348713398, 0.01056224387139082, -0.02471858449280262, 0.004366552457213402, -0.007499926723539829, -0.007279879879206419, -0.059816040098667145, 0.04246902093291283, -0.026570644229650497, -0.043789301067590714, 0.054571591317653656, -0.03198012709617615, 0.02361834980547428, -0.01589837670326233, 0.013862945139408112, -0.01704445481300354, 0.03902162238955498, -0.005840407218784094, -0.018117181956768036, -0.07760315388441086, -0.0451095812022686, -0.025397062301635742, -0.016292627900838852, 0.0006824887241236866, 0.017530390992760658, -0.012276774272322655, 0.017181983217597008, -0.017713762819767, 0.017979653552174568, -0.005345302168279886, 0.003190677845850587, 0.03282364085316658, 0.008636835031211376, 0.011304901912808418, -0.05611192062497139, -0.001685878960415721, -0.017319513484835625, 0.023856734856963158, -0.012927746400237083, 0.014596434310078621, -0.04551300033926964, 0.014394724741578102, -0.040525276213884354, -0.0078024910762906075, -0.03927834331989288, -0.037994738668203354, -0.017970483750104904, 0.00812339223921299, -0.0081142233684659, 0.060182783752679825, -0.0490337498486042, -0.03396054729819298, 0.03803141415119171, 0.00635385001078248, 0.013551211915910244, -0.06043950468301773, -0.020702730864286423, 0.06223655492067337, 0.02418680489063263, -0.011543285101652145, 0.06825116276741028, -0.01054390612989664, 0.03667445853352547, -0.0007111406303010881, -0.03012806735932827, -0.018419746309518814, 0.012469315901398659, 0.006881045177578926, -0.045182932168245316, 0.042138952761888504, -0.05328798666596413, -0.0019529148703441024, -0.007206530775874853, 0.015806691721081734, -0.04239567369222641, 0.041038718074560165, -0.005615776404738426, 0.01327615324407816, 0.05750554800033569, -0.10422880947589874, 0.07657627016305923, -0.029192868620157242, -0.04474283754825592, -0.05680873617529869, -0.043569255620241165, 0.006179646123200655, -0.00098619912751019, 0.06935139745473862, 0.02523202635347843, 0.04940049350261688, 0.05299459025263786, 0.007788737770169973, -0.0016067996621131897, 0.027854250743985176, 0.033483780920505524, -0.019070718437433243, -0.034730710089206696, 0.020262638106942177, 0.03102659061551094, -0.004588891286402941, 0.01153411716222763, -0.026240574195981026, -0.018979031592607498, 0.07789655029773712, -0.016155099496245384, 0.004786016885191202, 0.030256427824497223, -0.02112448774278164, 0.07657627016305923, 0.044486116617918015, -0.06645411998033524, -0.01581585966050625, -0.0006406569154933095, -0.034914083778858185, -0.06245660036802292, 0.027835913002490997, 0.011955873109400272, 0.06436367332935333, 0.0207210686057806, -0.003071485785767436, 0.04404602199792862, -0.016998611390590668, -0.05790896713733673, -0.016824407503008842, -0.03447398915886879, -0.03698619082570076, -0.03623436391353607, 0.007962941192090511, -0.029376240447163582, 0.0308432187885046, -0.013899619691073895, 0.006023779511451721, -0.0272674597799778, -0.009260300546884537, -0.032053474336862564, -0.017603740096092224, -0.01859395019710064, 0.015302417799830437, 0.037426285445690155, -0.06363018602132797, -0.00554242730140686, -0.024131793528795242, 0.03577593341469765, -0.05233445018529892, -0.047383397817611694, 0.0005426673451438546, 0.029302891343832016, 0.020886102691292763, -0.007357812952250242, 0.005469078663736582, 0.028606077656149864, 0.023526664823293686, -0.010498063638806343, 0.019364112988114357, -0.025122003629803658, -0.014238858595490456, 0.030788207426667213, -0.04602644592523575, 0.0508674718439579, 0.0033557128626853228, -0.028422703966498375, 0.023196594789624214, 0.023508327081799507, 0.011433262377977371, -0.013312827795743942, 0.05343468487262726, -0.030531486496329308, -0.0743391290307045, 0.021766290068626404, 0.036344386637210846, -0.00240905350074172, 0.0034794891253113747, 0.0331537090241909, 0.04096537083387375, 0.011020674370229244, 0.03982846066355705, -0.04041525349020958, 0.032181836664676666, -0.024113455787301064, 0.0119100296869874, 0.013111118227243423, -0.030384788289666176, -0.03198012709617615, -0.0026382687501609325, 0.001535742892883718, -0.0219863373786211, 0.035830944776535034, -0.0010841886978596449, -0.014532254077494144, -0.003633063519373536, -0.0027116176206618547, -0.0003664580581244081, -0.0054232352413237095, -0.030971579253673553, 0.07532933354377747, 0.004109831526875496, 0.07411907613277435, 0.020867766812443733, 0.002303614281117916, 0.044119372963905334, -0.022078024223446846, -0.00798127893358469, 0.002307052491232753, -0.0047906008549034595, -0.02163792960345745, 0.012285943143069744, 0.0005750440177507699, 0.04727337509393692, -0.03377717360854149, -0.0046989149414002895, -0.032566919922828674, -0.03500577062368393, 0.03916832059621811, -0.05083080008625984, -0.06032948195934296, 0.05303126573562622, 0.003321330528706312, 0.014944841153919697, 0.010057969950139523, 0.0432758592069149, -0.033080361783504486, -0.00048479047836735845, 0.05977936461567879, -0.015577475540339947, 0.003195262048393488, 0.014688120223581791, 0.03927834331989288, 0.008682677522301674, -0.01820886880159378, 0.017722930759191513, 0.0791434794664383, 0.02185797691345215, -0.009131940081715584, -0.009241963736712933, -0.025030316784977913, 0.010195499286055565, -0.010727278888225555, 0.04342255741357803, -0.01099316868931055, -0.001893318840302527, 0.02994469553232193, 0.017521221190690994, -0.0057533057406544685, -0.0069452254101634026 ]
729,385
tinytuya.Cloud
format_timestamp
null
@staticmethod def format_timestamp( ts ): # converts a 10-digit unix timestamp to the 13-digit stamp the servers expect if type(ts) != int: if len(str(int(ts))) == 10: ts = int( ts * 1000 ) else: ts = int( ts ) elif len(str(ts)) == 10: ts *= 1000 return ts
(ts)
[ -0.015256487764418125, 0.04284800589084625, -0.008291367441415787, 0.06284374743700027, -0.0028936315793544054, -0.06354860216379166, -0.02626527100801468, 0.08651216328144073, 0.011750740930438042, -0.04800460860133171, 0.0026061234530061483, 0.00792502611875534, -0.011453958228230476, -0.0236869715154171, 0.02769353799521923, 0.04021406173706055, -0.03251625970005989, 0.024948298931121826, 0.028658082708716393, -0.053569283336400986, 0.04870946705341339, -0.021164318546652794, -0.026450760662555695, 0.006315907463431358, 0.007651429623365402, 0.04989659786224365, 0.052270859479904175, -0.015543995425105095, -0.01712992787361145, 0.00032547558657824993, 0.0506756529211998, -0.020478008314967155, 0.04232863709330559, 0.0012508928775787354, -0.02546766772866249, -0.01572948507964611, -0.08539923280477524, -0.026840288192033768, -0.1090676560997963, 0.017695670947432518, 0.04789331182837486, -0.007855468429625034, -0.004057576414197683, -0.029140355065464973, 0.01934652402997017, -0.018502548336982727, 0.042291540652513504, 0.06135983020067215, -0.0799829438328743, -0.04425772652029991, -0.031050892546772957, -0.0107398247346282, 0.0034987900871783495, 0.012752383016049862, -0.08280238509178162, 0.03435260057449341, 0.04333027824759483, 0.057798437774181366, -0.023631324991583824, 0.013559261336922646, 0.008244995027780533, 0.054274141788482666, 0.007442754693329334, 0.027656441554427147, 0.000770939514040947, 0.008908119052648544, -0.03262755274772644, -0.002837984822690487, -0.005671332590281963, -0.0010352616664022207, 0.028843572363257408, -0.025170885026454926, -0.024837005883455276, 0.00809660367667675, 0.004419280216097832, 0.08784768730401993, -0.06391958147287369, 0.028806474059820175, 0.021628040820360184, 0.060729168355464935, 0.0663309395313263, -0.03587361425161362, 0.028602436184883118, 0.037246234714984894, 0.030883952975273132, -0.0018919899594038725, 0.0036958723794668913, 0.03435260057449341, -0.050749845802783966, 0.09727054089307785, -0.01841907761991024, -0.03683815523982048, 0.06087755784392357, 0.02958552911877632, -0.06603416055440903, -0.0011761174537241459, -0.023965205997228622, -0.057427458465099335, -0.037376075983047485, -0.02016267739236355, 0.04377545416355133, 0.012826578691601753, -0.04941432550549507, -0.016007719561457634, 0.011862034909427166, 0.007781272288411856, 0.006798179354518652, -0.017389614135026932, 0.02136835642158985, 0.04748523607850075, -0.05408865213394165, -0.039694689214229584, -0.02016267739236355, -0.02945568598806858, -0.018929174169898033, -0.022481292486190796, 0.04117860272526741, 0.012121719308197498, 0.010285376571118832, -0.030420230701565742, -0.01890134997665882, 0.03227512165904045, 0.0032066446729004383, -0.025523314252495766, 0.00024461388238705695, 0.006167516112327576, 0.00809660367667675, -0.0013911690330132842, 0.0471513569355011, -0.011008784174919128, -0.01746380887925625, 0.04002857208251953, 0.06748097389936447, 0.035261496901512146, 0.04470289871096611, -0.06647933274507523, -0.019068291410803795, 0.0790925994515419, -0.008810737170279026, 0.029659723863005638, 0.010118436068296432, -0.03158881142735481, 0.0661083534359932, -0.04258832335472107, -0.011157175526022911, -0.006672974210232496, -0.008217171765863895, -0.03459373861551285, -0.04689167067408562, 0.017055733129382133, 0.025894293561577797, 0.044665802270174026, 0.018502548336982727, 0.03555827960371971, -0.04455450922250748, 0.0003214180178474635, 0.019736051559448242, -0.05201117321848869, 0.08688314259052277, -0.020107030868530273, -0.0007958646165207028, -0.021275611594319344, 0.04062213748693466, -0.11559687554836273, -0.012130994349718094, 0.03592925891280174, -0.040547940880060196, 0.05798392742872238, 0.015219389460980892, -0.009747457690536976, 0.02535637468099594, 0.030995246022939682, 0.03835916891694069, 0.00979383010417223, 0.06369699537754059, -0.0044007315300405025, 0.023074857890605927, -0.01548834890127182, 0.022833721712231636, 0.07423277944326401, 0.01402298454195261, -0.04099311679601669, -0.021145770326256752, 0.04140119254589081, 0.02042236179113388, 0.03489052131772041, -0.008189348503947258, 0.013828220777213573, -0.047707825899124146, -0.026320919394493103, 0.061285633593797684, 0.020589301362633705, -0.026098331436514854, 0.014700019732117653, -0.010507963597774506, 0.07304564863443375, 0.03663411736488342, -0.043812550604343414, -0.029529882594943047, 0.018966270610690117, -0.011806388385593891, 0.06952135264873505, -0.017083555459976196, -0.06377118825912476, 0.06473573297262192, 0.020589301362633705, 0.01793680712580681, 0.007976035587489605, -0.11589365452528, -0.08013133704662323, 0.01542342733591795, -0.057427458465099335, 0.013540712185204029, 0.04221734404563904, -0.0017992453649640083, -0.03151461482048035, -0.04036245122551918, -0.001355230575427413, -0.00980310421437025, -0.005532215815037489, 0.010980960913002491, -0.022926466539502144, -0.03884144127368927, -0.048969149589538574, 0.041364092379808426, 0.047448139637708664, 0.025059591978788376, 0.004414643160998821, -0.02006993256509304, -0.03110654093325138, 0.03049442544579506, -0.026358015835285187, -0.004365952219814062, 0.05794682726264, 0.007591146044433117, -0.032571904361248016, 0.030197642743587494, -0.06369699537754059, -0.015367780812084675, -0.07260047644376755, -0.014301218092441559, 0.029752468690276146, 0.04169797524809837, 0.0017053413903340697, 0.03646717965602875, -0.02311195619404316, -0.019161034375429153, 0.05913395807147026, -0.05152890086174011, 0.008138339035212994, -0.03398162126541138, 0.04069633409380913, 0.012056798674166203, 0.019532013684511185, 0.014783489517867565, -0.018715860322117805, -0.026951581239700317, 0.04704006388783455, -0.049080442637205124, 0.0504530631005764, -0.013642731122672558, 0.021294161677360535, -0.05928235128521919, -0.006723983678966761, -0.004141046665608883, -0.05152890086174011, -0.030791208148002625, 0.03401872143149376, 0.005680607166141272, 0.018715860322117805, 0.10038676112890244, -0.03776560351252556, -0.02661770209670067, -0.0024901926517486572, -0.014820587821304798, -0.06262115389108658, 0.0015952071407809854, 0.02381681464612484, 0.02134980820119381, -0.011249920353293419, 0.000056516244512749836, 0.01573875918984413, 0.04448031261563301, -0.04596422612667084, 0.049340128898620605, -0.013735475949943066, 0.04533356428146362, 0.015618191100656986, -0.05549837276339531, 0.01342941913753748, -0.052382152527570724, -0.011435410007834435, 0.024595869705080986, -0.020348167046904564, -0.07119075953960419, 0.02309340611100197, -0.021628040820360184, -0.045222267508506775, 0.0691874772310257, -0.04173507168889046, -0.05093533545732498, 0.053198304027318954, 0.010572885163128376, 0.019736051559448242, 0.05141760781407356, 0.024707162752747536, -0.026320919394493103, -0.06098885089159012, -0.0027568333316594362, 0.027879027649760246, -0.04013986513018608, -0.05483061075210571, -0.0011940867407247424, 0.01664765551686287, 0.0013401595642790198, 0.04377545416355133, -0.021628040820360184, 0.009432125836610794, -0.022574037313461304, 0.06002430617809296, -0.00007278277917066589, 0.02005138248205185, 0.06577447056770325, 0.05364347994327545, 0.057316165417432785, -0.030809758231043816, -0.020125579088926315, 0.030791208148002625, -0.02242564596235752, 0.01781623810529709, 0.011287018656730652, 0.0012346624862402678, 0.026191076263785362, -0.020014286041259766, -0.0008410776499658823, 0.008996226824820042, -0.016443617641925812, -0.07085687667131424, -0.037858348339796066, -0.027879027649760246, 0.029993604868650436, -0.007224804721772671, 0.036541372537612915, 0.03802528604865074, 0.026376565918326378, 0.03694945201277733, -0.008704081177711487, -0.008142976090312004, 0.009135343134403229, 0.00943676382303238, -0.0253378264605999, -0.02439182996749878, -0.029826665297150612, 0.02066349796950817, -0.005295716691762209, -0.028546789661049843, 0.03670831397175789, -0.06354860216379166, 0.005416284780949354, -0.006227800156921148, -0.021090123802423477, -0.030883952975273132, 0.09563823789358139, -0.03605910390615463, 0.01138903759419918, 0.06332601606845856, 0.02745240367949009, -0.04659488797187805, 0.03835916891694069, 0.007720988243818283, -0.046743281185626984, -0.02134980820119381, 0.029047610238194466, -0.05575805529952049, 0.00024591811234131455, 0.006056222598999739, -0.03355499729514122, 0.046928770840168, -0.0795377716422081, -0.06662772595882416, 0.015126644633710384, -0.04236573353409767, -0.0002563518937677145, 0.02242564596235752, 0.06833422183990479, -0.0023638280108571053, 0.009390391409397125, -0.03355499729514122, -0.03203398734331131, -0.004542166832834482, -0.04507387802004814, -0.006941933650523424, 0.05969042703509331, -0.028491143137216568, -0.023297443985939026, 0.04039955139160156, 0.03179284930229187, -0.018864251673221588, 0.06065497174859047, 0.02897341363132, 0.002062408020719886, -0.07642155140638351, 0.005847547203302383, 0.03158881142735481, -0.03310982510447502, 0.041586682200431824, 0.022611133754253387, -0.030420230701565742, -0.06269535422325134, 0.030197642743587494, -0.0069280220195651054, -0.011481782421469688, -0.030179094523191452, -0.024707162752747536, 0.055424176156520844, 0.057687144726514816, -0.03294288367033005, -0.030420230701565742, -0.007697802037000656, 0.030086349695920944, -0.0363558866083622, -0.02301921136677265, 0.020570753142237663, 0.05894847214221954, 0.0434044748544693, 0.01073055062443018, 0.04258832335472107, 0.013327399268746376, -0.03329531103372574, 0.05831780657172203, -0.00875045359134674, -0.03730187937617302, -0.06792614609003067, -0.009172441437840462, 0.057687144726514816, 0.015590367838740349, 0.044406116008758545, 0.021961921826004982, -0.017556553706526756, 0.03027183935046196, 0.0951930582523346, 0.036782510578632355, 0.03225657343864441, -0.007697802037000656, 0.041957657784223557, -0.03991727903485298, -0.052382152527570724, -0.002884357236325741, -0.017194850370287895, -0.002035744022578001, -0.0167960487306118, 0.011546703055500984, -0.0012335032224655151, -0.012093896046280861, 0.007410293910652399, -0.08087329566478729, -0.015989169478416443, -0.01131484191864729, -0.013114087283611298, -0.010749099776148796, -0.056500013917684555, 0.05516448989510536, 0.006107232067734003, 0.0029330481775105, 0.009784555993974209, -0.04436901956796646, -0.013012068346142769, -0.051566001027822495, -0.05987591668963432, 0.03474212810397148, 0.05920815467834473, -0.00748448958620429, 0.0159706212580204, 0.03390742838382721, 0.005407010205090046, 0.0033921338617801666, -0.023167602717876434, -0.015516172163188457, -0.035484086722135544, 0.033258214592933655, -0.05783553421497345, 0.017751317471265793, 0.033258214592933655, 0.020014286041259766, 0.036893803626298904, 0.00892203114926815, -0.01831705868244171, -0.04021406173706055, -0.014978253282606602, -0.019550561904907227, 0.0017007042188197374, 0.024614417925477028, 0.00416423287242651, -0.04180926829576492, -0.005717705003917217, -0.036411531269550323, -0.013670554384589195, 0.023520031943917274, -0.08673475682735443, 0.014681470580399036, -0.03999147191643715, 0.04492548480629921, -0.012214464135468006, -0.018558194860816002, 0.02945568598806858, -0.01832633465528488, -0.01014625933021307, 0.01699081063270569, -0.002620035083964467, 0.013485065661370754, -0.012353581376373768, -0.029140355065464973, 0.008648434653878212, 0.005485843401402235, 0.011481782421469688, 0.008829286321997643, 0.0018038825364783406, -0.06291794031858444, -0.014764941297471523, 0.0031834584660828114, 0.01914248615503311, -0.03633733466267586, 0.03821077570319176, -0.04870946705341339, 0.022815173491835594, -0.02546766772866249, -0.04555615037679672, 0.029771018773317337, -0.025987038388848305, 0.03179284930229187, -0.02123851515352726, 0.05141760781407356, 0.019161034375429153, 0.010702727362513542, 0.018363431096076965, -0.0011129352496936917, -0.06696160137653351, -0.02641366235911846, -0.004732293542474508, -0.047819118946790695, -0.05171439051628113, -0.052382152527570724, 0.02324179746210575, 0.00090541917597875, -0.03259045258164406, -0.0027869753539562225, -0.0161932073533535, 0.08117007464170456, 0.011287018656730652, -0.026877386495471, -0.008189348503947258, 0.0003689496370498091, 0.037969641387462616, 0.043812550604343414, -0.017408162355422974, 0.006649788003414869, -0.017797689884901047, 0.00663123931735754, 0.002107621170580387, 0.03832206875085831, 0.008142976090312004, 0.0008120949496515095, 0.07656994462013245, -0.0045050689950585365, -0.1081773042678833, 0.014125003479421139, -0.019921541213989258, -0.035502634942531586, -0.0544225350022316, 0.023909559473395348, 0.001632304978556931, 0.022852269932627678, 0.030197642743587494, -0.00016983856039587408, -0.02769353799521923, 0.010127711109817028, -0.0059124683029949665, -0.016230305656790733, 0.019902991130948067, 0.03622604161500931, 0.00280320574529469, 0.020719144493341446, 0.00816152524203062, -0.010136985220015049, 0.028806474059820175, 0.005471931770443916, 0.0363558866083622, -0.046743281185626984, 0.019865894690155983, -0.01699081063270569, -0.009418214671313763, -0.011064431630074978, 0.017677120864391327, -0.007034678012132645, 0.034649383276700974, -0.02593139186501503, -0.010823295451700687, -0.01875295862555504, -0.0042894380167126656, 0.0051797861233353615, -0.002149356296285987, 0.047819118946790695, 0.0005344407982192934, 0.036411531269550323, 0.06017269939184189, -0.0328315906226635, -0.0068167285062372684, 0.006649788003414869, -0.035242948681116104, 0.011120078153908253, -0.00908897165209055, -0.0005022700061090291, 0.03578086942434311, 0.006617327686399221, 0.07849903404712677, 0.02978956699371338, -0.0076607041992247105, -0.0513434112071991, 0.01958766020834446, -0.11218387633562088, -0.026895934715867043, 0.07656994462013245, -0.016925889998674393, 0.01448670681566, 0.03346225246787071, 0.016916615888476372, -0.010832569561898708, -0.00023693348339293152, -0.024002304300665855, -0.10379976034164429, -0.020255422219634056, -0.014802038669586182, 0.053420890122652054, -0.025949940085411072, -0.035354241728782654, -0.012455600313842297, -0.056017741560935974, -0.004495794884860516, -0.06317762285470963, 0.0863637775182724, 0.010953137651085854, -0.005151962861418724, -0.048635270446538925, -0.037969641387462616, 0.02309340611100197, 0.004263933282345533, -0.009988593868911266, 0.005008208565413952, -0.01406935602426529, 0.000884551671333611, -0.020682046189904213, -0.010359572246670723, 0.019290877506136894, 0.052382152527570724, -0.06440185010433197, 0.026469310745596886, -0.024595869705080986, -0.033851779997348785, 0.036207493394613266, -0.03496471419930458, 0.027285462245345116, -0.021294161677360535, -0.004451740998774767, -0.0076375179924070835, -0.05323540419340134, -0.054162848740816116, -0.03821077570319176, -0.028120163828134537, 0.03611474856734276, -0.0069280220195651054, -0.001441019237972796, -0.031050892546772957, 0.05082404240965843, 0.00630199583247304, -0.005629597697407007, -0.02029251866042614, -0.0055136666633188725, 0.046409398317337036, -0.018604567274451256, -0.005921742878854275, 0.04232863709330559, -0.041957657784223557, -0.034204211086034775, -0.03817367926239967, -0.008769002743065357, -0.010489414446055889, 0.028250006958842278, 0.044406116008758545, -0.052270859479904175, -0.016944440081715584, 0.029418587684631348, -0.027897577732801437, -0.060358189046382904, 0.02639511413872242, -0.014857685193419456, -0.047225553542375565, -0.04410933330655098, 0.08999936282634735, 0.061767905950546265, -0.03355499729514122, -0.021628040820360184, 0.008838560432195663, 0.02676609344780445, 0.07119075953960419, 0.0013459561159834266, -0.0473739430308342, -0.014802038669586182, -0.04433191940188408, 0.039620496332645416, -0.01795535534620285, -0.008129064925014973, 0.008449033834040165, 0.027619343250989914, 0.014282668940722942, 0.005931017454713583, 0.022444194182753563, -0.03073556162416935, 0.020032834261655807, 0.07241498678922653, 0.04128989949822426, -0.0035892161540687084, -0.010953137651085854, 0.004352040588855743, 0.017890434712171555, -0.08079910278320312, -0.0253378264605999, 0.018623117357492447, -0.005040669348090887, 0.03980598226189613, -0.019086839631199837, 0.0167960487306118, -0.03240496292710304, 0.008411935530602932, -0.026821739971637726, 0.0506756529211998, 0.02253693901002407, 0.0056898812763392925, -0.011732192710042, 0.002974783070385456, 0.011296292766928673, -0.02019977569580078, 0.012520521879196167, -0.03832206875085831, -0.017287593334913254, -0.004896915052086115, 0.0022664463613182306, 0.02546766772866249, 0.035354241728782654, -0.01131484191864729, -0.015191566199064255, 0.05512739345431328, -0.047707825899124146, -0.06310342997312546, -0.045110974460840225, 0.06347440928220749, -0.00310926279053092, -0.07208110392093658, 0.026320919394493103, 0.00850468035787344, 0.008898844942450523, 0.012520521879196167, -0.005944929085671902, -0.003765430999919772, 0.024818455800414085, -0.010164808481931686, -0.0047114258632063866, -0.018604567274451256, 0.04355286434292793 ]
729,386
tinytuya.Cloud
getconnectstatus
Get the device Cloud connect status.
def getconnectstatus(self, deviceid=None): """ Get the device Cloud connect status. """ if not self.token: return self.error if not deviceid: return error_json( ERR_PARAMS, "Missing DeviceID Parameter" ) uri = 'devices/%s' % (deviceid) response_dict = self._tuyaplatform(uri, ver='v1.0') if not response_dict['success']: log.debug("Error from Tuya Cloud: %r", response_dict['msg']) return(response_dict["result"]["online"])
(self, deviceid=None)
[ -0.027921847999095917, -0.08419938385486603, 0.028182150796055794, -0.00046230919542722404, 0.035123568028211594, 0.028390394523739815, -0.01848152093589306, 0.022299300879240036, 0.01359649933874607, -0.07496730238199234, -0.0256658885627985, -0.057301394641399384, -0.004310186021029949, -0.025787362828850746, 0.012373074889183044, -0.05948793888092041, -0.015288470312952995, 0.005796082783490419, 0.04022550955414772, -0.016572631895542145, 0.0020596485119313, 0.07621675729751587, 0.0778132826089859, -0.06278511136770248, 0.007952260784804821, 0.10544011741876602, 0.026082372292876244, -0.025266757234930992, 0.003429493634030223, -0.016025995835661888, -0.06240333616733551, 0.057544343173503876, 0.001445766887627542, 0.003156175371259451, -0.017735319212079048, 0.07892390340566635, 0.03229494020342827, -0.009778720326721668, -0.08767009526491165, -0.03503679856657982, -0.08898895978927612, -0.03588712215423584, -0.03375263884663582, 0.004329708404839039, 0.03321467712521553, 0.005032527260482311, -0.07371784746646881, 0.0007011915440671146, 0.00838176067918539, -0.03592183068394661, 0.013448994606733322, 0.021101906895637512, -0.02549235336482525, 0.01359649933874607, -0.019071541726589203, -0.0316181518137455, -0.034620314836502075, -0.039496660232543945, -0.07007359713315964, 0.030247222632169724, -0.04956171289086342, -0.015184348449110985, 0.015791723504662514, 0.023340513929724693, 0.02488497830927372, -0.010117114521563053, -0.0056442394852638245, -0.004229925572872162, -0.002279821550473571, 0.022871967405080795, -0.005127971526235342, -0.0012212555157020688, -0.011271125636994839, -0.04137084260582924, 0.020841604098677635, -0.046576905995607376, -0.017709288746118546, 0.011219064705073833, -0.03432530537247658, 0.004186541773378849, -0.01762252114713192, -0.021049845963716507, 0.09468092024326324, 0.006590007338672876, 0.03208669647574425, 0.03534916415810585, -0.02143162302672863, -0.00022857867588754743, -0.11918412148952484, 0.025249402970075607, 0.016251591965556145, -0.021709280088543892, -0.01587849110364914, 0.025978252291679382, 0.019054189324378967, -0.006720158737152815, 0.008351392112672329, 0.05514955520629883, -0.012763530015945435, -0.012572640553116798, -0.02773095853626728, -0.023166978731751442, -0.04720163345336914, -0.04734046012163162, 0.02623855508863926, -0.0942644402384758, -0.024624675512313843, 0.05157472565770149, 0.03000427410006523, 0.05941852554678917, -0.01684161275625229, -0.07954863458871841, 0.0635833740234375, -0.01315398421138525, 0.07774386554956436, -0.02370493859052658, 0.010099761188030243, 0.013249428942799568, -0.025266757234930992, -0.006004325579851866, 0.009457680396735668, 0.04883286729454994, 0.0700041875243187, -0.061709195375442505, 0.01169628743082285, 0.035470638424158096, 0.02068542130291462, 0.0110542057082057, 0.021448977291584015, 0.06441634893417358, 0.02153574489057064, -0.002911056624725461, 0.027106231078505516, -0.008060719817876816, -0.017674582079052925, -0.019071541726589203, 0.019991280511021614, 0.026568271219730377, -0.0015151811530813575, 0.030056333169341087, 0.031166961416602135, 0.003930577076971531, -0.04727104678750038, -0.03321467712521553, 0.017067208886146545, 0.033839404582977295, -0.04723633825778961, -0.04057257995009422, 0.0229240283370018, 0.003785241162404418, -0.014039015397429466, -0.027383888140320778, 0.04855521023273468, -0.023080211132764816, -0.0723295584321022, -0.02072012796998024, 0.000367135857231915, -0.07614734023809433, 0.035123568028211594, -0.018203865736722946, -0.0032516198698431253, -0.017822086811065674, -0.021709280088543892, 0.00550974952057004, 0.029362192377448082, 0.010976115241646767, -0.03307585045695305, -0.006906709633767605, -0.010472862049937248, -0.04952700808644295, -0.0015065043698996305, -0.00655096210539341, 0.03206934407353401, 0.01258131768554449, 0.050707049667835236, -0.027973908931016922, -0.01173099409788847, 0.004195218440145254, 0.013292812742292881, -0.03623419627547264, -0.009822104126214981, 0.05983501300215721, -0.018325340002775192, 0.07628616690635681, 0.016069378703832626, 0.05136648193001747, 0.06497166305780411, 0.014976106584072113, 0.021015139296650887, 0.043800339102745056, -0.0054967342875897884, -0.005054219160228968, 0.025717947632074356, 0.04133613407611847, 0.029101889580488205, -0.011080236174166203, 0.06576992571353912, 0.030091041699051857, 0.017856793478131294, 0.007110613863915205, 0.0036182133480906487, -0.0110542057082057, -0.01075051911175251, -0.009856811724603176, 0.02748801000416279, -0.010273296386003494, -0.02705417200922966, -0.013553115539252758, -0.0416484996676445, 0.015375237911939621, -0.03734482079744339, -0.007852477952837944, -0.02748801000416279, 0.028685403987765312, -0.005657254718244076, -0.05369185656309128, 0.07475905865430832, 0.026360029354691505, -0.00966592226177454, -0.009388266131281853, 0.01062904391437769, -0.028841586783528328, 0.049075815826654434, -0.07101069390773773, -0.005770052783191204, 0.008676771074533463, -0.006273305043578148, 0.018811238929629326, -0.008342714980244637, -0.049249351024627686, 0.008741846308112144, 0.024294957518577576, 0.025353524833917618, 0.03538387268781662, -0.03349233418703079, -0.04411270096898079, 0.02410406991839409, -0.013605176471173763, -0.013657237403094769, -0.024589968845248222, -0.0011084574507549405, -0.025145281106233597, 0.03429059684276581, 0.03567888215184212, -0.033301446586847305, -0.09023841470479965, 0.015635540708899498, -0.006785234902054071, -0.0008980457787401974, -0.02990015223622322, -0.05143589526414871, -0.07628616690635681, 0.04466801509261131, -0.0400172658264637, -0.01395224779844284, -0.06910180300474167, -0.03524504229426384, -0.007145320530980825, -0.023271098732948303, -0.03442942723631859, 0.004733178298920393, 0.04664631932973862, -0.04675044119358063, 0.05136648193001747, -0.07753562182188034, 0.0038828549440950155, 0.025041161105036736, 0.03699775040149689, -0.016459833830595016, 0.019418612122535706, 0.04255088418722153, -0.011739671230316162, -0.024086715653538704, -0.009153992868959904, -0.04310619831085205, -0.057301394641399384, -0.007409962359815836, -0.0006220160285010934, 0.023722290992736816, -0.03897605463862419, -0.10134468227624893, -0.017414279282093048, -0.06233392283320427, -0.017101915553212166, -0.042064983397722244, -0.041995570063591, -0.010854640044271946, 0.010316680185496807, -0.02417348325252533, -0.011080236174166203, -0.013362227007746696, -0.021882815286517143, -0.061743900179862976, 0.028598636388778687, 0.016494540497660637, 0.0487634502351284, -0.017960915341973305, 0.018932713195681572, 0.01482860092073679, 0.002900210674852133, -0.023080211132764816, 0.03029928356409073, -0.09606920927762985, -0.0069414167664945126, 0.0002391534944763407, 0.009856811724603176, 0.014533591456711292, -0.012251600623130798, -0.021344855427742004, -0.00948371086269617, -0.038108378648757935, -0.021483683958649635, 0.02894570678472519, -0.01993921957910061, -0.024260250851511955, 0.0248502716422081, -0.04251617565751076, 0.004219079855829477, 0.034550901502370834, 0.0785074234008789, -0.0011388261336833239, 0.018533581867814064, 0.03436001390218735, 0.04459860175848007, 0.03271142393350601, -0.03047281876206398, 0.07621675729751587, -0.02271578647196293, 0.015071550384163857, 0.03496738523244858, -0.004663764499127865, -0.023843765258789062, -0.002292836783453822, -0.04060728847980499, 0.06334042549133301, -0.058967333287000656, 0.005826451350003481, 0.0019414274720475078, -0.07177424430847168, 0.051817674189805984, 0.004310186021029949, 0.026047665625810623, -0.019783036783337593, -0.0009170261910185218, -0.00609543127939105, 0.015158318914473057, -0.024763504043221474, -0.005488057620823383, 0.06604757905006409, -0.0005889357998967171, -0.018273279070854187, 0.07753562182188034, -0.03043811209499836, 0.04147496446967125, 0.04008667916059494, 0.01936655305325985, -0.04137084260582924, 0.023652877658605576, 0.025943543761968613, 0.011592165566980839, -0.03371793031692505, 0.007631219923496246, -0.007661588490009308, 0.03734482079744339, -0.0149327227845788, 0.02285461500287056, -0.04602159187197685, -0.02505851350724697, -0.011028175242245197, 0.02085895650088787, -0.05494131147861481, 0.026221200823783875, 0.04612571373581886, -0.04879815876483917, 0.011488044634461403, 0.021882815286517143, -0.002707152394577861, -0.013075893744826317, -0.010854640044271946, 0.023184331133961678, 0.007457684259861708, 0.01288500428199768, -0.006906709633767605, -0.008876336738467216, 0.01658998616039753, 0.005123632960021496, -0.07975687831640244, -0.01169628743082285, -0.04605630040168762, 0.030386051163077354, -0.04026021808385849, 0.02000863291323185, -0.10891082882881165, 0.0070325229316949844, 0.015965258702635765, 0.012399105355143547, -0.02417348325252533, -0.015088904649019241, 0.06764410436153412, -0.03696304187178612, -0.0038828549440950155, -0.00045824196422472596, -0.0013286304892972112, 0.017353542149066925, -0.025752656161785126, 0.012624701485037804, 0.04452918842434883, -0.01340561080724001, -0.05351832136511803, -0.05803024396300316, -0.01548803597688675, 0.04345326870679855, -0.03859427571296692, 0.05855084955692291, -0.04605630040168762, 0.03422118350863457, -0.0029522711411118507, 0.09086314588785172, 0.0026615995448082685, 0.07954863458871841, -0.027609484270215034, -0.06372220814228058, 0.01429064106196165, -0.010871993377804756, -0.03696304187178612, -0.010898023843765259, 0.05573957413434982, 0.00518003199249506, 0.04307148978114128, -0.0243817251175642, 0.05556603893637657, -0.00775269465520978, 0.034516192972660065, -0.0555313341319561, -0.019765684381127357, -0.009457680396735668, 0.04275912791490555, 0.004772223997861147, 0.019713623449206352, 0.011895853094756603, -0.00008209038787754253, 0.03090665675699711, -0.006737512536346912, 0.02655091881752014, 0.007861154153943062, 0.01915830932557583, -0.02556176669895649, -0.03288496285676956, 0.042238518595695496, 0.008893690072000027, -0.04265500605106354, -0.006164845544844866, 0.016650723293423653, -0.01801297627389431, 0.033874113112688065, 0.026290616020560265, -0.07260721921920776, 0.06729703396558762, -0.011895853094756603, -0.017527077347040176, 0.01552274264395237, 0.03238170966506004, -0.05983501300215721, 0.0024772181641310453, -0.001309107756242156, 0.014386085793375969, -0.006507578305900097, -0.006255951710045338, 0.01049889251589775, -0.009180023334920406, -0.004147496540099382, 0.009145316667854786, -0.04817343130707741, 0.05508014187216759, 0.05921028554439545, 0.01626894436776638, -0.04279383271932602, -0.010672427713871002, -0.03619948774576187, -0.0021409932523965836, -0.07482846826314926, 0.04577864333987236, 0.023548755794763565, -0.07295428961515427, 0.004167019389569759, -0.02752271667122841, 0.017353542149066925, -0.013587823137640953, 0.008611694909632206, -0.07656382769346237, -0.025474999099969864, 0.04053787142038345, -0.005579163786023855, -0.0726766288280487, -0.01889800652861595, 0.0032971729524433613, -0.03500209376215935, -0.025197342038154602, -0.021379563957452774, 0.03772659972310066, 0.002553139813244343, -0.0103253573179245, -0.028459807857871056, 0.022802554070949554, 0.03279819339513779, -0.036928337067365646, -0.016242915764451027, 0.03619948774576187, 0.051713552325963974, 0.03758776932954788, 0.019054189324378967, 0.044876258820295334, 0.03706716373562813, -0.004924067296087742, -0.01288500428199768, 0.008351392112672329, 0.05362244322896004, 0.01562686450779438, -0.0201821681112051, -0.008420806378126144, -0.034516192972660065, 0.012381752021610737, 0.03765718638896942, 0.061605073511600494, -0.02894570678472519, 0.007809093687683344, -0.033874113112688065, -0.015036843717098236, -0.08579590916633606, 0.032989080995321274, -0.018498875200748444, -0.013301489874720573, -0.031409911811351776, -0.015193025581538677, -0.04609100520610809, -0.07135776430368423, -0.05556603893637657, -0.0221084114164114, -0.103357695043087, -0.0114620141685009, 0.05393480882048607, -0.07573085278272629, 0.0032711424864828587, -0.042203813791275024, -0.017466340214014053, 0.012520580552518368, 0.00002718269570323173, 0.016989117488265038, 0.0018459829734638333, 0.014065045863389969, 0.07462023198604584, 0.008702801540493965, 0.0007299333228729665, -0.03288496285676956, 0.003657258814200759, 0.05278947204351425, -0.01036006398499012, -0.040780823677778244, -0.02089366316795349, -0.020442472770810127, 0.01757913827896118, -0.012980449013411999, -0.02207370474934578, -0.017926208674907684, 0.007214734796434641, -0.046195127069950104, -0.02367023006081581, 0.019488027319312096, 0.029379546642303467, -0.0027527054771780968, 0.03977431729435921, -0.043626803904771805, -0.04865933209657669, -0.025075867772102356, -0.033336155116558075, 0.018203865736722946, 0.01680690422654152, 0.03474178910255432, 0.06458988040685654, 0.014689773321151733, -0.03281554579734802, 0.04990878701210022, 0.05650313198566437, 0.05782200023531914, -0.0035813371650874615, -0.030021626502275467, 0.01115832757204771, 0.013908863998949528, 0.06479812413454056, -0.034516192972660065, -0.012390428222715855, -0.012399105355143547, -0.028494514524936676, -0.013761358335614204, -0.02007804811000824, 0.03179168701171875, 0.03285025432705879, 0.032694071531295776, 0.053067129105329514, 0.005132310092449188, 0.003110622288659215, 0.03574829548597336, 0.019661562517285347, -0.07094127684831619, -0.008412129245698452, 0.0008085665758699179, -0.03356174752116203, -0.05379597842693329, -0.0035336147993803024, -0.025891484692692757, 0.0442168228328228, -0.0013850295217707753, -0.05796082690358162, -0.002219084184616804, 0.012624701485037804, 0.007331871427595615, 0.00937958899885416, 0.00481560779735446, -0.02552706003189087, 0.012772206217050552, 0.06781764328479767, 0.022941382601857185, 0.0072407652623951435, 0.00628198217600584, -0.025752656161785126, 0.030993424355983734, 0.015470682643353939, 0.026325322687625885, -0.03793484345078468, 0.02925807051360607, 0.017145298421382904, 0.030559586361050606, -0.02766154520213604, -0.0006361157284118235, -0.07947921752929688, -0.047513995319604874, -0.005006496794521809, -0.06209097057580948, 0.001186548382975161, 0.06077210232615471, -0.003281988436356187, 0.08128398656845093, -0.00044007497490383685, 0.03118431381881237, 0.057301394641399384, 0.026360029354691505, -0.06205626577138901, 0.037969548255205154, -0.025509705767035484, -0.034620314836502075, -0.006590007338672876, -0.02207370474934578, 0.061709195375442505, 0.036615971475839615, -0.04015609622001648, -0.014533591456711292, 0.00420172605663538, 0.047999896109104156, 0.00922340713441372, -0.008845968171954155, -0.02306285686790943, -0.014819924719631672, -0.01950538158416748, -0.05931440368294716, 0.03630360960960388, 0.022871967405080795, 0.049145229160785675, -0.014229903928935528, -0.008438159711658955, -0.04026021808385849, 0.07635558396577835, 0.04595217853784561, 0.04255088418722153, 0.02969191037118435, -0.030993424355983734, -0.027314474806189537, -0.006177860777825117, 0.009492387063801289, 0.02752271667122841, -0.011010821908712387, 0.04463331028819084, 0.011991296894848347, 0.011357893235981464, 0.018741825595498085, -0.022299300879240036, -0.017674582079052925, 0.042099691927433014, -0.05403892695903778, 0.02193487621843815, 0.0052581229247152805, -0.06271570175886154, -0.02424289844930172, 0.02695005014538765, 0.06552696973085403, -0.03151402994990349, -0.02349669486284256, -0.03029928356409073, 0.059106163680553436, -0.04244676232337952, 0.018950067460536957, 0.046507492661476135, -0.02075483649969101, 0.015158318914473057, 0.036581266671419144, 0.049075815826654434, 0.00881126057356596, 0.03776130452752113, -0.03182639554142952, 0.023479342460632324, -0.01075051911175251, -0.006958770100027323, -0.02616913989186287, -0.014785217121243477, -0.02776566706597805, 0.007757033221423626, 0.028078030794858932, -0.015999965369701385, -0.025266757234930992, 0.04973525181412697, 0.07108010351657867, -0.015409944579005241, -0.015722308307886124, -0.017353542149066925, 0.047895774245262146, 0.03429059684276581, 0.06948357820510864, 0.04879815876483917, 0.04057257995009422, -0.038177791982889175, 0.007952260784804821, -0.042134400457143784, -0.007067229598760605, -0.03772659972310066, 0.06361808627843857, -0.008446835912764072, 0.0829499289393425, -0.020373057574033737, -0.010863317176699638, 0.04616042226552963, 0.042134400457143784, 0.032312292605638504, -0.00014655607810709625, 0.05393480882048607, -0.02004333958029747, 0.042377348989248276, -0.025301463901996613, 0.03378734365105629, -0.006832956802099943, 0.05577428266406059, 0.024433786049485207, 0.039323125034570694, -0.013535762205719948, -0.006880679167807102, -0.05917557701468468, 0.022559603676199913, 0.023409927263855934, -0.06209097057580948, 0.02958778850734234, -0.010446831583976746, 0.023548755794763565, 0.043557390570640564, 0.014993459917604923, -0.025405583903193474, 0.051817674189805984, 0.015514066442847252, 0.07531437277793884, -0.02139691635966301, 0.04865933209657669 ]
729,387
tinytuya.Cloud
getdevicelog
Get the logs for a device. https://developer.tuya.com/en/docs/cloud/0a30fc557f?id=Ka7kjybdo0jse Note: The cloud only returns logs for DPs in the "official" DPS list. If the device specifications are wrong then not all logs will be returned! This is a limitation of Tuya's servers and there is nothing we can do about it. Args: devid: Required. Device ID start: Optional. Get logs starting from this time. Defaults to yesterday end: Optional. Get logs until this time. Defaults to the current time evtype: Optional. Limit to events of this type. 1 = Online, 7 = DP Reports. Defaults to all events. size: Optional. Target number of log entries to return. Defaults to 0 (all, up to max_fetches*100). Actual number of log entries returned will be between "0" and "size * 2 - 1" max_fetches: Optional. Maximum number of queries to send to the server. Tuya's server has a hard limit of 100 records per query, so the maximum number of logs returned is "max_fetches * 100" start_row_key: Optional. The "next_row_key" from a previous run. params: Optional. Additional values to include in the query string. Defaults to an empty dict. Returns: Response from server
def getdevicelog(self, deviceid=None, start=None, end=None, evtype=None, size=0, max_fetches=50, start_row_key=None, params=None): """ Get the logs for a device. https://developer.tuya.com/en/docs/cloud/0a30fc557f?id=Ka7kjybdo0jse Note: The cloud only returns logs for DPs in the "official" DPS list. If the device specifications are wrong then not all logs will be returned! This is a limitation of Tuya's servers and there is nothing we can do about it. Args: devid: Required. Device ID start: Optional. Get logs starting from this time. Defaults to yesterday end: Optional. Get logs until this time. Defaults to the current time evtype: Optional. Limit to events of this type. 1 = Online, 7 = DP Reports. Defaults to all events. size: Optional. Target number of log entries to return. Defaults to 0 (all, up to max_fetches*100). Actual number of log entries returned will be between "0" and "size * 2 - 1" max_fetches: Optional. Maximum number of queries to send to the server. Tuya's server has a hard limit of 100 records per query, so the maximum number of logs returned is "max_fetches * 100" start_row_key: Optional. The "next_row_key" from a previous run. params: Optional. Additional values to include in the query string. Defaults to an empty dict. Returns: Response from server """ if not deviceid: return error_json( ERR_PARAMS, "Missing DeviceID Parameter" ) # server expects times as unixtime * 1000 if not end: end = int((time.time() + self.server_time_offset) * 1000) elif end < 0: end = int(((time.time() + self.server_time_offset) + (end * 86400) ) * 1000) else: end = Cloud.format_timestamp( end ) if not start: start = end - (86400*1000) elif start < 0: start = int(((time.time() + self.server_time_offset) + (start * 86400) ) * 1000) else: start = Cloud.format_timestamp( start ) if start > end: tmp = start start = end end = tmp if not evtype: # get them all by default # 1 = device online, 7 = DP report evtype = '1,2,3,4,5,6,7,8,9,10' elif type(evtype) == str: pass elif type(evtype) == bytes: evtype = evtype.decode('utf8') elif type(evtype) == int: evtype = str(evtype) elif type(evtype) == list or type(evtype) == tuple: evtype = ','.join( [str(i) for i in evtype] ) else: raise ValueError( "Unhandled 'evtype' type %s - %r" % (type(evtype), evtype) ) want_size = size if not size: size = 100 elif size > 100: size = 100 #if (want_size / size) * 2 > max_fetches: # max_fetches = round( (want_size / size) * 2 ) + 1 if not max_fetches or max_fetches < 1: max_fetches = 50 params = {} if type(params) != dict else params.copy() if 'start_time' not in params: params['start_time'] = start if 'end_time' not in params: params['end_time'] = end if 'type' not in params: params['type'] = evtype if 'size' not in params: params['size'] = size if 'query_type' not in params: params['query_type'] = 1 if start_row_key: params['start_row_key'] = start_row_key ret = self.cloudrequest( '/v1.0/devices/%s/logs' % deviceid, query=params) max_fetches -= 1 fetches = 1 if ret and 'result' in ret: # ret['result'] is a dict so the 'result' below will be a reference, not a copy result = ret['result'] again = True next_row_key = '' while ( again and max_fetches and 'logs' in result and 'has_next' in result and result['has_next'] and (not want_size or len(result['logs']) < size) and 'next_row_key' in result and result['next_row_key'] and next_row_key != result['next_row_key'] ): again = False max_fetches -= 1 fetches += 1 params['start_row_key'] = result['next_row_key'] next_row_key = result['next_row_key'] result['next_row_key'] = None result['has_next'] = False res = self.cloudrequest( '/v1.0/devices/%s/logs' % deviceid, query=params) if res and 'result' in res: result2 = res['result'] if 'logs' in result2: result['logs'] += result2['logs'] again = True if 'has_next' in result2: result['has_next'] = result2['has_next'] if 'next_row_key' in result2: result['next_row_key'] = result2['next_row_key'] else: break ret['fetches'] = fetches return ret
(self, deviceid=None, start=None, end=None, evtype=None, size=0, max_fetches=50, start_row_key=None, params=None)
[ -0.019734373316168785, 0.006237541325390339, -0.033143628388643265, 0.03168398514389992, 0.015170556493103504, -0.0032014837488532066, -0.05990375205874443, -0.012436158955097198, -0.0771469995379448, -0.027596984058618546, -0.02097993530333042, 0.02203087881207466, 0.01761302538216114, -0.005984536372125149, 0.07784762978553772, 0.01727244257926941, -0.052936386317014694, -0.02837545983493328, 0.04631933942437172, -0.010918130166828632, 0.01181337796151638, 0.04266050085425377, 0.007108461577445269, 0.03672461956739426, -0.0017187296180054545, 0.03666623309254646, -0.0012151527917012572, -0.014012573286890984, 0.009010862559080124, -0.0011537261307239532, -0.008354024030268192, -0.012504274956882, -0.01014938484877348, 0.004736541770398617, -0.056050293147563934, 0.003318255068734288, 0.03580990806221962, -0.06788313388824463, -0.12027458846569061, 0.03775610029697418, -0.06683219224214554, -0.036257531493902206, 0.019413253292441368, -0.006101307924836874, 0.014314232394099236, 0.022809354588389397, 0.009366042912006378, 0.006461353041231632, -0.01555006392300129, -0.02164163999259472, -0.04266050085425377, 0.07313784956932068, -0.026721198111772537, -0.026546040549874306, -0.006918707862496376, -0.018508274108171463, -0.03863188624382019, -0.055583205074071884, -0.025164246559143066, 0.017895223572850227, -0.06546985357999802, 0.02323751710355282, 0.033143628388643265, 0.06648187339305878, -0.013973649591207504, 0.029153937473893166, -0.04670857638120651, 0.044412072747945786, -0.027013126760721207, 0.018712623044848442, 0.006592721212655306, -0.01900455169379711, 0.010587277822196484, -0.019530024379491806, -0.04721458628773689, -0.03493412211537361, -0.01954948529601097, 0.026974203065037727, -0.044450994580984116, -0.040286146104335785, -0.008368619717657566, 0.03933251276612282, 0.05593352019786835, 0.01903374493122101, 0.0706467255949974, 0.02623465098440647, -0.053325626999139786, 0.049744635820388794, -0.08586593717336655, 0.0009110605460591614, -0.026974203065037727, -0.023276440799236298, -0.034700579941272736, 0.027635907754302025, -0.01786603033542633, -0.015793338418006897, -0.051807597279548645, 0.031002817675471306, 0.00027155442512594163, -0.010344003327190876, 0.026584964245557785, -0.0340583361685276, 0.040870003402233124, -0.02530047856271267, -0.03874865546822548, -0.10011205077171326, -0.05013387277722359, 0.0375809408724308, 0.021914107725024223, 0.05538858845829964, -0.053442396223545074, 0.03435026481747627, 0.004055374767631292, -0.026915818452835083, 0.021174555644392967, 0.03689977526664734, 0.027986222878098488, 0.0385151132941246, -0.08368620276451111, -0.011910687200725079, 0.032384611666202545, -0.030710889026522636, -0.013564948923885822, -0.04157063364982605, -0.03475896641612053, -0.024813931435346603, -0.029153937473893166, -0.018167689442634583, 0.010694317519664764, -0.017379483208060265, -0.033435557037591934, -0.009692030027508736, 0.03962444141507149, 0.04254372790455818, 0.03349394351243973, -0.057101234793663025, 0.009283329360187054, 0.04059753939509392, -0.03228730335831642, -0.0159295704215765, -0.022712046280503273, 0.002088506007567048, 0.01715567149221897, -0.026954742148518562, 0.020318230614066124, -0.011356023140251637, 0.0341167226433754, 0.005366621073335409, -0.0034520558547228575, 0.005731531884521246, -0.0159295704215765, -0.0477595217525959, -0.00931252259761095, 0.011083556339144707, -0.04939432069659233, -0.01547221653163433, -0.042271263897418976, -0.0382426492869854, -0.007672857027500868, -0.010314811021089554, -0.01938406005501747, -0.07485049217939377, 0.010227232240140438, -0.033474478870630264, -0.022887201979756355, 0.028258688747882843, -0.08376404643058777, 0.04402283579111099, -0.015812799334526062, 0.010314811021089554, -0.006592721212655306, 0.0509512722492218, 0.021466484293341637, -0.03898220136761665, -0.04273834824562073, 0.01635773293673992, -0.005021172109991312, -0.0035444998648017645, -0.02530047856271267, 0.002821976551786065, -0.08010520786046982, 0.007867475971579552, 0.018654238432645798, 0.04040291905403137, -0.00408943323418498, -0.010159115307033062, 0.013526025228202343, 0.010061806067824364, -0.011025170795619488, 0.04534624516963959, -0.056050293147563934, -0.034661658108234406, 0.004838716704398394, -0.03388318046927452, 0.010052074678242207, 0.018138498067855835, 0.021875184029340744, 0.03442811220884323, 0.030633041635155678, 0.03452542424201965, -0.031177975237369537, 0.08641086518764496, 0.01502459216862917, -0.056517377495765686, -0.003982392605394125, -0.023042898625135422, -0.004751137923449278, 0.03435026481747627, -0.06920654326677322, 0.026040032505989075, -0.03228730335831642, 0.04114247113466263, -0.05324777960777283, 0.03261815756559372, 0.003466652240604162, -0.036802466958761215, -0.0011403461685404181, 0.04557978734374046, -0.02467769756913185, -0.03672461956739426, 0.020162535831332207, -0.058930654078722, -0.058658186346292496, -0.031528290361166, -0.016912396997213364, 0.026293037459254265, 0.04157063364982605, 0.02051285095512867, 0.027343979105353355, -0.04417853057384491, 0.023393211886286736, 0.041843101382255554, 0.06897299736738205, 0.04573548212647438, 0.0411035493016243, 0.021797336637973785, -0.01824553869664669, 0.03331878408789635, 0.05904742702841759, -0.020396078005433083, 0.00931252259761095, -0.013993111439049244, 0.024385768920183182, -0.01656208373606205, -0.012504274956882, -0.02623465098440647, 0.010217500850558281, 0.09878864139318466, -0.019413253292441368, -0.013380060903728008, -0.004534624516963959, -0.020123612135648727, 0.04892723634839058, -0.06095469370484352, 0.05468795821070671, -0.042855121195316315, 0.03956605866551399, 0.010694317519664764, 0.045930102467536926, -0.09310576319694519, 0.045034851878881454, 0.012007996439933777, -0.033065780997276306, 0.048771537840366364, -0.07080242037773132, -0.0031187706626951694, 0.022381193935871124, -0.01647450402379036, 0.018157958984375, 0.07823687046766281, 0.019432714208960533, 0.07115273177623749, 0.012202615849673748, -0.027713755145668983, -0.03217053413391113, -0.024346845224499702, 0.016970783472061157, -0.05013387277722359, -0.03746417164802551, 0.004962786100804806, -0.04476238787174225, -0.02228388376533985, 0.00847079511731863, 0.016163114458322525, 0.015228942036628723, -0.04962786287069321, 0.012572391889989376, 0.011978804133832455, 0.005347158759832382, 0.0210188589990139, -0.011920418590307236, 0.012348580174148083, -0.07045210152864456, -0.023938145488500595, -0.028531156480312347, 0.030535731464624405, 0.01828446239233017, -0.023509982973337173, -0.01887805014848709, 0.02555348351597786, -0.019617602229118347, 0.02765537053346634, 0.05429872125387192, -0.02152486890554428, -0.0016871041152626276, 0.027168821543455124, 0.04051969200372696, -0.04308866336941719, 0.09193804860115051, -0.07812009751796722, -0.01996791735291481, 0.026468193158507347, 0.016075534746050835, -0.04223233833909035, -0.024638773873448372, 0.044412072747945786, -0.015783606097102165, 0.06687111407518387, 0.034992508590221405, 0.10307025909423828, -0.010986246168613434, 0.1251789927482605, 0.030457884073257446, 0.0018890213686972857, 0.06149962544441223, -0.04464561492204666, 0.07738054543733597, 0.013175711035728455, -0.011414408683776855, 0.0004026181995868683, 0.024872317910194397, -0.0331241674721241, -0.0310612041503191, 0.04355574771761894, 0.05581675097346306, -0.057101234793663025, -0.016445310786366463, -0.027519136667251587, -0.013156249187886715, 0.005833706818521023, 0.012951899319887161, -0.008383216336369514, -0.004751137923449278, 0.036043450236320496, 0.0755511224269867, -0.012387503869831562, 0.07738054543733597, -0.03806748986244202, 0.0012784040300175548, 0.06838914006948471, 0.043322205543518066, 0.00960445124655962, -0.018420694395899773, 0.05274176970124245, 0.08843490481376648, -0.02555348351597786, -0.029270708560943604, -0.030243802815675735, -0.026215188205242157, 0.014518583193421364, -0.028180841356515884, 0.03497304767370224, -0.017583834007382393, 0.04515162482857704, 0.00853404588997364, 0.03228730335831642, -0.014255846850574017, -0.043322205543518066, 0.07527865469455719, 0.03703600913286209, -0.06243379786610603, -0.03442811220884323, 0.046552881598472595, 0.07337138801813126, 0.0022198737133294344, 0.042894043028354645, -0.056984465569257736, -0.018157958984375, -0.054376568645238876, 0.0831412672996521, 0.0027635907754302025, 0.013895801268517971, 0.00853404588997364, -0.04585225507616997, 0.04943324252963066, 0.009409831836819649, 0.023685140535235405, -0.025572946295142174, 0.0010211418848484755, 0.014576968736946583, 0.03261815756559372, 0.043400052934885025, -0.018761279061436653, -0.02257581241428852, -0.01210530661046505, 0.015783606097102165, -0.012348580174148083, 0.02097993530333042, -0.010071536526083946, -0.0895247757434845, -0.04670857638120651, 0.018761279061436653, 0.005123347043991089, 0.05523289367556572, -0.013273020274937153, -0.06340689212083817, 0.03921574354171753, -0.11069932579994202, -0.028258688747882843, -0.02138863503932953, 0.04328327998518944, -0.02870631217956543, -0.04585225507616997, 0.017437869682908058, -0.006013729143887758, 0.01330221351236105, -0.012864320538938046, 0.04846014827489853, 0.05044526234269142, 0.05472688376903534, -0.03291008621454239, -0.013837415724992752, 0.04094785079360008, 0.031216898933053017, -0.009283329360187054, 0.03294900804758072, -0.027558060362935066, 0.043983910232782364, -0.014450466260313988, -0.012562661431729794, 0.029095550999045372, 0.04997817799448967, -0.023393211886286736, -0.030165955424308777, 0.0016043910291045904, 0.021797336637973785, -0.012533468194305897, -0.009113037958741188, 0.041259244084358215, -0.017671411857008934, -0.007512296084314585, 0.005833706818521023, 0.047136738896369934, -0.025903798639774323, 0.044412072747945786, 0.017934147268533707, -0.05908634886145592, -0.007940458133816719, 0.002397463656961918, 0.004235397558659315, -0.005361755378544331, -0.014489389955997467, 0.036841388791799545, 0.023218054324388504, 0.04273834824562073, -0.05418194830417633, -0.057490475475788116, 0.025397788733243942, 0.018138498067855835, 0.005595298483967781, 0.01101543940603733, 0.012202615849673748, -0.021972492337226868, -0.04581332951784134, 0.011414408683776855, 0.006651106756180525, 0.008485391736030579, -0.012767011299729347, 0.027246670797467232, -0.04157063364982605, 0.029854565858840942, 0.02395760826766491, -0.05978697910904884, 0.026293037459254265, 0.025164246559143066, -0.026448732241988182, 0.03156721219420433, -0.047136738896369934, 0.009983958676457405, -0.018819663673639297, -0.025086399167776108, -0.039741214364767075, 0.0347200408577919, -0.045969024300575256, -0.01676643267273903, -0.022848278284072876, 0.01159929670393467, -0.01446019671857357, -0.00623267563059926, -0.03446703776717186, -0.06535308063030243, -0.009200616739690304, 0.004454344045370817, 0.007269022520631552, -0.006086711306124926, -0.006753281690180302, 0.02677958458662033, 0.006106173153966665, 0.008733530528843403, 0.032384611666202545, 0.036257531493902206, -0.02127186395227909, -0.01694159023463726, 0.022225497290492058, -0.004665992222726345, 0.024483079090714455, 0.045501939952373505, 0.06554770469665527, -0.02979617938399315, -0.02286774106323719, 0.01525813527405262, 0.03590722009539604, 0.005741262808442116, -0.012095575220882893, -0.0739552453160286, -0.03563475236296654, -0.014304501935839653, 0.005259580444544554, -0.0135357566177845, 0.016455043107271194, 0.023821374401450157, 0.08687795698642731, -0.004242695868015289, 0.012669701129198074, -0.019559217616915703, 0.017807645723223686, -0.0006854240200482309, -0.01732109673321247, -0.051768671721220016, 0.0598648265004158, -0.07383847236633301, -0.005113616120070219, 0.0283365361392498, -0.03765879198908806, -0.007283618673682213, -0.008388081565499306, -0.07185336202383041, -0.046085797250270844, -0.03551797941327095, -0.04557978734374046, 0.013623335398733616, -0.061266083270311356, -0.03220945596694946, -0.090458944439888, -0.03830103203654289, 0.00007590903987875208, 0.06282303482294083, 0.040286146104335785, 0.06955685466527939, -0.037600405514240265, 0.06068222597241402, 0.0008131428039632738, 0.06060437858104706, -0.05266392230987549, -0.03958551958203316, 0.019053207710385323, -0.012144230306148529, -0.007444179616868496, 0.014839704148471355, -0.027246670797467232, 0.009385504759848118, -0.029659947380423546, -0.039527133107185364, 0.027188284322619438, -0.028141917660832405, -0.008251848630607128, -0.00983799435198307, 0.05523289367556572, -0.002783052623271942, -0.00650514243170619, -0.04787629097700119, 0.025884335860610008, -0.037308476865291595, -0.007196040358394384, 0.016746971756219864, 0.035206589847803116, -0.017389213666319847, -0.00813507754355669, 0.05153512954711914, -0.03619914874434471, -0.0012364393332973123, 0.013856877572834492, 0.01736002042889595, -0.009706626646220684, 0.0037366861943155527, 0.048693690448999405, 0.020863164216279984, 0.003490979550406337, 0.00337907369248569, 0.036627307534217834, -0.0007079268689267337, 0.01553060207515955, -0.05795755982398987, 0.043983910232782364, -0.02384083718061447, 0.08695580065250397, 0.026429269462823868, 0.03174237161874771, -0.021680563688278198, 0.04324435815215111, -0.05581675097346306, 0.0682334452867508, -0.023101283237338066, -0.07492834329605103, 0.003780475351959467, -0.048615843057632446, 0.028239227831363678, 0.03981906175613403, 0.00352017255499959, 0.001677373074926436, 0.033766407519578934, 0.004814389161765575, -0.001980249071493745, 0.049199700355529785, 0.042816195636987686, -0.013779030181467533, 0.027246670797467232, 0.025825951248407364, 0.0493553951382637, -0.027188284322619438, 0.03989690914750099, 0.059748053550720215, 0.031586676836013794, -0.014216923154890537, -0.06827236711978912, 0.018391503021121025, -0.0018732085591182113, -0.002892525866627693, -0.024950165301561356, 0.01920890249311924, -0.021447021514177322, 0.01882939599454403, -0.016717778518795967, 0.03331878408789635, -0.018907243385910988, -0.013594142161309719, 0.03754201903939247, -0.061305008828639984, 0.005215791054069996, -0.006724088918417692, 0.029153937473893166, 0.08174000680446625, -0.0051087504252791405, -0.038690272718667984, 0.07146412134170532, 0.016367463394999504, -0.028025146573781967, 0.018274730071425438, -0.008908688090741634, 0.012134498916566372, 0.015608449466526508, -0.037639327347278595, 0.0015423560980707407, 0.03018541820347309, -0.036841388791799545, 0.040675386786460876, -0.02269258350133896, 0.008548642508685589, 0.02189464494585991, -0.002103102393448353, 0.0176908727735281, -0.0011750126723200083, -0.0015958764124661684, -0.10423797369003296, -0.0289982408285141, -0.044489920139312744, 0.013127055950462818, -0.01781737618148327, 0.003894814057275653, 0.013545487076044083, 0.043361127376556396, -0.07017963379621506, 0.04526839777827263, 0.0391768179833889, 0.03308524191379547, -0.009964496828615665, 0.020960474386811256, 0.03254031017422676, 0.012922706082463264, -0.02257581241428852, 0.014606161043047905, 0.05363701656460762, -0.006733819842338562, 0.006728954613208771, -0.024113303050398827, -0.0002060225378954783, 0.030827660113573074, -0.03396102786064148, -0.013020016252994537, -0.04036399722099304, -0.011064094491302967, -0.03900166228413582, -0.046007949858903885, 0.049783557653427124, -0.022712046280503273, -0.021622179076075554, -0.054960425943136215, 0.002150540705770254, -0.015618180856108665, 0.03123636171221733, 0.0008326047100126743, 0.009867186658084393, -0.0032550040632486343, 0.053870558738708496, 0.014975938014686108, -0.025008549913764, -0.031508829444646835, -0.013895801268517971, -0.026760121807456017, 0.00813507754355669, 0.059125274419784546, 0.020435001701116562, 0.028317075222730637, -0.03123636171221733, -0.0353817455470562, -0.002318399725481868, -0.026254111900925636, 0.014684009365737438, -0.012348580174148083, 0.05005602538585663, 0.023140206933021545, -0.041765253990888596, 0.03382479399442673, 0.01786603033542633, -0.018975360319018364, 0.03732793778181076, -0.011297636665403843, 0.058658186346292496, 0.009229809045791626, -0.01790495403110981, -0.050017099827528, 0.016912396997213364, -0.0025787027552723885, -0.018430426716804504, 0.009171423502266407, -0.06068222597241402, -0.015871185809373856, -0.023023435845971107, 0.025709180161356926, 0.008120480924844742, -0.055583205074071884, -0.031041741371154785, -0.02740236558020115, -0.009716357104480267, -0.007449044845998287, -0.0072446949779987335, 0.05877495929598808, 0.00004128053114982322, -0.007239829283207655, -0.023276440799236298, 0.02442469261586666, -0.04846014827489853, -0.027421826496720314, 0.013915264047682285, -0.008645952679216862, 0.015121901407837868, -0.020649082958698273, 0.003712358884513378, 0.02286774106323719, 0.021213479340076447, 0.042388033121824265, -0.03616022318601608, -0.03401941433548927, 0.060215141624212265, -0.021700026467442513, 0.04211556538939476, 0.04223233833909035, 0.02269258350133896 ]
729,388
tinytuya.Cloud
getdevices
Return dictionary of all devices. If verbose is true, return full Tuya device details.
def getdevices(self, verbose=False, oldlist=[], include_map=False): """ Return dictionary of all devices. If verbose is true, return full Tuya device details. """ old_devices = {} if oldlist: for dev in oldlist: dev_id = dev['id'] old_devices[dev_id] = dev if self.apiDeviceID and self.use_old_device_list: json_data = {} uid_list = {} # apiDeviceID can be a comma-separated list, so process them all for dev_id in self.apiDeviceID.split(','): dev_id = dev_id.strip() if not dev_id: continue uid = self._getuid( dev_id ) if not uid: # no user for this device? continue if isinstance( uid, dict ): # it's an error_json dict return uid else: uid_list[uid] = True if not uid_list: return error_json( ERR_CLOUD, "Unable to get uid for device list" ) for uid in uid_list: # Use UID to get list of all Devices for User uri = 'users/%s/devices' % uid json_run = self._tuyaplatform(uri) # merge the dicts for k in json_run: if (k not in json_data) or (k != 'result'): # replace if key is not 'result' json_data[k] = json_run[k] else: # merge 'result' keys json_data[k] += json_run[k] else: json_data = self._get_all_devices() users = {} # loop through all devices and build a list of user IDs for dev in json_data['result']: if 'uid' in dev: users[dev['uid']] = True if users: # we have at least 1 user id, so fetch the device list again to make sure we have the local key # this also gets us the gateway_id for child devices for uid in users.keys(): json_data2 = self._get_all_devices( uid=uid ) self._update_device_list( json_data['result'], json_data2['result'] ) if verbose: return json_data elif not json_data or 'result' not in json_data: return error_json( ERR_CLOUD, "Unable to get device list" ) self.getdevices_raw = json_data devs = json_data['result'] changed_devices = [] unchanged_devices = [] # check to see if anything has changed. if so, re-download factory-infos and DP mapping for dev in devs: dev_id = dev['id'] if dev_id not in old_devices: # newly-added device changed_devices.append( dev ) continue old = old_devices[dev_id] if 'key' not in old or old['key'] != dev['local_key']: # local key changed changed_devices.append( dev ) continue if (('icon' not in old) and ('icon' in dev)) or (include_map and ('mapping' not in old or old['mapping'] is None)): # icon or mapping added changed_devices.append( dev ) continue is_same = True for k in DEVICEFILE_SAVE_VALUES: if k in dev and k != 'icon' and k != 'last_ip' and (k not in old or old[k] != dev[k]): is_same = False break if not is_same: changed_devices.append( dev ) continue unchanged_devices.append( old ) if include_map: mappings = self.getmappings( changed_devices ) for productid in mappings: for dev in changed_devices: if 'product_id' in dev and dev['product_id'] == productid: dev['mapping'] = mappings[productid] # also set unchanged devices just in case the mapping changed for dev in unchanged_devices: if 'product_id' in dev and dev['product_id'] == productid: dev['mapping'] = mappings[productid] log.debug( 'changed: %d', len(changed_devices) ) log.debug( 'unchanged: %d', len(unchanged_devices) ) # Filter to only Name, ID and Key return self.filter_devices( changed_devices ) + unchanged_devices
(self, verbose=False, oldlist=[], include_map=False)
[ 0.012837565504014492, -0.04242327809333801, -0.059271953999996185, 0.027183067053556442, -0.01932169310748577, -0.008655555546283722, -0.03677354380488396, -0.012435449287295341, 0.012184126302599907, -0.031083596870303154, -0.015712697058916092, -0.04660528898239136, -0.026660315692424774, 0.03327513113617897, 0.027987301349639893, -0.018246030434966087, -0.050425395369529724, 0.04954073950648308, 0.07495449483394623, -0.07688465714454651, 0.0032144179567694664, 0.052355553954839706, 0.028610581532120705, 0.037617988884449005, 0.014285184442996979, 0.06908359378576279, 0.04077460244297981, -0.001682605710811913, 0.06651005148887634, 0.006931481417268515, -0.013732274994254112, 0.011520634405314922, 0.08918941766023636, 0.027444442734122276, -0.02543386071920395, -0.013139152899384499, 0.02181481383740902, 0.009489946998655796, -0.10060951858758926, -0.0065092588774859905, -0.026258200407028198, -0.06317248195409775, 0.002839946886524558, -0.017944443970918655, 0.03916613757610321, 0.0770857110619545, -0.03735661134123802, 0.0524761900305748, -0.0075899469666182995, 0.012757142074406147, 0.0075597879476845264, 0.020548148080706596, -0.03995026275515556, 0.050264548510313034, -0.01318941731005907, -0.0361301563680172, -0.07427089661359787, -0.019110580906271935, -0.008997354656457901, 0.013923279941082, -0.019723808392882347, 0.004561507608741522, 0.01607460342347622, -0.0063785710372030735, -0.021091004833579063, -0.024328041821718216, -0.016848675906658173, 0.0024554231204092503, -0.029917459934949875, 0.07431110739707947, -0.027947088703513145, -0.002233002567663789, 0.03152592480182648, -0.023202115669846535, 0.029052909463644028, 0.023684654384851456, 0.006740476004779339, -0.018336506560444832, -0.046967193484306335, -0.08436401933431625, 0.015260317362844944, 0.01903015747666359, 0.034662432968616486, 0.025474073365330696, 0.031586240977048874, 0.10044867545366287, 0.016778307035565376, -0.006655026227235794, -0.03216931223869324, -0.021251851692795753, -0.0704910010099411, -0.0061976187862455845, 0.004365475848317146, 0.05585396662354469, 0.01999523676931858, -0.01984444446861744, -0.06329312175512314, 0.022900529205799103, 0.008585184812545776, 0.0024893516674637794, 0.05629629269242287, -0.062328040599823, -0.04620317369699478, -0.03802010416984558, 0.051390472799539566, -0.06819894164800644, -0.03492380678653717, 0.04383068531751633, 0.024187300354242325, 0.06960634887218475, -0.1261841207742691, -0.018949734047055244, 0.030098412185907364, 0.007594973314553499, 0.007202909793704748, -0.018326453864574432, 0.007016931194812059, 0.010656083934009075, -0.011822221800684929, -0.03592909872531891, -0.028128040954470634, 0.02937460131943226, 0.018617989495396614, -0.02887195721268654, -0.003837698372080922, -0.01788412593305111, 0.0180650781840086, 0.01433544885367155, 0.042222220450639725, 0.0327724851667881, -0.05866878107190132, -0.0018333994084969163, 0.005870899185538292, 0.025534391403198242, 0.05541163682937622, -0.0638560801744461, -0.02722327969968319, 0.009283862076699734, 0.02621798776090145, 0.01146031729876995, -0.008479629643261433, -0.013883068226277828, 0.04129735380411148, -0.02015608362853527, 0.00047185845323838294, -0.01449629571288824, 0.012827512808144093, -0.022357670590281487, -0.048615872859954834, -0.01820581965148449, -0.024147089570760727, 0.04326772317290306, 0.011198941618204117, -0.018899470567703247, -0.07246137410402298, 0.011892592534422874, -0.036974601447582245, -0.08412274718284607, -0.011570898815989494, -0.009087830781936646, -0.010384655557572842, -0.060598939657211304, -0.011952909640967846, -0.011751851066946983, -0.01639629527926445, -0.003455687779933214, -0.057140737771987915, 0.011711640283465385, -0.0016323411837220192, 0.01591375656425953, -0.00862037017941475, 0.05126984044909477, 0.061242327094078064, -0.008198147639632225, -0.029052909463644028, 0.02871111035346985, -0.0037874337285757065, -0.09160211682319641, -0.00046808860497549176, 0.012445501983165741, -0.06498201191425323, 0.01690899394452572, 0.03160634636878967, 0.055693119764328, 0.029575660824775696, 0.016335979104042053, 0.0278666652739048, 0.03371746093034744, 0.03721587359905243, 0.032390475273132324, -0.03842221945524216, -0.004187036771327257, 0.02097036875784397, 0.01592380926012993, 0.010374602861702442, 0.02062857151031494, 0.04182010516524315, 0.01819576695561409, -0.011942856945097446, 0.005629629362374544, -0.09361269325017929, -0.024388359859585762, 0.010007672011852264, -0.02358412556350231, -0.027766136452555656, -0.00014396080223377794, -0.0013684523291885853, 0.03409947082400322, 0.032852910459041595, 0.018628042191267014, 0.010957671329379082, 0.009208464995026588, -0.012566137127578259, 0.013149205595254898, 0.04475555568933487, -0.026921691372990608, 0.0720592588186264, 0.026680422946810722, -0.03411957621574402, -0.03178730234503746, -0.028087830170989037, -0.041377775371074677, -0.053199999034404755, -0.04684656113386154, -0.06208677217364311, 0.03639153391122818, 0.005096825305372477, 0.02937460131943226, 0.0180148147046566, -0.013671956956386566, 0.048093121498823166, -0.023483596742153168, 0.04186031594872475, 0.04535872861742973, -0.0036793649196624756, -0.011389946565032005, 0.03586878255009651, -0.026640210300683975, 0.0639365091919899, -0.022518517449498177, 0.007439153268933296, -0.031405288726091385, 0.051551319658756256, -0.011098412796854973, -0.019070370122790337, -0.02229735441505909, 0.005664814729243517, 0.0076904757879674435, 0.004413227550685406, -0.05955343693494797, 0.0018283729441463947, 0.005896031390875578, 0.062408462166786194, 0.023383067920804024, -0.006790740415453911, -0.12385185062885284, 0.03397883474826813, -0.012636507861316204, 0.024991532787680626, -0.059432800859212875, 0.006499206181615591, 0.008464549668133259, -0.07567830383777618, 0.06369523704051971, -0.06216719374060631, -0.037959787994623184, 0.0573820099234581, 0.04849523678421974, -0.05307936295866966, 0.050063490867614746, 0.10776719450950623, 0.022719575092196465, -0.045921690762043, -0.021111110225319862, -0.024307936429977417, -0.00450119050219655, 0.022880421951413155, 0.0034984126687049866, 0.0022229496389627457, -0.054366134107112885, -0.05702010542154312, -0.03082222118973732, -0.0075648147612810135, 0.04459470883011818, 0.022880421951413155, -0.08146878331899643, 0.00794179830700159, 0.03128465637564659, -0.029615871608257294, -0.0008299933397211134, 0.004448412451893091, -0.024368252605199814, -0.0983576700091362, -0.007454232778400183, -0.052395764738321304, 0.03645185008645058, -0.06321269273757935, -0.010816930793225765, 0.020135978236794472, -0.03216931223869324, -0.05758306756615639, 0.07515555620193481, 0.03249100595712662, 0.012093650177121162, 0.024669840931892395, -0.00885158684104681, 0.050224337726831436, -0.07941798865795135, 0.005111904814839363, -0.019130686298012733, -0.025534391403198242, -0.037155553698539734, 0.03228994458913803, -0.0011956678936257958, -0.013269840739667416, -0.026941798627376556, -0.014194708317518234, 0.06638941913843155, 0.039125923067331314, 0.09787512570619583, -0.005503967870026827, 0.05147089809179306, -0.017662962898612022, 0.0737481489777565, 0.08138835430145264, -0.017954496666789055, 0.07109417766332626, 0.0221164021641016, -0.0110783064737916, 0.004096560645848513, -0.018557671457529068, -0.026439152657985687, -0.017642855644226074, 0.039749205112457275, 0.03751745820045471, -0.00886163953691721, -0.01146031729876995, -0.06417777389287949, -0.012515872716903687, 0.036049734801054, -0.010394708253443241, -0.01592380926012993, -0.050063490867614746, 0.001957804197445512, -0.0029756613075733185, -0.027665607631206512, 0.08476613461971283, 0.014697354286909103, -0.007177777588367462, 0.018728571012616158, 0.02855026349425316, 0.029052909463644028, 0.021050792187452316, 0.06035767123103142, 0.10286137461662292, -0.03669312223792076, -0.050425395369529724, -0.002948015695437789, -0.010243915021419525, 0.028610581532120705, -0.026780951768159866, 0.002601190470159054, 0.0037044971249997616, 0.013068783096969128, 0.007650264073163271, -0.02080952376127243, -0.014606878161430359, -0.04628359526395798, 0.017140211537480354, -0.01933174580335617, -0.040734391659498215, 0.02444867603480816, 0.053521692752838135, -0.010213756002485752, 0.04399153217673302, -0.0005858961376361549, -0.0063785710372030735, 0.018949734047055244, -0.06144338473677635, 0.07925713807344437, -0.03168677166104317, 0.030761903151869774, -0.007087301462888718, 0.02919364906847477, 0.031425394117832184, -0.0059664021246135235, -0.004742460325360298, -0.03890476003289223, -0.0005434854538179934, -0.02557460218667984, -0.0065896823070943356, 0.016939152032136917, -0.032229628413915634, 0.034823279827833176, -0.0007231811759993434, 0.012978306040167809, -0.013923279941082, -0.01623544842004776, -0.023242326453328133, -0.06960634887218475, -0.029736507683992386, -0.05617566034197807, -0.005468782968819141, 0.06112169101834297, -0.0065645501017570496, -0.02933439053595066, 0.08717883378267288, 0.0033853172790259123, -0.05504973232746124, 0.04523809254169464, -0.023805290460586548, -0.02084973454475403, -0.028288887813687325, 0.004978703334927559, 0.0077206348069012165, 0.07342645525932312, -0.039286769926548004, 0.07752803713083267, 0.06474073976278305, 0.10615872591733932, -0.0047298939898610115, -0.03245079144835472, -0.038603171706199646, 0.0013081348733976483, -0.016959259286522865, 0.012133861891925335, 0.017321163788437843, 0.019633332267403603, -0.02277989313006401, 0.02887195721268654, 0.0770455002784729, -0.003352645318955183, -0.001037962967529893, -0.05525078997015953, 0.01293809525668621, -0.008228306658565998, 0.040091004222631454, -0.03900529071688652, 0.01468730065971613, 0.003978439141064882, -0.003699470777064562, -0.004611772485077381, 0.026760846376419067, -0.004744973499327898, -0.021694179624319077, 0.004036243073642254, -0.06325291097164154, 0.03371746093034744, 0.026338623836636543, 0.005981481168419123, 0.002827380783855915, -0.04362962767481804, 0.013491004705429077, -0.029113225638866425, 0.05702010542154312, -0.03596930950880051, -0.01484814751893282, 0.007212962955236435, -0.007363756187260151, 0.022096294909715652, 0.01591375656425953, 0.0344613753259182, 0.0027017195243388414, 0.024649735540151596, 0.004890740383416414, 0.061885710805654526, -0.004388094879686832, -0.018487300723791122, -0.0005934358341619372, 0.005101851653307676, 0.03538624197244644, 0.01278730109333992, -0.028128040954470634, 0.03846243396401405, -0.013722221367061138, -0.006529364734888077, 0.0043931216932833195, -0.002932936418801546, -0.03317460045218468, -0.06614814698696136, -0.02099047601222992, -0.0426243357360363, 0.03806031495332718, -0.017431745305657387, -0.010535449720919132, -0.07632169127464294, 0.03950793668627739, -0.0524761900305748, -0.01837671920657158, -0.03719576448202133, -0.047489944845438004, -0.05227513238787651, -0.007851322181522846, -0.01903015747666359, -0.05472804233431816, 0.003171693067997694, -0.004332804121077061, 0.011540740728378296, 0.0007696758839301765, 0.00138227513525635, 0.02834920585155487, -0.014214814640581608, -0.010595766827464104, 0.00334007921628654, 0.006519312039017677, 0.015612169168889523, 0.014315343461930752, 0.02969629503786564, -0.05034497007727623, 0.02314179763197899, -0.01983439177274704, 0.022498412057757378, 0.06844020634889603, -0.0328126959502697, -0.02607724815607071, -0.022216930985450745, -0.012686772271990776, 0.018135448917746544, -0.014285184442996979, 0.01409417949616909, -0.00047185845323838294, 0.04387089982628822, 0.021754495799541473, 0.026640210300683975, 0.03371746093034744, 0.010696295648813248, -0.029615871608257294, 0.004533862229436636, -0.005880952347069979, -0.021372485905885696, -0.051873013377189636, 0.0038955025374889374, 0.0022367723286151886, -0.051913224160671234, 0.01850740611553192, -0.08010158687829971, 0.00627301586791873, -0.06200634688138962, -0.021754495799541473, -0.041216928511857986, 0.06807830184698105, 0.008203173987567425, -0.008167989552021027, -0.07740740478038788, -0.04177989438176155, -0.03325502574443817, -0.011993121355772018, -0.014204761013388634, 0.0262380950152874, -0.022176718339323997, -0.0031390211079269648, -0.006479100324213505, 0.05537142604589462, 0.025152379646897316, -0.03373756632208824, -0.01689894124865532, -0.018165607005357742, 0.002656481461599469, -0.03349629417061806, -0.012324867770075798, -0.0061222221702337265, 0.007112433668226004, -0.03096296265721321, 0.006785714067518711, -0.0002505373558960855, -0.0016549602150917053, -0.050706878304481506, 0.06735449284315109, 0.00713253952562809, -0.017652910202741623, -0.0022983464878052473, 0.0012094906996935606, -0.01653703674674034, 0.02639894001185894, -0.04644444212317467, -0.0011994377709925175, 0.01353121642023325, -0.004662036895751953, 0.034019045531749725, -0.07443174719810486, 0.003169179894030094, 0.06856084614992142, 0.02426772378385067, 0.01574285700917244, 0.041739679872989655, -0.032692063599824905, 0.0524761900305748, 0.04463491961359978, 0.0442328043282032, -0.03490370139479637, -0.021593650802969933, -0.006192592438310385, -0.06590687483549118, -0.0059362431056797504, -0.03906560689210892, 0.0638560801744461, -0.014456083998084068, -0.0035235448740422726, -0.04230264574289322, 0.016808465123176575, -0.031043386086821556, 0.04350899159908295, 0.048093121498823166, -0.10784761607646942, 0.0221566129475832, -0.01411428488790989, -0.04668571427464485, -0.058266665786504745, -0.035305820405483246, 0.020729100331664085, 0.027122750878334045, 0.013661904260516167, 0.01180211640894413, 0.02279999852180481, 0.040271956473588943, -0.012917988933622837, 0.01573280431330204, -0.004667063243687153, 0.02543386071920395, -0.04885714128613472, -0.018567724153399467, 0.04186031594872475, 0.009791534394025803, 0.0018673279555514455, -0.07479365170001984, -0.04455449432134628, -0.017019575461745262, 0.04141798987984657, -0.034501586109399796, 0.0031641533132642508, 0.005503967870026827, -0.03687407448887825, 0.04933968186378479, 0.040573544800281525, -0.03128465637564659, -0.031706877052783966, 0.013631745241582394, -0.06365502625703812, -0.018577776849269867, 0.03898518532514572, 0.023564020171761513, 0.05183280259370804, 0.004576587118208408, -0.008947089314460754, 0.02032698318362236, 0.0020419973880052567, -0.03180740773677826, 0.0005381448427215219, 0.019130686298012733, -0.00770555529743433, -0.046806346625089645, 0.024328041821718216, -0.00022446262300945818, 0.022518517449498177, -0.010253967717289925, 0.040251851081848145, -0.02589629590511322, 0.020608464255928993, 0.0029882274102419615, 0.0013898147735744715, -0.011269311420619488, 0.015039153397083282, 0.03560740500688553, -0.07889523357152939, 0.01769312098622322, -0.01123915333300829, 0.04543915018439293, -0.02851005271077156, 0.013410581275820732, 0.006996825337409973, 0.0270825382322073, -0.011098412796854973, 0.06184550002217293, 0.01254603173583746, -0.021271957084536552, -0.009223544970154762, 0.024850793182849884, 0.017341269180178642, 0.01621534302830696, -0.006916401907801628, -0.00787645485252142, 0.015029099769890308, 0.005152116063982248, 0.03144550323486328, -0.049098409712314606, 0.03476296365261078, 0.06433862447738647, -0.011822221800684929, -0.012063492089509964, -0.004242327995598316, -0.005358200985938311, -0.07358729839324951, 0.008911904878914356, 0.023403173312544823, -0.04391111060976982, -0.031747087836265564, -0.007006878033280373, 0.042704761028289795, -0.01408412680029869, 0.05183280259370804, 0.02690158598124981, 0.015652380883693695, -0.013913227245211601, 0.014204761013388634, 0.030922750011086464, 0.02394603006541729, -0.05372275039553642, -0.028268782421946526, -0.026982009410858154, -0.021251851692795753, 0.043026454746723175, 0.02181481383740902, 0.03914603218436241, -0.040091004222631454, -0.001514219562523067, -0.020206348970532417, -0.02062857151031494, -0.014817988499999046, 0.0786539688706398, 0.04519788175821304, 0.04035237804055214, 0.007544708903878927, 0.038784123957157135, 0.04165925830602646, -0.005559259094297886, 0.02772592566907406, 0.029877247288823128, -0.009902115911245346, -0.04785184934735298, -0.006690211594104767, -0.02066878229379654, 0.031123807653784752, -0.037135448306798935, -0.009982539340853691, 0.007816137745976448, -0.06590687483549118, 0.0180449727922678, -0.03735661134123802, -0.01968359760940075, 0.04487618803977966, -0.034843385219573975, -0.012686772271990776, -0.010585714131593704, 0.06164444237947464, -0.029213756322860718, -0.010434919968247414, 0.07511533796787262, 0.005116931162774563, -0.00741402106359601, 0.0031415342818945646, 0.04459470883011818, -0.0344412699341774, -0.0590708963572979, 0.011832274496555328, 0.017099998891353607, 0.024006348103284836, -0.026982009410858154, 0.03524550050497055, 0.008529894053936005, 0.012013226747512817, -0.0022468252573162317, 0.008544973097741604, -0.02360423281788826, 0.04322751238942146, 0.034662432968616486, 0.04161904752254486, -0.01576296240091324, 0.010877247899770737 ]
729,389
tinytuya.Cloud
getdps
Get the specifications including DPS IDs of the device.
def getdps(self, deviceid=None): """ Get the specifications including DPS IDs of the device. """ if not self.token: return self.error if not deviceid: return error_json( ERR_PARAMS, "Missing DeviceID Parameter" ) uri = 'devices/%s/specifications' % (deviceid) response_dict = self._tuyaplatform(uri, ver='v1.1') if not response_dict['success']: log.debug( "Error from Tuya Cloud: %r", response_dict['msg'], ) return response_dict
(self, deviceid=None)
[ 0.02790261246263981, -0.007330347318202257, 0.012313582003116608, -0.04494544863700867, -0.015352566726505756, 0.05349314212799072, -0.0359073169529438, -0.037203483283519745, -0.016368480399250984, 0.02119407430291176, -0.021159043535590172, -0.04942948371171951, -0.050725653767585754, -0.005399234127253294, 0.04011109843850136, -0.040811728686094284, -0.004694224800914526, 0.03583725169301033, 0.047993194311857224, -0.046556901186704636, 0.025573015213012695, 0.0776999294757843, 0.023313481360673904, -0.0028769641648977995, -0.04519066959619522, 0.05822239816188812, 0.055910319089889526, -0.03385797142982483, -0.011691772378981113, -0.01814633049070835, 0.012366129085421562, 0.05570013076066971, 0.05377339571714401, 0.05069062113761902, -0.0674707219004631, 0.036152537912130356, 0.06435291469097137, 0.021421778947114944, -0.12842558324337006, 0.049219295382499695, -0.0981583371758461, -0.01937243528664112, 0.07230507582426071, -0.02487238496541977, -0.020370833575725555, 0.01441547367721796, -0.05934340879321098, -0.024644680321216583, -0.030950354412198067, 0.03396306559443474, 0.02126413770020008, 0.04119707643985748, -0.043929535895586014, -0.012024572119116783, -0.033490139991045, -0.009151986800134182, -0.01668376475572586, 0.023015713319182396, 0.03534680977463722, 0.037203483283519745, -0.00898558646440506, -0.015370083041489124, 0.004619782790541649, -0.056295666843652725, -0.05643578991293907, -0.018006205558776855, 0.009598638862371445, 0.002896669553592801, -0.04000600427389145, 0.04841357097029686, -0.041547391563653946, -0.04680212214589119, -0.04673205688595772, -0.0214743260294199, 0.058852966874837875, -0.019635170698165894, -0.012515013106167316, -0.0076631465926766396, -0.006870558485388756, -0.020686117932200432, -0.05209188163280487, 0.009756280109286308, 0.048168350011110306, 0.03007456660270691, 0.007150810677558184, 0.04501551389694214, 0.046556901186704636, 0.04291362315416336, 0.02119407430291176, -0.012506254948675632, 0.00793464109301567, -0.010947352275252342, -0.0028769641648977995, 0.0634070634841919, 0.00871847104281187, 0.03130067139863968, -0.03035481832921505, 0.09416474401950836, -0.05815233662724495, 0.04484035447239876, -0.032771993428468704, -0.03452356904745102, 0.01499349344521761, 0.012821539305150509, 0.012567560188472271, -0.04585627093911171, -0.009011860936880112, 0.05794214829802513, 0.03571464121341705, 0.05156640708446503, -0.03534680977463722, -0.003906015306711197, 0.0410219207406044, -0.024644680321216583, 0.017147932201623917, -0.025100089609622955, 0.007032579276710749, 0.007584325969219208, -0.006353843491524458, -0.04168751835823059, -0.07994194328784943, 0.01692022755742073, -0.004249762278050184, 0.005622560158371925, -0.03179110959172249, 0.014853367581963539, -0.02336602844297886, 0.02883094735443592, 0.043649282306432724, 0.014844609424471855, 0.02438194304704666, 0.009896406903862953, 0.02769242227077484, 0.031826142221689224, 0.021999798715114594, -0.043719347566366196, 0.02818286418914795, -0.010693374089896679, 0.06218096241354942, 0.010544490069150925, -0.02618606761097908, 0.0022004179190844297, -0.03014462999999523, -0.014266589656472206, -0.0039169625379145145, -0.0027127538342028856, -0.01692022755742073, -0.05997397378087044, -0.03261435404419899, 0.0461365208029747, -0.04897407442331314, 0.03769392520189285, 0.057171452790498734, -0.030109597370028496, -0.03250925615429878, -0.016543639823794365, 0.01825142651796341, -0.048658791929483414, 0.04228305444121361, -0.025187669321894646, 0.0034462264738976955, -0.04375437647104263, 0.005942222662270069, 0.006178685463964939, 0.005324792116880417, -0.02136923186480999, -0.0748974084854126, -0.025660594925284386, 0.03401561453938484, 0.013014212250709534, 0.014108947478234768, 0.06011410057544708, -0.016648733988404274, -0.03574967384338379, 0.02686918154358864, -0.03972575068473816, 0.03807926923036575, -0.006572790443897247, -0.009975227527320385, -0.01512486208230257, 0.0018971761455759406, 0.04641677439212799, 0.0009847143664956093, 0.14923430979251862, 0.024469522759318352, 0.03249174356460571, 0.0054605393670499325, 0.04056650772690773, -0.04291362315416336, -0.007623736280947924, -0.0031813005916774273, -0.02145681157708168, 0.004265088587999344, 0.05727654695510864, 0.015510208904743195, 0.011236362159252167, 0.08260434120893478, -0.010956110432744026, -0.033420078456401825, 0.002088754903525114, -0.005307276267558336, -0.031808625906705856, -0.016333449631929398, -0.0010257669491693377, -0.010588278993964195, 0.020773695781826973, 0.024697227403521538, -0.01356595940887928, -0.03476879000663757, 0.007873335853219032, 0.0034287108574062586, 0.01700780726969242, -0.024136722087860107, -0.014529325999319553, 0.05135621875524521, -0.0516364723443985, 0.08701831847429276, -0.026501350104808807, -0.04473526030778885, -0.06249624490737915, -0.015413871966302395, -0.07307576388120651, 0.086667999625206, -0.010903563350439072, -0.030757680535316467, 0.03471624478697777, 0.014485537074506283, 0.030424881726503372, -0.011507856659591198, -0.004374561831355095, 0.025748172774910927, -0.010947352275252342, 0.06904713809490204, -0.015054798685014248, -0.05626063421368599, -0.026221098378300667, -0.015133620239794254, -0.020633568987250328, 0.07671904563903809, 0.002100796904414892, 0.0378340482711792, -0.006183064542710781, 0.03340256214141846, 0.03632769361138344, -0.06680512428283691, 0.0018172605196014047, 0.014345410279929638, 0.0061699277721345425, 0.02590581402182579, -0.03930537402629852, 0.03412070870399475, -0.06417775899171829, 0.040706634521484375, 0.037203483283519745, 0.008530177175998688, -0.07244519889354706, -0.006200580392032862, -0.0026930486783385277, 0.053948551416397095, -0.04725753143429756, -0.011656740680336952, 0.09703733026981354, -0.08876989036798477, 0.05836252495646477, -0.08876989036798477, -0.003222900442779064, -0.0005851360037922859, 0.012436192482709885, -0.042037833482027054, 0.03741367161273956, -0.021404262632131577, 0.04470022767782211, -0.01720047928392887, -0.04273846372961998, 0.004711740650236607, 0.017042838037014008, 0.04196777194738388, 0.032299067825078964, 0.018759382888674736, 0.0025507330428808928, -0.04998999089002609, -0.014695725403726101, 0.03340256214141846, 0.060184165835380554, 0.009633670561015606, -0.04809828847646713, -0.019792813807725906, 0.05643578991293907, 0.009073165245354176, 0.0224902406334877, -0.047327592968940735, 0.01672755368053913, -0.04336903244256973, 0.00645017996430397, -0.012944149784743786, 0.026536382734775543, -0.008959312923252583, -0.06859172880649567, 0.06834650784730911, 0.0014034506166353822, -0.034085676074028015, 0.0370633564889431, -0.013688569888472557, 0.04252827540040016, -0.05359823629260063, 0.026729054749011993, 0.06347712874412537, -0.05930837616324425, -0.045540984719991684, -0.050340306013822556, -0.050060052424669266, 0.002531027887016535, 0.009230807423591614, 0.023698829114437103, -0.008114177733659744, 0.008223650977015495, -0.04350915923714638, 0.04196777194738388, 0.02883094735443592, 0.0527925118803978, -0.03364778310060501, 0.029811829328536987, 0.07125412672758102, 0.006275022402405739, 0.11497347056865692, 0.02317335642874241, 0.043263938277959824, -0.02637873962521553, 0.004650435410439968, 0.024154238402843475, -0.05114603042602539, -0.016823891550302505, 0.004212541040033102, 0.00908192340284586, 0.08596736937761307, -0.029951956123113632, 0.03518917039036751, 0.010789710097014904, -0.038429584354162216, 0.01743694208562374, 0.026238614693284035, -0.050725653767585754, 0.009405964985489845, 0.003995783627033234, 0.02373385988175869, -0.003792162984609604, 0.01928485557436943, -0.04942948371171951, 0.01097362581640482, -0.0014746083179488778, -0.0030827743466943502, 0.05808227136731148, 0.018391551449894905, 0.06098989024758339, 0.0753878504037857, 0.020300770178437233, -0.03496146574616432, 0.0674707219004631, -0.04620658606290817, 0.011788109317421913, -0.023996597155928612, 0.005872159730643034, -0.017594585195183754, -0.003787783905863762, -0.02902362123131752, -0.024662194773554802, -0.00520218163728714, -0.03504904359579086, 0.024434490129351616, -0.003295153146609664, -0.038254428654909134, 0.04308877885341644, 0.010483184829354286, -0.008263061754405499, -0.012173456139862537, -0.012812781147658825, -0.07321589440107346, -0.01565033569931984, -0.03755379840731621, 0.04739765822887421, -0.05265238508582115, 0.005285381805151701, 0.005736412480473518, 0.035977378487586975, -0.013960063457489014, -0.017060354351997375, -0.061305172741413116, -0.022630367428064346, -0.023663796484470367, 0.001995702274143696, 0.04746771976351738, -0.027009308338165283, -0.03930537402629852, 0.08848963677883148, -0.0010339774889871478, -0.026974275708198547, -0.05654088407754898, -0.020843759179115295, 0.02431187964975834, 0.000747704179957509, -0.0033323741517961025, -0.05871284008026123, -0.014222799800336361, 0.04715243726968765, 0.000007539133548561949, -0.07037834078073502, 0.08729856461286545, -0.031440794467926025, -0.03296466916799545, 0.02902362123131752, -0.008311229757964611, 0.004554098471999168, -0.025940846651792526, 0.00023523122945334762, -0.019880391657352448, 0.04350915923714638, -0.047712940722703934, 0.07861074805259705, 0.0226829145103693, 0.03082774393260479, 0.01333825383335352, -0.05247722938656807, -0.03308727964758873, 0.009773796424269676, 0.015764188021421432, 0.021404262632131577, 0.023313481360673904, 0.019512560218572617, -0.0024784805718809366, -0.015878040343523026, 0.027552297338843346, 0.07128915935754776, -0.018303973600268364, -0.023803923279047012, 0.009800069965422153, -0.02714943327009678, -0.012339855544269085, 0.029426483437418938, 0.014196526259183884, -0.04158242419362068, -0.020073065534234047, 0.023050745949149132, 0.018128816038370132, 0.005661970470100641, -0.004381130449473858, -0.03440095856785774, -0.0019573864992707968, 0.014301621355116367, -0.023225903511047363, -0.041652485728263855, 0.032106395810842514, -0.04813331738114357, 0.06992293149232864, -0.013776148669421673, 0.03357771784067154, 0.006305675022304058, -0.00268210144713521, 0.020773695781826973, -0.06081473082304001, -0.03646782040596008, 0.025485435500741005, -0.02401411160826683, 0.029426483437418938, 0.034751273691654205, 0.022945649921894073, 0.03412070870399475, -0.035311780869960785, 0.026256129145622253, 0.010745921172201633, -0.0076719047501683235, 0.0062837800942361355, 0.05626063421368599, -0.003459363244473934, 0.02525773085653782, -0.000313641648972407, 0.024452006444334984, -0.02448703721165657, 0.0025726277381181717, -0.013399559073150158, -0.041652485728263855, 0.000026102592528332025, -0.05692623183131218, -0.0017088816966861486, 0.011534130200743675, 0.017813531681895256, -0.0807827040553093, 0.011630467139184475, -0.0520218200981617, -0.09003102779388428, -0.05804724246263504, 0.010894805192947388, -0.01110499445348978, -0.025082573294639587, -0.09248322993516922, -0.010570763610303402, 0.01782228983938694, 0.02998698689043522, -0.029461514204740524, 0.0012611349811777472, 0.022928135469555855, 0.0005213676486164331, -0.03205384686589241, 0.025835752487182617, -0.030039535835385323, 0.01937243528664112, -0.015729155391454697, -0.04697727784514427, 0.06866179406642914, 0.004803698044270277, 0.044384945183992386, -0.01743694208562374, 0.008451355621218681, 0.00335864769294858, 0.011472824960947037, 0.02478480525314808, 0.05391352251172066, 0.041547391563653946, 0.02837553806602955, -0.027832549065351486, 0.04848363250494003, -0.004138099029660225, 0.04890401288866997, 0.02769242227077484, 0.015098588541150093, 0.07202482223510742, -0.026256129145622253, -0.07629866898059845, -0.04235311597585678, -0.03420828655362129, 0.009721249341964722, 0.03175608068704605, -0.03468121215701103, 0.03052997589111328, 0.00525035010650754, -0.044770292937755585, -0.08316484838724136, -0.037869080901145935, -0.033490139991045, -0.010526973754167557, -0.04512060806155205, 0.03849964961409569, 0.01672755368053913, 0.047047343105077744, -0.03035481832921505, -0.018549194559454918, -0.014362926594913006, -0.03536432608962059, -0.001481176819652319, 0.0512511245906353, 0.00144286104477942, 0.057171452790498734, -0.03618756681680679, 0.0238389540463686, -0.02525773085653782, -0.04708237200975418, 0.002754353918135166, -0.004245383199304342, 0.02543288841843605, -0.054509058594703674, -0.040426384657621384, -0.018391551449894905, -0.03110799565911293, 0.0583975575864315, 0.003881931072100997, 0.027026822790503502, -0.012593834660947323, -0.01881192997097969, 0.04683715105056763, -0.05188169330358505, -0.06508857756853104, 0.0006114096031524241, -0.014940946362912655, -0.03972575068473816, 0.054509058594703674, -0.05843258649110794, -0.024049144238233566, -0.0035119105596095324, -0.006121759302914143, -0.009029376320540905, 0.006222475320100784, -0.020300770178437233, 0.06722550094127655, 0.04046141356229782, -0.003995783627033234, -0.011945750564336777, -0.0038271944504231215, 0.03415574133396149, -0.012120908126235008, 0.027061855420470238, -0.01360974833369255, -0.008968071080744267, -0.02270043082535267, -0.02855069562792778, 0.00041134675848297775, -0.0457511767745018, 0.057066358625888824, -0.04095185548067093, 0.0226829145103693, 0.012523771263659, -0.02457461692392826, -0.02751726470887661, 0.06617455929517746, 0.026553897187113762, -0.030197177082300186, 0.05485937371850014, 0.005968496669083834, 0.005793339107185602, -0.029391450807452202, -0.0457511767745018, -0.08982083946466446, 0.03110799565911293, -0.014135221019387245, -0.015431388281285763, 0.01814633049070835, 0.01205084566026926, -0.012987938709557056, 0.04049644619226456, -0.013933789916336536, -0.027447201311588287, -0.041827645152807236, 0.033052247017621994, 0.058958061039447784, 0.007531778421252966, -0.0013016401790082455, -0.025835752487182617, -0.0177609845995903, 0.011358972638845444, -0.005416749976575375, -0.05633069574832916, 0.023190870881080627, 0.03401561453938484, 0.04564607888460159, 0.008521419018507004, -0.021596936509013176, -0.018006205558776855, -0.013723600655794144, 0.025765689089894295, -0.060464415699243546, -0.00874036643654108, 0.042598336935043335, 0.021106494590640068, 0.035311780869960785, -0.010824741795659065, 0.011140026152133942, 0.016823891550302505, 0.06155039370059967, -0.07321589440107346, 0.031896207481622696, -0.009905164130032063, 0.009292112663388252, -0.014546842314302921, -0.019880391657352448, -0.00931838620454073, -0.028130317106842995, -0.005867781117558479, 0.00577144417911768, 0.012646381743252277, 0.010439394973218441, -0.040041036903858185, -0.001722018583677709, 0.030845260247588158, 0.014590631239116192, 0.0061743068508803844, -0.08337503671646118, 0.007593083661049604, -0.023243417963385582, -0.006612200755625963, -0.02467971108853817, -0.00506205577403307, 0.025573015213012695, 0.05927334353327751, 0.02552046813070774, -0.0009447564953006804, 0.009773796424269676, -0.034926433116197586, -0.04347412660717964, -0.017279300838708878, -0.020090581849217415, 0.03336752951145172, 0.010798468254506588, 0.018654288724064827, 0.0012173455907031894, 0.028305474668741226, 0.02308577671647072, -0.07202482223510742, -0.0031594058964401484, 0.05738164111971855, -0.0520218200981617, -0.021211590617895126, -0.01835652068257332, 0.00503140315413475, -0.06393253803253174, 0.007912746630609035, 0.011358972638845444, -0.006769842933863401, -0.041827645152807236, 0.006121759302914143, 0.03126563876867294, 0.003433089703321457, 0.022069862112402916, -0.022858072072267532, 0.0011658930452540517, 0.01773471012711525, 0.01649109087884426, 0.025590531527996063, 0.009274597279727459, 0.028025222942233086, -0.031423281878232956, -0.019039634615182877, -0.06435291469097137, 0.01582549326121807, 0.020861275494098663, -0.004908792674541473, -0.01743694208562374, 0.027674905955791473, -0.03340256214141846, -0.0429486520588398, 0.016780102625489235, 0.07819037139415741, 0.036923229694366455, 0.02145681157708168, -0.013145580887794495, -0.0013224402209743857, -0.00005326571044861339, 0.03264938294887543, 0.0673656314611435, 0.01097362581640482, 0.03564457967877388, 0.008622135035693645, -0.0043855095282197, -0.03336752951145172, -0.014853367581963539, -0.042598336935043335, -0.05534981191158295, -0.011560403741896152, 0.00922204926609993, 0.004076794255524874, -0.016044439747929573, 0.060639575123786926, -0.019827844575047493, -0.02354118600487709, 0.06021919474005699, 0.041932739317417145, -0.01465193647891283, 0.03357771784067154, 0.020213192328810692, 0.05188169330358505, -0.014441747218370438, 0.02024822309613228, -0.030880291014909744, 0.04494544863700867, -0.014424231834709644, -0.035399358719587326, -0.04935942217707634, 0.0165523961186409, -0.03329746797680855, 0.0205109603703022, 0.009913922287523746, 0.009397207759320736, 0.03515413776040077, -0.01730557531118393, -0.0007148621371015906, 0.01726178452372551, 0.00449279323220253, -0.0323341004550457, 0.028813431039452553, -0.02648383565247059, -0.005167150404304266 ]
729,390
tinytuya.Cloud
getfunctions
Get the functions of the device.
def getfunctions(self, deviceid=None): """ Get the functions of the device. """ return self._getdevice('functions', deviceid)
(self, deviceid=None)
[ -0.009321484714746475, -0.025745052844285965, 0.037763964384794235, -0.06378217786550522, 0.015023638494312763, 0.06064086779952049, -0.036364033818244934, 0.0003582518838811666, 0.011839651502668858, 0.009927552193403244, -0.06361144781112671, -0.024806076660752296, -0.009978769347071648, -0.0141529506072402, 0.004274481441825628, 0.007251466624438763, -0.021323323249816895, 0.061904218047857285, 0.038890738040208817, -0.02910829894244671, -0.028203466907143593, 0.032778847962617874, 0.046880580484867096, -0.03643232211470604, -0.0024882901925593615, 0.07279635965824127, 0.03079845942556858, -0.030883820727467537, 0.09232708811759949, -0.039437051862478256, -0.0635431632399559, -0.001676288084127009, -0.0051771798171103, -0.019428296014666557, -0.04373927414417267, 0.02594992145895958, 0.06781124323606491, 0.020094117149710655, -0.029500963166356087, 0.032505691051483154, -0.013743214309215546, -0.023576868698000908, 0.019581947475671768, -0.025608474388718605, 0.024071965366601944, 0.022262301295995712, -0.01435781829059124, -0.007921555079519749, 0.03742251917719841, 0.029347311705350876, 0.02139161340892315, 0.003563845995813608, -0.013026177883148193, -0.0013924607774242759, 0.008497745729982853, 0.04179302975535393, -0.03520311787724495, -0.05575818568468094, 0.00031877215951681137, 0.03136184439063072, 0.010029985569417477, -0.005330830812454224, 0.024959726259112358, -0.010644589550793171, 0.012650586664676666, 0.0007869270630180836, 0.004157109186053276, 0.023542724549770355, -0.05029504373669624, 0.03769567608833313, -0.06828926503658295, -0.011182366870343685, 0.018967343494296074, -0.04404657706618309, 0.02799859829246998, -0.001947311102412641, 0.035681139677762985, -0.04046139121055603, -0.01539922971278429, -0.03834442421793938, -0.008928821422159672, -0.01387979369610548, -0.01436635386198759, 0.04599282145500183, 0.03643232211470604, 0.0427832268178463, 0.019360007718205452, -0.025625547394156456, -0.061494484543800354, -0.002889489522203803, -0.04862195625901222, -0.02472071349620819, -0.048656102269887924, 0.04404657706618309, -0.015219969674944878, -0.05220714211463928, -0.029739975929260254, 0.028800997883081436, 0.02045263536274433, 0.009773900732398033, 0.015501663088798523, -0.0038711477536708117, 0.002061482286080718, 0.025164594873785973, 0.05719225853681564, -0.08781999349594116, -0.06371388584375381, 0.048382945358753204, 0.033188581466674805, 0.0510462261736393, -0.010004376992583275, 0.030047276988625526, 0.10830677300691605, -0.006675275508314371, 0.024054894223809242, -0.012437182478606701, 0.04568551853299141, 0.04957800731062889, -0.02362808585166931, -0.04927070438861847, -0.013896865770220757, 0.004035468678921461, 0.026257222518324852, -0.0455830842256546, 0.04513920471072197, 0.044217299669981, -0.009560497477650642, 0.041895464062690735, 0.04664156958460808, 0.03253983333706856, -0.01739669032394886, -0.004976580385118723, 0.021459901705384254, 0.059855543076992035, 0.005070478189736605, -0.022262301295995712, 0.058182455599308014, -0.011848188005387783, 0.029603397473692894, 0.01807958260178566, -0.04206618666648865, -0.00382846686989069, 0.001921702641993761, -0.0013860587496310472, -0.06917702406644821, 0.01987217552959919, 0.06084573641419411, -0.010883601382374763, 0.009201978333294392, -0.03824198991060257, -0.00579605158418417, 0.05784100666642189, -0.03646646812558174, -0.007738027255982161, -0.036090876907110214, 0.016995491459965706, 0.01394808292388916, -0.010764095932245255, 0.009372701868414879, -0.04442216828465462, -0.0400516539812088, 0.02263789251446724, -0.03269348666071892, -0.03660304471850395, 0.034025125205516815, -0.02731570601463318, -0.007686810567975044, 0.002464815741404891, -0.016961347311735153, 0.01669672504067421, -0.03339345008134842, 0.0030943574383854866, 0.025471895933151245, 0.028647346422076225, 0.05975310876965523, -0.03009849414229393, -0.06272368878126144, -0.004142170771956444, 0.016551610082387924, 0.015296795405447483, -0.023952459916472435, 0.0400516539812088, -0.045070916414260864, 0.08317632228136063, 0.025864560157060623, 0.05630449950695038, 0.011182366870343685, 0.013461521826684475, -0.0186258964240551, -0.022945193573832512, -0.02362808585166931, -0.0014874255284667015, 0.02900586649775505, 0.010525083169341087, -0.008877604268491268, -0.01835273951292038, -0.0055698431096971035, -0.0016560147050768137, -0.042714934796094894, -0.05189984291791916, 0.024635352194309235, -0.0006540831527672708, 0.029842408373951912, 0.01317982841283083, -0.023218350484967232, 0.046300120651721954, 0.0007325090700760484, 0.021920854225754738, -0.07115741819143295, -0.023167133331298828, 0.006316757295280695, -0.008997110649943352, -0.004289419390261173, 0.03646646812558174, 0.0428173691034317, 0.00912515353411436, -0.009338556788861752, 0.0026077963411808014, -0.007174640893936157, -0.029996059834957123, 0.0007666536839678884, -0.010465330444276333, -0.006841730792075396, -0.022040359675884247, -0.03395683690905571, 0.03988093137741089, 0.01609065756201744, -0.027298634871840477, -0.013239581137895584, -0.046470846980810165, 0.07156714797019958, 0.01630406267940998, -0.00903979130089283, -0.015697995200753212, -0.00603506388142705, -0.007405117154121399, 0.023081772029399872, -0.01724303886294365, 0.08064962178468704, -0.047973208129405975, 0.004430266097187996, -0.03358124569058418, 0.08181054145097733, 0.03204473853111267, 0.0019345068139955401, 0.05954824015498161, 0.014477324672043324, -0.006675275508314371, -0.02195499837398529, -0.04322710633277893, 0.018864909186959267, -0.06637716293334961, 0.02637672983109951, -0.004131500609219074, -0.034161705523729324, -0.07935212552547455, -0.017908859997987747, 0.016594290733337402, 0.00938123743981123, -0.054733846336603165, 0.009014182724058628, -0.0024456093087792397, -0.06282612681388855, 0.04804150015115738, -0.002714498434215784, 0.01166039239615202, 0.06507966667413712, 0.04664156958460808, -0.02980826422572136, 0.019274644553661346, 0.09068814665079117, 0.027144983410835266, -0.06282612681388855, -0.028664419427514076, -0.013837112113833427, -0.011301873251795769, -0.01961609162390232, 0.03467387333512306, 0.038993172347545624, -0.04752932861447334, -0.024225616827607155, -0.010934818536043167, -0.10052180290222168, 0.035681139677762985, -0.004310759715735912, -0.03902731463313103, 0.00721305375918746, -0.006927092559635639, 0.0032608124893158674, -0.02485729195177555, 0.039676062762737274, 0.031959377229213715, -0.04708544909954071, -0.007255734410136938, 0.03530555218458176, 0.039710208773612976, -0.022996410727500916, -0.04513920471072197, 0.06525039672851562, -0.004980848170816898, -0.007550232112407684, 0.004656474106013775, -0.0042488728649914265, 0.010132419876754284, -0.048656102269887924, -0.008224588818848133, 0.06589914113283157, -0.007166104856878519, -0.0324203297495842, -0.015945544466376305, -0.0047759804874658585, -0.024823147803544998, -0.003002593759447336, -0.04332954064011574, 0.009901943616569042, 0.02704254910349846, -0.02004289999604225, 0.0855664536356926, 0.049748729914426804, 0.09628786146640778, -0.009270267561078072, 0.07163543999195099, 0.07429872453212738, 0.06436263024806976, 0.07511819154024124, 0.03407634422183037, 0.06750393658876419, -0.09901943802833557, 0.004137902520596981, -0.002665415406227112, -0.05090964585542679, -0.03339345008134842, 0.03697863593697548, -0.01825030706822872, 0.025506040081381798, 0.01917221210896969, 0.009654395282268524, 0.002936438424512744, -0.05408509820699692, 0.03339345008134842, 0.03936876356601715, 0.006739296950399876, 0.011643319390714169, 0.027691297233104706, 0.008275805041193962, 0.025181666016578674, 0.053094904869794846, 0.011310409754514694, 0.028049815446138382, -0.03520311787724495, 0.07976186275482178, -0.022398879751563072, -0.003442205721512437, 0.049065835773944855, 0.060538433492183685, -0.003262946382164955, -0.02193792723119259, 0.05623621121048927, 0.013393232598900795, -0.006636863108724356, 0.015979688614606857, -0.010499474592506886, -0.04684643819928169, 0.007089279592037201, 0.04711959511041641, -0.029330240562558174, 0.01055069174617529, 0.013572491705417633, 0.034434862434864044, -0.01401637215167284, 0.011421379633247852, -0.0010968963615596294, 0.03213009983301163, 0.000003230235734008602, 0.00032304023625329137, -0.061494484543800354, 0.02842540666460991, -0.018847838044166565, -0.0033675143495202065, 0.080171599984169, -0.03253983333706856, -0.007362436503171921, 0.030013132840394974, -0.012428645975887775, 0.009517816826701164, 0.04930485039949417, -0.07812292128801346, -0.00030276685720309615, -0.04585624113678932, 0.010695806704461575, 0.02953510731458664, 0.02238180674612522, -0.10004377365112305, 0.03964192047715187, -0.018847838044166565, 0.014912668615579605, 0.006735028699040413, -0.019991682842373848, 0.05538259446620941, -0.07361582666635513, -0.029637541621923447, -0.028903432190418243, -0.007187445182353258, 0.06337244063615799, 0.021442828699946404, -0.024959726259112358, 0.011131150647997856, -0.010934818536043167, -0.0001847278035711497, -0.039710208773612976, 0.0033483081497251987, 0.01807958260178566, -0.05374365299940109, 0.006918556056916714, 0.020486779510974884, 0.02528410032391548, -0.05009017512202263, 0.08112765103578568, 0.015561416745185852, 0.04404657706618309, -0.010772631503641605, -0.03947119414806366, -0.011105542071163654, -0.008284341543912888, -0.030747242271900177, -0.01603090576827526, 0.002330371178686619, 0.062313955277204514, -0.005232665222138166, 0.031003326177597046, 0.044524602591991425, 0.019650235772132874, -0.041758887469768524, -0.07061110436916351, -0.024225616827607155, -0.03358124569058418, -0.00236664991825819, -0.02427683398127556, 0.05910436064004898, 0.013299334794282913, 0.020640430971980095, 0.015160216949880123, 0.010892137885093689, -0.037217650562524796, -0.07197688519954681, -0.03481045365333557, 0.009509280323982239, 0.04295394942164421, 0.020264839753508568, -0.04158816114068031, -0.0068545350804924965, -0.02084529772400856, 0.05562160536646843, 0.04097355902194977, 0.06002626568078995, -0.016551610082387924, -0.054597269743680954, 0.009859262965619564, -0.02209157682955265, 0.001157716498710215, -0.028766853734850883, 0.014793162234127522, -0.07409385591745377, -0.048382945358753204, -0.03622745722532272, 0.05507529154419899, 0.002580053871497512, -0.004558308515697718, 0.0200258269906044, 0.01634674333035946, 0.057909298688173294, 0.021186744794249535, -0.04158816114068031, -0.04544650763273239, 0.05838732048869133, 0.029705829918384552, -0.04097355902194977, -0.04291980341076851, -0.013034713454544544, -0.009347093291580677, -0.02803274430334568, -0.09314655512571335, -0.004575380589812994, -0.008792242966592312, -0.03878830373287201, -0.04455874487757683, 0.02113552764058113, -0.021750131621956825, -0.013196900486946106, -0.07846436649560928, 0.002283422276377678, -0.0020764204673469067, 0.006794781889766455, -0.06473822146654129, 0.0289887934923172, 0.00610335310921073, 0.037490807473659515, -0.009919015690684319, -0.03704692795872688, 0.049065835773944855, -0.03358124569058418, 0.007827657274901867, -0.08665908128023148, 0.056645944714546204, -0.01988924853503704, -0.02692304365336895, -0.0007015655282884836, 0.010977499186992645, -0.017891786992549896, -0.03213009983301163, -0.007708150893449783, 0.0031797189731150866, -0.009031255729496479, -0.007097815629094839, -0.059582386165857315, -0.06279198080301285, 0.02250131219625473, 0.042578358203172684, -0.046880580484867096, 0.052275434136390686, 0.008548962883651257, 0.014067588374018669, -0.01809665560722351, 0.009594641625881195, 0.016508929431438446, 0.006884411443024874, -0.10304850339889526, -0.006504552438855171, -0.009492208249866962, 0.0310716163367033, 0.014887060038745403, 0.021357467398047447, 0.009338556788861752, -0.0038690136279910803, -0.04377342015504837, -0.03660304471850395, -0.011643319390714169, -0.08631762862205505, -0.059992119669914246, -0.010132419876754284, -0.0015578488819301128, -0.005697885528206825, -0.031122833490371704, 0.018011294305324554, 0.012957888655364513, -0.08112765103578568, -0.02692304365336895, -0.055860619992017746, 0.049919452518224716, -0.0165772195905447, 0.05497285723686218, -0.01297496072947979, 0.02634258382022381, -0.02289397642016411, 0.031003326177597046, 0.013444448821246624, -0.018403956666588783, -0.030559446662664413, -0.06709420680999756, -0.034315355122089386, -0.013683461584150791, 0.021203817799687386, -0.0026291366666555405, 0.021203817799687386, 0.019684381783008575, -0.00931294821202755, 0.019138066098093987, 0.009961696341633797, -0.027708370238542557, -0.05538259446620941, -0.027247417718172073, 0.021357467398047447, 0.021084310486912727, -0.0051771798171103, -0.03091796487569809, 0.007114887703210115, 0.04449045658111572, -0.058455612510442734, -0.009150761179625988, -0.0938977375626564, -0.056816671043634415, 0.03283006325364113, -0.021289179101586342, 0.026308439671993256, 0.02156233601272106, -0.010268998332321644, 0.016747942194342613, 0.04155401885509491, 0.03298371657729149, -0.02857905812561512, 0.0021703182719647884, -0.03411048650741577, -0.06426019966602325, -0.03177158161997795, -0.010789703577756882, 0.012232314795255661, -0.06166520714759827, 0.06719663739204407, -0.01727718487381935, -0.01331640686839819, -0.05452897772192955, 0.02996191568672657, 0.05770443007349968, -0.08099106699228287, 0.035578709095716476, 0.0337861143052578, -0.03064480796456337, -0.02528410032391548, 0.007605717051774263, -0.006052135955542326, -0.00784046109765768, -0.0172601118683815, 0.011950621381402016, 0.035407982766628265, 0.05090964585542679, 0.001947311102412641, 0.029466819018125534, 0.014110269956290722, 0.022672036662697792, -0.02265496365725994, 0.02786201983690262, 0.014502933248877525, 0.007230125833302736, -0.0186258964240551, 0.031413063406944275, -0.005087550263851881, -0.010320215485990047, -0.002396526513621211, 0.005663740914314985, 0.07395727187395096, 0.0030410063918679953, -0.018318595364689827, 0.05428996682167053, -0.03878830373287201, -0.0255572572350502, -0.02772544138133526, 0.005207056645303965, -0.049509719014167786, -0.040802836418151855, 0.015219969674944878, -0.020930660888552666, 0.10031693428754807, 0.013461521826684475, -0.06152862682938576, 0.07559622079133987, -0.017738137394189835, -0.06456749886274338, -0.005936897825449705, 0.0414515845477581, -0.061357904225587845, -0.05234372243285179, 0.021511118859052658, -0.03206181153655052, 0.06805025041103363, 0.017097925767302513, -0.059582386165857315, 0.00348702073097229, -0.02845955081284046, -0.008617252111434937, -0.014246848411858082, -0.008216052316129208, -0.03156671300530434, 0.033632464706897736, -0.019138066098093987, -0.02499387040734291, -0.05316319316625595, 0.047426894307136536, 0.00010316747648175806, -0.019428296014666557, -0.0051771798171103, 0.08502013236284256, 0.0455489419400692, 0.036398179829120636, -0.018745403736829758, -0.02900586649775505, 0.009500743821263313, 0.03185694292187691, 0.013367624022066593, 0.030713098123669624, -0.012659122236073017, 0.008928821422159672, 0.027964454144239426, 0.0234744343906641, -0.005680813454091549, -0.038890738040208817, -0.02306469902396202, 0.017789354547858238, -0.01630406267940998, 0.0073667047545313835, -0.04664156958460808, -0.006961237173527479, -0.04312467202544212, 0.0482805110514164, 0.000418004987295717, -0.03578357398509979, 0.028083961457014084, 0.006530161015689373, 0.021289179101586342, -0.006769173312932253, 0.010106811299920082, -0.010038522072136402, 0.046573277562856674, 0.0022855564020574093, 0.0010510145220905542, 0.05490456894040108, -0.031088687479496002, 0.000048682777560316026, -0.05739712715148926, -0.058182455599308014, -0.008455065079033375, 0.013085930608212948, -0.019377078860998154, 0.015501663088798523, -0.003619331168010831, 0.012539616785943508, -0.07955699414014816, -0.04899754747748375, 0.02084529772400856, 0.03064480796456337, 0.03981264308094978, 0.027947381138801575, -0.010832385160028934, 0.05616792291402817, 0.021886710077524185, 0.051455963402986526, 0.03878830373287201, -0.004997920710593462, 0.06296270340681076, -0.04377342015504837, -0.002669683424755931, -0.0103543596342206, -0.013273726217448711, 0.0015044978354126215, 0.008621519431471825, -0.011003107763826847, -0.02373052015900612, 0.03370075300335884, -0.031003326177597046, -0.03711521625518799, -0.014007835648953915, 0.014571222476661205, -0.013068858534097672, 0.05907021462917328, 0.02262081950902939, 0.06282612681388855, 0.0068758754059672356, 0.0207087192684412, -0.01811372861266136, 0.005885681137442589, 0.040393099188804626, 0.0400857999920845, 0.03491288796067238, -0.0016666848678141832, -0.05189984291791916, 0.017925933003425598, 0.024959726259112358, -0.04042724519968033, -0.02043556235730648, -0.0070465984754264355, -0.020913587883114815, -0.05125109478831291, 0.02110138349235058, -0.03283006325364113, -0.015638241544365883, 0.09724391251802444, 0.014067588374018669, -0.03626159951090813, -0.022023288533091545 ]
729,391
tinytuya.Cloud
getmapping
null
def getmapping( self, productid, deviceid=None ): # return a mapping for the given product id, or download it from the cloud using a device id # Return value: None on failure, or a dict on success (may be an empty dict if device does not have DPs) if not self.mappings: self.mappings = {} #load_mappings() if productid in self.mappings: # already have this product id, so just return it return self.mappings[productid] if deviceid: # we do not have this product id yet, so download it via this device id result = self.getdps(deviceid) if result: if 'result' in result: result = result['result'] dps = {} # merge result['status'] and result['functions'] into a single result if 'status' in result: self._build_mapping( result['status'], dps ) if 'functions' in result: self._build_mapping( result['functions'], dps ) self.mappings[productid] = dps log.debug( 'Downloaded mapping for device %r: %r', deviceid, dps) elif ('code' in result and result['code'] == 2009) or ('msg' in result and result['msg'] == 'not support this device'): # this device does not have any DPs! self.mappings[productid] = {} if productid in self.mappings: # download success, so return it return self.mappings[productid] # no device id, or download failed return None
(self, productid, deviceid=None)
[ 0.0641632154583931, 0.006048019044101238, -0.04875806346535683, 0.007183775305747986, 0.025631634518504143, -0.016386672854423523, -0.009777786210179329, -0.02778162620961666, 0.074894480407238, -0.007581056095659733, -0.037447240203619, -0.014489071443676949, -0.04161635413765907, 0.05732063576579094, 0.0511510968208313, 0.004484601318836212, -0.07631534337997437, 0.0852518305182457, -0.025538157671689987, -0.0024374357890337706, 0.022958166897296906, 0.057058896869421005, 0.02866031788289547, -0.0022843657061457634, -0.021518608555197716, 0.04935631901025772, 0.045617204159498215, 0.018069274723529816, 0.054516300559043884, -0.016068847849965096, 0.04531807452440262, -0.00879159476608038, 0.07964315265417099, 0.06771537661552429, 0.015003199689090252, 0.06341539323329926, 0.07059449702501297, 0.025799894705414772, -0.11022911965847015, -0.009142137132585049, -0.04423373192548752, 0.003797538811340928, 0.012236254289746284, -0.008595291525125504, 0.001601977157406509, 0.026734674349427223, -0.09003789722919464, -0.01938731223344803, 0.020415568724274635, 0.019275138154625893, 0.03505420684814453, 0.029987704008817673, 0.015545371919870377, -0.0010551315499469638, 0.004225200042128563, 0.00833355262875557, -0.05825541540980339, 0.011525822803378105, -0.017330799251794815, 0.031539436429739, -0.007669860031455755, -0.05623629316687584, 0.006781820207834244, -0.0362694188952446, -0.016283847391605377, 0.00013882925850339234, 0.02049035206437111, -0.009184202179312706, -0.030268138274550438, 0.11897864937782288, -0.007052905857563019, 0.002951564034447074, -0.05081457644701004, -0.057432807981967926, 0.04412155970931053, 0.051450226455926895, 0.04027027264237404, -0.06947275996208191, 0.05930236726999283, -0.028604231774806976, -0.04610329121351242, -0.05365630239248276, 0.00752964336425066, -0.031464654952287674, 0.0074127959087491035, 0.08996310830116272, 0.04640242084860802, 0.01707840897142887, -0.038737233728170395, -0.030193354934453964, -0.0341007299721241, 0.04120504856109619, 0.008880398236215115, 0.07339882850646973, -0.013376684859395027, -0.04606590047478676, 0.015517327934503555, 0.046178072690963745, 0.009315070696175098, -0.01598471775650978, 0.000003911647581844591, -0.038737233728170395, -0.025912068784236908, -0.01415255106985569, 0.030885091051459312, -0.09033702313899994, -0.020995132625102997, 0.07459534704685211, -0.014105811715126038, 0.010880825109779835, -0.03697985038161278, 0.009506700560450554, 0.025538157671689987, 0.051824137568473816, -0.04172852635383606, -0.003150204662233591, -0.0002455255016684532, 0.038737233728170395, -0.02450989931821823, 0.024790333583950996, -0.07799794524908066, -0.012049298733472824, 0.011974516324698925, -0.009230940602719784, 0.0008518171962350607, -0.045467641204595566, -0.010862129740417004, -0.00834757462143898, 0.02393033728003502, 0.03324073553085327, -0.003061400493606925, 0.029875529929995537, -0.004547698888927698, 0.03688637167215347, 0.0029094989877194166, -0.01994817890226841, -0.030810309574007988, 0.046178072690963745, 0.03903636336326599, 0.05152500793337822, 0.008786920458078384, -0.04240156710147858, 0.014816244132816792, -0.028548143804073334, -0.007669860031455755, 0.0027435757219791412, 0.022042084485292435, -0.002451457316055894, -0.025444678962230682, -0.04023287817835808, 0.010591044090688229, 0.0032904213294386864, 0.039298102259635925, 0.023462947458028793, -0.06969710439443588, -0.026024241000413895, 0.042364176362752914, 0.003189932554960251, 0.018564706668257713, -0.02828640677034855, 0.067603200674057, -0.03559637814760208, 0.024995984509587288, -0.03826984390616417, 0.02974466234445572, -0.048159804195165634, -0.03195073828101158, -0.0013308912748470902, 0.05373108386993408, -0.03810158371925354, -0.03649376332759857, 0.05877888947725296, 0.01649884507060051, -0.02901553362607956, 0.03247421607375145, 0.012731687165796757, -0.020079048350453377, -0.08046575635671616, 0.03608246147632599, 0.03613854944705963, -0.009759090840816498, 0.01617167331278324, 0.00860931258648634, 0.09093528240919113, 0.01424602884799242, 0.0736231803894043, 0.009020615369081497, 0.05059022828936577, 0.022752515971660614, 0.03466159850358963, -0.014610592275857925, -0.03133378550410271, -0.017125148326158524, 0.009015941992402077, 0.017480364069342613, 0.011460388079285622, 0.04591633379459381, 0.0011947641614824533, -0.03791463002562523, 0.07971793413162231, -0.018583402037620544, -0.03896158188581467, -0.004281287081539631, 0.07526838779449463, -0.052684132009744644, 0.00989930797368288, 0.011619300581514835, 0.02937074936926365, 0.006169539876282215, 0.008048445917665958, -0.04120504856109619, -0.009600178338587284, 0.021182088181376457, -0.04333634674549103, 0.023892946541309357, -0.0011357562616467476, 0.016564279794692993, 0.027295541018247604, -0.04150417819619179, 0.0007250378257595003, -0.034493338316679, -0.04550503194332123, 0.014031030237674713, 0.021126000210642815, -0.03787723556160927, -0.025145549327135086, -0.03866245225071907, -0.035091597586870193, -0.009684308432042599, 0.007151057943701744, 0.006959428079426289, 0.006202257238328457, 0.032941605895757675, 0.009843220934271812, 0.06023714691400528, -0.05354413017630577, 0.002640750026330352, -0.00870279036462307, 0.02428555302321911, 0.009558113291859627, 0.03862506151199341, -0.030885091051459312, -0.018798401579260826, 0.00970300380140543, -0.07822228968143463, 0.04337373748421669, 0.00035988984745927155, 0.029071621596813202, 0.027912495657801628, -0.051637180149555206, 0.0002634907723404467, 0.007651164662092924, -0.001600808696821332, 0.03750332444906235, -0.0018450196366757154, -0.05511455982923508, -0.024453813210129738, -0.06083540618419647, 0.009572135284543037, -0.022752515971660614, 0.011675387620925903, 0.015760371461510658, -0.03411942720413208, -0.015928631648421288, -0.0029211838264018297, -0.03520376980304718, 0.030249442905187607, 0.0034119426272809505, 0.014657331630587578, 0.06420060992240906, 0.11052824556827545, 0.043298956006765366, -0.021462520584464073, -0.0208455678075552, 0.013731900602579117, 0.013255163095891476, 0.016115587204694748, 0.03374551609158516, 0.03376420959830284, 0.02486511692404747, -0.05709628760814667, 0.02628597989678383, -0.059040628373622894, 0.01795710064470768, -0.006062040571123362, -0.03282942995429039, 0.02482772432267666, 0.05661020427942276, 0.09542222321033478, 0.005230087321251631, -0.020789479836821556, 0.0519363097846508, -0.11680995672941208, 0.021668173372745514, -0.027314236387610435, 0.03374551609158516, -0.0059872581623494625, -0.055824991315603256, 0.04240156710147858, 0.004470579791814089, -0.04393460229039192, 0.014732114039361477, 0.04737459123134613, 0.02574380859732628, -0.03881201520562172, 0.05014153569936752, 0.0833822712302208, -0.04083113744854927, -0.0031291721388697624, -0.009053332731127739, -0.047636326402425766, 0.0005684623611159623, -0.022042084485292435, 0.027538582682609558, -0.014900374226272106, -0.013357989490032196, -0.017545798793435097, 0.0768762081861496, 0.054703254252672195, 0.07238926738500595, -0.05829280614852905, 0.0809144526720047, 0.027089890092611313, 0.014180594123899937, 0.08293357491493225, -0.03524116054177284, 0.029314663261175156, 0.002825368894264102, 0.03241812810301781, 0.018929271027445793, -0.0023474632762372494, 0.00852985680103302, 0.009483330883085728, 0.013554292730987072, 0.04359808191657066, -0.03737245500087738, 0.005870410706847906, -0.034586817026138306, -0.0027833038475364447, 0.063078872859478, 0.05062761902809143, 0.002339283935725689, -0.011142563074827194, -0.00015073308895807713, 0.07324926555156708, 0.004024222958832979, 0.02323860116302967, -0.042738087475299835, -0.04894501715898514, -0.06764059513807297, 0.010039524175226688, -0.027351627126336098, -0.03333421051502228, -0.007454860955476761, 0.018368404358625412, -0.016788627952337265, 0.020939044654369354, 0.032941605895757675, -0.04299982637166977, 0.047112852334976196, -0.03443725034594536, 0.013012120500206947, -0.08577530086040497, 0.016629714518785477, -0.001153867575339973, 0.036026373505592346, -0.0787457674741745, -0.00489824078977108, -0.00826811883598566, -0.004278949927538633, -0.015470589511096478, 0.02125686965882778, -0.022752515971660614, -0.02288338541984558, 0.01105843298137188, -0.005725520197302103, -0.023444252088665962, -0.0016089880373328924, 0.006917363032698631, 0.024939898401498795, -0.02518294006586075, 0.013675813563168049, 0.005332913249731064, 0.03997114300727844, 0.01552667561918497, -0.023668598383665085, 0.025444678962230682, -0.051637180149555206, -0.04516851156949997, 0.007889533415436745, -0.03914853557944298, 0.01469472236931324, 0.008328879252076149, -0.007590403780341148, 0.004758024122565985, -0.005870410706847906, 0.024958593770861626, -0.04513112083077431, 0.022210344672203064, -0.03937288373708725, -0.01652688905596733, -0.0022364582400768995, -0.03896158188581467, 0.08001706749200821, 0.008726160041987896, -0.07242666184902191, 0.06038670986890793, -0.01850862056016922, -0.016620367765426636, -0.03716680407524109, -0.0015809446340426803, -0.00626769196242094, -0.046365030109882355, -0.020939044654369354, -0.013199076987802982, 0.01344211958348751, 0.02976335771381855, 0.02615511044859886, 0.006683668587356806, 0.019518181681632996, -0.00999278575181961, -0.007225840352475643, 0.017097104340791702, -0.0787457674741745, -0.031988129019737244, -0.057058896869421005, 0.020976437255740166, 0.01721862517297268, 0.007959641516208649, 0.026360761374235153, 0.0130588598549366, 0.0111612593755126, 0.007581056095659733, -0.04027027264237404, 0.053955432027578354, -0.034194208681583405, 0.04281286895275116, 0.024921203032135963, 0.022902080789208412, -0.07575447112321854, 0.018078621476888657, -0.0380454957485199, -0.000031019320886116475, 0.012974729761481285, -0.00970300380140543, -0.007543664891272783, 0.0005889106541872025, -0.030978569760918617, 0.01794775389134884, 0.003140856744721532, -0.014947112649679184, -0.03668072074651718, 0.06943537294864655, -0.013470162637531757, 0.052871089428663254, -0.021462520584464073, -0.09534743428230286, -0.008300836198031902, 0.005103892181068659, -0.0001717656123219058, -0.00989930797368288, -0.0234068613499403, 0.000051266775699332356, 0.007389426231384277, -0.011021042242646217, 0.061957139521837234, -0.03933549299836159, 0.009389853104948997, 0.009310397319495678, -0.021182088181376457, 0.04894501715898514, -0.0005705071962438524, 0.034586817026138306, -0.044196341186761856, -0.0002817481872625649, 0.009235614910721779, 0.022378604859113693, 0.02937074936926365, 0.03978418558835983, -0.0006969944224692881, 0.00010706138709792867, -0.050515446811914444, -0.004879545420408249, 0.01742427609860897, -0.016816670075058937, -0.05141283571720123, 0.015517327934503555, 0.018471229821443558, -0.002890803385525942, 0.010413436219096184, 0.013918856158852577, 0.00022303237346932292, 0.0188731849193573, -0.029894225299358368, -0.031838566064834595, -0.020770784467458725, 0.06491103768348694, 0.004143407102674246, -0.0019525191746652126, -0.023556426167488098, 0.0008261107723228633, -0.009777786210179329, -0.023855555802583694, -0.005870410706847906, -0.020939044654369354, -0.0347924679517746, -0.08794399350881577, 0.020378177985548973, -0.0035194421652704477, 0.012021255679428577, -0.05948932468891144, -0.03737245500087738, 0.04195287451148033, -0.001112386817112565, -0.010030176490545273, 0.03978418558835983, 0.02740771509706974, 0.022359909489750862, -0.04860849678516388, 0.016414714977145195, 0.05429195240139961, 0.05481543019413948, 0.03630680963397026, 0.03210030496120453, -0.006847254931926727, 0.006501386407762766, 0.001836840296164155, -0.040195487439632416, -0.04228939488530159, -0.04012070596218109, -0.06715451180934906, -0.03959723189473152, 0.005809650290757418, -0.004316341131925583, -0.00430465629324317, -0.016050152480602264, -0.035484202206134796, -0.05915280431509018, -0.08644834160804749, -0.02230382151901722, 0.044158950448036194, -0.03196943551301956, 0.0030193354468792677, -0.05709628760814667, 0.012133428826928139, 0.025145549327135086, -0.04225200042128563, -0.00936181005090475, 0.04064418375492096, -0.0449441634118557, 0.0751936063170433, 0.0011369247222319245, 0.029651183634996414, -0.014919069595634937, 0.005281500052660704, 0.035970289260149, -0.05500238388776779, -0.004680905025452375, -0.07837185263633728, -0.01089017279446125, 0.010235828347504139, -0.004363080020993948, 0.005057153292000294, 0.003119824221357703, 0.023705990985035896, -0.01815340481698513, -0.04584155231714249, 0.00011670128878904507, -0.020939044654369354, -0.06405104696750641, -0.003376888344064355, -0.015666892752051353, -0.03769028186798096, 0.01125473715364933, -0.029707269743084908, -0.007183775305747986, -0.0035264529287815094, -0.09602047502994537, 0.026454240083694458, -0.036026373505592346, -0.015068634413182735, 0.019134921953082085, 0.029127707704901695, 0.04901979863643646, -0.0007595077622681856, -0.04685111343860626, -0.0362694188952446, 0.026435544714331627, 0.06954754143953323, -0.061957139521837234, 0.011460388079285622, -0.016414714977145195, -0.051263269037008286, -0.04243895784020424, -0.021312957629561424, 0.05986323580145836, 0.02011643908917904, 0.05915280431509018, 0.006010627839714289, -0.02179904095828533, -0.044158950448036194, 0.0665188580751419, 0.04213982820510864, -0.06027453765273094, 0.04786067456007004, 0.017676666378974915, 0.002556619932875037, -0.04696328565478325, 0.006005953997373581, -0.02705249935388565, -0.0413920059800148, -0.061583228409290314, 0.030006399378180504, 0.019312530755996704, -0.00844105239957571, -0.04008331522345543, 0.008656051941215992, -0.04378503933548927, -0.0323246493935585, -0.03823245316743851, -0.02486511692404747, 0.016040803864598274, 0.03393246978521347, -0.0008185156621038914, 0.007945619523525238, 0.005608672741800547, -0.027501191943883896, -0.00037741693085990846, 0.023145122453570366, 0.05608672648668289, -0.031483348459005356, 0.018901227042078972, 0.08069010823965073, 0.0007203639252111316, -0.003281073644757271, 0.027725540101528168, 0.052684132009744644, -0.00012195941963000223, -0.021555999293923378, 0.05855454504489899, -0.003827919252216816, 0.04576677083969116, -0.007866163738071918, -0.02393033728003502, 0.058517154306173325, -0.014610592275857925, 0.008763551712036133, 0.04557981342077255, 0.010637782514095306, -0.03613854944705963, -0.02538859285414219, -0.05388065055012703, 0.014900374226272106, 0.004851501900702715, 0.03918592631816864, -0.025332504883408546, -0.0038325930945575237, -0.04154156893491745, -0.03372681885957718, 0.021817738190293312, 0.005833019502460957, -0.03318464756011963, -0.039634622633457184, -0.11075259000062943, 0.006501386407762766, -0.008786920458078384, 0.014358201995491982, -0.018284274265170097, -0.0005751810967922211, -0.0017679004231467843, 0.05133805051445961, -0.00662290770560503, 0.013675813563168049, -0.018817096948623657, -0.036549851298332214, -0.04397199675440788, 0.01721862517297268, -0.008408335037529469, 0.02555685304105282, 0.025126853957772255, 0.010824739001691341, -0.003281073644757271, 0.00889909453690052, 0.050739794969558716, -0.04083113744854927, 0.05096413940191269, 0.006697690114378929, -0.0827840119600296, -0.016807323321700096, -0.018368404358625412, 0.07889533042907715, -0.051450226455926895, -0.005038457922637463, -0.002164012985303998, -0.0584423691034317, 0.0038653104566037655, -0.024603378027677536, 0.018957315012812614, -0.006155518349260092, 0.03118422068655491, 0.00006149091495899484, 0.017181234434247017, 0.021911215037107468, -0.007179100997745991, -0.004893566947430372, -0.04161635413765907, -0.05279630795121193, 0.02957640215754509, -0.04378503933548927, -0.0015564067289233208, -0.0014208637876436114, 0.005954540800303221, 0.06184496730566025, -0.044906772673130035, 0.0027389018796384335, -0.02103252336382866, -0.09093528240919113, 0.016975583508610725, 0.012217558920383453, 0.012694296427071095, -0.03613854944705963, -0.07646490633487701, -0.004363080020993948, 0.028903361409902573, -0.0061601921916007996, 0.0023778434842824936, 0.020022962242364883, 0.0007565866108052433, -0.006375191267579794, 0.03606376796960831, -0.06046149134635925, -0.00448693847283721, -0.038924191147089005, -0.040008533746004105, -0.028043363243341446, -0.02265903726220131, 0.023519035428762436, 0.01633058488368988, 0.055488470941782, -0.017826231196522713, -0.02684684656560421, 0.026061633601784706, 0.04501894861459732, 0.03866245225071907, 0.029165098443627357, -0.00549182528629899, 0.01977991871535778, 0.04801023751497269, -0.01795710064470768, 0.033820297569036484, 0.0522354394197464, 0.0047346544452011585, 0.0067864940501749516, 0.013675813563168049, -0.009618873707950115, -0.042551130056381226, -0.0122456019744277, 0.006538777612149715, 0.027089890092611313, -0.002932868432253599, -0.05100153014063835, -0.010207784362137318, -0.051076315343379974, 0.021873824298381805, -0.01979861594736576, 0.028174232691526413, 0.006828559096902609, 0.006309757009148598 ]
729,392
tinytuya.Cloud
getmappings
null
def getmappings( self, devices ): # get all mappings for all tuya devices # returns a dict with product ids as keys if not self.mappings: self.mappings = {} for dev in devices: try: devid = dev['id'] productid = dev['product_id'] except: # we need both the device id and the product id to download mappings! continue if productid not in self.mappings: self.getmapping( productid, devid ) return self.mappings
(self, devices)
[ 0.05478683486580849, -0.009381113573908806, -0.058937352150678635, -0.02726135589182377, -0.02818579040467739, 0.013800472021102905, -0.025563417002558708, -0.07421880960464478, 0.03573218733072281, 0.03373239189386368, -0.04286352917551994, -0.010838511399924755, -0.04305218905210495, 0.053088895976543427, 0.049127038568258286, -0.05014580115675926, -0.07387921959161758, 0.06920045614242554, 0.05293796956539154, -0.03541146218776703, 0.009517892263829708, 0.07772788405418396, 0.005098533816635609, 0.004244847688823938, -0.03260043263435364, 0.06225776672363281, 0.009338664822280407, -0.004126935265958309, 0.09432995319366455, 0.009319799020886421, -0.01222516130656004, -0.03190239146351814, 0.11538439989089966, 0.026563314720988274, 0.009951810352504253, 0.0013536347541958094, 0.06127673760056496, 0.04059961065649986, -0.09191510826349258, -0.027695273980498314, 0.006074849050492048, -0.03882620856165886, 0.026827437803149223, -0.020054547116160393, 0.027091562747955322, 0.043504972010850906, -0.052221059799194336, -0.017054855823516846, 0.03292115405201912, 0.034487031400203705, 0.018856557086110115, -0.0006921460153535008, 0.006258792243897915, 0.028600841760635376, -0.016828464344143867, 0.013130729086697102, -0.07048334181308746, 0.012385522946715355, 0.0045750024728477, 0.0205073319375515, -0.002634163945913315, -0.044033221900463104, 0.015904029831290245, -0.04354270547628403, -0.001992720179259777, -0.010800779797136784, 0.01212139893323183, -0.009697118774056435, -0.029789399355649948, 0.07591674476861954, -0.010112171061336994, 0.0034147442784160376, -0.037562187761068344, -0.04388229176402092, 0.03210991621017456, 0.054711371660232544, 0.03399651497602463, -0.027129294350743294, 0.027959397062659264, -0.051655080169439316, -0.049127038568258286, -0.020337536931037903, -0.012159130536019802, -0.0033227724488824606, 0.012055368162691593, 0.08082190155982971, 0.003662360366433859, 0.0244880560785532, -0.024884240701794624, -0.050221268087625504, -0.04874971881508827, 0.04361816868185997, 0.0312043484300375, 0.06127673760056496, 0.0012769916793331504, 0.012423254549503326, -0.014856967143714428, 0.03650569170713425, 0.0051362658850848675, -0.0028369734063744545, 0.021526094526052475, -0.07810520380735397, -0.009376397356390953, -0.037279196083545685, 0.036977339535951614, -0.0687853991985321, -0.026865169405937195, 0.022393930703401566, 0.008187839761376381, 0.06550271809101105, -0.07742602378129959, 0.003794422373175621, 0.05969199538230896, 0.0035019994247704744, -0.025450220331549644, -0.04297672584652901, 0.035335998982191086, 0.0399581678211689, -0.001992720179259777, 0.01789439097046852, -0.06289920955896378, 0.016658669337630272, 0.0057258279994130135, -0.009131139144301414, -0.01713031902909279, -0.010895109735429287, 0.0194508358836174, 0.019337639212608337, 0.016837896779179573, 0.056975290179252625, -0.01716805063188076, 0.011461089365184307, 0.012885471805930138, 0.0270538292825222, 0.047429099678993225, -0.013743873685598373, -0.01713031902909279, -0.004287296440452337, 0.060408901423215866, 0.0017392084700986743, -0.01967722736299038, -0.04139198362827301, 0.0244880560785532, -0.004358043894171715, -0.005749410483986139, -0.0031317544635385275, 0.04241074621677399, 0.0051221163012087345, -0.03209105134010315, -0.03858095034956932, -0.008286885917186737, 0.027751872316002846, 0.022280734032392502, 0.018375474959611893, -0.10685697197914124, 0.026940634474158287, 0.021280836313962936, 0.005051368847489357, 0.01630021631717682, -0.010112171061336994, 0.019356505945324898, -0.036203835159540176, -0.02280898205935955, -0.01702655665576458, 0.004442940931767225, -0.05320209264755249, -0.06357838958501816, 0.02535589039325714, 0.0533907525241375, -0.09025489538908005, -0.03244950249791145, 0.026789706200361252, 0.020658260211348534, -0.05520188808441162, 0.04195796325802803, -0.004159950651228428, -0.0026270891539752483, -0.09553737193346024, 0.020978981629014015, 0.08421777933835983, -0.05157961696386337, -0.0001932290178956464, 0.01996021717786789, 0.04663672670722008, 0.03303435072302818, 0.06765343993902206, 0.010829078033566475, 0.04750456288456917, 0.026336923241615295, -0.003992515150457621, 0.02929888293147087, -0.01656433939933777, -0.012904337607324123, 0.06969096511602402, 0.014847534708678722, 0.024073002859950066, 0.0556924045085907, -0.004103352781385183, -0.05059858784079552, 0.04878745228052139, -0.04822147265076637, -0.021054444834589958, -0.006518199574202299, 0.06433302909135818, -0.0087962681427598, 0.001478621968999505, 0.02086578495800495, 0.009461293928325176, 0.024129601195454597, -0.03243063762784004, -0.020677125081419945, -0.03776971250772476, -0.0026530299801379442, -0.07101158797740936, 0.010932841338217258, -0.011017738841474056, 0.025808675214648247, 0.02558228373527527, -0.026657644659280777, -0.03680754825472832, -0.05565467104315758, -0.04297672584652901, -0.013319388963282108, -0.03177032619714737, -0.03741125762462616, -0.02360135316848755, -0.023695683106780052, -0.0284687802195549, -0.01763026788830757, 0.0036246282979846, 0.0261671282351017, -0.003086947603151202, 0.0336003303527832, 0.037015073001384735, 0.02648784965276718, -0.02816692367196083, 0.029713934287428856, -0.03595857694745064, 0.04931569844484329, 0.01377217285335064, 0.04063734412193298, 0.004383984487503767, 0.0005055496003478765, -0.015960628166794777, -0.04358043894171715, 0.0225448589771986, 0.015102225355803967, 0.003884035861119628, 0.015111658722162247, -0.06501220166683197, 0.013272223994135857, -0.012536450289189816, 0.031185481697320938, 0.025770943611860275, -0.0018005229067057371, -0.06229550018906593, -0.022676920518279076, 0.006706859450787306, 0.017215216532349586, -0.059012819081544876, 0.005287193693220615, 0.045768894255161285, -0.0562206506729126, 0.01336655393242836, -0.005409822799265385, -0.01241382211446762, 0.021469496190547943, 0.04754229635000229, -0.04644806683063507, 0.051617350429296494, 0.1283642053604126, 0.052749309688806534, -0.0281103253364563, -0.027431150898337364, 0.020111145451664925, 0.04874971881508827, 0.01902635209262371, 0.02084692008793354, -0.0029548858292400837, 0.008489695377647877, -0.023525889962911606, 0.011149800382554531, -0.0433163121342659, -0.0025021019391715527, 0.05859776586294174, -0.05629611387848854, 0.012885471805930138, 0.05124003067612648, 0.026355788111686707, -0.024676715955138206, 0.01182897575199604, 0.014611709862947464, -0.0850478857755661, -0.030242182314395905, -0.05550374463200569, -0.002636522054672241, 0.010630985721945763, -0.04286352917551994, 0.0157342366874218, -0.020413001999258995, -0.03212878108024597, 0.016045525670051575, 0.029638471081852913, 0.041241053491830826, -0.011706346645951271, 0.04705177992582321, 0.0613522008061409, -0.02952527441084385, -0.0007139598019421101, -0.018328309059143066, -0.06486127525568008, 0.005320209078490734, 0.014253255911171436, 0.013517482206225395, -0.06006931513547897, -0.0461462140083313, -0.003301548305898905, 0.10655511170625687, 0.031355276703834534, 0.08746273070573807, -0.028563110157847404, 0.10542315244674683, -0.004353327210992575, 0.0318269245326519, 0.07003055512905121, 0.007409617770463228, 0.06723839044570923, 0.004582077264785767, -0.005716395098716021, -0.03878847509622574, -0.01462114229798317, -0.03258156403899193, 0.007664308417588472, -0.012196863070130348, 0.04527837783098221, -0.005527735222131014, -0.016224751248955727, 0.0027709424030035734, -0.004386342596262693, 0.03543033078312874, 0.0366000197827816, -0.03612837195396423, -0.024110736325383186, -0.015092791989445686, 0.03161939978599548, 0.01421552337706089, -0.0004884522641077638, -0.022016610950231552, -0.07482251524925232, -0.05154188722372055, 0.04327858239412308, 0.013394853100180626, 0.007503947708755732, 0.012347790412604809, 0.052183330059051514, -0.015837999060750008, 0.0008071106276474893, 0.03186465799808502, -0.017262380570173264, 0.07357735931873322, -0.01890372298657894, -0.008192555978894234, -0.03256269916892052, -0.006074849050492048, 0.044636934995651245, 0.01182897575199604, -0.05606972426176071, 0.0261671282351017, 0.027129294350743294, -0.02390320971608162, -0.0000810648052720353, 0.02395980805158615, 0.0004386342770885676, 0.02671424299478531, 0.027374552562832832, -0.006088998168706894, -0.03239290416240692, 0.020431866869330406, -0.03214764595031738, 0.05606972426176071, -0.042637139558792114, 0.010668717324733734, 0.03209105134010315, 0.03905260190367699, 0.004167025443166494, -0.038090433925390244, 0.015422946773469448, -0.03210991621017456, -0.057843126356601715, 0.019865887239575386, -0.004435866139829159, 0.006371988449245691, -0.03246837109327316, 0.021771352738142014, 0.02280898205935955, -0.007546395994722843, -0.011149800382554531, -0.03909033164381981, 0.013413718901574612, -0.05312662944197655, -0.03426063805818558, -0.05007033795118332, -0.023695683106780052, 0.07750149071216583, 0.03243063762784004, -0.053051166236400604, 0.07410561293363571, -0.018045319244265556, -0.00119445298332721, 0.008206705562770367, -0.033883318305015564, -0.005739977583289146, 0.023733416572213173, -0.01840377412736416, -0.02086578495800495, -0.0006479288567788899, 0.02929888293147087, 0.03773197904229164, 0.04444827511906624, 0.01929047517478466, 0.010178201831877232, -0.040109094232320786, 0.018064185976982117, -0.04814600571990013, 0.020922383293509483, -0.03799610584974289, 0.013413718901574612, -0.008395365439355373, -0.025676613673567772, 0.02869517169892788, 0.015328616835176945, -0.029449811205267906, 0.024016406387090683, -0.0778033435344696, 0.05848456919193268, 0.0004247795732226223, 0.026280324906110764, 0.004225981887429953, 0.016913359984755516, -0.07772788405418396, 0.027148159220814705, -0.028015995398163795, -0.001099533517844975, -0.03710940480232239, -0.004388701170682907, -0.014413616620004177, -0.013970266096293926, -0.014036296866834164, 0.03716599941253662, 0.017960423603653908, -0.014385317452251911, -0.06663467735052109, 0.06086168438196182, -0.06052209809422493, 0.09885779023170471, -0.006593663711100817, -0.06527632474899292, 0.00891889724880457, -0.018111350014805794, 0.02424279786646366, 0.014819235540926456, -0.06199364364147186, 0.012772275134921074, -0.00507023511454463, 0.012045934796333313, 0.046259406954050064, -0.07233220338821411, 0.015573875047266483, 0.013866502791643143, -0.007753922138363123, 0.03848661854863167, 0.029053624719381332, 0.01860186643898487, -0.022601457312703133, -0.04161837324500084, -0.033072080463171005, 0.016856761649250984, 0.034147441387176514, 0.010829078033566475, -0.029223419725894928, 0.012876038439571857, -0.011149800382554531, 0.02841218188405037, 0.006051266565918922, -0.015451245941221714, -0.05452271178364754, 0.03073269873857498, -0.06837034970521927, -0.05173054710030556, 0.02194114588201046, 0.01571536995470524, -0.03846775367856026, 0.02701609767973423, -0.0024502205196768045, -0.003145903814584017, -0.015866298228502274, 0.05456044524908066, 0.02311083860695362, 0.0020894084591418505, -0.013442018069326878, -0.010744181461632252, -0.03543033078312874, 0.031166616827249527, -0.015866298228502274, -0.02480877749621868, -0.040146827697753906, -0.032524965703487396, 0.007187942508608103, -0.01826227828860283, -0.0005031913169659674, -0.02194114588201046, -0.024355992674827576, 0.021224239841103554, -0.006494617089629173, -0.007074746303260326, -0.024129601195454597, 0.01577196829020977, -0.004530196078121662, -0.022318467497825623, 0.06671014428138733, 0.03260043263435364, 0.03241177275776863, -0.0036222701892256737, 0.05097590759396553, 0.031110018491744995, 0.0025280427653342485, 0.010630985721945763, -0.026110529899597168, -0.05761673301458359, -0.03771311417222023, -0.03656229004263878, -0.020205475389957428, -0.0047660209238529205, -0.007593560963869095, 0.022658053785562515, -0.051617350429296494, 0.013734441250562668, -0.07916169613599777, -0.014526812359690666, 0.003914692904800177, 0.06614416092634201, -0.03497754782438278, 0.00016198221419472247, -0.04448600485920906, 0.021733621135354042, -0.011178099550306797, -0.05889962241053581, -0.050560854375362396, 0.025204963982105255, -0.014206090942025185, 0.020978981629014015, -0.017243515700101852, 0.0005680432077497244, 0.015611606650054455, -0.026242593303322792, 0.0034666256979107857, -0.030336512252688408, -0.022167539224028587, -0.05342848598957062, 0.012442120350897312, 0.045731160789728165, -0.01165918167680502, -0.008046344853937626, 0.008626474067568779, 0.02192228101193905, -0.011130934581160545, -0.050258997827768326, 0.028336716815829277, -0.055050961673259735, -0.02895929478108883, -0.025261560454964638, -0.014451348222792149, -0.025752076879143715, 0.022318467497825623, -0.02196001261472702, -0.002431354485452175, -0.0026695376727730036, -0.07580354809761047, -0.00022064364748075604, -0.09478273242712021, -0.0001827642845455557, 0.051617350429296494, 0.0029383779037743807, 0.0399581678211689, 0.056975290179252625, -0.051617350429296494, -0.037864044308662415, 0.004707064479589462, 0.027431150898337364, -0.07659591734409332, -0.01478150300681591, -0.008579309098422527, -0.08602891862392426, -0.009951810352504253, -0.04641033709049225, 0.025393623858690262, -0.0041575925424695015, 0.0323551744222641, -0.049957141280174255, -0.02365795150399208, -0.03690187633037567, 0.05999384820461273, 0.0662950873374939, -0.02816692367196083, 0.06244642660021782, -0.015017328783869743, 0.024978570640087128, -0.048561058938503265, -0.028902696445584297, 0.013753307051956654, -0.03965631127357483, -0.02671424299478531, 0.05014580115675926, 0.004412283655256033, 0.016705835238099098, -0.03790177404880524, -0.013677842915058136, -0.008065210655331612, 0.009197169914841652, -0.049693018198013306, -0.03373239189386368, -0.016686968505382538, 0.023695683106780052, 0.0016802522586658597, -0.0013913668226450682, 0.04358043894171715, -0.033072080463171005, 0.018356608226895332, 0.005225879140198231, 0.04814600571990013, 0.01029139757156372, -0.014140060171484947, 0.09380170702934265, 0.028638573363423347, 0.006414436735212803, 0.008829283528029919, 0.03346826508641243, -0.03158166632056236, -0.038128167390823364, 0.034204039722681046, -0.0205073319375515, 0.05591879412531853, 0.03399651497602463, -0.012706244364380836, 0.06214457377791405, -0.026393519714474678, -0.021243104711174965, 0.020922383293509483, -0.012055368162691593, -0.0030893059447407722, -0.016611505299806595, -0.033317338675260544, -0.025525685399770737, 0.028657440096139908, 0.011036604642868042, -0.0054475548677146435, -0.02503516897559166, -0.03688301146030426, -0.020130012184381485, -0.0037189582362771034, 0.007239823695272207, -0.0022214704658836126, 0.0030657234601676464, -0.12074233591556549, 0.03243063762784004, -0.0017710448009893298, 0.02622372657060623, -0.0466744601726532, -0.01014047022908926, 0.010593253187835217, 0.07169076055288315, -0.016064390540122986, 0.04931569844484329, -0.045768894255161285, -0.007985030300915241, 0.0015929971123114228, 0.008890598081052303, 0.019035784527659416, 0.03850548714399338, 0.00048403057735413313, -0.02761981077492237, -0.0273179542273283, 0.013168461620807648, 0.06440848857164383, -0.04203342646360397, -0.019073516130447388, 0.04527837783098221, -0.05682436376810074, -0.003751973854377866, 0.01930934190750122, 0.07901076972484589, -0.0753130316734314, 0.010517789982259274, 0.055050961673259735, -0.06195591390132904, 0.04833466559648514, 0.021186506375670433, -0.02671424299478531, 0.022299600765109062, 0.02309197187423706, 0.019215011969208717, -0.003035066183656454, -0.001387829426676035, 0.007027581334114075, -0.017102019861340523, -0.0005055496003478765, -0.023808879777789116, 0.025204963982105255, -0.03999590128660202, 0.003148262156173587, 0.014611709862947464, 0.006584230810403824, 0.059276942163705826, -0.024544652551412582, 0.004737721756100655, -0.04327858239412308, -0.03635476529598236, 0.04244847968220711, 0.04539157450199127, 0.010112171061336994, 0.02420506626367569, -0.015866298228502274, 0.014640008099377155, 0.048032812774181366, -0.006268225144594908, -0.0028723471332341433, -0.0009981287876144052, 0.0017333128489553928, -0.0101216034963727, 0.025506818667054176, -0.04475012794137001, -0.026261458173394203, -0.062333233654499054, -0.02309197187423706, -0.05595652759075165, -0.03395878151059151, 0.02192228101193905, -0.024110736325383186, -0.014772070571780205, 0.0021153492853045464, -0.035600122064352036, 0.02079032175242901, 0.021488362923264503, 0.06289920955896378, 0.007447349838912487, -0.010593253187835217, 0.051089100539684296, 0.04584435746073723, 0.0036175537388771772, -0.0020634676329791546, 0.055843330919742584, 0.042373012751340866, -0.03297775238752365, -0.010376295074820518, -0.000495821819640696, -0.005787142552435398, 0.026053933426737785, -0.047957345843315125, 0.011885574087500572, 0.002260381355881691, -0.029921460896730423, -0.010215933434665203, -0.06935138255357742, 0.016187019646167755, 0.023582488298416138, 0.02001681551337242, 0.056107454001903534, -0.01842263899743557 ]
729,393
tinytuya.Cloud
getproperties
Get the properties of the device.
def getproperties(self, deviceid=None): """ Get the properties of the device. """ return self._getdevice('specification', deviceid)
(self, deviceid=None)
[ 0.04185531288385391, 0.005790041759610176, 0.01993921771645546, -0.07546226680278778, 0.042741499841213226, 0.010114465840160847, -0.006561195477843285, -0.0430823415517807, 0.015627574175596237, -0.006467463914304972, -0.05862470716238022, -0.0038983726408332586, -0.02822166122496128, 0.018422473222017288, 0.024438321590423584, 0.01044678594917059, -0.03602692857384682, 0.009705456905066967, 0.06421450525522232, -0.012781549245119095, 0.019632460549473763, 0.04417303577065468, 0.0229045357555151, -0.060533419251441956, -0.019223449751734734, 0.04696793481707573, 0.04724060744047165, -0.013582526706159115, 0.08793705701828003, -0.03134036064147949, -0.048365384340286255, 0.01541454903781414, 0.04025335982441902, 0.02857954427599907, -0.047683700919151306, 0.06602096557617188, 0.06496435403823853, -0.007839350029826164, -0.09114097058773041, 0.06131735444068909, -0.07355355471372604, 0.029073763638734818, 0.04427528753876686, -0.009066378697752953, -0.007366432808339596, -0.026227738708257675, -0.04897889867424965, 0.0017659841105341911, -0.004315903410315514, 0.011648251675069332, 0.03145965188741684, 0.0465589240193367, -0.02469395287334919, 0.01696537621319294, -0.0664299726486206, -0.048910729587078094, -0.034373845905065536, -0.009517993777990341, -0.012491834349930286, 0.057602182030677795, -0.04679751396179199, -0.04212798550724983, -0.01353992149233818, -0.09529922902584076, -0.035242993384599686, -0.10177521407604218, 0.046490754932165146, 0.029533900320529938, -0.01825205236673355, 0.047308776527643204, -0.028017155826091766, -0.012133951298892498, 0.007332348730415106, -0.03817422688007355, 0.0023518051020801067, -0.014417587779462337, -0.012159514240920544, -0.02121737226843834, 0.06421450525522232, -0.05054676905274391, -0.04720652103424072, 0.039605762809515, 0.002247422467917204, 0.02442128024995327, 0.011264805682003498, 0.08418780565261841, 0.05058085173368454, 0.01871218904852867, -0.00025856008869595826, 0.0017840912332758307, 0.025767603889107704, 0.05589797720313072, -0.00670179259032011, 0.03640185296535492, -0.007025591563433409, -0.019427955150604248, -0.007208793889731169, 0.06472576409578323, 0.0003299237578175962, 0.02803419902920723, -0.0566137433052063, -0.042059820145368576, -0.0023134604562073946, 0.010727980174124241, 0.03287414461374283, -0.070281483232975, -0.022069474682211876, 0.03943534195423126, 0.04710426926612854, 0.05085352435708046, 0.030658677220344543, 0.01888260990381241, 0.014971454627811909, 0.006965944543480873, 0.07593944668769836, -0.0009064248879440129, 0.019700627774000168, -0.012696338817477226, 0.005006107036024332, -0.06639588624238968, -0.05422785505652428, 0.007183230947703123, 0.0021835146471858025, 0.003005794482305646, -0.004028318449854851, 0.042741499841213226, -0.042639248073101044, 0.0069148181937634945, 0.03721987083554268, 0.015508280135691166, -0.009500951506197453, 0.0002685456711333245, 0.024455364793539047, 0.0334024503827095, 0.026227738708257675, -0.020637942478060722, 0.049183402210474014, -0.012159514240920544, 0.08221092820167542, 0.019513165578246117, -0.02707984298467636, -0.011776067316532135, -0.002234640996903181, -0.03718578815460205, -0.05940864235162735, -0.010983611457049847, 0.03984434902667999, -0.04001476988196373, -0.03950350731611252, -0.02881813421845436, -0.030011078342795372, 0.06237396225333214, 0.01074502244591713, -0.09093646705150604, -0.013752947561442852, -0.0004721184668596834, -0.01613883674144745, -0.04509330540895462, 0.02322833612561226, -0.027863778173923492, -0.021455960348248482, -0.016402987763285637, 0.010029255412518978, -0.00372156105004251, 0.03134036064147949, 0.012628170661628246, -0.014332377351820469, -0.050785355269908905, 0.046763427555561066, 0.00040634674951434135, -0.010915443301200867, 0.007745618931949139, 0.016360383480787277, -0.027096884325146675, 0.024574659764766693, 0.005440679378807545, -0.002895020879805088, -0.016172921285033226, -0.003073962638154626, 0.02721617929637432, -0.030130373314023018, -0.012679297477006912, -0.0075411139987409115, 0.11963529884815216, 0.051569290459156036, 0.0448206327855587, 0.006135143805295229, 0.02021189033985138, -0.007515551056712866, -0.03507257252931595, 0.003125088755041361, -0.02154117077589035, -0.01166529394686222, 0.06373732537031174, -0.004175306297838688, -0.02822166122496128, 0.09243616461753845, -0.04724060744047165, -0.04696793481707573, 0.029840657487511635, 0.010336012579500675, -0.009432783350348473, -0.04989916831254959, 0.03936717286705971, -0.02241031639277935, 0.008188712410628796, 0.02697758935391903, -0.027233220636844635, -0.02012667991220951, -0.009424262680113316, -0.037117619067430496, -0.003359417198225856, 0.017263613641262054, 0.005534410942345858, 0.06987246870994568, -0.027539977803826332, -0.0020652853418141603, -0.011136990040540695, -0.029124891385436058, -0.010523475706577301, -0.019496124237775803, -0.05054676905274391, 0.038583237677812576, -0.0252052154392004, -0.052114635705947876, 0.023313546553254128, -0.02684125304222107, -0.03219246119260788, -0.058147527277469635, 0.0012728292495012283, 0.0566137433052063, 0.015406027436256409, 0.029942909255623817, 0.030079245567321777, -0.008401738479733467, 0.028732923790812492, -0.035515666007995605, -0.029397564008831978, 0.02099582552909851, -0.0008457124931737781, 0.02909080684185028, -0.0444457083940506, 0.05501179024577141, 0.022836368530988693, -0.035242993384599686, 0.027642231434583664, 0.03643593564629555, -0.0031932571437209845, 0.02401227131485939, -0.06097651273012161, -0.0022026870865374804, -0.030709803104400635, 0.026278866454958916, 0.017826000228524208, -0.014366461895406246, -0.07396256923675537, -0.07471241801977158, -0.022308064624667168, 0.02985769882798195, -0.04441162198781967, -0.02235919050872326, 0.028409123420715332, -0.024165648967027664, 0.06438492238521576, 0.019274575635790825, 0.005125401541590691, 0.01715283840894699, 0.049183402210474014, -0.05991990491747856, 0.028937427327036858, 0.08002953976392746, 0.03474877402186394, -0.0517737977206707, -0.020450478419661522, 0.024813247844576836, -0.008572159335017204, 0.01563609577715397, 0.03251626342535019, -0.0005735720042139292, 0.00745590403676033, -0.011835714802145958, 0.030539382249116898, -0.03151078149676323, 0.039162665605545044, -0.025682393461465836, -0.06445309519767761, 0.00715766754001379, 0.05006958916783333, -0.02089357189834118, 0.024301985278725624, 0.013062743470072746, 0.013113869354128838, -0.08050671964883804, -0.021285539492964745, 0.03059050813317299, -0.00864458829164505, 0.003182605840265751, -0.050240010023117065, 0.024267902597784996, -0.013113869354128838, -0.015474195592105389, 0.03572016954421997, -0.042877838015556335, 0.008810748346149921, -0.06956571340560913, 0.05596614256501198, 0.057056836783885956, -0.031800493597984314, -0.016343340277671814, -0.03266964107751846, -0.010864317417144775, -0.008137586526572704, 0.033862583339214325, 0.06251029670238495, 0.0013857330195605755, 0.005496066063642502, -0.03936717286705971, 0.03517482429742813, 0.02621069736778736, 0.0902547836303711, -0.023978186771273613, 0.05603431165218353, 0.07219018787145615, 0.027829693630337715, 0.07703013718128204, -0.003727952018380165, 0.027744483202695847, -0.01267077587544918, 0.0022964184172451496, 0.019189367070794106, -0.08657369762659073, -0.010344534181058407, 0.0255119726061821, -0.012517397291958332, 0.04359360411763191, -0.02794898860156536, 0.023074956610798836, 0.023620303720235825, -0.032039083540439606, 0.02931235358119011, 0.0701451450586319, -0.021473003551363945, -0.013207601383328438, 0.005065754055976868, 0.047172438353300095, 0.01724657043814659, 0.059340473264455795, -0.027420684695243835, -0.00937313586473465, -0.06574828922748566, -0.0016594711923971772, 0.018269093707203865, -0.008333570323884487, 0.04952424392104149, 0.025682393461465836, -0.031135855242609978, -0.05242139473557472, 0.037151701748371124, -0.028545459732413292, 0.059613145887851715, -0.022120602428913116, 0.02273411676287651, -0.04311642795801163, -0.013446190394461155, -0.02336467243731022, -0.029806572943925858, -0.005521629471331835, 0.02968727797269821, 0.008090720511972904, -0.010642769746482372, -0.05071718990802765, 0.016726788133382797, 0.004296730738133192, -0.031715285032987595, 0.040900956839323044, -0.025188174098730087, -0.023944102227687836, -0.004699349869042635, 0.002432754961773753, 0.038617320358753204, -0.03168119862675667, 0.00734086986631155, 0.009995171800255775, 0.07123583555221558, -0.03287414461374283, -0.007536853663623333, -0.07505325973033905, -0.017638538032770157, -0.05020592734217644, 0.036844946444034576, 0.003934586886316538, 0.027676314115524292, -0.0833016186952591, 0.020586814731359482, 0.02113216184079647, 0.018132757395505905, 0.023569177836179733, -0.01925753429532051, 0.024080438539385796, -0.03520890697836876, -0.03582242131233215, -0.0798250362277031, -0.029056722298264503, 0.07375805824995041, 0.0005408193101175129, -0.040900956839323044, 0.06097651273012161, -0.023569177836179733, -0.02195018157362938, -0.037799302488565445, 0.0036619137972593307, 0.00939869973808527, -0.02062089927494526, -0.01138409972190857, 0.025256341323256493, 0.00007449246913893148, -0.008452864363789558, 0.016155878081917763, 0.027096884325146675, 0.057363592088222504, -0.04332093149423599, -0.015934331342577934, -0.0008478427771478891, -0.012202119454741478, 0.004797341767698526, -0.014085267670452595, 0.00564944464713335, 0.0469338484108448, 0.05248956382274628, 0.022751158103346825, 0.041684892028570175, 0.04505922272801399, -0.026500413194298744, -0.03357287123799324, 0.016948334872722626, -0.013574005104601383, 0.02580168843269348, -0.008606242947280407, 0.007302525453269482, -0.019325703382492065, 0.029397564008831978, 0.009918482042849064, -0.0019012554548680782, 0.007217315025627613, -0.05664782598614693, -0.02154117077589035, 0.03541341423988342, -0.0049208966083824635, 0.01583207957446575, -0.02885221689939499, 0.009679893031716347, -0.045672737061977386, 0.08357428759336472, -0.04161672666668892, 0.0399806872010231, -0.008844831958413124, -0.059067800641059875, 0.031135855242609978, -0.018371347337961197, -0.029891783371567726, -0.0043265544809401035, 0.003091004677116871, -0.05242139473557472, -0.028426166623830795, -0.019359786063432693, 0.004024057649075985, -0.03275484964251518, 0.05647740513086319, -0.022052433341741562, 0.043150510638952255, 0.047036100178956985, 0.058556538075208664, -0.025818729773163795, 0.014639134518802166, -0.0000234994113270659, 0.011026216670870781, -0.04185531288385391, 0.013821115717291832, -0.04107137769460678, -0.04611583054065704, -0.010906921699643135, -0.021967222914099693, -0.009347572922706604, 0.001055010361596942, 0.005355469416826963, -0.026858296245336533, -0.0026521715335547924, -0.000025313458536402322, -0.025085920467972755, -0.06973613053560257, 0.01631777733564377, 0.017127275466918945, -0.04563865065574646, -0.04778595268726349, 0.0345783531665802, -0.010872838087379932, 0.057090919464826584, -0.03384554386138916, 0.017757833003997803, 0.06585054099559784, -0.03657227382063866, -0.05981764942407608, 0.0643167570233345, 0.007886216044425964, -0.019359786063432693, -0.031306274235248566, -0.06489618867635727, 0.05859062075614929, 0.04526372626423836, 0.01317351683974266, 0.022717073559761047, 0.0042924704030156136, 0.013931889086961746, 0.002916323486715555, -0.017212485894560814, -0.03425455093383789, 0.002622347790747881, 0.0340159647166729, -0.026125486940145493, 0.048263128846883774, 0.014724344946444035, 0.03142556920647621, 0.0010022864444181323, -0.017348822206258774, -0.005381032358855009, 0.02089357189834118, -0.08923225849866867, -0.0566137433052063, -0.024864373728632927, 0.0003967605880461633, -0.0011759025510400534, -0.005738915875554085, -0.008904479444026947, 0.03134036064147949, -0.02684125304222107, -0.035004403442144394, -0.04199165105819702, -0.05692049860954285, -0.08705087006092072, -0.0019108416745439172, 0.08623285591602325, -0.021609339863061905, -0.006458942778408527, -0.010719459503889084, 0.025460846722126007, -0.03534524515271187, 0.004933678079396486, -0.03369216248393059, 0.03393075242638588, -0.01287528034299612, 0.06373732537031174, -0.02817053534090519, -0.015431590378284454, -0.049694664776325226, -0.01833726279437542, 0.03440793231129646, 0.026466328650712967, -0.055727556347846985, -0.03234584257006645, -0.029976993799209595, 0.03200500085949898, -0.001169511815533042, 0.025324510410428047, 0.026329992339015007, 0.04563865065574646, 0.01488624420017004, -0.002588263712823391, 0.03086318075656891, -0.07566677033901215, -0.06922487169504166, -0.018967818468809128, 0.04073053598403931, -0.02510296367108822, 0.030948391184210777, -0.014792513102293015, -0.04144630581140518, 0.03416934236884117, 0.040628284215927124, -0.0010060144122689962, -0.045945409685373306, -0.01017411332577467, 0.05187604948878288, -0.013386542908847332, -0.021166246384382248, 0.007647627033293247, -0.007187491282820702, 0.0032358623575419188, 0.013386542908847332, 0.047445110976696014, -0.07191751897335052, -0.007234356831759214, -0.04724060744047165, -0.04993325471878052, -0.034459058195352554, -0.017996421083807945, 0.045843157917261124, -0.005611100234091282, 0.0006534567219205201, -0.02263186313211918, 0.00037572431028820574, -0.03243105113506317, 0.03732212260365486, 0.08466498553752899, -0.012364018708467484, 0.0008744709775783122, -0.011835714802145958, 0.004181697033345699, 0.0017819610657170415, -0.018814440816640854, -0.06598687916994095, -0.02172863483428955, -0.02949981577694416, -0.008056636899709702, 0.017911210656166077, 0.012790070846676826, -0.02656858041882515, -0.01282415445894003, -0.023262420669198036, -0.028392082080245018, -0.03292527049779892, 0.04560456797480583, 0.022308064624667168, 0.0014560314593836665, -0.00687221297994256, 0.008512511849403381, -0.0024519271682947874, -0.03004516288638115, -0.024080438539385796, -0.039810266345739365, -0.00996960885822773, 0.062271710485219955, 0.0010299799032509327, 0.054670948535203934, -0.04124179854989052, -0.03895816206932068, -0.055591218173503876, 0.019427955150604248, -0.07355355471372604, -0.0465589240193367, 0.03589059039950371, -0.014860681258141994, 0.055863890796899796, -0.006258698645979166, -0.011622688733041286, 0.023074956610798836, 0.05433010682463646, -0.05337575078010559, 0.004220041446387768, 0.02273411676287651, -0.026721959933638573, -0.04178714379668236, -0.008768143132328987, 0.01720396615564823, 0.01925753429532051, 0.018030505627393723, -0.03623143211007118, -0.005811344366520643, -0.010549038648605347, -0.06946346163749695, 0.019410913810133934, -0.013787031173706055, -0.012517397291958332, -0.02515408955514431, -0.07484875619411469, 0.06097651273012161, -0.01751924306154251, -0.03892407938838005, 0.019376829266548157, 0.0014826597180217505, 0.011196637526154518, 0.09891214966773987, 0.06390774995088577, 0.05896554887294769, -0.01925753429532051, -0.04103729501366615, -0.01330985315144062, 0.017391428351402283, -0.057363592088222504, 0.05006958916783333, 0.002754424000158906, 0.019700627774000168, -0.016931291669607162, 0.011639731004834175, -0.007673189975321293, -0.013752947561442852, -0.009833271615207195, 0.041139546781778336, -0.02830687165260315, 0.022989746183156967, -0.015124833211302757, 0.007894736714661121, -0.066804900765419, 0.016121793538331985, 0.056818246841430664, -0.005909336265176535, -0.029107848182320595, 0.02172863483428955, 0.02401227131485939, 0.04151447117328644, -0.0045204078778624535, -0.027096884325146675, 0.017408469691872597, -0.002892890712246299, 0.004950720351189375, 0.03168119862675667, 0.0036448717582970858, 0.022069474682211876, -0.04949015751481056, -0.027199137955904007, -0.05981764942407608, 0.005466242786496878, 0.08071122318506241, 0.021984264254570007, -0.11206862330436707, 0.039673928171396255, -0.02442128024995327, -0.02871588058769703, 0.03462947905063629, 0.00006963281339267269, 0.03174936771392822, 0.025222256779670715, 0.02798307128250599, 0.010012214072048664, -0.01573834754526615, 0.012278808280825615, 0.07280370593070984, -0.03042008727788925, 0.02428494393825531, -0.02423381805419922, 0.019905133172869682, -0.005415116436779499, -0.005632402841001749, -0.021319624036550522, 0.012415144592523575, -0.004134831018745899, 0.05617064982652664, 0.013352458365261555, -0.02661970630288124, 0.024387195706367493, 0.003934586886316538, 0.00020889844745397568, 0.06574828922748566, 0.04338910058140755, 0.012202119454741478, 0.019513165578246117, 0.029124891385436058, 0.016215525567531586, 0.02602323517203331, -0.001169511815533042, -0.0046354420483112335, 0.049830999225378036, 0.020586814731359482, -0.020450478419661522, -0.058829210698604584, 0.059067800641059875, -0.0230919998139143, -0.007102280855178833, -0.024080438539385796, 0.04038969427347183, 0.022393275052309036, -0.07484875619411469, 0.020024428144097328, -0.02287045307457447, 0.04073053598403931, 0.005790041759610176, 0.05521629378199577, -0.021643424406647682, -0.02634703367948532 ]
729,394
tinytuya.Cloud
getstatus
Get the status of the device.
def getstatus(self, deviceid=None): """ Get the status of the device. """ return self._getdevice('status', deviceid)
(self, deviceid=None)
[ 0.016874011605978012, -0.0253236535936594, -0.0031043800991028547, -0.03339419886469841, 0.07561713457107544, -0.009713297709822655, -0.010783192701637745, -0.002590493531897664, 0.019392898306250572, -0.09185931831598282, -0.08175007998943329, -0.06119461730122566, 0.0008761343779042363, -0.027008527889847755, 0.030142392963171005, -0.01156665850430727, -0.016351699829101562, 0.004288003779947758, 0.04906352609395981, 0.0013910739216953516, 0.035314954817295074, 0.07352789491415024, 0.06820369511842728, -0.020319579169154167, -0.017640629783272743, 0.0731235221028328, 0.035550836473703384, -0.05425293743610382, 0.04508722200989723, -0.05940864980220795, -0.010648402385413647, 0.016756070777773857, 0.021937057375907898, -0.019982604309916496, -0.06550789624452591, 0.08343495428562164, 0.015753570944070816, 0.035988904535770416, -0.08478285372257233, 0.0008419103687629104, -0.0785825178027153, -0.0126618267968297, 0.0012783979764208198, 0.002927468391135335, 0.0365617610514164, -0.011187562718987465, -0.023150166496634483, -0.040875039994716644, 0.01772487349808216, 0.006781617179512978, 0.012510187923908234, 0.03371432423591614, -0.04633403196930885, -0.011179137974977493, -0.03652806580066681, -0.02109462022781372, -0.011263381689786911, -0.009738571010529995, -0.005678024608641863, 0.02475079707801342, -0.026570459827780724, -0.0002887978916987777, 0.001288928440771997, -0.02517201565206051, 0.019881511107087135, -0.031271256506443024, 0.019679326564073563, 0.015399746596813202, -0.017606930807232857, 0.06591226160526276, -0.0012541780015453696, -0.011195986531674862, 0.009207835420966148, -0.043874114751815796, 0.01981411688029766, -0.024733947589993477, -0.02940104901790619, 0.002721071243286133, -0.01541659515351057, 0.000800841604359448, 0.029822267591953278, 0.0021187288220971823, 0.04710907116532326, 0.030277183279395103, -0.029283106327056885, 0.02347029186785221, 0.022054998204112053, -0.01838197372853756, -0.07777377963066101, 0.01999945193529129, 0.0008113720687106252, 0.0232344102114439, -0.01801130175590515, 0.015635628253221512, 0.05576932430267334, -0.04107722267508507, -0.0006081341416575015, 0.05553344264626503, -0.027817267924547195, -0.0065036132000386715, -0.08660251647233963, -0.03747159242630005, -0.007350262254476547, -0.019932057708501816, 0.028727099299430847, -0.06341864913702011, -0.015239683911204338, 0.046199239790439606, 0.03240012377500534, 0.035079073160886765, -0.013158864341676235, -0.016031574457883835, 0.0042943223379552364, -0.042020753026008606, 0.05856621265411377, -0.007468203082680702, 0.016039999201893806, 0.0002186386991525069, -0.051523443311452866, -0.02475079707801342, -0.00334868673235178, 0.012105818837881088, 0.050141844898462296, -0.044581763446331024, 0.04262730851769447, 0.05920646712183952, -0.02916516549885273, 0.029721174389123917, 0.06901243329048157, 0.03132180497050285, -0.017842814326286316, 0.01023560855537653, 0.011052772402763367, 0.03091743402183056, 0.045390501618385315, -0.030344577506184578, 0.04262730851769447, 0.05307352542877197, 0.022695250809192657, 0.05357898771762848, 0.016039999201893806, -0.038381427526474, -0.021718023344874382, -0.056274786591529846, 0.02493613213300705, -0.004536523018032312, 0.01581254042685032, -0.02080819196999073, 0.020690251141786575, 0.03164193034172058, 0.023049073293805122, 0.001248912769369781, 0.03514646738767624, -0.02313331700861454, -0.053174618631601334, 0.01595575548708439, 0.015012226067483425, -0.0704951211810112, 0.054792098701000214, -0.04606445133686066, -0.027059074491262436, -0.007615629583597183, -0.008963529020547867, -0.039594534784555435, 0.02731180563569069, 0.04589596390724182, -0.07743680477142334, 0.011094894260168076, -0.0014521506382152438, -0.05661176145076752, 0.004801890347152948, -0.011878360994160175, 0.025896510109305382, 0.0008477021474391222, 0.01819663681089878, -0.015273381024599075, -0.02830588072538376, 0.03804445266723633, 0.014877435751259327, -0.0003001181466970593, -0.014532037079334259, 0.047614533454179764, -0.03491058573126793, 0.03464100509881973, 0.02650306560099125, 0.048187389969825745, 0.05334310606122017, 0.0058591486886143684, 0.01439724676311016, 0.008576007559895515, 0.009898633696138859, -0.02945159375667572, 0.03319201618432999, 0.04043697193264961, -0.0013647477608174086, -0.025576384738087654, 0.028609158471226692, -0.025593234226107597, 0.03191151097416878, 0.015332351438701153, 0.04380672052502632, 0.0005933914799243212, -0.03063100576400757, 0.05893688648939133, -0.02835642732679844, 0.018820039927959442, 0.024868737906217575, 0.019258107990026474, -0.006604705471545458, -0.006592068821191788, -0.042020753026008606, -0.02133050188422203, -0.04892873764038086, 0.040875039994716644, 0.01657073386013508, -0.06557528674602509, 0.023453444242477417, 0.031187014654278755, -0.00985651183873415, -0.020016301423311234, -0.023723023012280464, -0.03679764270782471, 0.026115544140338898, -0.054320331662893295, -0.04461545869708061, 0.025593234226107597, 0.009275230579078197, -0.01633485220372677, -0.025289956480264664, 0.009426869451999664, 0.07029293477535248, 0.019224410876631737, 0.029468443244695663, -0.002162956865504384, -0.045862264931201935, -0.01591363362967968, -0.0004014738369733095, -0.02412739396095276, -0.013318927958607674, -0.01976357027888298, 0.034455668181180954, -0.03138919919729233, 0.0869394913315773, 0.03713461756706238, 0.01301565021276474, -0.0652720108628273, 0.01767432689666748, 0.015736721456050873, 0.009207835420966148, -0.07399965822696686, -0.05590411275625229, -0.06247512251138687, 0.04090873524546623, -0.04165008291602135, -0.016511764377355576, -0.0783129334449768, -0.07501058280467987, 0.016688674688339233, -0.00826851837337017, -0.02608184702694416, -0.035753022879362106, 0.016233759000897408, -0.03699982911348343, 0.013874935917556286, -0.04498613253235817, 0.004860861226916313, 0.04050436615943909, 0.036831341683864594, 0.00878661684691906, 0.03908907249569893, 0.039695627987384796, 0.010041847825050354, -0.06149789318442345, -0.03801075369119644, -0.028474368155002594, -0.016831889748573303, 0.01833142712712288, 0.0016490702982991934, 0.031945206224918365, -0.03272024914622307, -0.05920646712183952, -0.002590493531897664, -0.016949830576777458, 0.027665628120303154, -0.04104352742433548, -0.05324201285839081, 0.01715201511979103, 0.03339419886469841, -0.039729323238134384, -0.000012866908036812674, 0.03582041710615158, 0.04926571249961853, -0.043671928346157074, -0.008066333830356598, 0.028491215780377388, 0.0058717853389680386, -0.03470839932560921, -0.02023533545434475, 0.029620081186294556, 0.0033170953392982483, -0.02973802387714386, -0.00814636517316103, -0.10270991176366806, -0.016073696315288544, -0.062070753425359726, 0.020201636478304863, 0.05458991229534149, 0.00422903336584568, -0.02916516549885273, -0.032989829778671265, -0.016259033232927322, -0.013436868786811829, 0.02057231031358242, 0.008710797876119614, 0.007426081225275993, -0.007101743016391993, -0.054657306522130966, 0.0289798304438591, 0.018297730013728142, 0.10803411155939102, -0.02185281366109848, 0.06668730825185776, 0.06948419660329819, 0.05330940708518028, 0.023807266727089882, -0.016132667660713196, 0.07568453252315521, 0.019645629450678825, 0.021819116547703743, 0.046738401055336, -0.037168316543102264, -0.05897058546543121, 0.043301258236169815, -0.03979672119021416, 0.04889503866434097, -0.03828033432364464, 0.04501982778310776, -0.009620629251003265, -0.05192781239748001, 0.04060545936226845, 0.022493066266179085, -0.00441858172416687, -0.008508612401783466, -0.0008777139591984451, 0.017691174522042274, 0.012358549982309341, 0.013883360661566257, -0.006929043680429459, 0.05728571116924286, -0.03679764270782471, -0.01609896868467331, 0.06335125863552094, -0.050613608211278915, 0.048288483172655106, 0.02451491355895996, -0.024144241586327553, -0.005324201192706823, 0.03206314891576767, 0.024632856249809265, 0.01519756205379963, -0.07838033139705658, 0.03219793736934662, -0.0370672233402729, -0.00179965584538877, -0.027530837804079056, -0.011937331408262253, -0.04707537591457367, -0.016410671174526215, 0.04269470274448395, -0.003106486052274704, -0.055701930075883865, 0.025896510109305382, -0.008752919733524323, -0.006162425968796015, 0.014919557608664036, 0.019359201192855835, -0.01480161678045988, -0.0464688204228878, -0.010724222287535667, 0.0195782333612442, -0.007476627826690674, -0.015896784141659737, -0.004523886367678642, 0.014852162450551987, -0.014051848091185093, 0.0037677991203963757, -0.07480839639902115, -0.011507688090205193, -0.06614814698696136, 0.017792267724871635, -0.030243486166000366, 0.029535837471485138, -0.12393932044506073, 0.04525570943951607, -0.01244279369711876, 0.016376974061131477, 0.026435671374201775, -0.02540789730846882, 0.062306635081768036, -0.05411814898252487, -0.018921133130788803, 0.011187562718987465, -0.023638779297471046, 0.040066298097372055, -0.010968528687953949, 0.008870860561728477, 0.026351427659392357, -0.03858361020684242, -0.05357898771762848, -0.0731235221028328, -0.003934180364012718, 0.030479367822408676, -0.02759823389351368, 0.024868737906217575, -0.02242567017674446, 0.010378822684288025, -0.008306427858769894, 0.0929376408457756, 0.0561399944126606, 0.04181857034564018, -0.04801890254020691, 0.0023167014587670565, 0.03453991189599037, -0.0022808979265391827, -0.033512141555547714, -0.0047218590043485165, 0.05219739302992821, 0.024531763046979904, 0.013740146532654762, -0.0035508715081959963, 0.04926571249961853, -0.0009672229061834514, 0.0004127940919715911, -0.08673730492591858, -0.004978802055120468, 0.008188487030565739, 0.02759823389351368, -0.032181091606616974, 0.021027226001024246, 0.03078264556825161, 0.004047909285873175, 0.021937057375907898, -0.004172168672084808, 0.004675524774938822, -0.03159138560295105, -0.016174789518117905, -0.016511764377355576, -0.017354199662804604, 0.06149789318442345, -0.04653621464967728, -0.017455292865633965, -0.0415152907371521, 0.06048697233200073, -0.014447793364524841, -0.006870073266327381, -0.03282134234905243, -0.10594486445188522, 0.05135495588183403, 0.010159789584577084, -0.02764878049492836, -0.017556386068463326, 0.039931509643793106, -0.1284547746181488, -0.029822267591953278, -0.010033424012362957, 0.01643594354391098, 0.005088319070637226, 0.012518612667918205, 0.01408554520457983, 0.015753570944070816, 0.02798575349152088, 0.03150714188814163, -0.03302352875471115, 0.04582856968045235, 0.007918907329440117, 0.03571932390332222, -0.038078147917985916, -0.01582096517086029, -0.03679764270782471, -0.00688692182302475, -0.02926625870168209, 0.04879394546151161, -0.0013036711607128382, -0.017303654924035072, -0.0002483872522134334, -0.06132940575480461, 0.021060923114418983, 0.022156091406941414, 0.010724222287535667, -0.062306635081768036, 0.009890208952128887, 0.007556659169495106, -0.004709222353994846, -0.053612686693668365, 0.038078147917985916, -0.016410671174526215, -0.034843191504478455, -0.014338276349008083, 0.006469915620982647, 0.061969660222530365, 0.014203486032783985, -0.04953528940677643, -0.01657915860414505, 0.02555953525006771, -0.011094894260168076, -0.03363008052110672, -0.04050436615943909, 0.020791342481970787, 0.04094243422150612, 0.012383822351694107, 0.03369747847318649, 0.056982431560754776, 0.009999725967645645, 0.01164247840642929, -0.03357953578233719, -0.010715797543525696, 0.01924125850200653, 0.009923906996846199, -0.007935755886137486, 0.04336865246295929, -0.0039594536647200584, 0.017758570611476898, 0.04141419753432274, 0.026098696514964104, -0.04936680197715759, -0.004401732701808214, -0.08606335520744324, -0.011541386134922504, -0.04454806447029114, 0.03433772921562195, -0.03905537724494934, -0.009367898106575012, -0.0016332746017724276, -0.006642614956945181, 0.015113318338990211, -0.059071674942970276, -0.029283106327056885, -0.04030218347907066, -0.08606335520744324, -0.010159789584577084, 0.07669545710086823, -0.054893188178539276, 0.015997877344489098, -0.011313927359879017, -0.03438827395439148, -0.01657073386013508, -0.01334420032799244, 0.02213924191892147, 0.04309907183051109, -0.016874011605978012, 0.04013369604945183, -0.04650251939892769, 0.004189017694443464, -0.04424478858709335, -0.015635628253221512, 0.06358713656663895, -0.009982877410948277, -0.024969831109046936, -0.00003228244531783275, -0.021734872832894325, 0.020117392763495445, 0.008399096317589283, -0.003264443017542362, 0.030799493193626404, 0.015298654325306416, -0.01733735203742981, 0.022695250809192657, -0.003542447229847312, 0.022156091406941414, -0.06742864847183228, -0.005619054194539785, -0.016360124573111534, -0.05886949226260185, -0.002390414709225297, -0.013361049816012383, 0.027328653261065483, 0.05620739236474037, 0.0029401048086583614, 0.0039594536647200584, 0.02161693200469017, -0.04346974566578865, 0.0009819655679166317, 0.006132940761744976, -0.0022766857873648405, -0.003795178374275565, -0.01225745677947998, -0.002472552238032222, 0.020959829911589622, 0.053174618631601334, -0.008327488787472248, 0.013403171673417091, -0.02370617538690567, -0.01052203681319952, -0.04030218347907066, -0.006604705471545458, 0.01415294036269188, 0.024952981621026993, -0.020639704540371895, -0.002123994054272771, 0.008276943117380142, 0.01477634347975254, 0.03132180497050285, 0.05728571116924286, -0.06126201152801514, -0.0005965506425127387, 0.0013984453398734331, -0.024632856249809265, -0.028491215780377388, -0.05492688715457916, -0.03568562865257263, -0.016115818172693253, -0.040875039994716644, -0.02094298228621483, 0.07811075448989868, 0.037606384605169296, -0.002039750339463353, 0.010698948986828327, -0.0028937708120793104, -0.0291146207600832, -0.0004954581963829696, 0.07763898372650146, 0.04721016436815262, 0.0211451668292284, 0.0031507140956819057, -0.006827951408922672, 0.01515544019639492, 0.017421595752239227, -0.007367110811173916, -0.012737645767629147, -0.006347761955112219, -0.0010398831218481064, 0.044109996408224106, -0.008239032700657845, -0.010505188256502151, -0.03868470340967178, -0.0929376408457756, -0.01059785671532154, -0.048524364829063416, -0.01123810838907957, 0.07224739342927933, -0.02464970387518406, 0.051523443311452866, 0.0034097633324563503, 0.003833087859675288, 0.05762268602848053, 0.0415152907371521, -0.08046957105398178, 0.045525290071964264, 0.007194411475211382, -0.02218978852033615, -0.028423821553587914, -0.02047121711075306, -0.00023377624165732414, 0.05944234877824783, -0.01908962056040764, -0.004700798075646162, -0.0018649447010830045, 0.017177289351820946, -0.024498065933585167, 0.014304579235613346, -0.05111907050013542, -0.03696613013744354, -0.008087394759058952, -0.055095374584198, 0.008306427858769894, -0.004024742171168327, -0.012029998935759068, -0.005770693067461252, 0.007750419434159994, -0.037404198199510574, 0.09880100190639496, 0.07723461836576462, 0.053511593490839005, 0.006271942984312773, -0.05057991296052933, -0.03031088039278984, 0.02470025047659874, 0.006608917843550444, 0.060689155012369156, 0.00529892835766077, 0.0352475605905056, -0.004452279303222895, 0.04710907116532326, 0.009384747594594955, 0.022627854719758034, -0.00545056676492095, 0.014877435751259327, -0.05516276881098747, 0.00845806673169136, -0.043638233095407486, -0.06860806047916412, -0.05057991296052933, 0.02608184702694416, 0.05661176145076752, -0.04050436615943909, -0.007451354525983334, -0.010294578969478607, 0.04053806513547897, 0.003355005057528615, 0.015652477741241455, 0.0012773449998348951, -0.03642697259783745, 0.037640079855918884, 0.012114242650568485, 0.04488503932952881, -0.00840752013027668, 0.009224683977663517, -0.04175117239356041, 0.009073046036064625, -0.02774987183511257, 0.008298004046082497, 0.03293928503990173, 0.03438827395439148, -0.038078147917985916, 0.05415184423327446, -0.009494263678789139, -0.06685579568147659, -0.027446594089269638, 0.02227403223514557, 0.09940755367279053, -0.020825041458010674, -0.010244033299386501, 0.02422848530113697, 0.020791342481970787, 0.023773569613695145, 0.04744604602456093, 0.03558453544974327, 0.034607309848070145, -0.03150714188814163, 0.023116469383239746, -0.01801130175590515, -0.03036142699420452, -0.06247512251138687, 0.028524914756417274, 0.01838197372853756, 0.047243863344192505, 0.01577884331345558, -0.02668840065598488, 0.04798520728945732, 0.07265175879001617, 0.05644327402114868, 0.02684004046022892, 0.04239142686128616, -0.010100818239152431, -0.008828738704323769, -0.007042772602289915, 0.04043697193264961, 0.002021848689764738, 0.006844799965620041, -0.013672751374542713, 0.056409575045108795, -0.015618780627846718, 0.013293654657900333, -0.03730310499668121, 0.0764932706952095, 0.011558234691619873, -0.06156529113650322, 0.04835587739944458, 0.03307407349348068, 0.04218924045562744, -0.0026578884571790695, 0.012981953099370003, -0.06436218321323395, 0.023369200527668, -0.008605493232607841, 0.07602150738239288, -0.055466048419475555, 0.00833591353148222 ]
729,395
tinytuya.Cloud
sendcommand
Send a command to the device
def sendcommand(self, deviceid=None, commands=None, uri='iot-03/devices/'): """ Send a command to the device """ if not self.token: return self.error if (not deviceid) or (not commands): return error_json( ERR_PARAMS, "Missing DeviceID and/or Command Parameters" ) uri += '%s/commands' % (deviceid) response_dict = self._tuyaplatform(uri,action='POST',post=commands) if not response_dict['success']: log.debug( "Error from Tuya Cloud: %r", response_dict['msg'], ) return response_dict
(self, deviceid=None, commands=None, uri='iot-03/devices/')
[ 0.01955028437077999, -0.004313891287893057, 0.02824130840599537, -0.100244902074337, 0.012060827575623989, -0.004537491127848625, -0.0588676780462265, 0.05760287493467331, 0.0005344369565136731, -0.012187307700514793, -0.006988052744418383, -0.04231679067015648, -0.02829551510512829, 0.011283875443041325, 0.008153480477631092, -0.04777352511882782, 0.012042758986353874, 0.010299134068191051, 0.04025696590542793, -0.034438855946063995, 0.044123657047748566, 0.08101984858512878, 0.023019466549158096, -0.02690422721207142, 0.000537260202690959, 0.07267213612794876, 0.032993365079164505, -0.009540250524878502, -0.004652678966522217, -0.04593052342534065, 0.002136618597432971, 0.00114171311724931, 0.02683195285499096, -0.011112223379313946, -0.02226058393716812, 0.02554907836019993, -0.00995582900941372, 0.003295270958915353, -0.019893590360879898, -0.019441872835159302, -0.09041555225849152, -0.030030105262994766, 0.045605286955833435, -0.013894796371459961, 0.01573779806494713, -0.008496785536408424, -0.06342098116874695, 0.05727763846516609, -0.03232482448220253, 0.02231478877365589, 0.010335271246731281, 0.03255971893668175, -0.031186498701572418, -0.020471787080168724, -0.06884157657623291, 0.013912864960730076, -0.020471787080168724, -0.02950611524283886, -0.05286888778209686, -0.018972087651491165, 0.005876830313354731, 0.06132501736283302, 0.003550490830093622, 0.012069862335920334, 0.015593249350786209, 0.006613127887248993, 0.012331857345998287, 0.042678166180849075, 0.039787180721759796, 0.020291099324822426, -0.018845608457922935, -0.01818610168993473, -0.01483436580747366, -0.0670708492398262, 0.06902226060628891, 0.018610715866088867, -0.02802448533475399, -0.002940673613920808, -0.015972690656781197, 0.03946194425225258, -0.07144346088171005, -0.02536839246749878, 0.0561935193836689, 0.007774039171636105, -0.059807248413562775, 0.08463358134031296, -0.004517164081335068, 0.015168636105954647, -0.06324029713869095, -0.05171249061822891, -0.007774039171636105, -0.07596062868833542, -0.04079902544617653, 0.017327841371297836, 0.04350932314991951, -0.005465768277645111, 0.017951209098100662, 0.07144346088171005, -0.015186704695224762, 0.008532922714948654, -0.015828141942620277, 0.011401321738958359, 0.020092345774173737, -0.03794417530298233, 0.020038139075040817, -0.04596665874123573, -0.008307063952088356, 0.07538243383169174, 0.02097770944237709, 0.03957035392522812, -0.012223445810377598, 0.021971484646201134, 0.02688615955412388, -0.06179480254650116, 0.031186498701572418, -0.008966570720076561, 0.005501905456185341, 0.03400520980358124, -0.008045068942010403, -0.02511543035507202, -0.022043759003281593, -0.015493872575461864, 0.05893995612859726, -0.0679742842912674, 0.0032681680750101805, 0.049761075526475906, -0.02376028150320053, -0.002924863714724779, 0.0038192621432244778, -0.01683095283806324, -0.04318408668041229, -0.00975707359611988, 0.0765388235449791, 0.07325033098459244, -0.027157189324498177, 0.0012783573474735022, -0.02795221097767353, -0.015539043582975864, 0.045388463884592056, 0.03790803998708725, 0.06006021052598953, -0.03127684444189072, -0.015999794006347656, -0.03662516549229622, 0.002866140566766262, -0.006342098116874695, -0.03613731265068054, -0.0643966868519783, -0.013750246725976467, 0.0031010329257696867, -0.04260588809847832, 0.03628186136484146, 0.018954019993543625, -0.02804255299270153, -0.04112425819039345, 0.006866089068353176, 0.019929727539420128, -0.05514553561806679, 0.017788590863347054, 0.019062431529164314, 0.04542459920048714, -0.03095160610973835, 0.003338184207677841, 0.05908450484275818, 0.011283875443041325, 0.010624369606375694, -0.07740612328052521, 0.03667937219142914, 0.023019466549158096, 0.010850227437913418, 0.005727763753384352, 0.020363375544548035, 0.02264002524316311, -0.002748694270849228, 0.03902829438447952, -0.07791204005479813, -0.034203965216875076, -0.014301341027021408, -0.005804555490612984, -0.06533625721931458, -0.05514553561806679, 0.025747833773493767, 0.05875926837325096, 0.04466571658849716, -0.0002890984760597348, 0.02809675969183445, 0.06006021052598953, 0.05095360800623894, -0.025729766115546227, -0.02233285829424858, 0.008962052874267101, -0.0076565928757190704, 0.034420788288116455, 0.06407145410776138, 0.05445892736315727, -0.010317202657461166, 0.05738604813814163, -0.0506645105779171, 0.027663111686706543, 0.05767514929175377, -0.027265600860118866, -0.01671350561082363, 0.05192931741476059, -0.017788590863347054, 0.032903023064136505, -0.05529008433222771, -0.027536630630493164, -0.007227462250739336, 0.013885761611163616, -0.03769121691584587, 0.030030105262994766, -0.024320410564541817, 0.015493872575461864, 0.03339087590575218, 0.016017863526940346, 0.005095360800623894, 0.04343704879283905, -0.024302341043949127, 0.006572473328560591, -0.04936356842517853, 0.041594043374061584, 0.032957226037979126, 0.005393493454903364, 0.014472993090748787, -0.02256775088608265, 0.023236291483044624, 0.01841196045279503, 0.031439460813999176, 0.007353942841291428, -0.01044368278235197, 0.009838382713496685, 0.024591440334916115, 0.0104798199608922, 0.005885864607989788, -0.05482029914855957, -0.08831958472728729, -0.02811482734978199, -0.02235092781484127, -0.014644645154476166, -0.016433442011475563, 0.01554807834327221, 0.0028096758760511875, 0.034203965216875076, 0.022947192192077637, 0.009305357933044434, -0.010208790190517902, -0.004752056207507849, -0.010678575374186039, -0.032939158380031586, -0.07267213612794876, 0.006165928672999144, -0.041377220302820206, 0.03490864112973213, -0.006838986184448004, -0.008618748746812344, 0.015087326988577843, 0.02376028150320053, -0.009639627300202847, 0.005370907951146364, -0.020706679672002792, -0.04900219291448593, -0.004779159557074308, -0.06371007859706879, 0.06808269768953323, 0.005456733983010054, 0.001438716659322381, -0.03624572232365608, 0.02406744845211506, -0.009458941407501698, 0.010949605144560337, 0.09034327417612076, 0.07892388850450516, -0.040076278150081635, -0.03543263301253319, -0.03946194425225258, 0.023543458431959152, 0.032993365079164505, 0.005696143489331007, 0.018917882815003395, -0.06045772135257721, -0.06999797374010086, -0.04387069493532181, 0.012404131703078747, 0.0007814693381078541, 0.00082946423208341, -0.006333063822239637, -0.019062431529164314, 0.0424613393843174, 0.035956624895334244, 0.045533012598752975, 0.007710798643529415, 0.05290502309799194, -0.07068458199501038, 0.019983932375907898, -0.015945589169859886, 0.010100378654897213, -0.04943584278225899, 0.039931729435920715, 0.05453120172023773, -0.053989142179489136, -0.013000397942960262, 0.012304753996431828, -0.06616741418838501, -0.042714301496744156, -0.058253344148397446, 0.035775937139987946, 0.06678175181150436, -0.02376028150320053, -0.052760474383831024, -0.020670542493462563, 0.008085723035037518, -0.0015821366105228662, -0.016117241233587265, -0.002599627710878849, 0.0280064158141613, 0.052615925669670105, 0.01486146915704012, -0.012566749937832355, 0.03252357989549637, 0.019929727539420128, -0.011076086200773716, -0.03523387759923935, 0.06284278631210327, 0.013045568950474262, 0.021573973819613457, 0.03505319356918335, 0.003708591451868415, -0.046942368149757385, -0.029072467237710953, 0.006482130382210016, 0.055506911128759384, 0.04473799094557762, 0.004469733685255051, -0.026109207421541214, 0.02652478590607643, -0.07632200419902802, 0.011789797805249691, 0.027626974508166313, -0.055434636771678925, 0.05348322167992592, -0.01693033054471016, 0.06392690539360046, 0.03071671351790428, 0.02249547652900219, 0.03743825480341911, -0.011401321738958359, -0.030554097145795822, -0.011916277930140495, -0.011509733274579048, 0.05384459346532822, 0.02668740414083004, 0.06266209483146667, 0.04968880116939545, 0.002346666529774666, 0.09056010097265244, -0.014536233618855476, 0.012964260764420033, 0.05088133364915848, -0.029126672074198723, -0.07184097170829773, -0.027500493451952934, 0.023164017125964165, 0.013894796371459961, -0.0020293358247727156, -0.028909849002957344, -0.009296323172748089, -0.004634609911590815, 0.005452216602861881, -0.0028480717446655035, 0.061035919934511185, 0.034619543701410294, 0.02092350274324417, 0.04795421287417412, 0.07086526602506638, 0.014409752562642097, 0.017436252906918526, -0.059554290026426315, -0.07035934180021286, -0.03205379471182823, -0.019062431529164314, -0.014807263389229774, -0.05644648149609566, 0.02809675969183445, -0.021555906161665916, 0.013226255774497986, 0.020706679672002792, 0.021321013569831848, -0.022766506299376488, -0.04618348181247711, -0.005515457130968571, 0.010389477014541626, -0.024591440334916115, -0.06284278631210327, 0.02533225528895855, -0.04372614622116089, 0.011672351509332657, -0.024627577513456345, 0.0064505101181566715, -0.03628186136484146, -0.05171249061822891, -0.01065147202461958, -0.05500098690390587, -0.01407548226416111, 0.09547477215528488, 0.01554807834327221, -0.02502508834004402, -0.005727763753384352, 0.015828141942620277, -0.014581404626369476, -0.03682392090559006, -0.04535232484340668, 0.056952401995658875, -0.05192931741476059, 0.05156794190406799, -0.015539043582975864, 0.011916277930140495, -0.027337875217199326, 0.03400520980358124, -0.041557908058166504, -0.0027261083014309406, -0.072780542075634, -0.04517163708806038, -0.012196342460811138, 0.02663319744169712, 0.017833763733506203, 0.02227865159511566, 0.052543651312589645, -0.01669543795287609, 0.03606503829360008, 0.0038441065698862076, 0.005809072870761156, 0.013569559901952744, -0.010786986909806728, -0.0004751491651404649, 0.021501699462532997, -0.01816803403198719, 0.03091546893119812, -0.04112425819039345, 0.047123052179813385, -0.0024099068250507116, -0.05763901025056839, -0.01478919479995966, 0.01331659872084856, -0.025747833773493767, -0.02253161370754242, 0.025693628937005997, -0.005501905456185341, -0.02690422721207142, 0.07057616859674454, -0.007846313528716564, 0.03798031434416771, -0.00006447545456467196, 0.03967876732349396, -0.014996984042227268, 0.07986345887184143, -0.060963645577430725, -0.033083707094192505, 0.01853843964636326, -0.00024505614419467747, -0.03190924599766731, -0.006915777921676636, 0.01982131600379944, -0.055579185485839844, -0.02271229960024357, -0.020236894488334656, 0.09142739325761795, 0.01938766799867153, -0.017436252906918526, 0.056916266679763794, -0.015331254340708256, 0.007606904022395611, 0.03653481975197792, -0.024464959278702736, 0.062445271760225296, 0.051170431077480316, 0.005316701717674732, -0.002728366991505027, -0.05160408094525337, -0.09764301776885986, -0.04802648723125458, -0.05200159177184105, -0.01969483494758606, 0.0068706064485013485, 0.0169483982026577, 0.00017518126696813852, 0.02236899547278881, 0.04943584278225899, -0.04968880116939545, 0.03931739553809166, -0.06266209483146667, 0.03337280824780464, -0.013488251715898514, 0.018863676115870476, -0.02394096925854683, -0.0422806553542614, 0.038703061640262604, -0.06887771189212799, -0.0226580947637558, -0.0651194378733635, -0.0068931919522583485, 0.03107808716595173, 0.03069864585995674, -0.020381443202495575, 0.025585215538740158, 0.0017560474807396531, 0.0010191850597038865, 0.02782572992146015, 0.041268810629844666, -0.004589438438415527, -0.0044290791265666485, -0.04777352511882782, -0.006296926643699408, 0.0009988578967750072, -0.035812076181173325, 0.0017131343483924866, -0.02547680400311947, 0.035667527467012405, -0.007760487496852875, -0.0266693364828825, 0.017698248848319054, 0.025747833773493767, 0.03503512218594551, 0.010389477014541626, 0.0033833556808531284, 0.009630593471229076, -0.0037018158473074436, -0.07126277685165405, 0.012503509409725666, 0.03252357989549637, 0.03084319457411766, 0.013425011187791824, 0.013036535121500492, 0.0009593326831236482, -0.0339871421456337, 0.04079902544617653, -0.050989747047424316, -0.008871709927916527, -0.011437458917498589, -0.006409855559468269, 0.004828848410397768, -0.015611317940056324, -0.030102379620075226, -0.015313185751438141, -0.06483033299446106, -0.027500493451952934, -0.021501699462532997, 0.01340694259852171, -0.029759075492620468, 0.03348121792078018, 0.00900270789861679, 0.004255168605595827, 0.018935950472950935, -0.03203572705388069, 0.0701063871383667, -0.033011432737112045, 0.030174653977155685, -0.020200757309794426, -0.0002165415498893708, -0.02249547652900219, 0.0043635801412165165, 0.030246930196881294, 0.0070241899229586124, 0.03490864112973213, -0.018592646345496178, 0.06696243584156036, 0.012069862335920334, -0.02688615955412388, 0.012729368172585964, 0.012738402001559734, -0.04947197809815407, -0.028403926640748978, 0.036950401961803436, 0.008943984284996986, -0.0010090215364471078, 0.004810779355466366, -0.002373769646510482, 0.01275647059082985, -0.02545873634517193, -0.02110419049859047, -0.014400718733668327, -0.02692229673266411, 0.08839186280965805, -0.05915677919983864, 0.014545267447829247, -0.012060827575623989, 0.0012377029052004218, 0.042750440537929535, 0.03404134884476662, 0.06067454442381859, -0.09171649813652039, 0.014201963320374489, -0.044195931404829025, -0.015882348641753197, 0.005569662898778915, -0.017309771850705147, 0.054061416536569595, 0.027518562972545624, -0.007652075495570898, -0.014897606335580349, 0.006784779950976372, 0.020760884508490562, 0.055398497730493546, 0.02388676255941391, 0.006495681591331959, 0.0451355017721653, 0.022892987355589867, -0.034185897558927536, -0.05521780997514725, -0.01816803403198719, -0.05604897066950798, 0.05883154273033142, -0.024880537763237953, -0.06287892162799835, 0.06858861446380615, -0.04220838099718094, 0.0013156239874660969, 0.0014432338066399097, 0.013976105488836765, 0.007652075495570898, -0.03261392191052437, 0.04542459920048714, -0.00982031412422657, -0.07140732556581497, -0.009314391762018204, -0.03743825480341911, 0.023236291483044624, -0.0183758232742548, 0.02681388519704342, -0.06941977143287659, 0.012042758986353874, -0.00853743962943554, 0.0015369650209322572, -0.008239306509494781, 0.007015155628323555, -0.06721539795398712, -0.0588676780462265, -0.038703061640262604, -0.01702970825135708, -0.015304150991141796, 0.027211396023631096, 0.018628783524036407, 0.01848423480987549, 0.014671748504042625, -0.03263199329376221, 0.03805258870124817, 0.004406493157148361, -0.07588835060596466, 0.009576387703418732, -0.0615418404340744, -0.06768518686294556, 0.0032862366642802954, 0.027012640610337257, 0.034474994987249374, 0.025747833773493767, 0.04076288640499115, -0.0028525888919830322, -0.01814093068242073, 0.008460648357868195, -0.00019536733452696353, -0.0018204170046374202, 0.027030708268284798, -0.023236291483044624, 0.02509736269712448, -0.07115436345338821, -0.04079902544617653, -0.011021879501640797, 0.06609514355659485, -0.06678175181150436, -0.0038102278485894203, 0.01265709288418293, 0.03910056874155998, 0.010136515833437443, 0.027500493451952934, 0.005366390570998192, 0.028819505125284195, 0.03938966989517212, 0.019351530820131302, -0.011699454858899117, 0.01461754273623228, -0.051062021404504776, -0.015304150991141796, -0.01991165801882744, 0.041304945945739746, -0.02099577710032463, -0.08521177619695663, -0.0006815270753577352, 0.09923305362462997, -0.005646454636007547, -0.0042099966667592525, -0.037185292690992355, 0.015286082401871681, -0.02668740414083004, -0.030246930196881294, 0.018899813294410706, -0.007620455697178841, -0.010696643963456154, -0.018701057881116867, 0.021971484646201134, -0.03324632719159126, 0.03805258870124817, 0.03255971893668175, 0.005443182308226824, -0.00913370493799448, -0.00421903096139431, 0.05496485158801079, 0.0014850175939500332, -0.011582008562982082, -0.03891988471150398, 0.016216618940234184, -0.012151170521974564, 0.011148360557854176, -0.028512338176369667, 0.023218221962451935, -0.011076086200773716, -0.02092350274324417, -0.08311581611633301, -0.025639422237873077, 0.06006021052598953, -0.004153531976044178, 0.055326223373413086, -0.0009627205436117947, -0.002484440105035901, 0.04943584278225899, -0.027410149574279785, 0.0674322247505188, -0.011356149800121784, 0.044123657047748566, 0.03931739553809166, -0.021989554166793823, -0.052760474383831024, -0.0474482886493206, 0.02807869017124176, 0.013262392953038216, -0.0032026690896600485, -0.03465568274259567, -0.003220737911760807, 0.030030105262994766, -0.07415375858545303, 0.06392690539360046, 0.05380845442414284, -0.02923508547246456, 0.0028029002714902163, 0.0563742034137249, -0.08369401097297668, 0.029993968084454536, -0.008239306509494781, 0.007299736607819796, -0.01973097212612629, 0.02544066682457924, 0.008772332221269608, 0.045569147914648056, -0.015475803054869175, -0.025693628937005997, 0.008772332221269608, 0.08672954887151718, -0.017544664442539215, -0.01702067442238331, 0.07914070785045624, -0.01824030838906765, -0.009648662060499191, -0.010145549662411213, -0.014165826141834259, -0.03790803998708725, -0.008144446648657322, 0.005669040605425835, 0.049905627965927124, 0.011654282920062542, 0.0037605389952659607 ]
729,396
tinytuya.Cloud
setmappings
null
def setmappings( self, mappings ): # sets an initial mapping set so we do not need to download everything if type(mappings) == dict: self.mappings = mappings
(self, mappings)
[ 0.04195878282189369, -0.002104985062032938, -0.026087721809744835, -0.02813105471432209, -0.062392108142375946, 0.037026599049568176, -0.03330984711647034, 0.026827549561858177, -0.0033952791709452868, 0.03429628163576126, -0.04601021483540535, 0.03614585101604462, -0.002386823995038867, 0.05872820317745209, -0.004518231377005577, -0.022670423611998558, -0.02668663114309311, 0.1016734167933464, -0.006187246646732092, -0.030720451846718788, 0.0015721331583335996, -0.007107627112418413, 0.025841113179922104, 0.06133521348237991, -0.013730843551456928, -0.020486172288656235, 0.004835300147533417, -0.0037563855294138193, 0.08694732934236526, 0.013739651069045067, -0.027021314948797226, -0.039633609354496, 0.015078386291861534, 0.05266866460442543, 0.04970935359597206, 0.00572925852611661, 0.03316892683506012, 0.05756561458110809, -0.01658446341753006, 0.00882948748767376, -0.022705653682351112, 0.024907521903514862, -0.019869649782776833, 0.0020961775444447994, 0.00852562952786684, 0.051506076008081436, -0.049568433314561844, -0.008851505815982819, 0.04474193975329399, 0.025330280885100365, -0.01717456430196762, -0.01646115817129612, 0.00006777622184017673, 0.03246432915329933, -0.03147789463400841, 0.03241148591041565, -0.015809405595064163, 0.05495860427618027, -0.008820679970085621, 0.006957900244742632, 0.008129294030368328, -0.03404967486858368, -0.01516646146774292, -0.08370618522167206, 0.03570547699928284, 0.012348070740699768, -0.008622512221336365, 0.0070503787137568, 0.04199400916695595, 0.03952791914343834, -0.01819623075425625, -0.004923374857753515, -0.04569314792752266, -0.008913158439099789, 0.040866654366254807, 0.03204157203435898, -0.01661088690161705, 0.002001497196033597, -0.030614761635661125, -0.02348071150481701, 0.028729962185025215, -0.0037938172463327646, -0.043579354882240295, -0.018707063049077988, -0.017192179337143898, 0.013290470466017723, 0.009036462754011154, -0.00974986795336008, 0.042381539940834045, -0.06024308502674103, -0.02737361192703247, 0.031002290546894073, 0.014814162626862526, 0.031002290546894073, 0.02039809711277485, 0.04544653743505478, 0.0007414787542074919, -0.047489870339632034, -0.05196406692266464, -0.028782807290554047, 0.004432358779013157, -0.01597674749791622, 0.07102342694997787, -0.02730315364897251, 0.009388761594891548, -0.052386824041604996, -0.004249603487551212, -0.07053020596504211, -0.020539017394185066, 0.006174035370349884, -0.049815043807029724, 0.003236744785681367, 0.02573542296886444, 0.05827021226286888, -0.012902941554784775, 0.00997005496174097, 0.01403910480439663, -0.03833010420203209, 0.030438611283898354, 0.06010216847062111, -0.03906993195414543, -0.0019640654791146517, 0.0028316013049334288, 0.01356350164860487, 0.043649815022945404, 0.03656861186027527, 0.04858199879527092, 0.07257354259490967, 0.03255240619182587, -0.01861898973584175, -0.0053461333736777306, -0.018654217943549156, -0.0372379794716835, 0.02573542296886444, 0.021613528952002525, -0.0159943625330925, -0.05985555797815323, 0.005143561866134405, 0.029416944831609726, 0.03699136897921562, -0.01218072883784771, 0.010533732362091541, 0.042134929448366165, 0.017350712791085243, -0.016179319471120834, 0.02228289656341076, 0.019411660730838776, 0.025717807933688164, -0.015598027035593987, -0.03554694354534149, 0.007446714676916599, -0.035969700664281845, -0.044777169823646545, 0.04840584844350815, -0.14359697699546814, 0.06369561702013016, 0.017104104161262512, 0.03404967486858368, 0.018284305930137634, 0.054711997509002686, 0.0400211364030838, -0.05872820317745209, 0.018777523189783096, -0.05770653486251831, -0.0159943625330925, -0.04907521605491638, -0.03336269035935402, -0.02813105471432209, 0.04234630987048149, -0.013545886613428593, -0.010243086144328117, -0.010498502291738987, -0.025471199303865433, 0.030156772583723068, 0.12584111094474792, 0.015386647544801235, 0.014814162626862526, -0.06267394870519638, 0.007865069434046745, 0.08906112611293793, -0.02240619994699955, -0.0005400079535320401, -0.050625331699848175, 0.027919676154851913, 0.012647525407373905, 0.04713757336139679, -0.038365334272384644, 0.04488286003470421, -0.008970406837761402, 0.06905055791139603, 0.08863836526870728, 0.003505372442305088, -0.011696318164467812, 0.026034876704216003, 0.013581116683781147, -0.02939932979643345, 0.041007574647665024, -0.062392108142375946, -0.030491456389427185, 0.04872291535139084, -0.02688039466738701, -0.024696141481399536, 0.028536198660731316, 0.05657918006181717, 0.05192883685231209, 0.018601374700665474, 0.023110797628760338, -0.012946979142725468, 0.028853267431259155, -0.020926546305418015, -0.008688568137586117, -0.05386647954583168, -0.00511273555457592, -0.06341377645730972, -0.004985027480870485, -0.022071516141295433, -0.025471199303865433, -0.025400739163160324, -0.0005433107144199312, -0.010022899135947227, 0.020556632429361343, 0.028976572677493095, -0.027796370908617973, 0.0022084726952016354, -0.012964594177901745, -0.001543508842587471, -0.007622864097356796, -0.07095296680927277, -0.009556103497743607, 0.03260524943470955, -0.01707768253982067, 0.010084551759064198, 0.0004332173557486385, -0.0011636868584901094, 0.12104985117912292, -0.05386647954583168, 0.0552404448390007, -0.003117843996733427, -0.015545181930065155, 0.008679760619997978, 0.02668663114309311, 0.027708295732736588, -0.01875990815460682, -0.0055222827941179276, -0.049357056617736816, 0.03882332146167755, -0.033503610640764236, 0.021736832335591316, -0.008886735886335373, 0.008129294030368328, 0.04051435738801956, -0.00213140738196671, -0.04417826235294342, 0.05256297439336777, 0.01060419250279665, 0.017597323283553123, -0.022635195404291153, 0.013598731718957424, -0.00003794780423049815, -0.03279901295900345, -0.0028998591005802155, -0.009661792777478695, -0.04593975841999054, 0.020873701199889183, 0.033503610640764236, 0.027866831049323082, 0.015615642070770264, 0.04072573408484459, -0.03367976099252701, -0.01905936188995838, 0.09455698728561401, 0.041324641555547714, -0.02411484904587269, 0.020045798271894455, 0.00627972511574626, 0.03857671469449997, 0.041571252048015594, -0.0912453755736351, -0.034014444798231125, 0.04699665307998657, 0.06348423659801483, -0.028994187712669373, 0.0400211364030838, 0.013889377936720848, 0.05700193718075752, -0.02441430278122425, -0.012268804013729095, 0.061511360108852386, 0.012189536355435848, -0.06179320067167282, 0.012295226566493511, 0.062075041234493256, -0.008763431571424007, -0.011846045032143593, -0.0028756384272128344, -0.03265809267759323, -0.04671481251716614, 0.006257706321775913, 0.008723798207938671, -0.016346661373972893, -0.021032234653830528, -0.04657389596104622, 0.09505020081996918, 0.06263871490955353, 0.01346661988645792, -0.037167519330978394, -0.016232164576649666, 0.011960542760789394, 0.04896952584385872, 0.03952791914343834, -0.0003346838057041168, 0.04336797446012497, -0.04608067497611046, 0.054782453924417496, -0.011749163269996643, -0.02818389981985092, 0.0005234939162619412, 0.011687510646879673, -0.019411660730838776, 0.043332744389772415, -0.03959837928414345, -0.007279372774064541, -0.006389818619936705, -0.03556456044316292, 0.03367976099252701, 0.010930068790912628, 0.04167694225907326, 0.011678703129291534, -0.006363396067172289, -0.04400211200118065, -0.021384533494710922, -0.019552581012248993, 0.032129645347595215, 0.00984674971550703, -0.013255240395665169, 0.006684868596494198, -0.033820681273937225, -0.026404790580272675, 0.016161704435944557, 0.01765897497534752, 0.010093359276652336, -0.03618108108639717, -0.01699841395020485, -0.023709705099463463, 0.03574070706963539, 0.05851682275533676, -0.029064645990729332, -0.015624449588358402, -0.03811872377991676, -0.06866302341222763, -0.0036044565495103598, -0.009829134680330753, 0.051576536148786545, 0.019605426117777824, 0.031002290546894073, -0.03308085352182388, 0.026475250720977783, 0.008433151058852673, -0.013959838077425957, -0.026827549561858177, -0.0008328562835231423, -0.031319357454776764, -0.05869297310709953, -0.04865245893597603, 0.03794257715344429, 0.03699136897921562, -0.036216311156749725, 0.006526334211230278, 0.013378544710576534, -0.017799893394112587, 0.05376078933477402, -0.06753566861152649, -0.04731372371315956, 0.01702483743429184, 0.010657037608325481, 0.00819534994661808, -0.037977803498506546, 0.024026773869991302, -0.06658446043729782, 0.034014444798231125, -0.014294521883130074, 0.010375197976827621, 0.010815571993589401, 0.0392460823059082, -0.0027127002831548452, -0.01526334322988987, 0.027584992349147797, -0.004848511423915625, -0.0015820416156202555, 0.034137748181819916, 0.04188832268118858, 0.004126299172639847, 0.019270742312073708, 0.029311256483197212, -0.012383300811052322, -0.0032455523032695055, -0.009203804656863213, 0.0407961942255497, 0.06108860298991203, -0.030632376670837402, -0.008477188646793365, -0.04763079062104225, 0.002439668867737055, 0.06115906313061714, 0.07091774046421051, 0.02548881433904171, 0.003551611676812172, 0.04822969809174538, 0.030438611283898354, -0.0220186710357666, -0.0003999141335953027, -0.040373437106609344, 0.018654217943549156, -0.023568786680698395, -0.03292231634259224, 0.0587986595928669, 0.0025321473367512226, -0.01472608745098114, 0.026034876704216003, 0.004284833557903767, 0.049815043807029724, -0.03713228926062584, 0.027655452489852905, 0.019834419712424278, 0.0304033812135458, -0.021384533494710922, 0.033397920429706573, -0.04784217104315758, 0.0013673595385625958, 0.017993658781051636, -0.011115025728940964, -0.0283952783793211, -0.0026642594020813704, -0.06235687807202339, 0.07658974826335907, 0.04192355275154114, -0.022370969876646996, -0.019112206995487213, -0.0356174036860466, -0.04900475591421127, 0.0006137705058790743, -0.05231636390089989, -0.010119781829416752, -0.043262287974357605, 0.02566496469080448, -0.009917209856212139, -0.044777169823646545, 0.022758498787879944, 0.03808349370956421, 0.011951735243201256, -0.08250837028026581, -0.048617228865623474, -0.030720451846718788, -0.02642240561544895, 0.06380130350589752, -0.007763783913105726, -0.028853267431259155, -0.00021605822257697582, -0.006491104606539011, 0.05731900781393051, -0.011432094499468803, -0.0960366427898407, -0.01824907585978508, 0.012348070740699768, 0.01849568448960781, 0.04544653743505478, -0.024062003940343857, 0.03315131366252899, -0.04347366467118263, -0.018918443471193314, -0.05136515945196152, 0.002536551095545292, 0.037660736590623856, -0.05499383434653282, -0.028289590030908585, -0.021754447370767593, 0.0339968279004097, 0.0316011980175972, -0.04516470059752464, 0.005605953745543957, 0.009005636908113956, 0.009274264797568321, 0.021595913916826248, 0.029029417783021927, -0.030015854164958, -0.036286771297454834, 0.02806059457361698, -0.04259292036294937, -0.024995597079396248, 0.009776290506124496, 0.05066056177020073, -0.06334331631660461, 0.0069006518460810184, -0.021807292476296425, -0.02448476292192936, 0.0003137660678476095, 0.05108331888914108, 0.03995067998766899, 0.011749163269996643, -0.040373437106609344, -0.004309053998440504, -0.04995596408843994, -0.01995772495865822, 0.02258235029876232, 0.02365686185657978, 0.012665140442550182, -0.03207680210471153, -0.05009688064455986, -0.04872291535139084, -0.02296987920999527, -0.01255945023149252, -0.011819623410701752, -0.03935176879167557, 0.0005248700617812574, 0.028553813695907593, -0.001182402716949582, -0.019341200590133667, -0.059573717415332794, -0.03138981759548187, 0.017729435116052628, 0.005359344650059938, -0.003851065644994378, 0.010780341923236847, 0.015906289219856262, 0.03556456044316292, -0.05495860427618027, 0.024185309186577797, -0.0007326712948270142, -0.002948300214484334, -0.024572838097810745, -0.02208913117647171, -0.044777169823646545, -0.023216487839818, 0.04305090755224228, 0.03109036386013031, 0.06380130350589752, 0.055909812450408936, -0.10075744241476059, 0.012259996496140957, 0.02781398594379425, -0.009318302385509014, -0.010102166794240475, 0.004372908268123865, -0.027408841997385025, 0.04625682532787323, -0.035846397280693054, -0.08842698484659195, -0.04192355275154114, 0.079267218708992, 0.014488286338746548, -0.06415360420942307, -0.009802713058888912, -0.008935176767408848, 0.03330984711647034, -0.05266866460442543, -0.030755680054426193, -0.007138453423976898, -0.034384358674287796, 0.009212612174451351, 0.002444072626531124, 0.031988725066185, -0.027144618332386017, -0.0058041219599545, 0.03246432915329933, 0.027549762278795242, -0.027215078473091125, -0.031935881823301315, 0.005469438154250383, -0.05136515945196152, -0.013951030559837818, -0.015545181930065155, 0.03449004888534546, -0.0002408292202744633, 0.031372204422950745, -0.002778756432235241, -0.0069358814507722855, 0.03899947181344032, -0.03755504637956619, 0.009670600295066833, -0.061264753341674805, -0.030667606741189957, 0.047912631183862686, -0.04026774689555168, 0.018266690894961357, 0.010375197976827621, -0.02776114083826542, -0.031055135652422905, 0.038858551532030106, 0.01582702063024044, -0.08215606957674026, -0.02864188887178898, 0.006398626137524843, -0.01283248234540224, -0.015122423879802227, -0.0392460823059082, 0.01230403408408165, 0.014338559471070766, -0.031178439036011696, -0.007376255001872778, 0.019728729501366615, -0.02378016524016857, 0.03526510298252106, -0.049357056617736816, 0.028219129890203476, 0.03434912860393524, -0.0014950678450986743, 0.0020928748417645693, 0.026316717267036438, 0.018213845789432526, 0.006587986834347248, -0.03667429834604263, -0.003668310819193721, 0.06087722256779671, -0.026633786037564278, -0.012673947960138321, -0.05823498219251633, 0.010155011899769306, 0.00799718126654625, -0.0033578474540263414, -0.044460102915763855, -0.04618636518716812, -0.05985555797815323, -0.0032543595880270004, -0.01218072883784771, -0.008596089668571949, -0.021384533494710922, 0.007574423216283321, -0.008111678995192051, 0.007539193145930767, -0.028994187712669373, -0.012259996496140957, -0.03811872377991676, 0.025524044409394264, 0.013396159745752811, 0.061652280390262604, 0.04696142300963402, 0.023427866399288177, -0.0021490224171429873, 0.012858903966844082, 0.006508719176054001, 0.019165052101016045, -0.012198343873023987, 0.0784921646118164, 0.007411485072225332, 0.019552581012248993, -0.019922494888305664, 0.0008036814979277551, 0.018213845789432526, 0.02730315364897251, -0.013651576824486256, -0.021807292476296425, 0.043825965374708176, -0.015131231397390366, 0.055733662098646164, 0.027074158191680908, 0.024766601622104645, -0.0728553831577301, -0.025893958285450935, 0.03656861186027527, -0.04488286003470421, -0.050061650574207306, 0.003150871954858303, 0.016443544998764992, -0.06556279957294464, 0.027532147243618965, 0.019288357347249985, 0.01318478025496006, -0.01362515427172184, -0.010392813012003899, 0.06982561200857162, -0.0018870001658797264, -0.03306323662400246, 0.0008174431859515607, -0.054289236664772034, 0.03526510298252106, -0.01707768253982067, 0.024837061762809753, -0.030808525159955025, 0.036040160804986954, 0.00596265634521842, -0.12457283586263657, 0.004667958244681358, -0.016795841977000237, 0.03635723143815994, -0.046855732798576355, 0.0444248728454113, -0.060313545167446136, -0.03190065175294876, 0.04051435738801956, 0.06323762238025665, 0.004606306087225676, -0.06912101805210114, 0.002844812348484993, 0.04840584844350815, -0.07056543976068497, 0.03970406949520111, 0.0012902942253276706, -0.12513650953769684, 0.01372203603386879, -0.010797956958413124, 0.06330808252096176, -0.01022547110915184, -0.03794257715344429, -0.009564911015331745, -0.04375550523400307, -0.041817862540483475, -0.049497973173856735, 0.011802008375525475, -0.03128412738442421, -0.022247666493058205, 0.040937114506959915, 0.012119077146053314, 0.055029064416885376, -0.006658446509391069, 0.009802713058888912, -0.02673947438597679, 0.008618107996881008, 0.034331511706113815, 0.02793729119002819, -0.04463625326752663, 0.03406728804111481, -0.0035384006332606077, 0.006861018016934395, 0.03052668645977974, 0.06277963519096375, -0.07503963261842728, -0.04995596408843994, -0.016795841977000237, 0.025964418426156044, 0.024502377957105637, 0.00814690813422203, -0.010833186097443104, -0.07391227781772614, -0.004676765762269497, -0.09180905669927597, -0.053901709616184235, 0.04255769029259682, 0.048863835632801056, 0.052950501441955566, 0.02064470760524273, -0.014514708891510963, -0.00981152057647705, 4.6875689463377057e-7, 0.012418530881404877, -0.05397216975688934, -0.0032543595880270004, 0.02304033748805523, 0.020310023799538612, 0.02052140235900879, 0.05259820446372032, 0.037660736590623856, 0.0069667077623307705, -0.06573894619941711, 0.036462921649217606, 0.0056632026098668575, -0.01868944801390171, -0.006376607343554497, 0.012894134037196636, 0.016672538593411446, -0.004632728639990091, -0.006561564281582832, -0.002576184691861272, -0.008701778948307037, -0.044213492423295975, 0.08835652470588684, 0.025788268074393272, 0.047983091324567795, -0.03138981759548187 ]
729,397
tinytuya.Cloud
setregion
null
def setregion(self, apiRegion=None): # Set hostname based on apiRegion if apiRegion is None: apiRegion = self.apiRegion self.apiRegion = apiRegion.lower() self.urlhost = "openapi.tuyacn.com" # China Data Center if self.apiRegion == "us": self.urlhost = "openapi.tuyaus.com" # Western America Data Center if self.apiRegion == "us-e": self.urlhost = "openapi-ueaz.tuyaus.com" # Eastern America Data Center if self.apiRegion == "eu": self.urlhost = "openapi.tuyaeu.com" # Central Europe Data Center if self.apiRegion == "eu-w": self.urlhost = "openapi-weaz.tuyaeu.com" # Western Europe Data Center if self.apiRegion == "in": self.urlhost = "openapi.tuyain.com" # India Datacenter
(self, apiRegion=None)
[ -0.009249561466276646, -0.0392070971429348, 0.016115404665470123, -0.011274341493844986, -0.05017772316932678, -0.013464785180985928, -0.0026253110263496637, 0.006166374310851097, -0.03283824399113655, -0.0049192942678928375, -0.0026851340662688017, -0.036151520907878876, 0.008987260982394218, -0.015507971867918968, -0.03513913229107857, -0.019014522433280945, -0.02628532238304615, -0.02107611484825611, 0.033372052013874054, -0.03767931088805199, -0.0009220800711773336, -0.01687929965555668, -0.011136287823319435, -0.04042196646332741, 0.028310101479291916, 0.05106126144528389, 0.011430801823735237, 0.014744077809154987, 0.04881559684872627, -0.077825166285038, -0.002441240008920431, -0.004125488456338644, -0.013593634590506554, 0.02486797608435154, 0.04215222969651222, 0.005029737018048763, 0.026727091521024704, -0.012010624632239342, -0.06453525274991989, 0.01183575764298439, -0.012930979020893574, -0.02370832860469818, 0.0016876999288797379, -0.024150099605321884, 0.06887932121753693, 0.051944803446531296, -0.010077880695462227, 0.019161779433488846, 0.012875758111476898, -0.022769568488001823, -0.012820537202060223, -0.034660547971725464, -0.01951151341199875, 0.0033592935651540756, -0.00787363201379776, 0.01686089299619198, 0.023855585604906082, 0.07576357573270798, -0.0004995798808522522, 0.051723916083574295, -0.0393543541431427, -0.010298766195774078, -0.03679576888680458, -0.016317883506417274, -0.004553453531116247, 0.016732042655348778, -0.07620534300804138, 0.02503363974392414, -0.004079470876604319, 0.045097365975379944, 0.07421737909317017, 0.0029796473681926727, -0.03453169763088226, -0.031163200736045837, 0.06939472258090973, 0.056914716958999634, -0.12752430140972137, 0.052791528403759, -0.02858620695769787, -0.006456286180764437, -0.04623860493302345, -0.012277527712285519, 0.045023735612630844, -0.027040012180805206, 0.0197323989123106, -0.022843196988105774, 0.002450443571433425, -0.051760733127593994, 0.09336075186729431, -0.020597532391548157, -0.010510447435081005, -0.008292392827570438, -0.000449535611551255, -0.0030440720729529858, 0.05540533363819122, 0.02600921504199505, 0.00993982795625925, -0.019161779433488846, -0.00922655314207077, -0.03572815656661987, -0.001222920953296125, -0.048005685210227966, -0.006051330361515284, -0.028310101479291916, 0.03195470571517944, -0.0392439104616642, 0.020118948072195053, 0.024352576583623886, -0.03191789239645004, 0.04969913884997368, -0.033592935651540756, -0.013225493021309376, -0.033556122332811356, -0.000762743700761348, -0.006994693540036678, 0.01040920801460743, -0.0030555767007172108, -0.03015081025660038, 0.001823452184908092, -0.012139474973082542, -0.04741665720939636, 0.01498336996883154, -0.012820537202060223, 0.007367436774075031, 0.045355066657066345, 0.023229744285345078, -0.000664956052787602, 0.06692817062139511, -0.047784801572561264, 0.01830584928393364, 0.0010917703621089458, -0.008145136758685112, -0.04568639397621155, -0.03620674088597298, 0.0025654879864305258, -0.0017049565212801099, 0.01175292581319809, 0.010381598025560379, -0.012010624632239342, -0.0034651344176381826, -0.0393175408244133, -0.011863368563354015, 0.00009706863056635484, 0.0011009739246219397, 0.025217710062861443, 0.00993982795625925, -0.05717241391539574, -0.01595894619822502, -0.003690621117129922, 0.02080000936985016, -0.013280713930726051, 0.059675779193639755, 0.0029083199333399534, -0.03171541169285774, -0.07337065041065216, -0.05492674931883812, 0.0012884961906820536, -0.001470266142860055, 0.05371188372373581, 0.03572815656661987, -0.008697348646819592, -0.021609921008348465, 0.003000355325639248, -0.020431866869330406, -0.02751859650015831, -0.04303577169775963, -0.010335579514503479, -0.00916212797164917, 0.014854519627988338, 0.033372052013874054, -0.0527179017663002, -0.08761774003505707, -0.09453880041837692, 0.025861958041787148, 0.03824992850422859, 0.027260897681117058, -0.008343013003468513, -0.021922841668128967, -0.013501599431037903, 0.040090639144182205, 0.058203212916851044, -0.003787258407101035, -0.030758244916796684, 0.04730621725320816, -0.005973100196570158, -0.04450833797454834, 0.01500177662819624, 0.023358594626188278, 0.005112568847835064, 0.05717241391539574, 0.024536648765206337, -0.02878868579864502, -0.015250272117555141, -0.022640718147158623, 0.07046233117580414, -0.01854514144361019, 0.04888922721147537, -0.015130626037716866, 0.02761063165962696, 0.05161347612738609, -0.0032350458204746246, 0.03705346956849098, -0.002850797725841403, 0.06740675866603851, 0.06166374310851097, -0.0005458851810544729, 0.008991862647235394, -0.017624786123633385, 0.00046592942089773715, 0.01588531769812107, 0.008099119178950787, -0.006161772646009922, -0.026800720021128654, -0.008890623226761818, -0.010455225594341755, 0.008039295673370361, 0.0005611285450868309, 0.025328153744339943, 0.017293458804488182, 0.033427271991968155, 0.04344072937965393, -0.030574172735214233, 0.06854799389839172, -0.10293243825435638, -0.015397529117763042, 0.027923552319407463, -0.018802840262651443, -0.04329347237944603, -0.06140604615211487, -0.04690125957131386, -0.033187977969646454, 0.023910807445645332, -0.004539648070931435, -0.015498768538236618, 0.02617487870156765, -0.058240026235580444, -0.0024619479663670063, 0.010998235084116459, 0.0077355788089334965, -0.013262307271361351, 0.03541523590683937, 0.0648665800690651, 0.009700535796582699, 0.009912217035889626, -0.060853831470012665, 0.009838588535785675, -0.0787823349237442, 0.054558608680963516, 0.02083682268857956, -0.055699847638607025, 0.004118585959076881, -0.05731967091560364, -0.026487799361348152, -0.009976641274988651, 0.03521275892853737, -0.010611685924232006, 0.007813808508217335, 0.03517594560980797, 0.029580190777778625, 0.03007718175649643, -0.03018762357532978, 0.009654517285525799, -0.02880709245800972, 0.047674357891082764, 0.006368852220475674, 0.03263576701283455, 0.047895241528749466, 0.00591327715665102, -0.022051692008972168, 0.012949386611580849, 0.13304643332958221, 0.07259755581617355, -0.020560717210173607, 0.0013483192306011915, 0.037403203547000885, -0.010943014174699783, -0.022916823625564575, -0.08158021420240402, -0.01448637805879116, -0.0657501146197319, 0.06361489742994308, -0.01830584928393364, 0.06633914262056351, 0.04218904674053192, 0.03705346956849098, -0.07686799764633179, -0.016244255006313324, 0.017882486805319786, -0.014560006558895111, -0.021297000348567963, -0.06022799015045166, 0.030979128554463387, -0.05507400631904602, 0.0390230268239975, 0.004185311496257782, 0.011301952414214611, 0.012047438882291317, 0.08673419803380966, -0.0029336295556277037, -0.053159669041633606, -0.08901667594909668, 0.04204178974032402, -0.020376646891236305, 0.02380036562681198, 0.011670093983411789, -0.0008168145432136953, 0.014090625569224358, 0.008467260748147964, -0.014532395638525486, 0.0098017742857337, -0.00008297570457216352, -0.006451684515923262, -0.007210976909846067, -0.041305504739284515, -0.058424096554517746, 0.00921274721622467, 0.055736660957336426, 0.006074339151382446, -0.026671869680285454, 0.02472071908414364, -0.0013943369267508388, -0.06041206419467926, -0.015517175197601318, -0.03784497454762459, 0.08018127828836441, 0.021867619827389717, 0.02884390763938427, 0.020008504390716553, -0.042741257697343826, 0.004136993084102869, -0.011559651233255863, 0.016474343836307526, -0.007767790928483009, -0.0007575667113997042, 0.05731967091560364, -0.05459542199969292, -0.04160001873970032, -0.050545863807201385, 0.0038493822794407606, 0.03289346769452095, -0.05124533176422119, 0.0016336290864273906, -0.09851473569869995, -0.013897350989282131, -0.014955759048461914, 0.03142089769244194, -0.012111864052712917, -0.06339401006698608, -0.005729205906391144, -0.02470231242477894, -0.03578338027000427, 0.023064080625772476, 0.05783507227897644, 0.015029387548565865, 0.052975598722696304, 0.0014415050391107798, -0.027794701978564262, -0.05757737159729004, 0.00553133012726903, 0.004406196530908346, 0.010832571424543858, -0.08614517003297806, -0.016593988984823227, -0.0032189395278692245, -0.0390598401427269, -0.001492124516516924, -0.017643194645643234, 0.03639081120491028, 0.013280713930726051, -0.02339540794491768, -0.01386053767055273, -0.03850762918591499, 0.03425559028983116, -0.011283544823527336, 0.011568854562938213, 0.03692461922764778, 0.017431512475013733, -0.048962853848934174, -0.03276461735367775, 0.005195400677621365, 0.01582089252769947, 0.00719256978482008, 0.07002056390047073, 0.0023296470753848553, 0.0016635406063869596, -0.06438799202442169, 0.013667263090610504, 0.003195930738002062, -0.0017659299774095416, 0.020376646891236305, 0.03640922158956528, 0.05146621912717819, -0.01686089299619198, 0.014339121989905834, -0.014311511069536209, -0.04049559310078621, -0.05095081776380539, -0.021481072530150414, 0.034623730927705765, 0.013676466420292854, 0.007187967654317617, 0.012305138632655144, -0.013961776159703732, 0.024352576583623886, 0.052938785403966904, -0.009074694477021694, 0.04590727761387825, -0.0262301005423069, 0.04414019733667374, -0.04888922721147537, -0.049257367849349976, -0.05860816687345505, -0.028420543298125267, 0.017532750964164734, -0.023284966126084328, 0.029745854437351227, 0.019051335752010345, 0.051760733127593994, -0.007753985933959484, 0.0015795582439750433, 0.022806381806731224, 0.002436638344079256, 0.025641074404120445, 0.0028692048508673906, 0.03258054703474045, -0.029322491958737373, 0.046459488570690155, -0.09071013331413269, 0.05868179723620415, -0.036280371248722076, 0.013888147659599781, 0.08886942267417908, -0.038581255823373795, -0.00049210200086236, 0.05400639772415161, 0.0035824794322252274, 0.04358798265457153, 0.009544075466692448, 0.014615227468311787, -0.014872927218675613, 0.016750449314713478, -0.08636605739593506, -0.03445806726813316, 0.025843551382422447, -0.0013966377591714263, 0.0525338277220726, -0.02899116277694702, -0.03390585631132126, 0.040127452462911606, -0.0263957642018795, -0.025641074404120445, 0.029727447777986526, -0.08305278420448303, 0.013354342430830002, 0.02203328348696232, -0.03493665158748627, 0.059638965874910355, -0.010832571424543858, -0.010252747684717178, 0.007376640569418669, 0.031144792214035988, -0.010326376184821129, 0.031163200736045837, 0.007344427984207869, 0.012010624632239342, 0.04944143816828728, 0.028494171798229218, -0.04174727573990822, 0.044986922293901443, -0.04156320542097092, -0.09785208106040955, 0.020542310550808907, -0.006497702095657587, 0.048962853848934174, 0.01115469541400671, -0.009470446966588497, -0.036114707589149475, 0.02731611765921116, -0.032101962715387344, -0.02507045306265354, -0.03570974990725517, 0.06759082525968552, 0.0654556080698967, 0.007896640338003635, 0.0018361069960519671, -0.05897631123661995, 0.007247790694236755, -0.051760733127593994, -0.020763196051120758, -0.022953638806939125, 0.014624431729316711, 0.0019350451184436679, -0.06022799015045166, 0.010096287354826927, -0.0658237487077713, 0.02081841602921486, -0.0009755756473168731, 0.009847791865468025, -0.02899116277694702, -0.01242478471249342, 0.012038235552608967, 0.05511081963777542, -0.004420001991093159, -0.016768857836723328, 0.022714346647262573, 0.014550803229212761, -0.06295224279165268, 0.019566735252738, 0.022990452125668526, 0.04450833797454834, -0.05599436163902283, -0.00909770280122757, -0.0007592923939228058, 0.003214337630197406, -0.00009987283556256443, -0.021297000348567963, -0.04196815937757492, 0.006198586896061897, -0.002212301827967167, 0.008020889014005661, -0.030445324257016182, -0.03416355699300766, 0.0651979073882103, 0.0005021683755330741, 0.049146924167871475, 0.037182316184043884, -0.005706197116523981, -0.04888922721147537, -0.0394647978246212, 0.0011021243408322334, -0.07767791301012039, -0.03405311331152916, -0.00841664057224989, 0.07123543322086334, 0.02352425828576088, 0.028089215978980064, -0.03142089769244194, -0.032157182693481445, -0.025641074404120445, 0.00011123345757368952, -0.0036630104295909405, -0.012001421302556992, -0.03388744965195656, -0.0395016111433506, -0.0014081422705203295, -0.08253738284111023, 0.014587617479264736, -0.017578769475221634, 0.054558608680963516, 0.02510726824402809, 0.05790869891643524, 0.02092885971069336, 0.06055932119488716, -0.01501097995787859, -0.023947620764374733, 0.05772462859749794, 0.008320003747940063, 0.012286731041967869, 0.02253027632832527, 0.0055037192068994045, -0.033261608332395554, 0.01448637805879116, 0.017983725294470787, 0.017615582793951035, -0.005370268132537603, 0.028291694819927216, -0.03449488431215286, -0.031200014054775238, 0.0260460302233696, -0.02350585162639618, 0.04572320729494095, -0.05363825336098671, 0.02761063165962696, 0.03443966060876846, -0.05588391795754433, 0.0010279208654537797, 0.03287505730986595, 0.030923908576369286, 0.010528854094445705, -0.0065115075558424, -0.016667617484927177, 0.020155761390924454, 0.016419121995568275, -0.06159011647105217, -0.02757381834089756, -0.004215223249047995, 0.03567293658852577, 0.011108677834272385, 0.07182445377111435, -0.0656396746635437, -0.030408509075641632, -0.014790095388889313, 0.017321070656180382, 0.012047438882291317, -0.06961560994386673, 0.004173807334154844, 0.012894164770841599, -0.09291897714138031, 0.05091400444507599, 0.011495226062834263, -0.0017348680412396789, 0.029653819277882576, -0.011522836983203888, -0.016345493495464325, 0.01822301745414734, 0.058387283235788345, -0.05485312268137932, -0.036114707589149475, -0.030408509075641632, -0.016446733847260475, 0.033187977969646454, -0.014256289228796959, 0.00213867356069386, -0.04196815937757492, -0.03315116465091705, 0.005950091406702995, -0.020284611731767654, 0.04417701065540314, -0.01814938895404339, -0.0781196802854538, -0.00013050338020548224, 0.01980602741241455, -0.011393987573683262, -0.007482481189072132, -0.08003401756286621, 0.033537715673446655, 0.03252532333135605, -0.018766026943922043, 0.007869030348956585, 0.013225493021309376, 0.008678941987454891, -0.05930763855576515, 0.02888072095811367, -0.041268691420555115, -0.007984074763953686, 0.021591514348983765, 0.01688850298523903, 0.03552567958831787, -0.006856640335172415, 0.012415580451488495, -0.010087084025144577, 0.05901312455534935, 0.0919618085026741, -0.00247115152888, -0.01851752959191799, 0.03408992663025856, -0.06725949794054031, 0.039906565099954605, -0.05334373936057091, -0.0792241096496582, -0.02496001124382019, -0.010013455525040627, 0.05768781527876854, 0.017477529123425484, -0.009327791631221771, -0.016161423176527023, -0.05993347987532616, 0.029212048277258873, 0.029874702915549278, -0.008844605647027493, -0.04229948669672012, -0.00862832274287939, -0.018885672092437744, -0.03381381928920746, 0.05772462859749794, -0.007293808739632368, 0.01715540513396263, -0.08113844692707062, -0.04715896025300026, 0.026966383680701256, 0.07384923845529556, -0.006065135356038809, 0.038470812141895294, 0.05106126144528389, 0.0660446286201477, -0.02074478752911091, -0.008637526072561741, -0.0651242807507515, 0.008559295907616615, 0.0028577004559338093, 0.007413454819470644, 0.016575582325458527, 0.03258054703474045, -0.004677701275795698, 0.011651686392724514, 0.03223080933094025, -0.04598090425133705, 0.029727447777986526, 0.006718587130308151, 0.055589403957128525, -0.01562761701643467, -0.027187269181013107, -0.05374869704246521, 0.016474343836307526, -0.009580889716744423, -0.01381451915949583, 0.012811332941055298, -0.042667631059885025, 0.010749739594757557, 0.06302586942911148, 0.020615939050912857, 0.013584431260824203, -0.04620179161429405, 0.04605453461408615, 0.00023282090842258185, 0.03427399694919586, 0.009967437945306301, -0.006585135590285063, -0.0024619479663670063, -0.016382308676838875, 0.060964275151491165, -0.023910807445645332, -0.0022146026603877544, 0.005112568847835064, 0.04815294221043587, 0.06390941143035889, 0.031107978895306587, 0.02357948012650013, 0.010979828424751759, -0.013087439350783825, 0.01712779514491558, 0.010694517754018307, -0.041158247739076614, -0.0197876188904047, 0.0653819739818573, 0.028346914798021317, 0.02475753426551819, 0.04200497642159462, -0.022714346647262573, 0.03672214224934578, -0.038765326142311096, 0.051871173083782196, -0.010841774754226208, -0.02227257564663887, -0.03663010522723198, -0.024407798424363136, -0.020192574709653854, 0.016290273517370224, -0.007477879524230957, 0.041305504739284515, -0.008421243168413639, -0.02234620414674282, 0.022659124806523323, 0.00019442486518528312, -0.04277807101607323, 0.015176643617451191, 0.010676111094653606, -0.02361629344522953, 0.06000710651278496, 0.07101454585790634, -0.025659481063485146, 0.016437528654932976, 0.046312231570482254, 0.04097417742013931, -0.004776639398187399, -0.07016781717538834, -0.027279304340481758, 0.053012412041425705, 0.017689211294054985, 0.049294181168079376, -0.014145847409963608, -0.008853808976709843, -0.005720002576708794, -0.010142305865883827, 0.07359153777360916, 0.0657501146197319, 0.021830806508660316, -0.010427615605294704 ]
729,398
tinytuya.CoverDevice
CoverDevice
Represents a Tuya based Smart Window Cover.
class CoverDevice(Device): """ Represents a Tuya based Smart Window Cover. """ DPS_INDEX_MOVE = "1" DPS_INDEX_BL = "101" DPS_2_STATE = { "1": "movement", "101": "backlight", } def open_cover(self, switch=1, nowait=False): """Open the cover""" self.set_status("on", switch, nowait=nowait) def close_cover(self, switch=1, nowait=False): """Close the cover""" self.set_status("off", switch, nowait=nowait) def stop_cover(self, switch=1, nowait=False): """Stop the motion of the cover""" self.set_status("stop", switch, nowait=nowait)
(dev_id, address=None, local_key='', dev_type='default', connection_timeout=5, version=3.1, persist=False, cid=None, node_id=None, parent=None, connection_retry_limit=5, connection_retry_delay=5, port=6668)
[ 0.0002544588060118258, -0.07619510591030121, -0.06464064121246338, -0.0006919713923707604, 0.007310974411666393, -0.03224877268075943, -0.06685852259397507, 0.07032844424247742, -0.049115438014268875, -0.005137803964316845, -0.037167470902204514, 0.024343084543943405, 0.0041160560213029385, 0.04256909713149071, -0.0266861729323864, 0.006899592000991106, 0.04006503149867058, -0.03393007442355156, 0.05466015264391899, -0.030656903982162476, 0.0017494915518909693, 0.06728779524564743, 0.02443251572549343, -0.019978858530521393, -0.057521939277648926, 0.09493982046842575, -0.037167470902204514, -0.026239018887281418, -0.017868289723992348, -0.09730079770088196, -0.029869912192225456, -0.013271542266011238, 0.05133332312107086, 0.05712844431400299, -0.009010161273181438, 0.02720487304031849, -0.000017956042938749306, 0.01797560602426529, -0.12012355774641037, -0.0114918677136302, -0.04721950367093086, -0.05469592288136482, 0.06660811603069305, 0.007154470309615135, 0.0008903961861506104, 0.0377398319542408, -0.03920649737119675, -0.023484548553824425, 0.048221129924058914, -0.008773169480264187, 0.031962595880031586, 0.03285690397024155, -0.05451706424355507, 0.02970893681049347, -0.04181787744164467, 0.026650400832295418, -0.010347152128815651, 0.04721950367093086, -0.022733328863978386, 0.03029918111860752, -0.0303349532186985, 0.022017881274223328, 0.051655273884534836, -0.02981625497341156, -0.0031546740792691708, -0.02446828782558441, -0.02003251574933529, 0.028492677956819534, 0.021463410928845406, 0.06120649352669716, 0.02346666157245636, 0.00007182417175499722, 0.031229263171553612, 0.0338585302233696, 0.03530731052160263, -0.05609104782342911, -0.07039998471736908, 0.036147959530353546, 0.021159345284104347, -0.029726823791861534, -0.017913004383444786, 0.01614227332174778, 0.021284548565745354, 0.01152763981372118, 0.01917397975921631, 0.015274793840944767, 0.04364226758480072, 0.0084646325558424, -0.026239018887281418, 0.011277233250439167, -0.024164222180843353, 0.056699175387620926, -0.033053651452064514, 0.024915441870689392, 0.046647146344184875, 0.02686503529548645, -0.03101462870836258, 0.03276747465133667, -0.03131869435310364, -0.008321543224155903, -0.0718308836221695, -0.02013983391225338, -0.044894300401210785, -0.025165848433971405, -0.0013694103108718991, -0.049115438014268875, -0.01755528151988983, 0.0657138079404831, -0.007382519077509642, 0.03423414006829262, -0.0031792677473276854, -0.08385039120912552, -0.039921943098306656, 0.004078047815710306, -0.005593901500105858, -0.06371055543422699, 0.01797560602426529, -0.006899592000991106, -0.04081625118851662, -0.04607478901743889, -0.03146178275346756, -0.0036130074877291918, -0.03210568428039551, -0.030281294137239456, 0.04196096584200859, 0.02529105171561241, 0.025130076333880424, 0.03788292035460472, 0.01748373731970787, 0.029386986047029495, -0.029494304209947586, -0.03330405801534653, 0.015480484813451767, 0.040673162788152695, 0.024951213970780373, -0.014237395487725735, 0.03452031686902046, -0.015328451991081238, 0.016857720911502838, 0.024182109162211418, -0.0385625958442688, 0.003246340900659561, -0.007507722359150648, -0.00026465949486009777, 0.005459755193442106, 0.011992680840194225, 0.0021530482918024063, -0.09036096185445786, -0.011876420117914677, 0.019495930522680283, -0.016643086448311806, 0.0007193596102297306, 0.010150404646992683, 0.03877722844481468, -0.004554267507046461, -0.03763251379132271, -0.027026010677218437, -0.015230078250169754, 0.0029936986975371838, 0.049222756177186966, -0.026024384424090385, -0.00425020232796669, -0.017850402742624283, 0.029386986047029495, -0.03205202519893646, -0.011456095613539219, -0.08141787350177765, -0.0009546746150590479, 0.051583729684352875, 0.0013615851057693362, 0.022554466500878334, -0.034323569387197495, 0.005093088373541832, 0.011876420117914677, 0.0075345514342188835, -0.01606178469955921, -0.035593487322330475, -0.03376910090446472, -0.013879671692848206, -0.05365852639079094, 0.01496178563684225, 0.02724064514040947, -0.059918686747550964, 0.03568292036652565, 0.019084548577666283, 0.060061778873205185, 0.053300801664590836, -0.00537032401189208, 0.04146015644073486, -0.009072762914001942, 0.021052028983831406, 0.03494958579540253, 0.03924226760864258, 0.020944710820913315, 0.07340486347675323, -0.03956421837210655, 0.059918686747550964, -0.04546665772795677, 0.02885040082037449, 0.04589592665433884, 0.0015002029249444604, 0.004303860943764448, 0.034091051667928696, 0.003054064465686679, 0.026399994269013405, -0.016947152093052864, 0.02967316471040249, 0.012001623399555683, -0.04707641527056694, -0.02473658137023449, -0.044822756201028824, 0.04035121202468872, 0.007615039125084877, 0.019138207659125328, 0.08027315884828568, -0.06117071956396103, 0.00189369881991297, 0.0504390150308609, -0.020640647038817406, -0.0319804809987545, -0.0008149388595484197, 0.030656903982162476, -0.0377398319542408, -0.03698861226439476, -0.023717068135738373, 0.02981625497341156, -0.033947959542274475, -0.015891866758465767, 0.008974388241767883, -0.008952030912041664, -0.016544712707400322, -0.027330076321959496, -0.01767154224216938, 0.0504390150308609, -0.009891054593026638, 0.009569103829562664, -0.018923573195934296, -0.008334957994520664, -0.04371381178498268, -0.04285527765750885, 0.0266861729323864, -0.033268287777900696, 0.04281950369477272, 0.029601620510220528, -0.01496178563684225, -0.05437397211790085, -0.02638210915029049, -0.023269914090633392, -0.01432682666927576, -0.010847965255379677, 0.03763251379132271, -0.06371055543422699, 0.02185690589249134, 0.027884546667337418, 0.0015482720918953419, -0.0807739719748497, -0.039743080735206604, -0.02820649929344654, -0.017778858542442322, -0.05144064128398895, -0.04854308068752289, -0.013763411901891232, -0.02357397973537445, 0.06603576242923737, -0.011017884127795696, 0.008978860452771187, 0.018959345296025276, 0.014076420105993748, -0.049973975867033005, -0.013164225034415722, 0.10030566900968552, 0.05630568042397499, -0.07107966393232346, 0.0015806907322257757, -0.0209268257021904, -0.01133983489125967, 0.026721946895122528, -0.02600649930536747, -0.0024548775982111692, -0.05265690013766289, 0.009090648964047432, 0.013056907802820206, -0.0025778450071811676, 0.049973975867033005, 0.02140975184738636, -0.0886438861489296, 0.012198371812701225, 0.011089428327977657, 0.019674792885780334, -0.0254520270973444, -0.021016256883740425, 0.06582112610340118, 0.010758534073829651, -0.02854633517563343, 0.0570211261510849, -0.002846137620508671, -0.10731705278158188, 0.05104714632034302, 0.0008093494107015431, -0.03577234968543053, 0.01897723227739334, -0.020694304257631302, -0.040708936750888824, 0.034502431750297546, -0.04038698598742485, 0.03884877264499664, 0.04968779534101486, -0.028689425438642502, -0.013495119288563728, -0.05237072333693504, 0.029190238565206528, 0.015140647068619728, 0.048292674124240875, 0.06786014884710312, -0.05015283450484276, -0.029082920402288437, -0.029530076310038567, 0.027043897658586502, 0.055912185460329056, 0.08513819426298141, -0.006184145342558622, 0.022661784663796425, 0.0028863814659416676, 0.05741462484002113, 0.08377884328365326, 0.004614633042365313, 0.03523576632142067, -0.006537396926432848, -0.034019507467746735, 0.012162599712610245, -0.12405851483345032, 0.015158534049987793, 0.029995115473866463, -0.008451217785477638, -0.014183737337589264, -0.0035235765390098095, -0.0209268257021904, 0.017546338960528374, 0.0008138209814205766, -0.002151930471882224, 0.04421462491154671, 0.012779672630131245, -0.04217560216784477, 0.012493493966758251, 0.029995115473866463, -0.02267966978251934, 0.021195117384195328, -0.037167470902204514, 0.06034795567393303, -0.001031249761581421, 0.02439674362540245, 0.0069085354916751385, 0.03806178271770477, 0.07404876500368118, 0.08857233822345734, 0.011035770177841187, 0.007910161279141903, -0.022214630618691444, 0.00008111660281429067, -0.05863088369369507, 0.016392679885029793, 0.011912193149328232, -0.014747152104973793, -0.01755528151988983, -0.04035121202468872, -0.0038164625875651836, -0.014711379073560238, -0.00038483223761431873, -0.009533331729471684, 0.01092845294624567, -0.05616259202361107, -0.007395933382213116, -0.01453251764178276, 0.04010080546140671, 0.03053170070052147, -0.016821948811411858, -0.03205202519893646, -0.009989429265260696, 0.025094304233789444, 0.012511380016803741, 0.029655279591679573, 0.03863414004445076, -0.022894304245710373, 0.05823738873004913, 0.04360649734735489, -0.017591053619980812, -0.05605527386069298, 0.028635766357183456, -0.021284548565745354, -0.024986987933516502, 0.043177228420972824, 0.008227640762925148, -0.06335283070802689, -0.002521950751543045, -0.001092733582481742, -0.0438569039106369, 0.0074898358434438705, 0.049151211977005005, 0.020121946930885315, -0.04546665772795677, -0.012207314372062683, -0.08020161092281342, -0.03688129410147667, 0.030102433636784554, -0.021874792873859406, -0.013906501233577728, 0.06124226376414299, -0.0050573162734508514, -0.025738205760717392, -0.05709267035126686, -0.025577230378985405, 0.011295120231807232, -0.0730113685131073, 0.036630887538194656, 0.00947073008865118, -0.01048129890114069, -0.03877722844481468, 0.010919510386884212, -0.0018881093710660934, 0.01565934717655182, -0.007543494459241629, 0.057665031403303146, -0.004985771607607603, -0.00755690922960639, 0.022858532145619392, -0.010400811210274696, 0.052334949374198914, 0.04124552011489868, 0.02189267799258232, 0.03328617289662361, 0.02267966978251934, 0.02813495323061943, -0.054230883717536926, -0.04811381176114082, 0.018333330750465393, 0.00784308835864067, 0.007029267027974129, -0.033715441823005676, 0.0254520270973444, 0.0037225603591650724, -0.00006871505320305005, 0.017653655260801315, 0.020300809293985367, 0.051583729684352875, -0.018583735451102257, -0.08664063364267349, -0.07555120438337326, -0.030549587681889534, 0.0266861729323864, 0.002229064702987671, -0.0730113685131073, 0.02477235347032547, 0.025380482897162437, -0.021803248673677444, 0.03791869059205055, -0.04382112994790077, -0.08256258815526962, 0.010633331723511219, -0.013906501233577728, -0.05594795569777489, 0.04865039885044098, -0.009953656233847141, -0.08027315884828568, -0.029154466465115547, 0.02563088946044445, 0.07476421445608139, 0.03505690395832062, -0.024182109162211418, -0.02597072720527649, 0.024092677980661392, 0.007686583790928125, -0.0009133128332905471, -0.0019931907299906015, 0.04035121202468872, 0.05466015264391899, -0.029386986047029495, -0.05437397211790085, 0.02885040082037449, -0.05462437868118286, -0.04357072338461876, -0.007990648970007896, -0.040744706988334656, 0.01053495705127716, 0.027473164722323418, -0.0520845428109169, 0.0050573162734508514, 0.0476129986345768, -0.02428942546248436, 0.00557601498439908, -0.056734949350357056, -0.0463251955807209, -0.009363412857055664, -0.02799186483025551, -0.029011376202106476, -0.004583332687616348, 0.046432510018348694, -0.030513815581798553, -0.022107312455773354, -0.023037394508719444, -0.05727153271436691, 0.017653655260801315, -0.034878041595220566, -0.02768779918551445, -0.049973975867033005, 0.0016801826423034072, 0.00022888714738655835, -0.027401620522141457, 0.008227640762925148, 0.01031138002872467, 0.02761625498533249, 0.02659674361348152, 0.0471479594707489, -0.004431299865245819, -0.008978860452771187, 0.03351869434118271, -0.010660160332918167, -0.0030093491077423096, 0.02851056307554245, 0.023681296035647392, -0.027741458266973495, 0.027043897658586502, 0.003510162001475692, 0.07226014882326126, -0.01876259781420231, 0.01744796335697174, 0.030764222145080566, -0.03403739258646965, 0.02944064512848854, 0.016392679885029793, 0.01599918305873871, -0.012180485762655735, -0.0041697146371006966, -0.017403248697519302, 0.05906015262007713, 0.04682600870728493, -0.06793169677257538, -0.001324694836512208, -0.027848774567246437, -0.0451447069644928, -0.02360975183546543, 0.027473164722323418, -0.04163901507854462, -0.007583738304674625, -0.016499996185302734, 0.04217560216784477, -0.03595121204853058, 0.017796743661165237, -0.038991861045360565, -0.004281503148376942, -0.004440242890268564, -0.006904063746333122, -0.027848774567246437, 0.019138207659125328, -0.05315771326422691, 0.03863414004445076, 0.05709267035126686, 0.021517068147659302, -0.05526828393340111, 0.007910161279141903, 0.0016209346940740943, -0.03673820570111275, -0.03255283832550049, -0.01130406279116869, 0.00848251860588789, -0.008607721887528896, -0.013450403697788715, 0.034734953194856644, 0.012198371812701225, 0.018512191250920296, -0.03235609084367752, 0.022930076345801353, 0.0063987793400883675, 0.022590240463614464, 0.051619503647089005, -0.05018860846757889, 0.013924387283623219, 0.07626665383577347, 0.06324551999568939, 0.0196926798671484, -0.06059836223721504, 0.021213004365563393, 0.04814958572387695, 0.012430892325937748, -0.06063413619995117, -0.020300809293985367, -0.04299836605787277, 0.007480892818421125, 0.012940648011863232, 0.00042395826312713325, -0.06786014884710312, 0.040601618587970734, -0.04146015644073486, -0.0459674708545208, -0.005200405605137348, -0.017161784693598747, -0.0301560927182436, 0.01677723228931427, -0.02854633517563343, 0.02548779919743538, 0.04192519560456276, -0.009730079211294651, -0.0008769815322011709, 0.03199836611747742, -0.033125195652246475, 0.016544712707400322, 0.006881705950945616, -0.006631299387663603, -0.028367474675178528, -0.024915441870689392, -0.025648776441812515, 0.04589592665433884, 0.03949267417192459, -0.054123565554618835, 0.04503738880157471, 0.005388210527598858, -0.01429105456918478, -0.04439348727464676, 0.0012676826445385814, 0.008173982612788677, 0.038920316845178604, 0.012502436526119709, 0.010508128441870213, -0.03849104791879654, -0.018619509413838387, -0.04750568047165871, -0.020908938720822334, 0.011330892331898212, -0.017582111060619354, -0.003373779822140932, -0.004285974893718958, 0.07104388624429703, -0.012252029962837696, 0.061635762453079224, 0.008339429274201393, -0.04174633324146271, -0.06814632564783096, -0.0013056908501312137, 0.002367682522162795, 0.01410324964672327, 0.03108617290854454, 0.018995119258761406, 0.052621129900217056, 0.0484357625246048, 0.03264227136969566, -0.005821950268000364, -0.01492601353675127, -0.05433820188045502, 0.020873166620731354, -0.03307153657078743, -0.009354469366371632, -0.020980482921004295, 0.045681290328502655, 0.007051624823361635, 0.03351869434118271, -0.01550731435418129, 0.04503738880157471, 0.029011376202106476, 0.022447150200605392, 0.02040812559425831, 0.03090731054544449, -0.0553755983710289, 0.03253495320677757, 0.03702438250184059, 0.030835766345262527, 0.06546340137720108, -0.0028617880307137966, 0.0496162511408329, 0.0023721540346741676, -0.0484357625246048, -0.031247148290276527, 0.07175933569669724, 0.002089328831061721, -0.004004267510026693, -0.02226828783750534, 0.03546828776597977, -0.04607478901743889, 0.027097556740045547, -0.023717068135738373, 0.04210405796766281, 0.004480486735701561, 0.022035768255591393, 0.02219674363732338, 0.014863411895930767, -0.016759347170591354, 0.026256905868649483, 0.0529073067009449, 0.0036174790002405643, -0.04933007061481476, -0.022107312455773354, -0.06510567665100098, 0.0006444612517952919, -0.04510893300175667, -0.020372353494167328, 0.0410308875143528, -0.02724064514040947, -0.08413656800985336, 0.0096406489610672, -0.004833738785237074, -0.020121946930885315, -0.05347966402769089, 0.027884546667337418, -0.04475121200084686, -0.031247148290276527, 0.016124386340379715, 0.02044389769434929, 0.040744706988334656, 0.010543900541961193, -0.043356090784072876, 0.06310242414474487, -0.032409749925136566, 0.05276421830058098, 0.04850730672478676, 0.028492677956819534, 0.013432517647743225, 0.04010080546140671, -0.020050402730703354, -0.05712844431400299, 0.01070487592369318, -0.028188612312078476, 0.057521939277648926, -0.018887801095843315, 0.013978046365082264, 0.009891054593026638, -0.005321137141436338, -0.0022939019836485386, 0.03591544181108475, 0.014639834873378277, 0.037453651428222656, 0.028045523911714554, -0.0002639608283061534, -0.0032329261302948, -0.018038207665085793, -0.0627804771065712, 0.013182111084461212, -0.03602275624871254, -0.002832723082974553, 0.03756096959114075, -0.037453651428222656, 0.028975604102015495, 0.020837394520640373, -0.04110243171453476, -0.01369186770170927, 0.0058443075977265835, -0.008554063737392426, -0.07505039125680923, 0.03133657947182655, 0.03373332694172859, -0.02294796332716942, 0.06328129023313522, 0.02727641724050045, 0.07619510591030121, 0.0013828249648213387, 0.00256443046964705, -0.004829267505556345, 0.09708616137504578, -0.03219511732459068, -0.003778454614803195, -0.007319917436689138, -0.017358534038066864, -0.035253651440143585, 0.0229837354272604, -0.0038321129977703094, 0.013119509443640709, 0.01979999616742134, -0.012672355398535728, 0.08435120433568954, -0.049973975867033005, 0.03212356939911842 ]
729,400
tinytuya.core
__init__
Represents a Tuya device. Args: dev_id (str): The device id. address (str): The network address. local_key (str, optional): The encryption key. Defaults to None. cid (str: Optional sub device id. Default to None. node_id (str: alias for cid) parent (object: gateway device this device is a child of) Attributes: port (int): The port to connect to.
def __init__( self, dev_id, address=None, local_key="", dev_type="default", connection_timeout=5, version=3.1, persist=False, cid=None, node_id=None, parent=None, connection_retry_limit=5, connection_retry_delay=5, port=TCPPORT # pylint: disable=W0621 ): """ Represents a Tuya device. Args: dev_id (str): The device id. address (str): The network address. local_key (str, optional): The encryption key. Defaults to None. cid (str: Optional sub device id. Default to None. node_id (str: alias for cid) parent (object: gateway device this device is a child of) Attributes: port (int): The port to connect to. """ self.id = dev_id self.cid = cid if cid else node_id self.address = address self.auto_ip = False self.dev_type = dev_type self.dev_type_auto = self.dev_type == 'default' self.last_dev_type = '' self.connection_timeout = connection_timeout self.retry = True self.disabledetect = False # if True do not detect device22 self.port = port # default - do not expect caller to pass in self.socket = None self.socketPersistent = False if not persist else True # pylint: disable=R1719 self.socketNODELAY = True self.socketRetryLimit = connection_retry_limit self.socketRetryDelay = connection_retry_delay self.version = 0 self.dps_to_request = {} self.seqno = 1 self.sendWait = 0.01 self.dps_cache = {} self.parent = parent self.children = {} self.received_wrong_cid_queue = [] self.local_nonce = b'0123456789abcdef' # not-so-random random key self.remote_nonce = b'' self.payload_dict = None if not local_key: local_key = "" # sub-devices do not need a local key, so only look it up if we are not a sub-device if not parent: devinfo = device_info( dev_id ) if devinfo and 'key' in devinfo and devinfo['key']: local_key = devinfo['key'] self.local_key = local_key.encode("latin1") self.real_local_key = self.local_key self.cipher = None if self.parent: # if we are a child then we should have a cid/node_id but none were given - try and find it the same way we look up local keys if not self.cid: devinfo = device_info( dev_id ) if devinfo and 'node_id' in devinfo and devinfo['node_id']: self.cid = devinfo['node_id'] if not self.cid: # not fatal as the user could have set the device_id to the cid # in that case dev_type should be 'zigbee' to set the proper fields in requests log.debug( 'Child device but no cid/node_id given!' ) XenonDevice.set_version(self, self.parent.version) self.parent._register_child(self) elif (not address) or address == "Auto" or address == "0.0.0.0": # try to determine IP address automatically self.auto_ip = True bcast_data = find_device(dev_id) if bcast_data['ip'] is None: log.debug("Unable to find device on network (specify IP address)") raise Exception("Unable to find device on network (specify IP address)") self.address = bcast_data['ip'] self.set_version(float(bcast_data['version'])) time.sleep(0.1) elif version: self.set_version(float(version)) else: # make sure we call our set_version() and not a subclass since some of # them (such as BulbDevice) make connections when called XenonDevice.set_version(self, 3.1)
(self, dev_id, address=None, local_key='', dev_type='default', connection_timeout=5, version=3.1, persist=False, cid=None, node_id=None, parent=None, connection_retry_limit=5, connection_retry_delay=5, port=6668)
[ 0.0223225187510252, -0.024536818265914917, 0.004625589121133089, 0.013285788707435131, -0.011929281987249851, -0.03135925158858299, -0.07604418694972992, 0.050270553678274155, -0.046041443943977356, -0.08322569727897644, -0.02200334146618843, 0.02667132206261158, -0.005455950740724802, 0.04580206051468849, 0.005685360170900822, -0.002658155281096697, 0.00392239959910512, 0.01450265571475029, 0.03738373517990112, -0.054619356989860535, -0.021923547610640526, 0.07377003878355026, 0.01574944518506527, 0.027668753638863564, -0.025813529267907143, 0.08218836784362793, -0.0066428943537175655, 0.021305140107870102, 0.03205745294690132, -0.026910705491900444, 0.006817445158958435, -0.0038650475908070803, 0.06686781346797943, 0.04344812035560608, -0.005017080809921026, -0.000013178954759496264, -0.006423459388315678, 0.0022429742384701967, -0.11490412056446075, -0.010168815031647682, -0.005505822598934174, -0.04225120320916176, -0.005316310562193394, -0.008971896953880787, 0.004406154155731201, 0.0630376785993576, -0.002700546057894826, 0.0766027495265007, -0.029364386573433876, 0.011630052700638771, -0.02792808599770069, 0.011420591734349728, -0.011879410594701767, 0.028965413570404053, -0.06706730276346207, 0.004244071431457996, -0.017584718763828278, 0.035448718816041946, -0.028825772926211357, 0.016607236117124557, -0.03518938645720482, 0.06802483648061752, -0.008518066257238388, 0.007440839894115925, -0.02645188570022583, -0.026172606274485588, -0.035488616675138474, 0.0013265840243548155, -0.011171233840286732, 0.060045383870601654, 0.0570530891418457, -0.013465327210724354, 0.0030671022832393646, -0.00034878935548476875, 0.05334264412522316, -0.012657406739890575, -0.030680997297167778, 0.015250729396939278, -0.051786649972200394, 0.0015896566910669208, 0.015849187970161438, 0.018123332411050797, 0.032995037734508514, -0.01154028344899416, 0.036146920174360275, 0.07887689024209976, 0.057771239429712296, 0.04504401236772537, -0.05414058640599251, 0.00019449916726443917, -0.06307757645845413, -0.01480188500136137, -0.002458669012412429, 0.06599007546901703, 0.03351370245218277, -0.02515522576868534, 0.001360247377306223, 0.019918709993362427, 0.01246789563447237, -0.015350472182035446, -0.03782260790467262, 0.012158690951764584, -0.06874299049377441, -0.046041443943977356, -0.00806922186166048, -0.03660574182868004, -0.05976610258221626, 0.05058973282575607, 0.03664563596248627, 0.015938956290483475, -0.07424880564212799, 0.0004550781741272658, 0.028546493500471115, 0.03157868608832359, -0.007540583144873381, -0.04165274277329445, -0.01371468510478735, 0.004917338024824858, -0.021704111248254776, -0.018771663308143616, -0.012976584956049919, 0.016108520328998566, -0.017504924908280373, -0.009894521906971931, -0.010233648121356964, 0.048634763807058334, 0.01949978806078434, -0.0036655610892921686, 0.029264643788337708, -0.01639777608215809, -0.013375557959079742, 0.00009997693268815055, 0.04404658079147339, 0.07337106764316559, 0.011091439984738827, -0.009540433064103127, -0.011799615807831287, 0.004575717728585005, -0.034730568528175354, -0.03189786151051521, 0.013684761710464954, -0.011759718880057335, 0.04181233420968056, -0.08514076471328735, 0.00548587366938591, 0.00128294643945992, -0.03175822272896767, -0.09750891476869583, -0.07181507349014282, -0.051467470824718475, -0.021863700821995735, -0.012029025703668594, 0.022043239325284958, 0.024217639118433, -0.047996409237384796, 0.032236989587545395, -0.06599007546901703, -0.049512505531311035, -0.0031369223725050688, 0.008198888041079044, -0.05872877314686775, -0.0455227792263031, 0.013515198603272438, -0.014382964000105858, -0.037503428757190704, -0.03353365138173103, -0.09487569332122803, -0.03901952505111694, 0.04117397591471672, 0.04839538037776947, -0.02134503610432148, 0.03496995195746422, 0.0035782859195023775, 0.005049497354775667, -0.03830137476325035, 0.01733536086976528, 0.0015584869543090463, -0.06116250529885292, -0.0057551804929971695, -0.0012517767027020454, 0.0014774455921724439, 0.019270379096269608, 0.03550856560468674, 0.037343841046094894, 0.043807197362184525, 0.03678527846932411, 0.06291798502206802, 0.04368750378489494, 0.07903648167848587, 0.015200858004391193, 0.0022579357028007507, 0.020178042352199554, 0.0339924693107605, 0.02200334146618843, 0.032835450023412704, 0.04083485156297684, 0.08617809414863586, -0.016327954828739166, -0.0011489165481179953, 0.0302022285759449, -0.029843153432011604, 0.019240455701947212, 0.017425131052732468, -0.015021320432424545, -0.026850858703255653, -0.006104281637817621, -0.00866768043488264, 0.031000174582004547, 0.0034386455081403255, -0.01580929197371006, -0.0034336582757532597, 0.004194200038909912, -0.016308007761836052, 0.05074932053685188, 0.0417325384914875, -0.07293219864368439, -0.01950976252555847, 0.045602574944496155, 0.0007985687116160989, -0.029085105285048485, 0.026471834629774094, 0.007994414307177067, -0.005520783830434084, -0.05035034939646721, -0.05729247257113457, 0.015400344505906105, -0.011939256452023983, 0.02537466026842594, 0.028825772926211357, 0.014023888856172562, 0.04600154608488083, 0.002628232352435589, 0.021963443607091904, 0.054180484265089035, 0.008986858651041985, -0.011340797878801823, -0.004376231227070093, 0.0018103383481502533, -0.004101937636733055, -0.03634640946984291, 0.02868613228201866, -0.03724409639835358, 0.057771239429712296, -0.05481884256005287, -0.0020434879697859287, 0.01314614899456501, 0.02439717762172222, 0.02732962556183338, -0.02950402721762657, -0.05769144371151924, -0.030760791152715683, -0.05457945913076401, 0.03459092974662781, -0.012128768488764763, -0.014173503033816814, -0.10245617479085922, 0.025235019624233246, 0.0020958532113581896, 0.015549958683550358, -0.022621748968958855, -0.050270553678274155, 0.026491783559322357, -0.09623220562934875, 0.05290377140045166, -0.0446450375020504, 0.018602099269628525, 0.028586389496922493, -0.007221404928714037, -0.03580779582262039, 0.0016308006597682834, 0.11474452912807465, 0.042610280215740204, -0.04767723008990288, 0.027229882776737213, -0.03536892682313919, -0.05074932053685188, -0.01229833159595728, 0.0033139665611088276, -0.03606712818145752, -0.07005959749221802, -0.04384709522128105, -0.0012735954951494932, 0.04452534765005112, 0.04221130535006523, -0.05513801798224449, -0.06527192145586014, -0.031159764155745506, 0.0032665885519236326, -0.021265242248773575, -0.002498566173017025, -0.07883699238300323, -0.00264070020057261, -0.05090890824794769, 0.024197690188884735, 0.018183179199695587, -0.008577912114560604, -0.09766850620508194, 0.04927312210202217, 0.011360745877027512, -0.05350223183631897, -0.022522006183862686, 0.04328853264451027, -0.025953169912099838, 0.021305140107870102, -0.0033089793287217617, 0.029783308506011963, 0.05035034939646721, -0.007156571839004755, 0.00513178575783968, 0.001280452823266387, 0.02335984818637371, -0.016377827152609825, 0.07500685751438141, 0.020666783675551414, 0.021424831822514534, 0.000693838344886899, 0.012836945243179798, 0.0065531255677342415, 0.03798219561576843, 0.10644590109586716, -0.02030770853161812, 0.05805052071809769, -0.010313442908227444, 0.07404932379722595, 0.03498990088701248, 0.030820636078715324, 0.1021369993686676, -0.0034685684368014336, -0.03700471296906471, 0.00467296689748764, -0.05082911625504494, 0.01450265571475029, -0.020277785137295723, -0.04023639112710953, 0.014372989535331726, 0.009360895492136478, -0.015300600789487362, 0.018941225484013557, -0.028007879853248596, -0.014103682711720467, -0.0031942748464643955, 0.029723461717367172, -0.034311648458242416, -0.011879410594701767, -0.005136772990226746, -0.06363613903522491, 0.016637159511446953, -0.02748921513557434, -0.0010098995408043265, 0.06942123919725418, 0.005206592846661806, 0.009325985796749592, 0.031159764155745506, 0.047876715660095215, 0.08027329295873642, -0.07329127192497253, -0.04272997006773949, 0.014243323355913162, 0.000007183650723163737, -0.004939780104905367, -0.022960875183343887, 0.00605440977960825, -0.011989127844572067, 0.006134204566478729, -0.044086478650569916, -0.040775004774332047, -0.01569957286119461, -0.027030397206544876, 0.06894247233867645, 0.0010790963424369693, -0.006453382316976786, -0.04540308564901352, 0.0018290402367711067, 0.008822282776236534, 0.04344812035560608, -0.012677355669438839, -0.04468493536114693, -0.01015385426580906, -0.01537042111158371, 0.024038102477788925, -0.0007518141064792871, 0.015081166289746761, 0.03423185274004936, 0.011550257913768291, -0.004149315413087606, -0.025135276839137077, 0.018941225484013557, -0.007680223323404789, 0.015091140754520893, 0.019459890201687813, 0.033653341233730316, 0.04177243635058403, -0.017734333872795105, 0.02651173248887062, -0.02118544839322567, 0.01374460756778717, 0.02427748590707779, 0.015190883539617062, -0.014243323355913162, -0.07560531795024872, -0.027529112994670868, -0.058409593999385834, -0.01469216775149107, 0.056135449558496475, 0.03836122155189514, 0.010572775267064571, 0.12336234003305435, 0.004924818407744169, -0.023758821189403534, 0.007480737287551165, -0.03385283052921295, 0.026491783559322357, -0.01885145716369152, 0.02052714303135872, -0.032396577298641205, 0.025973118841648102, 0.005680372938513756, 0.09232226759195328, 0.06371593475341797, 0.027409421280026436, -0.04059546813368797, 0.03518938645720482, -0.020128170028328896, -0.005346233490854502, 0.00996932853013277, 0.056135449558496475, 0.008832257241010666, 0.01700620912015438, 0.0015460189897567034, 0.010433134622871876, 0.027509164065122604, 0.033274319022893906, 0.0017317906022071838, -0.029244694858789444, 0.042011819779872894, -0.0005314440350048244, 0.026052914559841156, -0.03161858394742012, -0.0035433757584542036, -0.011560232378542423, -0.03111986629664898, -0.012866867706179619, 0.016816696152091026, 0.016687029972672462, 0.0008833503816276789, 0.003957309760153294, -0.03096027672290802, 0.01933022402226925, 0.01929032802581787, -0.0004522728850133717, 0.00003089700112468563, -0.055975861847400665, 0.043488018214702606, -0.01721566915512085, -0.03588758781552315, -0.030980225652456284, -0.011590155772864819, 0.015011345967650414, 0.009271127171814442, -0.010343365371227264, -0.00475276168435812, 0.022522006183862686, 0.011370720341801643, 0.002114555099979043, -0.04675959423184395, 0.107084259390831, 0.03259606659412384, -0.007191482000052929, 0.018312843516469002, -0.015889085829257965, -0.008084183558821678, 0.01939007081091404, -0.04719846323132515, 0.04671969637274742, 0.004019649233669043, -0.046959079802036285, -0.006483305711299181, -0.060324665158987045, -0.08103134483098984, -0.07249332964420319, -0.008079196326434612, -0.04404658079147339, 0.043767299503088, -0.012527741491794586, -0.02150462567806244, -0.0685833990573883, 0.05174675211310387, -0.04165274277329445, 0.005071939900517464, -0.015011345967650414, -0.08561953157186508, -0.004383712075650692, -0.0034984913654625416, 0.0066428943537175655, 0.023639129474759102, 0.019908735528588295, -0.031538788229227066, 0.0016357878921553493, -0.03301498666405678, -0.04039597883820534, -0.024736303836107254, -0.011679924093186855, -0.021305140107870102, -0.020487245172262192, 0.010532877407968044, 0.022781338542699814, -0.06962072849273682, 0.04675959423184395, -0.02433733083307743, 0.04205171763896942, 0.0019412513356655836, 0.010413185693323612, -0.00004227395766065456, -0.017943793907761574, -0.04460514336824417, 0.03271575644612312, 0.005191631615161896, -0.0013664813013747334, -0.01344537828117609, -0.0019213026389479637, 0.04991147667169571, 0.06778544932603836, 0.05182654783129692, 0.013026457279920578, 0.02677106484770775, 0.026471834629774094, -0.026711218059062958, 0.034950003027915955, 0.039797522127628326, 0.018023589625954628, -0.04079495370388031, -0.02613270841538906, -0.0101039819419384, 0.009924444369971752, 0.04137346148490906, -0.04943270981311798, -0.02449692040681839, -0.009824701584875584, -0.055816274136304855, -0.08873151987791061, 0.03281550109386444, 0.0022155449260026217, -0.052225518971681595, -0.10181781649589539, -0.043488018214702606, -0.06160137802362442, 0.022681595757603645, 0.03369323909282684, -0.01180959027260542, -0.007361045107245445, 0.0012087624054402113, -0.001967433840036392, 0.05797072499990463, 0.006952098570764065, 0.015829239040613174, -0.02439717762172222, 0.016218237578868866, 0.010802184231579304, -0.0010167568689212203, -0.00011649689258774742, -0.00790464598685503, -0.0016756850527599454, -0.01382440235465765, -0.0199885293841362, 0.05110839754343033, -0.005964640993624926, -0.01959953084588051, 0.00018686258408706635, 0.02683090977370739, -0.0006452135858125985, -0.03090043179690838, 0.025514300912618637, 0.0006121736369095743, 0.06068373844027519, -0.07041867077350616, -0.015998803079128265, -0.047557540237903595, 0.07380993664264679, -0.001170735340565443, -0.030501458793878555, 0.034251801669597626, 0.07021918892860413, -0.052225518971681595, -0.01901104673743248, 0.010039148852229118, 0.01624816097319126, 0.05904795229434967, 0.06543151289224625, -0.004121886100620031, -0.08043288439512253, -0.026910705491900444, -0.020178042352199554, -0.04775702580809593, -0.0018951200181618333, -0.012637458741664886, 0.04209161549806595, 0.01086203008890152, 0.0052315290085971355, 0.026531681418418884, 0.007101713214069605, -0.027309678494930267, 0.029683565720915794, 0.05158716440200806, -0.08817295730113983, 0.03275565430521965, -0.011450515128672123, -0.06471336632966995, 0.015470163896679878, -0.038820039480924606, -0.048435278236866, 0.0406353622674942, 0.018452484160661697, -0.015879111364483833, 0.02367902733385563, -0.049392811954021454, -0.04017654433846474, -0.017155824229121208, 0.005505822598934174, 0.001567214378155768, -0.03925890848040581, -0.002777846995741129, 0.019579581916332245, -0.0021133082918822765, -0.010951799340546131, -0.09312021732330322, 0.000009326569852419198, 0.020666783675551414, -0.010433134622871876, -0.024836046621203423, 0.02711019106209278, 0.06267860531806946, -0.011879410594701767, 0.012807021848857403, 0.03716430068016052, -0.05517791584134102, -0.0501907579600811, 0.006014512851834297, -0.010423160158097744, 0.002279131207615137, 0.05525771155953407, 0.01760466769337654, 0.03670548275113106, 0.003226691158488393, -0.038421064615249634, 0.010203725658357143, 0.006747624836862087, -0.011450515128672123, -0.014382964000105858, -0.033872779458761215, -0.006009525619447231, -0.030920380726456642, 0.03754332661628723, -0.03588758781552315, -0.02030770853161812, -0.001397651038132608, 0.04101438820362091, -0.023599231615662575, 0.05214572325348854, 0.0009974315762519836, 0.035448718816041946, 0.028287161141633987, 0.000643966777715832, 0.039837419986724854, -0.038760192692279816, 0.013674787245690823, 0.009819714352488518, 0.04763733223080635, -0.05338253825902939, -0.03491010516881943, 0.007525621447712183, 0.04009675234556198, -0.011320848949253559, -0.0030222178902477026, -0.006179088726639748, -0.009999251924455166, -0.027449317276477814, 0.011530309915542603, -0.004104431252926588, 0.007999401539564133, 0.002857641549780965, 0.01229833159595728, 0.029563872143626213, 0.021704111248254776, -0.010822133161127567, -0.008268708363175392, -0.00017361543723382056, 0.059885792434215546, 0.035289131104946136, -0.02455676719546318, -0.1299852877855301, -0.0014138593105599284, -0.022302571684122086, 0.004864972550421953, 0.051786649972200394, -0.03947834298014641, -0.0599655881524086, 0.002558412030339241, 0.006752612069249153, -0.041692640632390976, 0.00907164067029953, 0.008428297005593777, -0.03263596072793007, -0.030401716008782387, -0.006333690602332354, 0.02531481347978115, 0.030341869220137596, -0.0370645597577095, -0.03379298374056816, 0.030820636078715324, -0.007041867356747389, 0.07536593079566956, 0.01759469322860241, 0.05976610258221626, -0.03838116675615311, -0.021045807749032974, 0.018821533769369125, -0.027728598564863205, 0.017455052584409714, -0.012328254990279675, 0.056853603571653366, -0.012019051238894463, 0.026112759485840797, 0.05813031271100044, -0.0029997755773365498, 0.03628656268119812, 0.0064633567817509174, 0.03459092974662781, 0.012507792562246323, 0.016766825690865517, 0.006293793674558401, -0.007306186482310295, 0.020387502387166023, -0.05350223183631897, -0.03241652622818947, -0.024576714262366295, -0.04344812035560608, 0.054938532412052155, -0.039797522127628326, -0.0010666283778846264, 0.04779692366719246, -0.027289729565382004, 0.0058150263503193855, -0.03199760615825653, 0.026910705491900444, -0.014901628717780113, 0.03273570537567139, 0.021424831822514534, 0.02481609769165516, 0.045004114508628845, -0.0042390841990709305, 0.03818168118596077, -0.00533625902608037, -0.02019798941910267, 0.004077001940459013, 0.052225518971681595, -0.04157295078039169, -0.03227688744664192, 0.061681170016527176, 0.02900531142950058, -0.026471834629774094, -0.0032217041589319706, -0.04448544979095459, -0.022881081327795982, 0.017734333872795105, 0.004785178229212761, 0.009525472298264503, -0.013993965461850166, 0.03117971308529377 ]
729,419
tinytuya.CoverDevice
close_cover
Close the cover
def close_cover(self, switch=1, nowait=False): """Close the cover""" self.set_status("off", switch, nowait=nowait)
(self, switch=1, nowait=False)
[ 0.017602069303393364, -0.012205208651721478, 0.011258682236075401, 0.032115474343299866, -0.02773156203329563, -0.05416787788271904, -0.01616567373275757, 0.09292564541101456, -0.0007866962696425617, -0.022069009020924568, -0.0670207068324089, -0.014247712679207325, 0.0160826463252306, 0.011939517222344875, -0.04390554130077362, 0.029574798420071602, 0.004994172137230635, -0.03892382234334946, 0.05758865922689438, 0.006575867533683777, -0.008028868585824966, 0.010295550338923931, 0.007713359780609608, -0.036897923797369, -0.01929585449397564, 0.03709719330072403, -0.02952498011291027, -0.00023001525551080704, -0.06642290204763412, -0.08515416085720062, -0.047259896993637085, -0.007032524794340134, 0.00547573808580637, 0.06655575335025787, 0.0455993227660656, 0.05805361643433571, -0.011325105093419552, 0.015318782068789005, -0.028429003432393074, 0.026901276782155037, -0.000852081342600286, -0.03427421674132347, 0.02990691177546978, -0.023048747330904007, -0.03842565044760704, -0.007925082929432392, -0.01565920002758503, -0.033311087638139725, 0.06745246052742004, -0.0004418680036906153, -0.013699724338948727, -0.017817944288253784, -0.06190614774823189, 0.029109837487339973, -0.01891392283141613, 0.03889061138033867, 0.012960769236087799, 0.033311087638139725, 0.005928243976086378, 0.0034207794815301895, -0.017602069303393364, -0.014280924573540688, 0.005218349397182465, -0.03928914666175842, 0.04951827600598335, 0.005222500767558813, -0.016796691343188286, 0.03915630280971527, 0.013467243872582912, -0.00630187289789319, 0.010893356055021286, 0.014687764458358288, 0.02499161846935749, 0.036300115287303925, 0.011441345326602459, -0.08143448084592819, -0.0949847549200058, 0.024294177070260048, -0.011391527950763702, 0.006737773306667805, -0.001416675979271531, -0.006252055987715721, 0.004195021465420723, 0.030687382444739342, 0.00031473039416596293, -0.03815995901823044, 0.09126506745815277, -0.008726309053599834, -0.04466940462589264, 0.02648613229393959, 0.0075182425789535046, 0.031085919588804245, -0.008477223105728626, -0.026336681097745895, 0.0599798820912838, 0.027997253462672234, -0.0336432009935379, 0.03183317556977272, 0.007485031150281429, -0.06735282391309738, -0.027017517015337944, -0.05579524114727974, 0.01810024119913578, -0.05273978412151337, 0.01198103092610836, -0.04626355320215225, 0.02713375724852085, 0.0009615753078833222, -0.04759201034903526, -0.06081016734242439, -0.02529052086174488, -0.07399511337280273, -0.07286592572927475, 0.017020870000123978, 0.002113078720867634, -0.008634977973997593, 0.017568858340382576, -0.00019187397265341133, -0.022783055901527405, -0.024875378236174583, -0.006991010624915361, -0.008082836866378784, -0.06615721434354782, -0.06340066343545914, 0.0599798820912838, 0.0599798820912838, 0.0048073576763272285, 0.07705056667327881, 0.02901020273566246, 0.057190120220184326, 0.005600281059741974, 0.010370275937020779, -0.024709319695830345, 0.009905315935611725, 0.009440355002880096, 0.013375911861658096, 0.009340721182525158, -0.008062079548835754, 0.06692107766866684, -0.015036485157907009, -0.062271472066640854, -0.02763192728161812, -0.026984304189682007, 0.02884414605796337, 0.0602455735206604, 0.02502482943236828, 0.02122211828827858, -0.08535343408584595, -0.0442376546561718, 0.024825559929013252, 0.008352680131793022, 0.019445305690169334, -0.04483545944094658, 0.0150613933801651, 0.010071372613310814, -0.06154081970453262, -0.046662088483572006, 0.06356672197580338, -0.006306024268269539, 0.008294560015201569, -0.002986954990774393, 0.05921601876616478, -0.007543151266872883, 0.03948841616511345, -0.003541171085089445, -0.035071294754743576, -0.042676717042922974, 0.03709719330072403, 0.06834916770458221, -0.020076323300600052, -0.022002587094902992, -0.03606763854622841, 0.009764166548848152, 0.005234955344349146, 0.01698765717446804, 0.054998163133859634, -0.011300196871161461, -0.025390155613422394, 0.0034705966245383024, -0.04456976801156998, -0.003995752893388271, -0.02328122779726982, -0.06449663639068604, 0.0011862715473398566, 0.012744895182549953, -0.007289913948625326, -0.013658209703862667, -0.005596129689365625, -0.0077424198389053345, -0.04616391658782959, 0.020292196422815323, 0.04181321710348129, 0.0025427518412470818, 0.02002650499343872, 0.09332417696714401, -0.054068244993686676, 0.01904676854610443, -0.02233470231294632, 0.026303470134735107, 0.02379600517451763, 0.017984000965952873, 0.033095210790634155, 0.024593079462647438, -0.06071053445339203, 0.07957463711500168, 0.007451819721609354, 0.015924891456961632, -0.012993980199098587, -0.0023663160391151905, -0.017950790002942085, -0.028561849147081375, 0.05768829211592674, 0.007991505786776543, 0.004329943098127842, 0.05895032733678818, -0.035071294754743576, -0.028727905824780464, 0.016838205978274345, -0.01236296258866787, 0.004994172137230635, -0.07186958193778992, -0.015501445159316063, -0.03281291574239731, 0.035237349569797516, 0.015891680493950844, 0.03424100577831268, -0.009706046432256699, 0.002698430558666587, 0.07492503523826599, 0.0008188698557205498, -0.0702754333615303, 0.016838205978274345, -0.02105605974793434, -0.03932235762476921, -0.03304539620876312, 0.02353031374514103, -0.055728815495967865, -0.004176340065896511, -0.09219498932361603, 0.015385204926133156, 0.012122180312871933, -0.021587444469332695, 0.0010513500310480595, 0.013791055418550968, 0.02827955223619938, -0.02228488400578499, -0.0035640038549900055, 0.024576473981142044, 0.01698765717446804, 0.05353686213493347, 0.05283942073583603, -0.07997317612171173, 0.021404780447483063, -0.0037487426307052374, 0.03327787667512894, -0.06552619487047195, -0.06416452676057816, -0.08163374662399292, -0.015526353381574154, 0.0016180204693228006, 0.008585160598158836, -0.008302862755954266, 0.0046828147023916245, 0.0377282090485096, 0.018847499042749405, -0.022749844938516617, 0.02477574348449707, -0.04679493606090546, -0.016697058454155922, -0.04377269372344017, 0.01448019314557314, -0.04553290084004402, -0.039388783276081085, -0.028379185125231743, -0.024061696603894234, 0.02990691177546978, 0.006517747417092323, -0.056492678821086884, -0.06124191731214523, -0.02515767514705658, 0.05802040547132492, 0.048588354140520096, 0.0181832704693079, 0.0567251592874527, -0.017386194318532944, -0.020939821377396584, 0.021471204236149788, 0.05875105783343315, 0.02135496400296688, 0.012005940079689026, -0.0382595919072628, 0.046529244631528854, 0.05991346016526222, 0.025058040395379066, 0.05812004208564758, -0.03336090222001076, -0.008693097159266472, 0.02379600517451763, -0.02358013018965721, 0.008867457509040833, 0.046396397054195404, -0.0754564180970192, -0.0822315588593483, -0.016398154199123383, -0.018382538110017776, -0.014920244924724102, 0.034506697207689285, -0.021637260913848877, 0.007439365144819021, 0.018797682598233223, 0.060179151594638824, -0.007933385670185089, -0.03679828718304634, 0.008776126429438591, -0.03332769125699997, -0.007140462286770344, -0.02040843665599823, 0.024194542318582535, 0.03573552146553993, 0.056625526398420334, 0.0070366766303777695, -0.06170687824487686, 0.008294560015201569, 0.06961120665073395, 0.05011608079075813, -0.010876750573515892, -0.02019256353378296, 0.07093966007232666, -0.013674815185368061, -0.005795398261398077, -0.0827629417181015, 0.004657906014472246, 0.017137108370661736, -0.030687382444739342, -0.012678471393883228, -0.0050938064232468605, 0.013907295651733875, -0.023414073511958122, 0.008215682581067085, -0.018797682598233223, -0.025390155613422394, -0.010619361884891987, 0.007680148351937532, -0.00042681905324570835, -0.07127177715301514, 0.07120535522699356, -0.015991313382983208, -0.031384821981191635, 0.0890066921710968, 0.019611362367868423, 0.024410417303442955, 0.00911654345691204, 0.027964042499661446, 0.05390218645334244, 0.014347347430884838, 0.055429913103580475, 0.048721201717853546, 0.029890306293964386, 0.04121541231870651, -0.08661546558141708, 0.013998626731336117, -0.05443356931209564, 0.008510435000061989, -0.032746490091085434, -0.013674815185368061, 0.003036772133782506, -0.026834852993488312, 0.02724999561905861, -0.0005583675228990614, -0.009930224157869816, -0.061806511133909225, -0.028893962502479553, -0.045034728944301605, 0.0191297959536314, 0.031733542680740356, -0.0034643695689737797, -0.02827955223619938, 0.004263520240783691, 0.048455510288476944, 0.026901276782155037, -0.0017010490410029888, -0.03982052952051163, -0.015318782068789005, 0.029309106990695, 0.006443021818995476, -0.027399448677897453, -0.022583788260817528, 0.0126867750659585, 0.00007440143963322043, -0.049783967435359955, 0.08488847315311432, -0.03679828718304634, 0.033311087638139725, -0.03503808006644249, 0.040119435638189316, -0.037462517619132996, 0.014828912913799286, 0.000029660031941602938, 0.06476233154535294, 0.026004567742347717, -0.026120807975530624, 0.032746490091085434, -0.07592137902975082, 0.007198582403361797, 0.00042240816401317716, 0.049485065042972565, -0.02255057543516159, -0.014446981251239777, 0.0026527647860348225, -0.10567884147167206, 0.006887224968522787, -0.015111210756003857, -0.05220840126276016, 0.019611362367868423, 0.07167031615972519, -0.004251065663993359, -0.029757460579276085, -0.020009899511933327, 0.017734915018081665, -0.011773459613323212, 0.03372623026371002, 0.04925258457660675, 0.02960800938308239, -0.016290217638015747, -0.01907997950911522, -0.022998930886387825, 0.030222421512007713, 0.007128007709980011, -0.021338358521461487, 0.005571221001446247, -0.010312155820429325, -0.031517669558525085, -0.023264622315764427, -0.004819811787456274, 0.01823308691382408, 0.045798592269420624, -0.027449265122413635, -0.01703747548162937, 0.028561849147081375, -0.003148860763758421, 0.03037187270820141, 0.04603107273578644, -0.018365932628512383, -0.006804196164011955, 0.04128183424472809, -0.052009135484695435, -0.0011572114890441298, -0.008585160598158836, 0.04961790889501572, 0.002266681520268321, -0.06064411252737045, 0.02914304845035076, -0.033178240060806274, -0.008817640133202076, 0.008767823688685894, 0.003499656682834029, -0.07226812094449997, 0.03845886141061783, 0.010860145092010498, -0.02181992307305336, 0.026934487745165825, -0.019063374027609825, -0.084689199924469, -0.007049130741506815, 0.051544174551963806, 0.006530201993882656, 0.06834916770458221, -0.01587507501244545, -0.04051797091960907, -0.017651887610554695, -0.04227817803621292, -0.029242683202028275, 0.016315124928951263, 0.027449265122413635, 0.03417458385229111, -0.00721933925524354, -0.04211211949586868, 0.08063740283250809, 0.05151096358895302, 0.007032524794340134, 0.0033086908515542746, -0.003752894001081586, 0.005745581351220608, -0.005911638494580984, -0.044436924159526825, -0.001365820993669331, 0.013907295651733875, -0.023762794211506844, -0.003777802689000964, -0.019611362367868423, -0.03238116577267647, -0.008742914535105228, -0.03407495096325874, 0.00120080157648772, 0.073795847594738, 0.015567868016660213, -0.06330102682113647, -0.05821967497467995, 0.001847387058660388, -0.11570870131254196, 0.011590796522796154, 0.0015733925392851233, -0.0640648901462555, -0.02298232540488243, -0.005957304034382105, -0.02181992307305336, 0.01364990696310997, -0.04373948276042938, 0.000748295511584729, -0.001477909623645246, -0.0021878043189644814, 0.0188641045242548, 0.0050398376770317554, 0.030787015333771706, 0.04410480707883835, -0.030139392241835594, 0.03193281218409538, 0.014463587664067745, 0.06841558963060379, -0.02721678465604782, 0.0377282090485096, -0.051544174551963806, 0.024576473981142044, 0.028827540576457977, 0.0008738763281144202, -0.008850852027535439, 0.03928914666175842, 0.02032540924847126, 0.004886235110461712, 0.03620048239827156, -0.003171693766489625, -0.03487202525138855, -0.011175653897225857, 0.05506458878517151, 0.014538313262164593, -0.06927908957004547, -0.0077424198389053345, -0.04197927564382553, 0.02168707735836506, -0.009290903806686401, 0.0004641819396056235, -0.019910264760255814, 0.038492072373628616, 0.0632346048951149, 0.016406457871198654, 0.017186926677823067, 0.02353031374514103, 0.0056999153457582, 0.035237349569797516, 0.02952498011291027, 0.00299525773152709, 0.02075715735554695, 0.015983011573553085, -0.03460633382201195, 0.011441345326602459, 0.0957818254828453, 0.03453991189599037, -0.04480224847793579, 0.015941496938467026, -0.02906002104282379, -0.04035191610455513, 0.024759138002991676, 0.06532692909240723, -0.03063756413757801, 0.020508071407675743, -0.00763863418251276, 0.10335403680801392, 0.011524373665452003, 0.0474923774600029, -0.023762794211506844, 0.01810024119913578, -0.04244423657655716, 0.047990549355745316, 0.014538313262164593, -0.016697058454155922, 0.030072970315814018, 0.0824972465634346, -0.015318782068789005, -0.008668188937008381, 0.013741238042712212, -0.02768174558877945, -0.032065656036138535, -0.007925082929432392, -0.05709048733115196, -0.03229813650250435, -0.004641300532966852, 0.01869804784655571, -0.027964042499661446, -0.014554918743669987, -0.00045406282879412174, 0.021936163306236267, 0.002750323386862874, 0.008867457509040833, -0.033145029097795486, -0.023812610656023026, -0.015484839677810669, 0.07359657436609268, -0.004053873009979725, -0.010976385325193405, 0.0757221132516861, 0.047990549355745316, -0.04895368218421936, -0.0070449793711304665, 0.034672755748033524, -0.04971754550933838, 0.07505787909030914, -0.009315812028944492, -0.012005940079689026, -0.014231107197701931, 0.030903255566954613, -0.03623369336128235, 0.0094320522621274, -0.02349710278213024, 0.041049353778362274, -0.013301186263561249, 0.013973718509078026, -0.05250730738043785, 0.00663398765027523, -0.06267000734806061, 0.03902345523238182, -0.0010580960661172867, -0.035702310502529144, -0.0038006354589015245, -0.009133148938417435, -0.0302556324750185, -0.004869629163295031, -0.02914304845035076, 0.012852831743657589, -0.007783934008330107, 0.046064283698797226, 0.010968081653118134, -0.012429386377334595, 0.01570901647210121, 0.039853744208812714, -0.0035972155164927244, -0.01856520213186741, 0.007231793832033873, 0.04453655704855919, 0.010270641185343266, -0.029342317953705788, 0.03576873242855072, -0.026120807975530624, 0.05313832312822342, 0.02602117322385311, -0.023862428963184357, -0.040451548993587494, 0.009282601065933704, 0.006193935871124268, -0.016888024285435677, -0.03141803294420242, 0.023480497300624847, 0.07824618369340897, 0.03769499808549881, -0.005554615519940853, -0.0415143147110939, -0.027482476085424423, 0.07485861331224442, -0.0004431653069332242, 0.022666815668344498, 0.03845886141061783, -0.01788436621427536, 0.011781762354075909, -0.01921282522380352, 0.056160565465688705, 0.04410480707883835, -0.013060403987765312, 0.03299557790160179, -0.014280924573540688, -0.02588832750916481, -0.04646282270550728, 0.03417458385229111, -0.01681329682469368, -0.04496830701828003, -0.023513708263635635, 0.022351307794451714, -0.02515767514705658, 0.002033163560554385, -0.008859154768288136, -0.009689440950751305, 0.030438296496868134, -0.012188603170216084, 0.01891392283141613, -0.025190886110067368, -0.01146625354886055, 0.0819658637046814, 0.05197592079639435, -0.030322056263685226, -0.02896038629114628, -0.032713279128074646, -0.04018585756421089, -0.01810024119913578, 0.0028250492177903652, -0.03110252507030964, 0.006173178553581238, -0.05785435065627098, -0.060179151594638824, -0.025141069665551186, 0.00025388598442077637, 0.004599785897880793, -0.031434640288352966, 0.03633332997560501, -0.0602455735206604, 0.00010722369188442826, -0.003690622514113784, -0.002420284552499652, 0.029558192938566208, 0.029076626524329185, -0.011076019145548344, 0.05685800686478615, -0.016198886558413506, 0.004545817617326975, 0.041049353778362274, -0.014687764458358288, 0.0643305853009224, 0.028694694861769676, -0.0183161161839962, -0.10454965382814407, -0.03165051341056824, -0.027316419407725334, 0.007763176690787077, 0.005322135053575039, 0.026851458474993706, 0.012886043637990952, 0.001773699070326984, -0.006517747417092323, -0.05775471404194832, -0.03276309743523598, 0.08150090277194977, 0.01745261810719967, 0.018963739275932312, -0.030953073874115944, -0.059448499232530594, -0.06124191731214523, 0.026602372527122498, -0.03845886141061783, -0.009971738792955875, 0.04008622094988823, 0.015800347551703453, 0.07093966007232666, 0.0009356288937851787, -0.06320139020681381, -0.059714190661907196, 0.003096967935562134, 0.005849367007613182, -0.02417793683707714, -0.002974500646814704, 0.009191269055008888, 0.014280924573540688, 0.03460633382201195, -0.014446981251239777, 0.02827955223619938, 0.01907997950911522, 0.0015754682244732976, 0.03902345523238182, 0.08057098090648651, 0.01110092829912901, -0.008315317332744598, 0.04008622094988823, -0.019279247149825096, 0.0037674240302294493, 0.02284947969019413, 0.07426080852746964, 0.007829600013792515, -0.017269955947995186, -0.03377604857087135, 0.024526657536625862, 0.008900669403374195, 0.008211531676352024 ]
729,424
tinytuya.CoverDevice
open_cover
Open the cover
def open_cover(self, switch=1, nowait=False): """Open the cover""" self.set_status("on", switch, nowait=nowait)
(self, switch=1, nowait=False)
[ 0.0020542056299746037, -0.040738314390182495, -0.009632948786020279, 0.048774003982543945, 0.031978096812963486, -0.02461753413081169, 0.0040940032340586185, 0.04920213669538498, -0.03500794619321823, 0.00288782618008554, -0.04834587499499321, -0.0020994888618588448, 0.02139008603990078, 0.03569954261183739, -0.04584295302629471, -0.008743752725422382, 0.0009905676124617457, -0.03658873587846756, 0.01929882913827896, 0.0432741679251194, 0.0024988031946122646, 0.029590440914034843, 0.02894824557006359, -0.018096769228577614, -0.026807589456439018, 0.07199188321828842, -0.044097498059272766, 0.005248721688985825, -0.0420556403696537, -0.08575794100761414, -0.007364677265286446, -0.04281310364603996, 0.006364332512021065, 0.04663335159420967, 0.05368104577064514, 0.04795067757368088, 0.004997606389224529, 0.003425048431381583, -0.04478909447789192, 0.014153024181723595, -0.02348134107887745, -0.028273114934563637, 0.028256649151444435, -0.005833285395056009, -0.06744710355997086, -0.021110152825713158, -0.022822678089141846, -0.0272192545235157, 0.09425469487905502, -0.032817889004945755, -0.010028146207332611, -0.02672525681555271, -0.047423746436834335, 0.002926934277638793, -0.03388821706175804, 0.046304017305374146, 0.0077310586348176, 0.026889922097325325, 0.003128649899736047, 0.0222792811691761, -0.019117698073387146, -0.03125356510281563, 0.03372355177998543, -0.010744442231953144, 0.036160606890916824, -0.003655580338090658, -0.022905010730028152, 0.030759569257497787, 0.0027334520127624273, 0.008155073039233685, 0.04142991080880165, 0.04218737408518791, 0.024156469851732254, -0.0014737587189301848, -0.00852968730032444, -0.023464873433113098, -0.12073295563459396, 0.014482355676591396, -0.013947191648185253, 0.018113236874341965, 0.0031142416410148144, -0.019858693704009056, 0.009855247102677822, 0.020056292414665222, -0.01655714400112629, -0.019562294706702232, 0.05516303703188896, -0.010900874622166157, -0.03148409724235535, 0.012514599598944187, 0.020089225843548775, 0.06596511602401733, -0.012679265812039375, -0.029409309849143028, 0.0656028464436531, 0.015330384485423565, -0.00282813492231071, 0.035666607320308685, -0.002280621090903878, -0.01829436793923378, -0.07251881062984467, -0.03206042945384979, 0.0006118363235145807, -0.05588756874203682, -0.012481666170060635, -0.08121316134929657, 0.020550290122628212, 0.0321592278778553, -0.03285082429647446, -0.03859765827655792, -0.03041377104818821, -0.10235625505447388, -0.06942309439182281, 0.02015509270131588, -0.013815458863973618, 0.005071706138551235, 0.05799528956413269, -0.01013517938554287, -0.023431941866874695, -0.021933482959866524, -0.02942577563226223, -0.010094012133777142, -0.03928925469517708, -0.03401995077729225, 0.06072873994708061, 0.06204606592655182, 0.008620253764092922, 0.06270472705364227, 0.041232313960790634, 0.02338254079222679, 0.03266969323158264, -0.005726252682507038, -0.02274034544825554, 0.011386639438569546, 0.0014686129288747907, -0.0004168102750554681, -0.01855783350765705, -0.010909108445048332, 0.057204894721508026, 0.011592471040785313, -0.08239875733852386, -0.06728243827819824, -0.045711223036050797, 0.025671396404504776, 0.01990809291601181, 0.02336607500910759, 0.01181477028876543, -0.049004536122083664, 0.005133455619215965, 0.027252187952399254, 0.06636030972003937, -0.0007291606743820012, -0.03747793287038803, 0.029096443206071854, -0.004639458376914263, -0.0705428197979927, -0.03648993745446205, 0.03550194203853607, 0.014153024181723595, 0.037412066012620926, -0.02186761610209942, 0.03879525884985924, -0.015989048406481743, 0.07969824224710464, 0.0018391109770163894, -0.017355773597955704, -0.09669174998998642, 0.026115993037819862, 0.04413042962551117, -0.02334960736334324, 0.03573247417807579, -0.028141383081674576, 0.012045302428305149, -0.009731748141348362, 0.03266969323158264, 0.03981618583202362, -0.02140655182301998, -0.030743101611733437, 0.01817910186946392, -0.051243990659713745, -0.0197598934173584, 0.01745457388460636, -0.07153081893920898, 0.00165283284150064, -0.0008891952456906438, 0.030874835327267647, 0.01704290881752968, -0.018228502944111824, 0.035304345190525055, -0.02053382247686386, 0.02359660714864731, 0.05345051363110542, 0.0037461465690284967, 0.003274790709838271, 0.04613935202360153, -0.0631328597664833, 0.005289888475090265, -0.044690292328596115, -0.004590058699250221, 0.06395619362592697, 0.028734179213643074, 0.02473280020058155, 0.011608937755227089, -0.024452868849039078, 0.09906293451786041, 0.011016140691936016, 0.0050964062102139, -0.0074552432633936405, 0.05526183545589447, -0.00970704760402441, -0.06570164859294891, 0.03041377104818821, -0.004100177902728319, 0.021093687042593956, 0.02754858508706093, -0.05974074825644493, -0.025934861972928047, 0.01840963400900364, -0.0077310586348176, -0.019941026344895363, -0.03599594160914421, 0.00047470058780163527, -0.08022516965866089, 0.008595554158091545, 0.014095391146838665, 0.014045991003513336, 0.0027705018874257803, -0.037049800157547, 0.004413043148815632, 0.0167053434997797, -0.0692254975438118, -0.027762651443481445, -0.04034311696887016, -0.016153713688254356, -0.047028549015522, 0.02349780686199665, -0.030018571764230728, 0.04360349848866463, -0.10683516412973404, 0.007821625098586082, 0.032933156937360764, -0.0005624365876428783, 0.04004671797156334, 0.015009285882115364, -0.0070106456987559795, -0.07238707691431046, -0.04732494801282883, 0.0050881728529930115, -0.016771210357546806, 0.045579489320516586, 0.041364043951034546, -0.06734830886125565, -0.01229230035096407, 0.006199666764587164, -0.009789381176233292, -0.03803779557347298, -0.057303693145513535, -0.044822026044130325, -0.0383341945707798, -0.008006873540580273, -0.022575678303837776, 0.017471039667725563, 0.011114940047264099, 0.021060753613710403, -0.014655254781246185, -0.029359908774495125, -0.012745131738483906, -0.031121833249926567, 0.005475137382745743, -0.03411874920129776, 0.015906713902950287, 0.011040841229259968, -0.021587684750556946, -0.004380109719932079, -0.008155073039233685, -0.02473280020058155, 0.0065660481341183186, -0.032587360590696335, -0.07521933317184448, -0.025062132626771927, 0.020122159272432327, 0.03945392370223999, -0.015420950949192047, 0.05753422528505325, -0.06863269954919815, -0.05229785293340683, 0.029870374128222466, 0.0976138785481453, 0.02433760277926922, -0.03174756467342377, -0.03523847833275795, 0.0915541797876358, 0.07778811454772949, -0.0021180135663598776, 0.055327702313661575, 0.00068747962359339, 0.004705324769020081, 0.057567156851291656, -0.01966109499335289, 0.014325923286378384, 0.0680399015545845, -0.08700940012931824, -0.10070959478616714, -0.025737261399626732, -0.009229517541825771, -0.023777740076184273, -0.011345472186803818, -0.03609474003314972, -0.02796025015413761, -0.0047794245183467865, 0.04399869590997696, 0.007833974435925484, -0.020122159272432327, 0.009542382322251797, -0.04959733411669731, -0.030364369973540306, -0.04831293970346451, 0.04139697924256325, 0.05947728082537651, 0.050881728529930115, 0.028256649151444435, -0.01667241007089615, -0.01025867834687233, 0.08253049105405807, 0.03866352513432503, -0.005335171241313219, 0.04916920140385628, 0.06270472705364227, -0.040507782250642776, 0.018146170303225517, -0.09721867740154266, 0.02672525681555271, 0.047292012721300125, -0.028997644782066345, -0.05526183545589447, 0.024436403065919876, -0.01755337230861187, -0.03421755135059357, -0.0034024068154394627, -0.009303616359829903, 0.018030904233455658, -0.012045302428305149, -0.0026387691032141447, -0.007208244875073433, -0.023909471929073334, 0.06257300078868866, 0.014276523143053055, -0.026988722383975983, 0.049399733543395996, -0.0408041812479496, -0.024452868849039078, -0.002229162957519293, 0.011831237003207207, 0.027779117226600647, 0.018722498789429665, 0.05453730747103691, 0.035930074751377106, -0.013197962194681168, 0.04106764495372772, -0.07693185657262802, -0.006858329754322767, -0.040870048105716705, 0.00504288962110877, -0.03652287274599075, -0.024535201489925385, 0.01667241007089615, 0.0037749630864709616, 0.03252149373292923, 0.0025934861041605473, -0.00476295780390501, -0.035304345190525055, -0.006360216066241264, -0.05157332494854927, 0.039486855268478394, 0.014803454279899597, -0.011880636215209961, -0.04337296634912491, -0.017388707026839256, 0.02619832567870617, 0.032949622720479965, 0.015783214941620827, -0.012893331237137318, 0.010250445455312729, 0.044097498059272766, 0.0008361934451386333, -0.05239665135741234, -0.031072434037923813, 0.030479636043310165, 0.017355773597955704, -0.03800486400723457, 0.07508759945631027, -0.0051005226559937, 0.028602447360754013, -0.02237807959318161, 0.043965764343738556, -0.08562620729207993, 0.05536063760519028, 0.0010523173259571195, 0.0568426288664341, 0.01379075925797224, 0.0035732474643737078, 0.0054216207936406136, -0.050749994814395905, 0.009863480925559998, -0.02323434129357338, 0.035172611474990845, -0.013099162839353085, -0.01928236335515976, -0.009353016503155231, -0.11039194464683533, -0.019842227920889854, -0.011954735964536667, -0.07831504940986633, 0.02585252746939659, 0.028898844495415688, -0.0005825051921419799, -0.02931050956249237, -0.03800486400723457, -0.025786662474274635, 0.006537231616675854, 0.04554655775427818, 0.059543147683143616, 0.028767112642526627, 0.024156469851732254, 0.00008837921632220969, -0.006932429503649473, 0.05664502829313278, 0.03326248750090599, 0.009995212778449059, 0.007294694427400827, 0.017207574099302292, -0.004688858054578304, 0.004515958949923515, -0.00516227213665843, 0.013494361191987991, 0.03471154719591141, -0.031072434037923813, 0.0005588345229625702, 0.03856472671031952, -0.012720432132482529, 0.03451394662261009, 0.016178414225578308, -0.023547207936644554, -0.012218201532959938, 0.020336223766207695, -0.03800486400723457, -0.019694028422236443, -0.03199456259608269, 0.05019013211131096, 0.012341700494289398, -0.06441725790500641, 0.013980125077068806, -0.01667241007089615, 0.01742164045572281, -0.001479933736845851, 0.012506366707384586, -0.06642618030309677, 0.06441725790500641, 0.03869646042585373, -0.028042582795023918, 0.05862101912498474, -0.05019013211131096, -0.10854768753051758, -0.004190744366496801, 0.06379152834415436, 0.009130718186497688, 0.07436306774616241, 0.014391789212822914, -0.05601929873228073, -0.031945161521434784, -0.01484462060034275, -0.02399180456995964, 0.026659389957785606, 0.013535527512431145, 0.05993834510445595, 0.0003308753075543791, -0.03909165784716606, 0.04314243420958519, 0.03919045627117157, 0.008562620729207993, -0.04133111238479614, -0.005919734947383404, 0.020467957481741905, 0.029277576133608818, -0.03760966658592224, -0.015280984342098236, 0.018953030928969383, -0.0009838780388236046, -0.01025867834687233, -0.013379095122218132, -0.021110152825713158, -0.0012596932938322425, -0.03619353845715523, -0.002821959787979722, 0.05918088182806969, 0.04106764495372772, -0.05592050030827522, -0.02931050956249237, 0.001961581176146865, -0.07245294749736786, -0.003618530696257949, -0.014712887816131115, -0.05279184877872467, 0.03892699256539345, -0.008360905572772026, 0.009353016503155231, -0.006220249924808741, -0.04610642045736313, -0.0008048040326684713, 0.012037068605422974, 0.04044191539287567, 0.029886839911341667, -0.002140655182301998, 0.02115955390036106, 0.04040898382663727, -0.010835008695721626, 0.061881400644779205, 0.030380837619304657, 0.022081682458519936, -0.039025790989398956, 0.05368104577064514, -0.07126735150814056, 0.057797688990831375, 0.009229517541825771, -0.00593620166182518, -0.0028651845641434193, 0.04587588831782341, 0.029376376420259476, -0.025440864264965057, 0.04525015875697136, 0.006681314203888178, -0.023053210228681564, -0.007191778160631657, 0.06514178216457367, 0.020435024052858353, -0.03968445584177971, 0.03156642988324165, -0.019496429711580276, 0.017948569729924202, -0.0216370839625597, 0.003311840584501624, -0.025012733414769173, -0.006722480524331331, 0.0321262963116169, 0.04034311696887016, -0.014177723787724972, 0.030825434252619743, -0.017536906525492668, 0.046666283160448074, 0.0005737573374062777, 0.03225802630186081, 0.016515977680683136, -0.013584927655756474, -0.01768510602414608, 0.007150611840188503, 0.06744710355997086, 0.04175924137234688, -0.07456066459417343, 0.01768510602414608, -0.033180154860019684, 0.0012998305028304458, -0.010670342482626438, 0.0006648381240665913, 0.004384226631373167, 0.006920079700648785, -0.05588756874203682, 0.0877339318394661, 0.04179217666387558, 0.040013786405324936, -0.039388056844472885, 0.04093591496348381, -0.01372489333152771, 0.01964462734758854, 0.028273114934563637, -0.012037068605422974, 0.007002412341535091, 0.05377984419465065, 0.0071464949287474155, -0.004182511009275913, 0.014301223680377007, -0.039882052689790726, -0.05391157791018486, -0.004065186716616154, -0.01484462060034275, -0.03612767159938812, -0.01819556951522827, -0.017207574099302292, -0.00914718396961689, -0.022032281383872032, -0.03810366243124008, -0.004168102517724037, -0.03662167116999626, -0.01778390444815159, -0.025638462975621223, -0.02471633441746235, -0.024930398911237717, 0.08668006956577301, -0.03225802630186081, 0.023925937712192535, 0.04175924137234688, 0.017158174887299538, -0.046172287315130234, -0.029376376420259476, 0.013568460941314697, -0.05091466009616852, 0.04584295302629471, 0.01829436793923378, -0.005450437311083078, -0.011633637361228466, 0.021340684965252876, -0.001649745274335146, 0.015182184986770153, -0.043076567351818085, 0.042582571506500244, -0.044690292328596115, 0.02855304628610611, -0.04426216334104538, 0.013197962194681168, -0.017339307814836502, 0.0778539851307869, 0.005413387436419725, -0.044097498059272766, -0.019315296784043312, 0.0003380794369149953, -0.021291285753250122, -0.020467957481741905, 0.010900874622166157, -0.013189729303121567, 0.020929021760821342, 0.028223715722560883, 0.035304345190525055, 0.03130296617746353, 0.02585252746939659, 0.018080303445458412, 0.025819595903158188, -0.05121105909347534, 0.012621632777154446, 0.04465736076235771, 0.0030854251235723495, -0.015758516266942024, -0.03079250082373619, -0.000009109684469876811, 0.052989449352025986, -0.008237405680119991, 0.014128324575722218, -0.04511842504143715, -0.025325598195195198, 0.014984586276113987, -0.0032233328092843294, -0.013584927655756474, 0.03192869573831558, 0.06379152834415436, 0.04584295302629471, 0.0519685223698616, -0.03767552971839905, -0.002035680692642927, 0.05183678865432739, -0.004268960561603308, 0.02978803962469101, 0.03807073086500168, -0.02386007271707058, 0.008859018795192242, 0.009945813566446304, 0.04063951596617699, 0.04541482403874397, 0.0020274475682526827, 0.04633695259690285, -0.033048421144485474, -0.04712734743952751, -0.001856606686487794, 0.024815132841467857, -0.012012368999421597, -0.01705937460064888, -0.007237061392515898, 0.06398912519216537, -0.03994791954755783, 0.01865663379430771, -0.013626093976199627, 0.00908131804317236, 0.042483773082494736, -0.00920481700450182, -0.005372221115976572, -0.009995212778449059, -0.03006797283887863, 0.04775307700037956, 0.023217875510454178, -0.033822353929281235, -0.060498207807540894, -0.008480288088321686, -0.011123173870146275, -0.025819595903158188, 0.0098799467086792, -0.022855611518025398, 0.01829436793923378, -0.05789649114012718, -0.037774331867694855, -0.04633695259690285, 0.0014233299298211932, -0.007018879055976868, -0.04103471338748932, 0.0629681944847107, -0.035897139459848404, 0.00414134468883276, -0.01254753302782774, -0.021044287830591202, 0.009106017649173737, 0.008793152868747711, -0.013716659508645535, 0.0556241013109684, -0.040013786405324936, 0.00007165534771047533, 0.0253420639783144, -0.004960556980222464, 0.0581270232796669, 0.03622647374868393, -0.03744499757885933, -0.10057786107063293, -0.009550615213811398, -0.0407712496817112, 0.033311888575553894, -0.017256973311305046, -0.0015313917538151145, 0.006973595824092627, -0.009567081928253174, 0.031582895666360855, -0.02978803962469101, -0.023415474221110344, 0.07712945342063904, 0.01781683787703514, 0.011304305866360664, -0.0011866227723658085, -0.043965764343738556, -0.06504298746585846, 0.01372489333152771, -0.025506729260087013, 0.004089886322617531, 0.021834682673215866, 0.0007682687719352543, 0.05588756874203682, -0.01817910186946392, -0.04126524552702904, -0.07251881062984467, -0.008204472251236439, -0.0005917676608078182, -0.03520554304122925, -0.006668964400887489, 0.046435751020908356, -0.033822353929281235, 0.034678615629673004, 0.032472092658281326, -0.0051005226559937, 0.004791774321347475, 0.0035979473032057285, 0.05130985751748085, 0.056809697300195694, 0.020336223766207695, -0.015742048621177673, 0.05628276616334915, 0.013066230341792107, -0.013304995372891426, 0.029228176921606064, 0.04146284610033035, -0.0037873131223022938, -0.005890918429940939, -0.05753422528505325, 0.04785187542438507, 0.004725907929241657, 0.023909471929073334 ]
729,440
tinytuya.core
set_version
null
def set_version(self, version): # pylint: disable=W0621 self.version = version self.version_str = "v" + str(version) self.version_bytes = str(version).encode('latin1') self.version_header = self.version_bytes + PROTOCOL_3x_HEADER self.payload_dict = None if version == 3.2: # 3.2 behaves like 3.3 with device22 self.dev_type="device22" if self.dps_to_request == {}: self.detect_available_dps()
(self, version)
[ 0.030093850567936897, 0.027780352160334587, -0.04116559773683548, 0.0207847710698843, 0.023447131738066673, -0.016699425876140594, -0.0306263230741024, -0.002976794261485338, -0.01019041333347559, 0.018104050308465958, -0.007197553291916847, -0.003750255797058344, -0.05269636958837509, -0.009483510628342628, 0.027651824057102203, 0.002343336120247841, 0.04770215228199959, -0.00998844113200903, 0.05438559129834175, -0.011099288240075111, 0.00720214331522584, 0.030387628823518753, -0.03697926551103592, 0.07274670153856277, 0.04318531975150108, 0.035840876400470734, 0.008877594023942947, 0.028294462710618973, 0.05295342579483986, -0.06841347366571426, -0.02434682473540306, -0.021151993423700333, 0.03543693199753761, 0.04347909614443779, -0.018434548750519753, -0.00017615185061004013, 0.029726628214120865, -0.055120036005973816, -0.08380008488893509, 0.053687870502471924, 0.029102351516485214, 0.04072492942214012, -0.004532897844910622, -0.0025177665520459414, -0.05225570499897003, 0.022125132381916046, -0.01321999542415142, 0.039806876331567764, 0.03672220930457115, 0.006922136526554823, -0.006261136848479509, 0.017176814377307892, 0.011907177045941353, -0.054459039121866226, -0.063933365046978, -0.0006615735474042594, 0.08380008488893509, 0.0793934166431427, -0.010208774358034134, 0.05357770249247551, -0.018985383212566376, 0.03279293328523636, -0.041496098041534424, -0.02186807617545128, -0.047775596380233765, 0.009639579802751541, 0.04057804122567177, 0.00935039296746254, 0.010557635687291622, 0.05207209289073944, 0.03503298759460449, 0.018590617924928665, -0.05152126029133797, -0.015138731338083744, 0.010530093684792519, 0.034114934504032135, -0.07153486460447311, 0.034959543496370316, -0.01142978761345148, -0.03132404386997223, 0.03962326422333717, 0.0035781203769147396, 0.02434682473540306, -0.019003743305802345, 0.010071066208183765, 0.019793272018432617, -0.02285957522690296, 0.025577019900083542, 0.0007533790776506066, 0.05339409410953522, -0.04667392745614052, 0.047812316566705704, -0.03613465279340744, 0.036630403250455856, 0.014560355804860592, -0.023851076140999794, 0.04564570635557175, -0.08291874825954437, -0.005815879907459021, 0.0256321020424366, -0.02478749118745327, -0.010814690962433815, -0.05611153692007065, -0.02811085246503353, -0.04564570635557175, -0.07946686446666718, -0.032058488577604294, 0.015478411689400673, 0.008652670308947563, -0.005604727193713188, 0.015625299885869026, -0.039549820125103, -0.021721187978982925, 0.03613465279340744, 0.006453928537666798, -0.014202314428985119, -0.009722204878926277, -0.056368593126535416, 0.01366066187620163, 0.02649507485330105, 0.03595104441046715, 0.03020401857793331, -0.022400548681616783, 0.06889086961746216, -0.012568176724016666, 0.010970760136842728, -0.00840479601174593, 0.017185993492603302, 0.07326080650091171, -0.0699925348162651, 0.03145257383584976, 0.010649440810084343, -0.007477560080587864, -0.010750426910817623, -0.024310102686285973, -0.079099640250206, -0.07535397261381149, 0.005586366169154644, -0.01490921713411808, -0.022841215133666992, -0.06698130816221237, 0.0012416697572916746, 0.014991842210292816, -0.08152330666780472, -0.02333696372807026, 0.007495921105146408, 0.006885414477437735, -0.0698823630809784, -0.062244147062301636, -0.02352057583630085, 0.048620205372571945, 0.037071071565151215, 0.03466576710343361, -0.06584291905164719, -0.03505134955048561, -0.005444067530333996, -0.02939612977206707, -0.12301940470933914, 0.03429854288697243, 0.02397960238158703, 0.0047279843129217625, -0.02980007417500019, 0.023428769782185555, 0.006623768713325262, 0.019462771713733673, -0.005632268730551004, -0.08769264072179794, -0.05666236951947212, 0.031636182218790054, 0.031158795580267906, -0.00890972651541233, 0.020417548716068268, 0.023245159536600113, 0.025723908096551895, -0.020252298563718796, 0.0781448632478714, -0.007950358092784882, -0.054275427013635635, 0.040320985019207, -0.04851004108786583, 0.00977728795260191, 0.0015641365898773074, -0.01366066187620163, 0.05276981741189957, 0.01282523199915886, 0.028606601059436798, 0.002280219690874219, 0.05313703790307045, -0.009286128915846348, -0.012604898773133755, 0.03297654539346695, -0.01676368899643421, 0.02056443691253662, -0.01893029920756817, 0.009024483151733875, -0.00745460856705904, 0.06859708577394485, -0.07983408123254776, 0.032425712794065475, -0.01723189651966095, 0.023612381890416145, -0.0007407558150589466, -0.008827101439237595, 0.02519143559038639, 0.012531453743577003, -0.020472632721066475, 0.06900103390216827, -0.010475010611116886, 0.009905816055834293, -0.012393745593726635, 0.0011487166630104184, 0.03125059977173805, 0.043368928134441376, 0.014367564581334591, -0.031599462032318115, -0.07858552783727646, 0.0012795395450666547, -0.021555937826633453, 0.009997622109949589, 0.002823019865900278, 0.02352057583630085, 0.017599118873476982, -0.0000363098006346263, 0.0012301940005272627, -0.005912275984883308, 0.005141109228134155, 0.021078549325466156, -0.025448491796851158, -0.028202656656503677, 0.03020401857793331, 0.04836314916610718, 0.05152126029133797, 0.003713533515110612, 0.03866848722100258, 0.005122748203575611, 0.0069175465032458305, -0.012852773070335388, 0.06947842240333557, -0.012357023544609547, -0.06176675856113434, 0.07924652844667435, -0.03736484795808792, 0.05034615099430084, 0.03428018465638161, -0.006958858575671911, -0.00829921942204237, -0.052365873008966446, -0.0029630232602357864, 0.007032303139567375, -0.02034410461783409, -0.009575316682457924, -0.047812316566705704, 0.0018074213294312358, 0.021574297919869423, -0.0066375392489135265, -0.05589120462536812, 0.03764026612043381, -0.008629719726741314, 0.039549820125103, -0.0517415925860405, -0.07726352661848068, -0.0011125681921839714, -0.05758042633533478, -0.0004355024721007794, 0.02269432507455349, 0.01638728566467762, 0.033472295850515366, 0.0005098075489513576, 0.015505952760577202, 0.029506295919418335, 0.02754165790975094, 0.025962602347135544, -0.012026524171233177, -0.003745665308088064, 0.044801097363233566, -0.09599185734987259, -0.041055429726839066, -0.0390724316239357, 0.011319621466100216, 0.005090616177767515, 0.07976064085960388, 0.006743115838617086, 0.03574907034635544, 0.07002925127744675, 0.001424133195541799, -0.0053660329431295395, 0.007289358880370855, 0.029083989560604095, -0.0048106093890964985, -0.044801097363233566, -0.03270112723112106, 0.04667392745614052, 0.03545529395341873, 0.01640564762055874, -0.022125132381916046, 0.05287998169660568, -0.02039918676018715, 0.08299219608306885, 0.06485142558813095, -0.024236658588051796, 0.004351581912487745, -0.00035603329888544977, 0.030718129128217697, 0.03303162753582001, 0.02831282466650009, -0.02396124228835106, 0.05607481300830841, -0.015570216812193394, -0.002843676134943962, -0.029083989560604095, 0.02583407424390316, 0.04788576066493988, -0.018205035477876663, -0.035363487899303436, 0.04259776324033737, 0.03209521248936653, 0.0057653868570923805, -0.0007746090996079147, 0.012347843497991562, 0.014514453709125519, 0.0036079571582376957, 0.0030869608744978905, -0.005678171757608652, 0.04645359516143799, 0.02144576981663704, 0.008776607923209667, 0.08108264207839966, -0.03510643169283867, -0.024622241035103798, -0.005021762102842331, -0.05589120462536812, 0.03973343223333359, 0.01038320455700159, 0.04450731724500656, 0.005444067530333996, -0.011530773714184761, -0.03367426618933678, -0.022565798833966255, 0.003164995461702347, 0.05772731453180313, 0.02482421323657036, -0.021721187978982925, -0.034316904842853546, -0.019187355414032936, -0.002268743934109807, -0.024640602990984917, 0.0237592700868845, -0.02122543752193451, -0.024934381246566772, -0.013247537426650524, -0.0925399661064148, -0.04564570635557175, 0.05214553698897362, 0.051998648792505264, 0.043809596449136734, -0.06944169849157333, 0.003164995461702347, -0.04465420916676521, 0.02647671289741993, -0.025962602347135544, -0.04241415113210678, 0.04395648464560509, -0.010585176758468151, 0.024438630789518356, -0.0398435965180397, -0.01640564762055874, -0.0035505786072462797, 0.004177151247859001, 0.010768787935376167, 0.0068670534528791904, -0.0266419630497694, -0.04263448715209961, 0.0035827106330543756, -0.010961580090224743, 0.04289153963327408, -0.02229038067162037, -0.07135125249624252, -0.006219824310392141, -0.02456715889275074, -0.06532881408929825, -0.00270826299674809, -0.004167970735579729, 0.006582456175237894, 0.006706393789499998, 0.024493714794516563, -0.000468208163511008, -0.004888643976300955, -0.018608979880809784, 0.03899898752570152, 0.06859708577394485, 0.002373172901570797, 0.08365319669246674, 0.03921931982040405, -0.017892897129058838, -0.009171372279524803, 0.06070181354880333, -0.0398435965180397, -0.0153131615370512, 0.014000342227518559, -0.04057804122567177, -0.022529074922204018, -0.016469910740852356, -0.018948661163449287, 0.028019046410918236, 0.015202995389699936, -0.0068349214270710945, 0.06334581226110458, -0.010741246864199638, -0.026531796902418137, -0.047334928065538406, -0.030332544818520546, -0.03613465279340744, -0.0470411516726017, -0.022639242932200432, 0.04718803986907005, 0.0542387031018734, 0.0768963098526001, -0.0007809207309037447, 0.043589264154434204, 0.039366208016872406, 0.023612381890416145, 0.04770215228199959, 0.011099288240075111, 0.05758042633533478, -0.0019107024418190122, 0.020325742661952972, -0.015616119839251041, 0.007950358092784882, 0.02330024167895317, -0.018434548750519753, 0.02205168642103672, 0.06084870174527168, -0.015303980559110641, -0.0025384228210896254, -0.031122073531150818, -0.012843593023717403, -0.019389327615499496, -0.010263857431709766, -0.041018709540367126, -0.010172052308917046, 0.004661425482481718, -0.031801432371139526, 0.005742435809224844, 0.030718129128217697, -0.00467519648373127, -0.005329310894012451, -0.01501020323485136, -0.021941520273685455, -0.041055429726839066, -0.07304047793149948, -0.08791296929121017, -0.01481741201132536, -0.03488609939813614, -0.04072492942214012, 0.0021034940145909786, -0.007156240753829479, -0.04660048335790634, 0.00789068453013897, 0.0011447001015767455, -0.06283169984817505, -0.047334928065538406, 0.008960219100117683, -0.03563890606164932, 0.03697926551103592, -0.04134920984506607, 0.040835097432136536, 0.04748181626200676, -0.03450051695108414, -0.03156273812055588, -0.011521593667566776, -0.009869094006717205, -0.02957974001765251, 0.018948661163449287, 0.06492486596107483, -0.011723565869033337, -0.005774567369371653, -0.015037745237350464, -0.03701598942279816, -0.06070181354880333, -0.043993208557367325, -0.033692628145217896, 0.04513159766793251, 0.01238456554710865, 0.04131248593330383, -0.030754851177334785, -0.03345393389463425, -0.01038320455700159, -0.024640602990984917, 0.008078886196017265, 0.011191093362867832, -0.03903570771217346, 0.01635056361556053, -0.025540297850966454, 0.009869094006717205, 0.028680045157670975, 0.07028631120920181, -0.03822781890630722, -0.00031730285263620317, 0.014799050986766815, 0.0192975215613842, -0.04039442911744118, -0.030718129128217697, -0.02080313116312027, -0.036832377314567566, 0.04267120733857155, -0.021500853821635246, -0.03764026612043381, 0.004333220887929201, 0.031140433624386787, 0.002767936559394002, -0.039366208016872406, 0.012393745593726635, 0.025136353448033333, 0.04318531975150108, 0.03819109871983528, 0.04303843155503273, -0.06029786914587021, 0.024512074887752533, -0.02796396240592003, -0.005255866330116987, 0.022529074922204018, 0.02623801864683628, 0.07572119683027267, -0.07623530924320221, 0.01701156422495842, -0.05287998169660568, -0.01720435544848442, -0.06415370106697083, 0.05210881680250168, 0.022639242932200432, -0.03826454281806946, 0.015074467286467552, -0.022620880976319313, 0.05108059570193291, 0.04215709865093231, 0.008840871974825859, -0.014082967303693295, 0.03837471082806587, -0.05401837080717087, -0.07976064085960388, -0.004806019365787506, -0.04792248457670212, -0.05166814848780632, -0.05108059570193291, -0.04593948647379875, -0.031158795580267906, 0.03255423903465271, -0.00044468301348388195, -0.017066646367311478, -0.031379129737615585, -0.044617485255002975, 0.014000342227518559, 0.02353893592953682, -0.040835097432136536, -0.00372959952801466, -0.02017885446548462, 0.03338048979640007, -0.01103502418845892, 0.036226458847522736, -0.017461411654949188, -0.04197348654270172, -0.01156749576330185, -0.002816134365275502, 0.028735129162669182, -0.019077187404036522, -0.01955457590520382, -0.000457593152532354, -0.017158452421426773, 0.009052025154232979, -0.01029139943420887, 0.039549820125103, -0.021353965625166893, 0.054312147200107574, 0.04895070567727089, -0.02710099145770073, -0.027247879654169083, 0.01995852030813694, 0.09209930151700974, 0.019224077463150024, 0.02396124228835106, 0.005604727193713188, 0.023226797580718994, 0.038301266729831696, -0.045682430267333984, -0.010787148959934711, 0.022363826632499695, 0.04961170628666878, 0.037934042513370514, 0.022180214524269104, -0.0232818815857172, -0.04891398549079895, -0.1015736311674118, -0.006903775501996279, 0.0011774058220908046, -0.05229242518544197, 0.011402246542274952, -0.026531796902418137, -0.05504659190773964, 0.021739548072218895, 0.041679710149765015, -0.010484190657734871, 0.0629785880446434, 0.010153691284358501, -0.018553895875811577, 0.026605241000652313, 0.0008876446518115699, -0.07976064085960388, 0.09334785491228104, -0.003309589112177491, -0.018838493153452873, 0.04557226225733757, 0.058278147131204605, -0.062464479357004166, -0.07329753041267395, -0.02289629727602005, 0.04120231792330742, 0.0007969866856001318, 0.036648765206336975, -0.0339864045381546, -0.023392047733068466, 0.008487421087920666, 0.07755731046199799, 0.01187963504344225, -0.011411426588892937, -0.03808093070983887, 0.01302720420062542, -0.013513773679733276, -0.04362598434090614, 0.017562396824359894, -0.030277462676167488, 0.055781036615371704, -0.0011797009501606226, 0.0353267677128315, 0.010355663485825062, -0.030828295275568962, -0.032040126621723175, -0.005861782934516668, -0.004055508878082037, 0.07586808502674103, 0.041055429726839066, 0.0692213624715805, 0.008372663520276546, 0.026972463354468346, 0.0010746984044089913, 0.010897316038608551, 0.04975859448313713, -0.02034410461783409, -0.01782863214612007, 0.01658007688820362, 0.0008067410672083497, -0.01571710593998432, -0.035565461963415146, 0.003330245381221175, 0.01615777239203453, 0.0020495583303272724, 0.014973481185734272, -0.013192454352974892, 0.03943965211510658, 0.00045185533235780895, -0.004142724443227053, -0.05141109228134155, 0.013275078497827053, 0.047812316566705704, -0.0222720205783844, 0.06554914265871048, 0.039549820125103, 0.02370418608188629, -0.054459039121866226, -0.028000684455037117, -0.0033990994561463594, 0.015395786613225937, -0.00681656040251255, -0.0015297095524147153, 0.03382115438580513, 0.03529004380106926, -0.05460592731833458, 0.00003236503471271135, -0.0006793608772568405, -0.00531094940379262, -0.00040968216490000486, 0.007642809767276049, 0.019811632111668587, 0.028276100754737854, -0.08203741908073425, -0.037291403859853745, -0.016029244288802147, -0.05901259183883667, 0.07550086081027985, -0.01576300896704197, -0.028037406504154205, -0.021060187369585037, -0.01052091270685196, -0.04983203858137131, -0.0025200615637004375, -0.04307515174150467, -0.06385992467403412, -0.01083305198699236, -0.01377082895487547, -0.020050326362252235, -0.018315201625227928, 0.022988103330135345, -0.024016324430704117, -0.04112887382507324, 0.06800953298807144, -0.039586544036865234, -0.0052512758411467075, -0.05853520333766937, -0.04770215228199959, -0.05434887111186981, -0.034757573157548904, 0.04296498745679855, 0.01102584321051836, 0.02921251766383648, -0.012210134416818619, 0.03598776459693909, 0.09217274934053421, -0.05523020401597023, 0.019389327615499496, -0.005926046520471573, 0.08526897430419922, -0.05119075998663902, 0.03863176330924034, 0.047114595770835876, 0.012338662520051003, 0.014110509306192398, 0.0133209815248847, 0.01702074520289898, 0.02454879693686962, 0.0045030610635876656, 0.028202656656503677, -0.005320130381733179, 0.035583820194005966, -0.02915743552148342, -0.04740837216377258, 0.0116409407928586, -0.01635056361556053, 0.03385787829756737, 0.006802789401262999, 0.03826454281806946, -0.00456961989402771, -0.044029928743839264, 0.006274907849729061, -0.05585448071360588, -0.017066646367311478, -0.050493039190769196, 0.055964648723602295, 0.000914038741029799, 0.020692965015769005, -0.001398886670358479, 0.01850799471139908, -0.031415849924087524, -0.006839511450380087, 0.0001896357862278819, -0.02058279886841774, 0.0634559765458107, -0.028074130415916443, 0.01092485710978508, 0.029689906165003777, 0.06360286474227905, -0.029561379924416542, -0.014496092684566975, -0.00029894174076616764, 0.0050079915672540665, 0.024438630789518356, -0.01470724493265152, 0.016304660588502884, -0.007472969591617584, 0.00021818156528752297 ]
729,442
tinytuya.CoverDevice
stop_cover
Stop the motion of the cover
def stop_cover(self, switch=1, nowait=False): """Stop the motion of the cover""" self.set_status("stop", switch, nowait=nowait)
(self, switch=1, nowait=False)
[ 0.04048439487814903, 0.01876187138259411, -0.01682414300739765, 0.03358175605535507, -0.04314565286040306, -0.031286418437957764, -0.00605852110311389, 0.08788805454969406, -0.010387224145233631, 0.010944425128400326, -0.07458176463842392, 0.01131034828722477, -0.00003664428004412912, 0.005127080716192722, -0.026180129498243332, 0.020109133794903755, 0.023701831698417664, -0.04028479754924774, 0.040983378887176514, 0.005476370919495821, -0.0007261285209096968, 0.01783043146133423, 0.009896554984152317, -0.015402032993733883, -0.025764307007193565, 0.05226046219468117, -0.023918060585856438, -0.022454367950558662, -0.07451523840427399, -0.053424760699272156, -0.02766045369207859, -0.029490070417523384, -0.009214607067406178, 0.040118470788002014, 0.04760326072573662, 0.03529493883252144, -0.015160856768488884, 0.03070426918566227, -0.05202760174870491, 0.013996555469930172, -0.01759757101535797, -0.018944833427667618, 0.024699805304408073, 0.021023942157626152, -0.032849907875061035, -0.026945240795612335, 0.0034055791329592466, -0.05768277496099472, 0.0615416020154953, -0.012058827094733715, 0.0003144651127513498, -0.016632864251732826, -0.04228074103593826, 0.03246735408902168, -0.002561461180448532, 0.05079676955938339, 0.005318358540534973, 0.01803002506494522, 0.0019429265521466732, -0.0007427613600157201, -0.01714848354458809, -0.021489661186933517, 0.0244835764169693, -0.009921504184603691, 0.05738338455557823, -0.013281342573463917, -0.0026467046700417995, 0.04527465999126434, 0.0009194855811074376, -0.000780185335315764, -0.028791489079594612, 0.022421101108193398, 0.013065115548670292, 0.04307911917567253, 0.012083776295185089, -0.082765132188797, -0.09394241869449615, 0.025431649759411812, -0.0024866133462637663, 0.0001693173690000549, 0.0030791591852903366, 0.010786413215100765, -0.0076927002519369125, 0.04088358208537102, 0.011210550554096699, 0.001508392975665629, 0.05751644819974899, -0.03749047592282295, -0.03045477531850338, 0.001659128232859075, -0.02070791646838188, 0.031036926433444023, -0.01177606824785471, -0.01734807901084423, 0.05798216536641121, 0.06879352778196335, -0.023136315867304802, 0.0001865999511210248, -0.012208523228764534, -0.08296473324298859, 0.0312531515955925, -0.030438141897320747, 0.011576473712921143, -0.05591969192028046, 0.020159032195806503, -0.03326572850346565, 0.010021300986409187, 0.013139963150024414, -0.023086415603756905, -0.022670594975352287, 0.00399188743904233, -0.027244633063673973, -0.09301097691059113, 0.014071404002606869, -0.04843490198254585, -0.006303855683654547, 0.002576014958322048, 0.006204058416187763, -0.04657202214002609, 0.005987831391394138, 0.0033452848438173532, -0.03268358111381531, -0.06550022214651108, -0.082765132188797, 0.05878054350614548, 0.010869577527046204, 0.03951968625187874, 0.08203329145908356, 0.026712380349636078, 0.0531919002532959, -0.030388243496418, -0.008104363456368446, -0.0337979830801487, -0.010170997120440006, 0.003158165141940117, 0.023535503074526787, 0.049632467329502106, -0.012873837724328041, 0.07551320642232895, -0.010179312899708748, -0.062240179628133774, -0.022288039326667786, -0.0060377297922968864, 0.01047038845717907, 0.029074247926473618, 0.03070426918566227, 0.038255590945482254, -0.06323815137147903, -0.01946045272052288, 0.04191482067108154, -0.005443105008453131, 0.023402441293001175, -0.030122118070721626, 0.005867243278771639, 0.013705480843782425, -0.03176877275109291, -0.048135511577129364, 0.07198704034090042, -0.008012882433831692, 0.010669982992112637, 0.0008181290468201041, 0.036758631467819214, -0.0038567455485463142, 0.004056340083479881, 0.028641793876886368, -0.02188885025680065, -0.04846816882491112, 0.08941828459501266, 0.04840163514018059, -0.023219479247927666, -0.01594260148704052, -0.013431038707494736, 0.03256715089082718, 0.011094121262431145, 0.03459635749459267, 0.061508335173130035, -0.013040166348218918, 0.002039605053141713, 0.013705480843782425, -0.008141787722706795, -0.015086008235812187, -0.003607252612709999, -0.06799515336751938, -0.009239556267857552, 0.01589270308613777, 0.009222923777997494, -0.009414201602339745, 0.00405841926112771, -0.0009943334152922034, -0.034662891179323196, 0.04510832950472832, 0.027510758489370346, 0.012857204303145409, 0.011318664997816086, 0.06886006146669388, -0.00501896720379591, 0.05023125186562538, -0.03948642313480377, 0.048767559230327606, 0.01165132224559784, 0.04324544966220856, 0.01975984312593937, 0.010287427343428135, -0.05282597988843918, 0.06812821328639984, 0.032982971519231796, 0.0011653400724753737, 0.018612176179885864, 0.00575081305578351, -0.004873429425060749, -0.02915741130709648, 0.042679931968450546, 0.04673834890127182, 0.002509483601897955, 0.05824829265475273, -0.032716844230890274, -0.0505971759557724, 0.025281954556703568, -0.0029564916621893644, -0.0034949807450175285, -0.049133483320474625, -0.036758631467819214, -0.04610630124807358, 0.021356599405407906, 0.007875661365687847, 0.03699149191379547, -0.007301827892661095, -0.018944833427667618, 0.028142808005213737, -0.02473307028412819, -0.05053064227104187, -0.01662454940378666, -0.029423538595438004, -0.035328205674886703, 0.0022433577105402946, 0.04048439487814903, -0.028209339827299118, -0.008931848220527172, -0.07664424180984497, 0.0062123751267790794, 0.008087730966508389, -0.03183530271053314, -0.01957688108086586, 0.00402515335008502, 0.015560044907033443, -0.013281342573463917, 0.007879819720983505, 0.003567749634385109, -0.0029731246177107096, 0.0708560049533844, 0.06656472384929657, -0.061508335173130035, 0.01258276216685772, 0.008179211057722569, 0.052992306649684906, -0.05332496389746666, -0.026013800874352455, -0.06925924867391586, 0.006070995703339577, -0.0010234409710392356, 0.0018628808902576566, -0.01803002506494522, -0.02175578661262989, 0.03699149191379547, 0.024566741660237312, -0.019493717700242996, -0.0010057685431092978, -0.023152947425842285, 0.016799192875623703, -0.02300325222313404, 0.036958225071430206, -0.06124220788478851, -0.03027181327342987, -0.015959233045578003, -0.027144836261868477, 0.04693794623017311, -0.015909334644675255, -0.013572418130934238, -0.05675133690237999, -0.02666248194873333, 0.05053064227104187, 0.05468885973095894, 0.0007094956235960126, 0.018795138224959373, -0.029057614505290985, -0.04457607865333557, 0.020774448290467262, 0.05409007519483566, 0.017614204436540604, 0.01596754975616932, -0.015909334644675255, 0.06174119561910629, 0.051495350897312164, -0.003291228087618947, 0.060443829745054245, -0.03348195552825928, -0.02175578661262989, 0.007147973868995905, -0.018745237961411476, 0.005272618029266596, 0.0751805528998375, -0.0656665489077568, -0.08988400548696518, -0.00629138108342886, -0.02609696425497532, 0.033964309841394424, 0.030438141897320747, -0.03815579041838646, 0.031419482082128525, -0.02455010823905468, 0.03506207838654518, -0.0020385654643177986, -0.048202041536569595, -0.0030230232514441013, -0.061874259263277054, 0.014645237475633621, -0.008104363456368446, 0.02100730873644352, 0.00837048888206482, 0.06819474697113037, 0.02057485468685627, -0.046838149428367615, 0.005846451967954636, 0.06473510712385178, 0.059578921645879745, 0.010520286858081818, -0.009688643738627434, 0.057283587753772736, -0.016092296689748764, -0.0013243919238448143, -0.05438946932554245, 0.004727891646325588, 0.01392170786857605, -0.028142808005213737, -0.02157282643020153, -0.04151562973856926, 0.004395234398543835, -0.020358625799417496, 0.0024782968685030937, -0.013946657069027424, 0.014778300188481808, -0.03419717028737068, 0.01957688108086586, 0.0011403907556086779, -0.006428602151572704, 0.05748318135738373, 0.017497774213552475, -0.03679189831018448, 0.11709536612033844, 0.008224952034652233, 0.013297975063323975, 0.022903455421328545, 0.013913391157984734, 0.060876283794641495, 0.0082083186134696, 0.027693720534443855, 0.01964341290295124, 0.021655989810824394, 0.027244633063673973, -0.11516595631837845, -0.026329824700951576, -0.01245801616460085, 0.004149899818003178, -0.013780328445136547, -0.00919797457754612, 0.00778418080881238, -0.05282597988843918, 0.010478705167770386, 0.0055886427871882915, 0.01429594773799181, -0.0657663494348526, -0.004790265113115311, -0.0446426086127758, 0.009813390672206879, 0.019127795472741127, -0.014961262233555317, -0.017547672614455223, -0.0066573042422533035, 0.06333795189857483, 0.043411776423454285, -0.007559637073427439, -0.026496153324842453, -0.04766979068517685, 0.03399757668375969, 0.029756195843219757, 0.008865317329764366, -0.038754574954509735, -0.007202030625194311, 0.029223943129181862, -0.06310509145259857, 0.06716351211071014, -0.03245072066783905, 0.030804065987467766, -0.060643427073955536, 0.053790684789419174, -0.027993110939860344, 0.0021601933985948563, -0.011193918064236641, 0.062240179628133774, 0.03205152973532677, -0.03348195552825928, 0.04151562973856926, -0.1061842069029808, 0.013364506885409355, -0.00850355252623558, 0.03752374276518822, -0.015867752954363823, -0.030122118070721626, -0.013846860267221928, -0.09640408307313919, 0.023219479247927666, -0.04564058035612106, -0.05166167765855789, 0.007068967446684837, 0.05735011771321297, -0.005763287656009197, -0.04208114743232727, -0.03991887718439102, -0.01623367704451084, 0.01946045272052288, 0.018412580713629723, 0.03941988945007324, 0.052493322640657425, -0.026828810572624207, -0.013040166348218918, 0.01807992346584797, 0.02934037335216999, -0.016973838210105896, -0.00728935282677412, -0.007276878226548433, -0.03752374276518822, -0.036758631467819214, -0.019477084279060364, -0.021406497806310654, 0.013248076662421227, 0.046472225338220596, -0.028359035030007362, -0.03013875149190426, 0.04610630124807358, -0.025281954556703568, 0.012474648654460907, 0.042247477918863297, -0.011094121262431145, 0.02157282643020153, 0.04148236662149429, -0.03351522237062454, -0.026146864518523216, -0.025764307007193565, 0.0437777005136013, 0.006719677243381739, -0.09128116071224213, 0.022770391777157784, -0.015934284776449203, -0.008249901235103607, 0.04873429238796234, -0.008291482925415039, -0.118093341588974, 0.039752546697854996, 0.02257079817354679, -0.038754574954509735, 0.021306699141860008, -0.007202030625194311, -0.1096438467502594, 0.001790112117305398, 0.07870671898126602, -0.0020759894978255033, 0.06726330518722534, -0.006736310198903084, -0.042979322373867035, -0.013971606269478798, -0.051062896847724915, -0.04361137002706528, 0.02629655972123146, 0.026462888345122337, 0.049200013279914856, -0.0023805787786841393, -0.029739562422037125, 0.05355782434344292, 0.060576893389225006, 0.019377287477254868, 0.0005410878802649677, -0.027028406038880348, -0.013006900437176228, 0.003607252612709999, -0.033847879618406296, 0.003386867232620716, -0.01982637494802475, -0.022653961554169655, 0.01304848212748766, -0.021339965984225273, -0.06170792877674103, -0.025381751358509064, -0.03215132653713226, 0.013971606269478798, 0.04740366339683533, -0.012566129676997662, -0.05798216536641121, -0.039320092648267746, 0.03156917914748192, -0.07504748553037643, 0.013339557684957981, -0.007755073253065348, -0.04873429238796234, -0.039619483053684235, -0.013090064749121666, -0.015975866466760635, 0.013963290490210056, -0.02902434952557087, -0.019011365249753, 0.016341790556907654, 0.019310755655169487, 0.027261266484856606, 0.030671002343297005, 0.004233064129948616, 0.05289250984787941, -0.07331766933202744, 0.030853964388370514, 0.010345641523599625, 0.0877549946308136, -0.05974525213241577, 0.0075180549174547195, -0.06945884227752686, 0.04364463686943054, 0.0589468739926815, 0.03151927888393402, 0.025082360953092575, 0.02423408441245556, -0.0020489611197263002, -0.0068527404218912125, 0.03759027644991875, 0.02143976278603077, -0.007384992204606533, -0.016366738826036453, 0.06463531404733658, 0.018196353688836098, -0.07338420301675797, 0.00275897653773427, -0.061009347438812256, 0.0019169376464560628, -0.02100730873644352, 0.002551065757870674, -0.04424342140555382, 0.022454367950558662, 0.06420285999774933, 0.02591400407254696, 0.038189057260751724, -0.018662074580788612, 0.025015829131007195, -0.006919271778315306, 0.023086415603756905, -0.00004528557474259287, 0.030072219669818878, -0.0032454878091812134, -0.004399392753839493, 0.0028400616720318794, 0.09181341528892517, 0.020292095839977264, -0.022337937727570534, 0.02516552433371544, -0.011443411000072956, -0.028691692277789116, 0.0012485043844208121, 0.0555870346724987, -0.04134930297732353, 0.017514407634735107, -0.009123126044869423, 0.06270590424537659, -0.003657151246443391, 0.030804065987467766, -0.016907306388020515, 0.026246661320328712, -0.028043009340763092, 0.020541587844491005, 0.014370795339345932, -0.010054566897451878, 0.05139555409550667, 0.10052903741598129, -0.009222923777997494, -0.046838149428367615, -0.008665722794830799, -0.019793109968304634, -0.03649250417947769, 0.01877850480377674, -0.03429696708917618, -0.02119027078151703, -0.03472942113876343, -0.016050714999437332, -0.049998391419649124, -0.02188885025680065, 0.014670186676084995, 0.03529493883252144, 0.04470914229750633, -0.0028130332939326763, -0.026828810572624207, -0.05365762114524841, 0.012907103635370731, 0.09327710419893265, 0.015510146506130695, 0.016424953937530518, 0.0877549946308136, 0.03354848921298981, -0.06736310571432114, 0.048335105180740356, 0.02348560467362404, -0.054722126573324203, 0.06430265307426453, -0.005039758048951626, -0.03138621523976326, 0.015169172547757626, 0.029007716104388237, -0.020159032195806503, 0.004707100801169872, -0.017730634659528732, 0.04144909977912903, -0.0003352561907377094, 0.010919475927948952, -0.021306699141860008, 0.0041332668624818325, -0.03171887248754501, 0.025714408606290817, 0.005838135723024607, -0.0404178611934185, -0.0045615630224347115, -0.032733477652072906, -0.027610555291175842, -0.0053890482522547245, -0.00892353244125843, -0.004324544686824083, 0.013098381459712982, 0.02461664006114006, -0.009173025377094746, -0.024899398908019066, -0.000564997608307749, 0.011834283359348774, -0.000054186755733098835, -0.0028525362722575665, -0.010719881393015385, 0.0354280024766922, -0.009430834092199802, -0.008120995946228504, 0.02779351733624935, -0.027361063286662102, 0.051129426807165146, 0.04184828698635101, -0.06011117249727249, -0.08502720296382904, 0.010403856635093689, 0.02280365861952305, -0.021556193009018898, 0.017048686742782593, 0.033847879618406296, 0.0673963651061058, 0.025065727531909943, 0.012166940607130527, -0.07318460196256638, -0.016641180962324142, 0.07551320642232895, -0.0006346477312035859, 0.02157282643020153, 0.011992295272648335, -0.011734486557543278, 0.03033834509551525, -0.04158216342329979, 0.03519514203071594, 0.028941184282302856, -0.017813798040151596, 0.0480024479329586, 0.0018254569731652737, -0.009780124761164188, -0.029739562422037125, 0.020375259220600128, -0.037191085517406464, -0.04314565286040306, -0.03642597422003746, 0.021556193009018898, -0.025132259353995323, -0.009089861065149307, -0.04953267052769661, -0.02205517888069153, 0.007634485140442848, -0.019743211567401886, 0.01318154577165842, -0.005380732007324696, -0.00009979718743124977, 0.04427668824791908, 0.0648016408085823, -0.01932738907635212, -0.04231400787830353, -0.011726169846951962, -0.032101429998874664, -0.013938340358436108, 0.014562073163688183, -0.04274646192789078, -0.00035630716593004763, -0.04334524646401405, -0.06396999955177307, -0.01834605075418949, -0.014404061250388622, 0.009738542139530182, -0.04946614056825638, 0.034962281584739685, -0.06546695530414581, -0.026080332696437836, 0.0003783976717386395, -0.005792395211756229, 0.04564058035612106, 0.06134200468659401, -0.03808926045894623, 0.04989859461784363, -0.042047884315252304, 0.024849500507116318, 0.03040487691760063, -0.002413844456896186, 0.06656472384929657, 0.009921504184603691, -0.029057614505290985, -0.11430104821920395, -0.03855498135089874, -0.003187272697687149, 0.005380732007324696, 0.004395234398543835, -0.008915215730667114, -0.0004883304936811328, 0.03363165259361267, -0.03070426918566227, -0.045407719910144806, -0.04394402727484703, 0.06812821328639984, 0.026130231097340584, 0.012724141590297222, -0.03828885406255722, -0.04467587545514107, -0.03346532583236694, 0.03165234252810478, -0.03220122680068016, -0.0118093341588974, 0.012449699454009533, 0.008345539681613445, 0.06453551352024078, -0.0010629440657794476, -0.06473510712385178, -0.061441801488399506, 0.016582965850830078, -0.0026467046700417995, -0.01708195172250271, 0.005118764005601406, 0.016957206651568413, 0.011593107134103775, 0.01630852371454239, -0.01675761118531227, 0.02468317188322544, 0.010669982992112637, -0.0016923940274864435, 0.02468317188322544, 0.04181502386927605, 0.014645237475633621, -0.015135906636714935, 0.03765680640935898, -0.03692496195435524, -0.015709741041064262, 0.03178540617227554, 0.04750346392393112, 0.01388844195753336, -0.0026009641587734222, -0.041116442531347275, 0.038787841796875, 0.012449699454009533, 0.024633273482322693 ]
729,444
tinytuya.core
turn_off
Turn the device off
def turn_off(self, switch=1, nowait=False): """Turn the device off""" return self.set_status(False, switch, nowait)
(self, switch=1, nowait=False)
[ 0.030316254124045372, 0.03597752004861832, 0.03825542703270912, -0.014471405185759068, -0.03862391412258148, -0.03755195811390877, -0.0424092561006546, 0.06954314559698105, -0.014253664761781693, -0.018524738028645515, -0.07550589740276337, 0.0038251241203397512, -0.020601654425263405, 0.014965509995818138, -0.010007713921368122, 0.020383913069963455, 0.0004786639183294028, -0.01959669403731823, 0.02731812745332718, -0.01741928420960903, 0.021573113277554512, 0.021958347409963608, 0.04659658670425415, 0.0011326721869409084, -0.02127162553369999, 0.03358237072825432, -0.01531724538654089, -0.005594270303845406, -0.0315389558672905, -0.04813752323389053, -0.009429862722754478, 0.00032085401471704245, 0.009262369014322758, 0.00027479339041747153, 0.033716365694999695, 0.05379879102110863, -0.018122754991054535, 0.06421685963869095, -0.036848485469818115, 0.00978159811347723, 0.03738446533679962, -0.04036584123969078, 0.0020319009199738503, -0.005359779577702284, -0.06592529267072678, -0.006054876372218132, 0.012670854106545448, -0.018742479383945465, 0.040265344083309174, 0.02123812772333622, -0.012143251486122608, 0.022745566442608833, -0.05868959054350853, 0.06672925502061844, -0.04498865082859993, 0.01937895454466343, 0.009312617592513561, 0.0018790634348988533, -0.011423030868172646, -0.005694766063243151, -0.042275264859199524, 0.0428447388112545, -0.009664352983236313, -0.0238175205886364, 0.04870699718594551, -0.014220166020095348, -0.010954050347208977, 0.044352177530527115, 0.034470085054636, 0.046429093927145004, -0.04106931388378143, -0.016841433942317963, -0.013826556503772736, 0.004765179008245468, 0.01701730117201805, -0.02458799071609974, -0.044318679720163345, 0.03497256338596344, -0.031522203236818314, -0.008014545775949955, 0.01701730117201805, 0.05366479605436325, -0.008307659067213535, 0.07222303003072739, -0.027552617713809013, -0.0010824243072420359, 0.05949355661869049, -0.01835724525153637, -0.04086831957101822, 0.0005768044502474368, -0.038020938634872437, -0.0051420386880636215, -0.00023658403370063752, -0.008115042001008987, 0.06502082943916321, 0.008517025038599968, -0.03594402223825455, 0.014982259832322598, -0.02415250800549984, -0.05688066408038139, 0.03842291980981827, -0.026564408093690872, 0.013081212528049946, -0.039293885231018066, 0.03400110453367233, -0.06039801985025406, 0.010669311508536339, -0.0013357576681300998, 0.002910192823037505, -0.06518831849098206, -0.0406673289835453, 0.046060606837272644, -0.07684583961963654, 0.008617521263659, -0.005095978267490864, 0.03339812904596329, 0.011699394322931767, -0.015049256384372711, -0.056478679180145264, 0.005979504436254501, -0.04706556722521782, -0.0006903856992721558, -0.05751713737845421, -0.09098226577043533, 0.08126766234636307, 0.04029884561896324, 0.0014906887663528323, 0.06358038634061813, 0.038958899676799774, 0.004040771629661322, -0.06743273138999939, 0.015719229355454445, -0.028038349002599716, 0.002474710810929537, 0.0022046281956136227, 0.007478567771613598, 0.04532363638281822, 0.0018738292856141925, 0.056813664734363556, 0.008659394457936287, -0.05637818202376366, -0.07322799414396286, 0.006121873389929533, 0.010593939572572708, 0.07892275601625443, 0.03319713473320007, 0.03041675128042698, -0.04049983620643616, -0.021539615467190742, 0.028725069016218185, 0.0017921763937920332, 0.007516253739595413, -0.0366474948823452, -0.00665785139426589, -0.05115239694714546, 0.05862259119749069, -0.051386889070272446, 0.0463285967707634, 0.01444628182798624, -0.018223252147436142, -0.014454656280577183, 0.01741928420960903, 0.006255867891013622, 0.008692893199622631, 0.027150634676218033, 0.01959669403731823, -0.07249101996421814, 0.010887052863836288, 0.09473410993814468, -0.05219085514545441, -0.004731680732220411, -0.00291438028216362, 0.04629509896039963, -0.012176749296486378, 0.038054436445236206, 0.04776903614401817, 0.006955151911824942, -0.0038795594591647387, 0.008768265135586262, 0.021774105727672577, 0.005183911882340908, 0.013298953883349895, -0.060666006058454514, -0.02663140557706356, 0.031086722388863564, -0.03376661241054535, -0.018189752474427223, 0.013642314821481705, -0.02232683263719082, 0.012612232007086277, 0.04361520707607269, 0.024236254394054413, 0.03339812904596329, 0.030148761346936226, 0.058522094041109085, -0.0026505785062909126, 0.024219505488872528, -0.04210776835680008, 0.006800220813602209, -0.0014760331250727177, 0.02200859598815441, 0.03651349991559982, 0.004949421621859074, -0.0008018732769414783, 0.01817300356924534, -0.00805223174393177, 0.025911185890436172, -0.004501377698034048, 0.027569366618990898, 0.008977631106972694, -0.005887383129447699, 0.02743537351489067, 0.0023365290835499763, 0.01952969841659069, 0.04472066089510918, -0.04907548427581787, -0.011841763742268085, 0.05540672317147255, 0.0006123966886661947, -0.00013209710596129298, -0.07135207206010818, -0.01704242452979088, -0.009697851724922657, 0.00015466942568309605, -0.001033223234117031, 0.07208903878927231, -0.0243032518774271, -0.025693444535136223, 0.004890799056738615, 0.01227724552154541, 0.004534875974059105, 0.022393830120563507, -0.0039025896694511175, -0.03045024909079075, 0.042677246034145355, 0.010409696958959103, -0.05235834792256355, -0.04951096698641777, -0.07483592629432678, -0.019462700933218002, 0.033465124666690826, -0.009496860206127167, 0.016967052593827248, 0.009329366497695446, 0.037317465990781784, 0.03314688801765442, -0.009974215179681778, -0.0018560331081971526, -0.022243086248636246, -0.02033366449177265, 0.014513278380036354, -0.06619328260421753, 0.041471295058727264, -0.013181708753108978, 0.014689146541059017, -0.07289300858974457, -0.0010018182219937444, -0.013005840592086315, -0.033498622477054596, 0.01751977950334549, 0.022745566442608833, 0.006821157410740852, -0.05751713737845421, 0.01020033098757267, 0.06093399599194527, -0.03875790908932686, 0.01309796143323183, 0.04321322590112686, 0.030684739351272583, -0.00686721783131361, 0.039729367941617966, -0.049745455384254456, -0.054267771542072296, -0.03170644864439964, -0.024822480976581573, 0.038925401866436005, 0.05081741139292717, -0.00798104703426361, -0.02907680533826351, -0.03130446374416351, 0.004677245393395424, -0.006544793490320444, 0.016163086518645287, 0.06217344477772713, -0.04029884561896324, -0.03318038582801819, 0.031522203236818314, 0.06371438503265381, 0.02542545460164547, 0.018122754991054535, 0.040231846272945404, 0.05487074702978134, 0.04053333401679993, 0.03232617303729057, 0.04673058167099953, -0.036881983280181885, -0.026497410610318184, -0.02622942253947258, -0.003429421689361334, -0.02127162553369999, 0.05493774265050888, -0.05674666911363602, -0.07684583961963654, 0.00457256194204092, 0.023382039740681648, -0.014094545505940914, 0.0538322888314724, -0.01449652947485447, 0.06173796206712723, 0.006469421554356813, 0.02415250800549984, -0.03946137800812721, -0.041471295058727264, 0.0019450138788670301, -0.0010510192951187491, 0.010309201665222645, -0.02480573020875454, 0.02743537351489067, 0.02328154258430004, 0.049309972673654556, -0.0004663636500481516, -0.0012499174335971475, 0.01353344414383173, 0.07483592629432678, -0.016598567366600037, -0.023214546963572502, 0.013106336817145348, 0.047266557812690735, 0.0013713499065488577, 0.02083614468574524, -0.043883197009563446, -0.010937300510704517, 0.007838677614927292, -0.03698248043656349, -0.035173553973436356, -0.01974743790924549, 0.04207427054643631, -0.030282756313681602, -0.06368088722229004, 0.027820607647299767, 0.0023742150515317917, 0.019110964611172676, -0.03130446374416351, -0.011397906579077244, -0.024169256910681725, 0.07269201427698135, 0.0027175757568329573, 0.05822060629725456, 0.08012870699167252, 0.0649203360080719, 0.02086964249610901, 0.0075581269338727, 0.011196915060281754, 0.07115107774734497, 0.03339812904596329, -0.006967713590711355, -0.024755483493208885, 0.057249147444963455, 0.00707658426836133, -0.08756539970636368, -0.029880773276090622, -0.03658049553632736, 0.007863801904022694, 0.008977631106972694, -0.03081873431801796, -0.03326413407921791, -0.04944396764039993, 0.004333884455263615, 0.04612760618329048, 0.007796804886311293, -0.03835592418909073, -0.03775294870138168, -0.022611571475863457, 0.04106931388378143, 0.058957576751708984, 0.018240001052618027, -0.035207051783800125, -0.01741928420960903, 0.046764079481363297, 0.04130380228161812, 0.02527471072971821, -0.07744881510734558, 0.03282865136861801, 0.013014215044677258, 0.026296420022845268, 0.00547283748164773, 0.008228099904954433, -0.013215207494795322, 0.006021377630531788, -0.06371438503265381, 0.027569366618990898, 0.024286502972245216, -0.02021642029285431, 0.016816308721899986, 0.050582922995090485, 0.016657190397381783, -0.029261047020554543, -0.02899305894970894, 0.04703206941485405, -0.05175537243485451, -0.06431736052036285, 0.059393059462308884, -0.05868959054350853, 0.03815493360161781, -0.017720771953463554, 0.07135207206010818, -0.02783735655248165, -0.029880773276090622, -0.021841103211045265, -0.08086568117141724, -0.021740606054663658, 0.04696507006883621, -0.042275264859199524, -0.010242204181849957, 0.10009388625621796, 0.020953388884663582, -0.023147549480199814, 0.037518460303545, 0.07115107774734497, 0.016523195430636406, -0.006042314227670431, 0.021841103211045265, 0.012536860071122646, -0.030986227095127106, 0.012545234523713589, 0.037719450891017914, 0.03019900992512703, 0.019027218222618103, -0.020668650045990944, 0.04250975325703621, 0.0035969146993011236, -0.019496198743581772, -0.0018487053457647562, -0.07738181948661804, 0.002185785211622715, 0.03234292194247246, 0.02535845898091793, -0.055942703038454056, -0.000833278289064765, -0.0569811575114727, 0.0249564740806818, 0.020668650045990944, -0.03993035852909088, -0.024638237431645393, 0.03611151501536369, -0.0018570799147710204, -0.03299614414572716, 0.01890997402369976, 0.056478679180145264, -0.0353410467505455, -0.04076782613992691, -0.0026422040536999702, -0.007914049550890923, -0.02557619847357273, 0.04569212347269058, -0.04703206941485405, -0.07805179059505463, -0.004026115871965885, 0.0072440775111317635, -0.0044134436175227165, 0.018558237701654434, -0.015652231872081757, -0.11061245203018188, -0.00025189394364133477, 0.06495383381843567, 0.053095318377017975, 0.06582479923963547, 0.0016477135941386223, -0.0033142701722681522, 0.007227328140288591, -0.024571239948272705, -0.06234093755483627, 0.035106558352708817, 0.0297970250248909, 0.013575317338109016, -0.009538733400404453, -0.020484408363699913, 0.04127030447125435, 0.022762315347790718, -0.002832727273926139, -0.0533968061208725, -0.009429862722754478, 0.005996253807097673, -0.008676143363118172, -0.0258274395018816, -0.023616530001163483, -0.029344795271754265, -0.0383894219994545, 0.0056738294661045074, -0.025844188407063484, -0.05326281115412712, -0.02731812745332718, 0.011372783221304417, -0.028591075912117958, 0.05085090920329094, -0.00280969706363976, -0.08589047193527222, -0.05346380174160004, 0.0009882093872874975, -0.03199118748307228, 0.012344243004918098, -0.02560969814658165, -0.10686060786247253, -0.0280550979077816, 0.010937300510704517, -0.008860385976731777, -0.018089257180690765, -0.036078017204999924, -0.018189752474427223, 0.029696529731154442, 0.02830633707344532, 0.020517906174063683, 0.035106558352708817, 0.012871846556663513, 0.008341156877577305, -0.04927647486329079, 0.029311295598745346, -0.016456199809908867, 0.04006435349583626, -0.019144464284181595, -0.001632011029869318, -0.0041203307919204235, -0.004664683248847723, 0.04813752323389053, -0.005426777061074972, -0.014362534508109093, -0.005724077112972736, 0.0037811570800840855, 0.014831515960395336, -0.005560771562159061, 0.0335991196334362, -0.008676143363118172, 0.010702810250222683, 0.0516548790037632, 0.03627900779247284, -0.06314490735530853, -0.01701730117201805, -0.05607669800519943, -0.003996804356575012, -0.018842976540327072, 0.004019835032522678, -0.07443394511938095, -0.010593939572572708, 0.018457742407917976, 0.0009976308792829514, 0.004740055184811354, -0.039327383041381836, 0.03842291980981827, 0.030550744384527206, -0.006092562340199947, -0.031522203236818314, -0.021723857149481773, 0.031086722388863564, -0.03467107564210892, -0.058890581130981445, 0.01887647435069084, 0.019261708483099937, -0.004920110572129488, -0.0091618737205863, -0.012017630971968174, -0.051822371780872345, 0.003337300382554531, 0.029344795271754265, 0.01751977950334549, 0.06900716572999954, -0.0023155922535806894, 0.05982854217290878, -0.009530358016490936, 0.05125289410352707, -0.034805070608854294, 0.02706688828766346, -0.03450358286499977, 0.020501157268881798, 0.017586776986718178, -0.038925401866436005, 0.07865476608276367, 0.09359515458345413, -0.037250470370054245, -0.01850798912346363, 0.018206501379609108, -0.03999735787510872, -0.004786116071045399, -0.10324275493621826, -0.016992177814245224, 0.03122071735560894, -0.026782149448990822, 0.07496991753578186, 0.0007741322624497116, -0.024068761616945267, -0.04133730009198189, -0.012980716302990913, 0.0424092561006546, 0.014890138059854507, -0.02626292034983635, -0.028540827333927155, 0.007055647671222687, 0.030148761346936226, 0.02284606173634529, 0.01045157015323639, 0.08930733054876328, 0.01872573047876358, -0.003762314096093178, 0.03597752004861832, -0.04334722086787224, -0.0023532782215625048, 0.03336462751030922, -0.04294523596763611, -0.028172342106699944, -0.01469752099364996, 0.03344837576150894, -0.019295208156108856, -0.01767052337527275, 0.00999933946877718, 0.06425035744905472, 0.04813752323389053, -0.018156254664063454, -0.008064793422818184, -0.017385786399245262, -0.05621068924665451, -0.04334722086787224, 0.020065676420927048, -0.0012834160588681698, 0.008127603679895401, -0.025659944862127304, -0.038523416966199875, -0.01289696991443634, -0.029529036954045296, -0.0025249586906284094, 0.011121543124318123, 0.04043284058570862, -0.015903471037745476, -0.04870699718594551, -0.014178292825818062, 0.06036451831459999, -0.012369366362690926, -0.023214546963572502, -0.025324959307909012, 0.030282756313681602, 0.06920816004276276, 0.008751515299081802, 0.03584352880716324, 0.02477223239839077, 0.06592529267072678, -0.011490028351545334, -0.003705785144120455, -0.07034710794687271, 0.006335427053272724, 0.007256639190018177, -0.05745013803243637, -0.007612562272697687, -0.03184044361114502, 0.03416859731078148, 0.025810688734054565, 0.03758545592427254, -0.021991847082972527, 0.009815096855163574, 0.03460408002138138, 0.003534104907885194, 0.05088441073894501, -0.018641984090209007, -0.036814987659454346, 0.006146997679024935, -0.006151184905320406, 0.0494774654507637, 0.0076502482406795025, 0.0033352067694067955, 0.01229399535804987, 0.012461488135159016, -0.04113630950450897, -0.048439010977745056, 0.012360991910099983, -0.010384573601186275, -0.007449256256222725, -0.05714865028858185, 0.01083680521696806, -0.040265344083309174, 0.006356363650411367, -0.054736752063035965, -0.012093002907931805, 0.02790435403585434, -0.02492297627031803, 0.01164077129215002, 0.005514711141586304, -0.01763702556490898, 0.005569146014750004, 0.028239339590072632, -0.009329366497695446, 0.008910633623600006, -0.03376661241054535, -0.07436694204807281, -0.05574170872569084, -0.038489919155836105, -0.016841433942317963, 0.05637818202376366, 0.0015901378355920315, -0.07952573150396347, 0.0009212121367454529, -0.035642534494400024, 0.019261708483099937, 0.028976310044527054, 0.04857300594449043, -0.05755063518881798, -0.021656859666109085, -0.03530754894018173, -0.0017021488165482879, 0.011674270033836365, 0.037250470370054245, -0.041370801627635956, 0.04472066089510918, -0.02123812772333622, 0.04636209458112717, 0.043045733124017715, 0.013583691790699959, 0.008228099904954433, 0.041906777769327164, -0.05714865028858185, -0.11061245203018188, -0.0383894219994545, -0.0009159779874607921, 0.033280882984399796, 0.005162975285202265, -0.004865675233304501, 0.0569811575114727, -0.003119559260085225, -0.04693157225847244, -0.03956187516450882, -0.0499129481613636, 0.09339416027069092, 0.014965509995818138, 0.00965597853064537, -0.030316254124045372, -0.06197245419025421, -0.03122071735560894, 0.033465124666690826, 0.001483360887505114, -0.018005510792136192, 0.04173928499221802, 0.01661531813442707, 0.04549113288521767, 0.017385786399245262, -0.041906777769327164, -0.04857300594449043, 0.022343581542372704, 0.023030303418636322, -0.003337300382554531, -0.01730204001069069, -0.003337300382554531, 0.015292122028768063, 0.007043085526674986, -0.01825674995779991, 0.014094545505940914, -0.03671449050307274, 0.006879779975861311, 0.015518237836658955, 0.0825406089425087, 0.0029897522181272507, -0.032108429819345474, 0.05423427000641823, -0.05172187462449074, -0.038020938634872437, -0.011129917576909065, 0.11912110447883606, -0.05637818202376366, -0.0028997245244681835, -0.0441511869430542, 0.0066285403445363045, 0.0167995598167181, 0.005782700143754482 ]
729,445
tinytuya.core
turn_on
Turn the device on
def turn_on(self, switch=1, nowait=False): """Turn the device on""" return self.set_status(True, switch, nowait)
(self, switch=1, nowait=False)
[ 0.005251491907984018, 0.006180441007018089, 0.020637735724449158, 0.005146880634129047, 0.030295459553599358, -0.011105545796453953, -0.013591112568974495, 0.06015573814511299, -0.02440374530851841, -0.007532020565122366, -0.05660731717944145, -0.016980521380901337, 0.015549438074231148, 0.04874053969979286, -0.02460459992289543, -0.047100234776735306, 0.007339535281062126, -0.012528260238468647, -0.0022031159605830908, 0.017122793942689896, 0.02821996994316578, 0.02336600050330162, 0.0745837390422821, 0.001250106142833829, -0.016553707420825958, 0.06229817867279053, -0.006736973766237497, 0.007163788191974163, -0.016687609255313873, -0.04833883419632912, 0.008896153420209885, -0.026931157335639, 0.02587667480111122, -0.003950126469135284, 0.03382714092731476, 0.04947700351476669, -0.007657554000616074, 0.02972637303173542, -0.028086068108677864, 0.019382398575544357, 0.02793542668223381, -0.02232825569808483, -0.0009917160496115685, 0.007988126017153263, -0.07451678812503815, 0.002038876060396433, 0.0142104122787714, 0.027634145691990852, 0.08395691961050034, -0.01804337278008461, -0.009632617235183716, -0.0101682273671031, -0.04733456298708916, 0.026730302721261978, -0.055234815925359726, 0.024085726588964462, 0.037526197731494904, -0.006213916931301355, -0.0059837717562913895, -0.013206142000854015, -0.02333252504467964, 0.0395682156085968, 0.012126552872359753, 0.006778818555176258, 0.034379489719867706, -0.028337134048342705, -0.010477877222001553, 0.035919368267059326, 0.03689016029238701, 0.03588589280843735, -0.006117674522101879, 0.01730690896511078, -0.003159264102578163, -0.04120852053165436, -0.02360033057630062, 0.03049631416797638, -0.07712788879871368, 0.013365151360630989, -0.028337134048342705, 0.005958665162324905, 0.0022847128566354513, 0.02668008953332901, 0.004724250640720129, 0.04094071686267853, -0.041308946907520294, 0.014955244958400726, 0.006996409967541695, -0.01730690896511078, -0.06256598234176636, 0.0007082191295921803, -0.022261304780840874, 0.027818262577056885, 0.0007647093152627349, 0.022261304780840874, 0.07083446532487869, 0.0011496791848912835, -0.00025172115419991314, -0.006908536422997713, -0.027634145691990852, -0.007912806235253811, -0.028655152767896652, 0.004372756462544203, -0.010486246086657047, -0.05714292824268341, 0.020872065797448158, -0.1009625494480133, -0.022679749876260757, 0.022478897124528885, 0.013264724984765053, -0.059084516018629074, -0.0497782863676548, -0.03789443150162697, -0.06303463876247406, -0.0069880411028862, 0.00836891122162342, 0.01571681536734104, 0.05081602931022644, -0.01933218538761139, -0.06598050147294998, 0.004123781342059374, -0.026864206418395042, -0.010092907585203648, -0.0042681447230279446, -0.07538715749979019, 0.06444061547517776, 0.032036192715168, 0.023265574127435684, 0.06383805721998215, 0.027383077889680862, -0.023265574127435684, -0.02487240545451641, 0.03946778550744057, -0.010109645314514637, 0.008469338528811932, -0.009959004819393158, 0.0038120392709970474, -0.0035818940959870815, -0.006523566786199808, 0.03173491358757019, 0.010569935664534569, -0.05694207549095154, -0.08388996869325638, -0.012762590311467648, -0.011180865578353405, 0.04920919984579086, 0.014277363196015358, 0.010762420482933521, -0.023432953283190727, 0.0017271341057494283, 0.019918009638786316, 0.05580390244722366, -0.008088553324341774, -0.013574374839663506, 0.015758659690618515, -0.0899825394153595, 0.035952843725681305, -0.04465651139616966, 0.008176426403224468, 0.04084028676152229, -0.012863016687333584, -0.035685040056705475, 0.0032345843501389027, -0.015976252034306526, 0.061126530170440674, 0.019683679565787315, 0.05289152264595032, -0.13443820178508759, 0.013181035406887531, 0.06588007509708405, -0.052924998104572296, 0.06869202852249146, 0.008268484845757484, 0.05469920486211777, -0.006385479588061571, 0.05382883921265602, 0.01857898384332657, -0.014553537592291832, -0.013791966252028942, 0.04244711995124817, -0.009272754192352295, 0.004849784076213837, 0.025257375091314316, -0.05302542448043823, -0.027014845982193947, 0.022194353863596916, -0.0051426962018013, 0.017842520028352737, 0.014570275321602821, 0.01052809040993452, 0.020654473453760147, 0.06052396818995476, 0.04622986912727356, 0.018143801018595695, 0.01883005164563656, 0.026077527552843094, -0.011088808067142963, 0.019114594906568527, -0.06624830514192581, -0.01055319793522358, 0.022796915844082832, 0.018880264833569527, 0.019248496741056442, -0.0016790129011496902, 0.017474288120865822, 0.05925189331173897, -0.01879657618701458, 0.025357801467180252, 0.0031320650596171618, 0.06922763586044312, -0.0104025574401021, -0.019382398575544357, -0.009423394687473774, -0.02537453919649124, 0.045593831688165665, -0.002226130571216345, -0.09346400201320648, 0.001564986421726644, 0.03993644565343857, 0.013607850298285484, -0.03762662783265114, -0.06142780929803848, 0.012009387835860252, -0.031115613877773285, -0.007942097261548042, 0.004912551026791334, 0.03357607498764992, -0.02616121806204319, -0.03652193024754524, -0.03285634517669678, 0.013925869017839432, 0.006707682739943266, 0.014277363196015358, -0.027851738035678864, -0.011858747340738773, 0.009038424119353294, 0.0047660949639976025, -0.008046708069741726, -0.02311493456363678, -0.08281874656677246, -0.018411604687571526, 0.04766932129859924, -0.0025797169655561447, 0.041041143238544464, -0.010025955736637115, -0.0032345843501389027, -0.00805507693439722, -0.03369323909282684, -0.007490175776183605, -0.04274839907884598, 0.00141329993493855, -0.014327576383948326, -0.06989715248346329, 0.022495634853839874, -0.020955754444003105, -0.042313218116760254, -0.04947700351476669, 0.006109305657446384, 0.0233994759619236, -0.041744131594896317, -0.003983601927757263, -0.0013745937030762434, 0.045593831688165665, -0.03555113449692726, 0.0013913315488025546, 0.01344884093850851, -0.027249176055192947, 0.004833046346902847, 0.02768435887992382, 0.025759510695934296, -0.010645255446434021, 0.05506743863224983, 0.0005596709670498967, -0.04827188327908516, -0.020420143380761147, -0.011540728621184826, -0.009406656958162785, 0.03555113449692726, 0.002171732485294342, -0.07933728396892548, -0.028253445401787758, -0.020403405651450157, -0.002880997722968459, -0.02185959741473198, 0.05490006133913994, -0.08583156019449234, -0.032186832278966904, 0.03853046894073486, 0.11977586150169373, 0.02565908245742321, -0.03474771976470947, 0.001807684893719852, 0.08382301777601242, 0.061595190316438675, 0.016419803723692894, 0.045326024293899536, -0.02338273823261261, -0.03906608000397682, 0.015800505876541138, -0.002906104549765587, -0.01573355309665203, 0.08147972077131271, -0.07619056850671768, -0.1213826909661293, -0.024755239486694336, 0.0031257884111255407, -0.0036823211703449488, 0.03759315237402916, -0.0033140890300273895, 0.016252426430583, -0.025474967435002327, 0.011708106845617294, -0.018612459301948547, -0.05058170109987259, -0.027801524847745895, 0.00818897970020771, -0.015708446502685547, -0.03712449222803116, 0.054732680320739746, 0.046129439026117325, 0.04499126970767975, 0.009440132416784763, 0.030797595158219337, 0.011013487353920937, 0.08877741545438766, -0.0287388414144516, -0.024336794391274452, 0.08690277487039566, 0.03843004256486893, -0.020704686641693115, 0.005059007089585066, -0.0727091059088707, 0.006364557426422834, 0.02286386676132679, -0.040539007633924484, -0.04957743361592293, -0.0047660949639976025, 0.03484814614057541, -0.03447991609573364, -0.07565496116876602, 0.04971133545041084, 0.02641228400170803, 0.033157628029584885, -0.038463518023490906, -0.022311517968773842, 0.0021424414590001106, 0.06785513460636139, 0.005703413393348455, 0.0488409660756588, 0.05429749935865402, 0.030161557719111443, -0.030563265085220337, 0.001010023057460785, 0.024068988859653473, 0.025056520476937294, 0.039769068360328674, -0.010821002535521984, -0.010896323248744011, 0.028387347236275673, -0.0006956657744012773, -0.0700310543179512, -0.041308946907520294, -0.03766010329127312, 0.023968562483787537, 0.005029716063290834, -0.034948576241731644, -0.020001698285341263, -0.03307393938302994, 0.011892223730683327, 0.06152823939919472, 0.01589256338775158, -0.02411920391023159, 0.0037890246603637934, -0.03829614073038101, 0.048874445259571075, 0.045895110815763474, 0.016670871526002884, -0.03638802841305733, -0.0119340680539608, 0.03275591880083084, 0.03258854150772095, 0.0467989519238472, -0.03866437077522278, 0.04261449724435806, 0.013532529585063457, 0.013674801215529442, -0.01959999091923237, 0.04880749061703682, -0.01484644878655672, -0.0028412453830242157, -0.04827188327908516, 0.023282311856746674, 0.039233457297086716, -0.026345333084464073, 0.022696487605571747, 0.029090337455272675, -0.024738501757383347, 0.0138589171692729, -0.051686398684978485, 0.03678973391652107, -0.04653114825487137, -0.026295119896531105, 0.019633466377854347, -0.03766010329127312, 0.0284208245575428, -0.029642684385180473, 0.05362798646092415, -0.010762420482933521, -0.021039443090558052, -0.03324131667613983, -0.08556374907493591, -0.03461381793022156, 0.07331166416406631, -0.05255676433444023, -0.011549098417162895, 0.03615369647741318, 0.018445080146193504, -0.015105885453522205, 0.03325805440545082, 0.022997768595814705, 0.04479041323065758, -0.005962849594652653, 0.020989229902625084, -0.0016005543293431401, 0.02721570059657097, 0.026010576635599136, 0.010444401763379574, 0.049175724387168884, 0.03930040821433067, 0.004979502409696579, 0.017708616331219673, 0.02847103774547577, -0.00011154189996886998, 0.029274452477693558, -0.056239087134599686, 0.0023181885480880737, 0.027500243857502937, 0.029140550643205643, -0.043016206473112106, 0.000973409041762352, -0.05844847857952118, 0.027533719316124916, 0.013398627750575542, -0.05667426809668541, -0.049142248928546906, 0.011314768344163895, 0.004506658762693405, -0.04248059540987015, -0.008281038142740726, 0.04653114825487137, -0.02137419953942299, -0.06166214123368263, -0.00445226114243269, 0.007590602617710829, 0.0051426962018013, 0.03478119522333145, -0.023198623210191727, -0.07217349112033844, 0.00818897970020771, 0.01831117831170559, -0.02540801465511322, 0.02848777547478676, -0.026479236781597137, -0.12553367018699646, 0.0193154476583004, 0.06149476394057274, 0.054531827569007874, 0.05429749935865402, 0.020922278985381126, -0.026629876345396042, -0.010293761268258095, 0.02924097701907158, -0.05710945278406143, 0.04345138743519783, 0.035417232662439346, 0.04649767279624939, -0.016955414786934853, -0.03481467068195343, 0.029676159843802452, 0.012218611314892769, 0.006824847310781479, -0.09466912597417831, 0.012419464997947216, 0.04147632420063019, -0.003510758513584733, -0.012536629103124142, -0.00608838303014636, -0.0009299953235313296, -0.031416893005371094, 0.0016716900281608105, -0.019918009638786316, -0.04699980840086937, -0.01370827667415142, 0.03230400010943413, -0.03283960744738579, 0.04288230463862419, 0.03337521851062775, -0.09393266588449478, -0.048673588782548904, 0.018160538747906685, 0.013273093849420547, -0.02160852961242199, -0.013666432350873947, -0.10189986974000931, 0.027282651513814926, 0.02487240545451641, 0.0078918831422925, -0.04519212245941162, -0.043049681931734085, -0.02078837715089321, 0.042848825454711914, 0.04860663786530495, 0.012109815143048763, 0.028554726392030716, 0.009440132416784763, 0.01675456017255783, -0.02668008953332901, 0.04579468443989754, 0.0062850527465343475, -0.003772286931052804, -0.044623035937547684, 0.00024439836852252483, -0.010310498997569084, 0.05078255385160446, 0.033910829573869705, -0.027098536491394043, -0.003977325279265642, 0.008226640522480011, -0.007611525245010853, -0.015022195875644684, 0.005732704419642687, 0.04234669357538223, -0.0007097882917150855, -0.023533379659056664, 0.059084516018629074, 0.043049681931734085, -0.041777607053518295, -0.002621561521664262, -0.034714244306087494, -0.009783257730305195, -0.01584235019981861, 0.010025955736637115, -0.10404230654239655, -0.03662235662341118, -0.013967713341116905, 0.0233994759619236, -0.011599311605095863, -0.008327066898345947, 0.017097685486078262, 0.02085532806813717, -0.024018775671720505, -0.02689768187701702, -0.034446440637111664, 0.005615539848804474, -0.000676312658470124, -0.03325805440545082, -0.014662332832813263, 0.04693285748362541, -0.03933388367295265, -0.02160852961242199, 0.002215669257566333, -0.01180016528815031, 0.002883089939132333, 0.005975402891635895, 0.02468828856945038, 0.06346982717514038, -0.052757617086172104, 0.034178633242845535, 0.02745003066956997, 0.07511935383081436, -0.03839656710624695, 0.04746846482157707, -0.000052959519962314516, -0.004577794577926397, 0.03245463967323303, -0.03792790696024895, 0.06802251189947128, 0.05643993988633156, -0.03357607498764992, -0.01807684823870659, 0.013674801215529442, -0.05232243612408638, -0.0279521644115448, -0.07404813170433044, 0.022278042510151863, 0.04033815488219261, -0.01535695232450962, 0.05235591158270836, 0.04499126970767975, -0.04164370521903038, -0.033107414841651917, -0.04592858627438545, -0.0015377874951809645, -0.02694789506494999, 0.0018578983144834638, -0.005854053422808647, -0.009950635954737663, 0.055502623319625854, -0.0014028388541191816, 0.06464147567749023, 0.06206384673714638, -0.010352343320846558, -0.008235009387135506, -0.003977325279265642, -0.04673200100660324, -0.005050638224929571, 0.007653369568288326, -0.01981758326292038, -0.01208470854908228, -0.019650204107165337, 0.011080439202487469, -0.004322542808949947, -0.009105375967919827, -0.019901271909475327, 0.049945663660764694, 0.0091472202911973, 0.009122113697230816, -0.024571124464273453, 0.002136164577677846, -0.02031971700489521, -0.0007903390796855092, 0.04894139617681503, -0.00861997902393341, 0.002698973985388875, -0.02311493456363678, -0.011540728621184826, -0.047635845839977264, -0.0041133202612400055, -0.03021177090704441, 0.026010576635599136, 0.0031404341571033, 0.011959174647927284, -0.01584235019981861, -0.010569935664534569, 0.03555113449692726, 0.0066700223833322525, -0.03776052966713905, -0.031366679817438126, 0.007506913505494595, 0.03739229589700699, -0.012042863294482231, -0.022010236978530884, 0.048137977719306946, 0.07210654020309448, -0.034647293388843536, 0.054967012256383896, -0.049644384533166885, -0.0302285086363554, -0.006665837951004505, -0.04017077386379242, -0.01856224611401558, -0.004761910531669855, 0.03682320937514305, -0.0016905200900509953, 0.08047545701265335, 0.010134751908481121, 0.0201021246612072, 0.009691199287772179, 0.0058666071854531765, 0.036220647394657135, -0.004054737742990255, -0.04465651139616966, 0.01711442321538925, 0.014729284681379795, 0.009046792984008789, 0.022512372583150864, 0.018110323697328568, 0.016620658338069916, -0.008460969664156437, -0.04974481090903282, -0.008862677030265331, -0.009666092693805695, -0.011331506073474884, 0.010118014179170132, -0.028655152767896652, 0.050882983952760696, -0.05533524230122566, 0.01647001877427101, -0.04278187453746796, -0.0031927397940307856, 0.033425431698560715, -0.02949204482138157, -0.005900082644075155, 0.027583932504057884, -0.006201363634318113, -0.015775397419929504, -0.03447991609573364, -0.006385479588061571, -0.02413594163954258, -0.018897002562880516, -0.03916650637984276, -0.0665830597281456, -0.02820323221385479, -0.01590930111706257, 0.059787504374980927, -0.010821002535521984, -0.06929458677768707, -0.027349602431058884, -0.032906562089920044, -0.016553707420825958, 0.008276853710412979, 0.08563069999217987, -0.045091696083545685, -0.005410501267760992, -0.04853968694806099, -0.011231079697608948, -0.010904692113399506, 0.015373690985143185, -0.03782748058438301, 0.056774694472551346, -0.01271237712353468, 0.0365888811647892, 0.03990297019481659, 0.008628347888588905, 0.012628687545657158, 0.0395682156085968, -0.06142780929803848, -0.09587424993515015, -0.030345672741532326, 0.00836891122162342, 0.05533524230122566, -0.029056860134005547, -0.02996070310473442, 0.06320202350616455, -0.025023045018315315, -0.024571124464273453, -0.032136619091033936, -0.006050723139196634, 0.0964098647236824, 0.007958834990859032, 0.01052809040993452, -0.03742577135562897, -0.035651564598083496, -0.04997913911938667, 0.04653114825487137, 0.00685413833707571, -0.007117759436368942, 0.04241364449262619, 0.007590602617710829, 0.043183583766222, -0.00767847616225481, -0.004468998871743679, -0.07686008512973785, 0.050179991871118546, -0.016804775223135948, 0.022663012146949768, -0.01723995804786682, 0.020470358431339264, -0.021943286061286926, 0.013950975611805916, 0.015482486225664616, -0.00890452228486538, -0.012770959176123142, 0.018729623407125473, 0.0030609294772148132, 0.08127886801958084, 0.028889482840895653, -0.04877401515841484, 0.08529594540596008, -0.005347734317183495, -0.03966864198446274, -0.016093416139483452, 0.07183873653411865, -0.04807102680206299, 0.013273093849420547, -0.056774694472551346, 0.02919076383113861, 0.024520911276340485, 0.03210314363241196 ]
729,454
tinytuya.core
Device
null
class Device(XenonDevice): #def __init__(self, *args, **kwargs): # super(Device, self).__init__(*args, **kwargs) def set_status(self, on, switch=1, nowait=False): """ Set status of the device to 'on' or 'off'. Args: on(bool): True for 'on', False for 'off'. switch(int): The switch to set nowait(bool): True to send without waiting for response. """ # open device, send request, then close connection if isinstance(switch, int): switch = str(switch) # index and payload is a string payload = self.generate_payload(CONTROL, {switch: on}) data = self._send_receive(payload, getresponse=(not nowait)) log.debug("set_status received data=%r", data) return data def product(self): """ Request AP_CONFIG Product Info from device. [BETA] """ # open device, send request, then close connection payload = self.generate_payload(AP_CONFIG) data = self._send_receive(payload, 0) log.debug("product received data=%r", data) return data def heartbeat(self, nowait=True): """ Send a keep-alive HEART_BEAT command to keep the TCP connection open. Devices only send an empty-payload response, so no need to wait for it. Args: nowait(bool): True to send without waiting for response. """ # open device, send request, then close connection payload = self.generate_payload(HEART_BEAT) data = self._send_receive(payload, 0, getresponse=(not nowait)) log.debug("heartbeat received data=%r", data) return data def updatedps(self, index=None, nowait=False): """ Request device to update index. Args: index(array): list of dps to update (ex. [4, 5, 6, 18, 19, 20]) nowait(bool): True to send without waiting for response. """ if index is None: index = [1] log.debug("updatedps() entry (dev_type is %s)", self.dev_type) # open device, send request, then close connection payload = self.generate_payload(UPDATEDPS, index) data = self._send_receive(payload, 0, getresponse=(not nowait)) log.debug("updatedps received data=%r", data) return data def set_value(self, index, value, nowait=False): """ Set int value of any index. Args: index(int): index to set value(int): new value for the index nowait(bool): True to send without waiting for response. """ # open device, send request, then close connection if isinstance(index, int): index = str(index) # index and payload is a string payload = self.generate_payload(CONTROL, {index: value}) data = self._send_receive(payload, getresponse=(not nowait)) return data def set_multiple_values(self, data, nowait=False): """ Set multiple indexes at the same time Args: data(dict): array of index/value pairs to set nowait(bool): True to send without waiting for response. """ out = {} for i in data: out[str(i)] = data[i] payload = self.generate_payload(CONTROL, out) return self._send_receive(payload, getresponse=(not nowait)) def turn_on(self, switch=1, nowait=False): """Turn the device on""" return self.set_status(True, switch, nowait) def turn_off(self, switch=1, nowait=False): """Turn the device off""" return self.set_status(False, switch, nowait) def set_timer(self, num_secs, dps_id=0, nowait=False): """ Set a timer. Args: num_secs(int): Number of seconds dps_id(int): DPS Index for Timer nowait(bool): True to send without waiting for response. """ # Query status, pick last device id as that is probably the timer if dps_id == 0: status = self.status() if "dps" in status: devices = status["dps"] devices_numbers = list(devices.keys()) devices_numbers.sort() dps_id = devices_numbers[-1] else: log.debug("set_timer received error=%r", status) return status payload = self.generate_payload(CONTROL, {dps_id: num_secs}) data = self._send_receive(payload, getresponse=(not nowait)) log.debug("set_timer received data=%r", data) return data
(dev_id, address=None, local_key='', dev_type='default', connection_timeout=5, version=3.1, persist=False, cid=None, node_id=None, parent=None, connection_retry_limit=5, connection_retry_delay=5, port=6668)
[ 0.03962932527065277, -0.046639565378427505, -0.02896067686378956, -0.0031449005473405123, 0.018946046009659767, -0.027121255174279213, -0.09507767856121063, 0.03799428418278694, -0.02203218825161457, -0.053343236446380615, -0.06393013149499893, -0.001838144613429904, 0.019038017839193344, 0.02532270923256874, -0.006483962293714285, -0.015757715329527855, 0.017116842791438103, -0.022318320348858833, 0.009723388589918613, -0.03310959413647652, 0.010781056247651577, 0.06736371666193008, 0.032721273601055145, 0.06315349042415619, -0.020478898659348488, 0.061681948602199554, -0.00036980045842938125, -0.028163595125079155, 0.04287897050380707, -0.061559323221445084, -0.0011630512308329344, 0.0035153396893292665, 0.0323738269507885, -0.011486168019473553, 0.02024386078119278, 0.014061358757317066, 0.01031609158962965, -0.036113984882831573, -0.0821608453989029, 0.04643518477678299, -0.01037229597568512, -0.09246160835027695, 0.017781078815460205, -0.010801495052874088, -0.015287640504539013, 0.05657244473695755, -0.0564906932413578, 0.08187471330165863, 0.06433889269828796, 0.01196646224707365, -0.0009069372317753732, 0.017300786450505257, -0.03380448743700981, 0.008701487444341183, -0.02898111566901207, 0.05857536941766739, 0.014684719033539295, 0.06196808069944382, 0.019017579033970833, -0.03251689299941063, -0.036747563630342484, 0.0617637038230896, -0.008001485839486122, -0.023748980835080147, 0.013826321810483932, -0.020294955000281334, -0.021848244592547417, -0.00028709034086205065, 0.04414612799882889, 0.05101330205798149, 0.07537542283535004, -0.011741643771529198, -0.03554172068834305, -0.02035626955330372, 0.045004524290561676, 0.0018943491159006953, -0.04114173725247383, 0.01441902481019497, -0.01595187559723854, -0.014705156907439232, 0.006616809405386448, 0.038300853222608566, 0.05788047984242439, 0.036400116980075836, 0.04463664069771767, 0.04463664069771767, 0.026283295825123787, 0.0160540658980608, -0.06585130840539932, 0.006172282621264458, -0.030820537358522415, 0.03174024820327759, -0.015297858975827694, 0.04369648918509483, 0.038893554359674454, -0.030043892562389374, -0.021357733756303787, -0.014020483009517193, -0.03417237102985382, -0.02264532819390297, -0.04520890489220619, 0.005962792783975601, -0.04218407720327377, -0.025404460728168488, 0.010249667800962925, -0.060169536620378494, -0.02403511293232441, 0.07206446677446365, 0.020969411358237267, -0.018956264480948448, -0.03723807632923126, -0.009212438017129898, -0.04048772156238556, -0.05849361792206764, 0.001035952242091298, 0.029962141066789627, -0.012845296412706375, -0.00035095916246064007, -0.05759434401988983, -0.02266576699912548, -0.02011101320385933, -0.0011145109310746193, -0.007608053740113974, -0.01897670328617096, 0.030330024659633636, 0.049787022173404694, 0.004762059077620506, 0.00987156480550766, 0.050849799066782, -0.03249645605683327, -0.06544254720211029, 0.02201174944639206, 0.029921263456344604, 0.07897251844406128, -0.0003611781576182693, -0.03124973550438881, -0.012845296412706375, -0.03075922280550003, -0.01511391717940569, -0.056776825338602066, 0.01285551581531763, 0.006902941968291998, 0.008956963196396828, -0.021480360999703407, 0.030084768310189247, 0.009564993903040886, 0.0044171675108373165, -0.03517383709549904, -0.04353298619389534, -0.025138767436146736, -0.02466869167983532, -0.026671618223190308, -0.03341616690158844, -0.006698561832308769, -0.02520008012652397, 0.035766538232564926, -0.036400116980075836, -0.023340221494436264, -0.01163945347070694, -0.038259975612163544, -0.06388925760984421, -0.03364098444581032, -0.00581972673535347, -0.008190536871552467, -0.026548990979790688, 0.03349791839718819, -0.11371715366840363, -0.02013145200908184, 0.05117680877447128, 0.011925585567951202, 0.01567596197128296, 0.0190891120582819, 0.010285434313118458, -0.014664281159639359, -0.012497850693762302, 0.021235104650259018, -0.014541652984917164, -0.050686296075582504, 0.011169378645718098, -0.028940239921212196, -0.01986575685441494, 0.021827807649970055, -0.05604105442762375, 0.020039480179548264, -0.009319737553596497, 0.03216944634914398, 0.037258513271808624, 0.01811830699443817, 0.037626396864652634, 0.03243514150381088, 0.0245460644364357, 0.007383235264569521, 0.016912464052438736, 0.022236566990613937, 0.032823462039232254, 0.019150426611304283, 0.053711120039224625, -0.018711009994149208, 0.05910675972700119, 0.018404439091682434, -0.004616438411176205, 0.01922195963561535, 0.02150079980492592, 0.004291984718292952, -0.012446755543351173, -0.050686296075582504, 0.036154862493276596, 0.009692732244729996, -0.010719742625951767, 0.003975195344537497, -0.0004218535323161632, 0.030330024659633636, 0.0012211718130856752, 0.028756296262145042, 0.058289237320423126, -0.04590379819273949, 0.020294955000281334, 0.021868683397769928, -0.02507745288312435, -0.07145132124423981, 0.0003998188185505569, 0.01709640584886074, -0.03944538161158562, -0.036154862493276596, -0.03548040613532066, 0.05391550064086914, -0.023238031193614006, -0.005978121422231197, 0.027121255174279213, 0.03584828972816467, 0.02697818912565708, 0.053874626755714417, 0.009140904992818832, 0.0354599691927433, 0.03458113223314285, -0.006366443820297718, -0.007413892541080713, -0.021030724048614502, -0.039302315562963486, -0.0381782241165638, 0.012538726441562176, -0.02481175772845745, 0.05354761704802513, -0.033089157193899155, -0.03225119784474373, 0.005066074896603823, 0.021459922194480896, 0.030902288854122162, -0.028265783563256264, -0.017198596149683, 0.03143367916345596, -0.08105719834566116, 0.03564390912652016, 0.003183221910148859, -0.046762194484472275, -0.038668736815452576, 0.036624934524297714, 0.03907749801874161, 0.009610979817807674, -0.03999720886349678, -0.011496387422084808, 0.01354018971323967, -0.09148058295249939, 0.049051251262426376, 0.019456997513771057, -0.004685416352003813, 0.03595048189163208, 0.022502262145280838, -0.015880342572927475, 0.02773439511656761, 0.1039886549115181, 0.04835636168718338, -0.06764985620975494, -0.018016116693615913, -0.030309585854411125, 0.006187611259520054, 0.01885407604277134, -0.0478658489882946, -0.044350508600473404, -0.049051251262426376, -0.01579859107732773, 0.012385440990328789, 0.017924144864082336, 0.04774321988224983, -0.036992818117141724, -0.07925865054130554, 0.005564251448959112, 0.03873005136847496, -0.006448195781558752, -0.01782195456326008, -0.04193882271647453, 0.053711120039224625, 0.008302946574985981, -0.018567942082881927, 0.03580741584300995, 0.03276214748620987, -0.08788349479436874, 0.04185706749558449, -0.01348909456282854, -0.034233685582876205, 0.04238845780491829, -0.03429500013589859, -0.042102325707674026, -0.031188420951366425, -0.008711706846952438, -0.0200190432369709, 0.07202359288930893, -0.0029839512426406145, 0.018537286669015884, -0.03633880242705345, 0.02607891522347927, 0.004680307116359472, 0.025097891688346863, -0.002685045124962926, 0.039036620408296585, -0.002823001705110073, -0.008844554424285889, 0.04896949976682663, 0.05681769922375679, 0.09932878613471985, -0.018026335164904594, 0.04974614456295967, 0.03139280155301094, 0.06384838372468948, 0.05465127155184746, 0.013560627587139606, 0.09000904858112335, -0.0058606029488146305, -0.008543092757463455, -0.022829269990324974, -0.0802396759390831, -0.010586895048618317, -0.009917549788951874, -0.04807022586464882, 0.016156256198883057, -0.017137281596660614, -0.00728104542940855, -0.01441902481019497, -0.018373781815171242, 0.0242803692817688, 0.008205865509808064, 0.03216944634914398, -0.0478658489882946, -0.00041418930049985647, 0.013560627587139606, -0.05432426184415817, 0.04467751458287239, -0.004516802728176117, 0.0026697167195379734, 0.03292565420269966, -0.0079197334125638, 0.018629256635904312, 0.02936943806707859, 0.07590681314468384, 0.0865754634141922, -0.06188632920384407, -0.02276795729994774, -0.008813897147774696, 0.006713890004903078, -0.05755347013473511, -0.0617637038230896, 0.03178112581372261, -0.009851126931607723, 0.028061404824256897, -0.04357386380434036, -0.04418700188398361, -0.022461386397480965, -0.001025733188726008, 0.04112130030989647, 0.005804398097097874, -0.03633880242705345, -0.05428338795900345, -0.025527089834213257, 0.028143156319856644, 0.047661468386650085, -0.0054109664633870125, -0.05767609924077988, -0.01467449963092804, -0.01718837581574917, -0.007061336655169725, 0.03251689299941063, -0.03188331425189972, 0.01335624698549509, 0.02618110552430153, 0.0377490259706974, -0.03251689299941063, 0.011486168019473553, -0.007950390689074993, -0.016544578596949577, -0.013315371237695217, 0.02391248568892479, 0.039813265204429626, -0.07590681314468384, 0.037892092019319534, -0.0337022989988327, 0.0024052998051047325, 0.03464244678616524, 0.017014652490615845, 0.013264276087284088, -0.10717698931694031, -0.02051977440714836, -0.02949206531047821, -0.028919801115989685, 0.04982789605855942, 0.03454025834798813, -0.0291241817176342, 0.08162946254014969, -0.046639565378427505, -0.02417818084359169, 0.0007958054775372148, -0.03936363011598587, 0.05416075885295868, -0.017392756417393684, -0.010709523223340511, -0.030350463464856148, 0.007705134339630604, -0.025343148037791252, 0.07962653040885925, 0.06237684190273285, 0.022992774844169617, -0.014245301485061646, 0.020294955000281334, 0.03214900940656662, 0.033354852348566055, 0.0013680701376870275, 0.001879020594060421, 0.02861323021352291, -0.0036635154392570257, -0.035746101289987564, 0.05694032832980156, 0.030350463464856148, 0.03768771141767502, -0.044227879494428635, -0.04279721900820732, 0.01963072083890438, -0.02162342704832554, 0.004133590031415224, -0.05391550064086914, 0.006764985155314207, -0.01580880954861641, -0.001189876114949584, 0.026140229776501656, 0.017760641872882843, 0.036011796444654465, -0.004657314158976078, -0.03366142138838768, -0.041591376066207886, -0.062335968017578125, 0.022563576698303223, -0.009335066191852093, -0.06303086131811142, -0.020570868626236916, 0.05673594772815704, 0.006008778233081102, 0.01467449963092804, -0.029328562319278717, -0.044759269803762436, 0.004118261393159628, -0.010709523223340511, -0.01997816562652588, 0.0015315742930397391, -0.011189817450940609, -0.06683233380317688, 0.0005297918687574565, 0.0043354155495762825, 0.08731123059988022, 0.04578116908669472, 0.020928533747792244, -0.004271546378731728, 0.032843902707099915, -0.0023043870460242033, -0.018680352717638016, -0.023503724485635757, 0.008267180062830448, 0.007383235264569521, -0.04995052516460419, -0.033865801990032196, 0.004585781134665012, -0.04022202640771866, -0.06204983592033386, -0.0372176393866539, -0.03247601538896561, 0.04990965127944946, 0.0053087761625647545, -0.037667274475097656, -0.052321337163448334, 0.06098705902695656, -0.04553591459989548, -0.01321318093687296, -0.06450239568948746, -0.03468332439661026, -0.05060454085469246, 0.01972269080579281, -0.0008411523303948343, -0.01252850703895092, 0.028286222368478775, -0.05354761704802513, -0.03940450772643089, 0.024852635338902473, -0.023074526339769363, -0.00860951654613018, -0.004869358614087105, -0.04757971689105034, 0.003259864402934909, 0.044105250388383865, -0.006238706409931183, -0.09229810535907745, 0.04659869149327278, -0.011864271946251392, 0.011475949548184872, -0.01720881462097168, 0.008185427635908127, 0.037278950214385986, -0.01618691347539425, -0.032986968755722046, 0.01834312453866005, 0.035255588591098785, 0.03329353779554367, -0.00817009899765253, -0.03247601538896561, 0.04369648918509483, 0.02810228057205677, 0.03922056406736374, 0.02065262198448181, -0.002102561527863145, 0.03288477659225464, -0.03288477659225464, -0.03807603567838669, 0.0008187982602976263, 0.04353298619389534, -0.007413892541080713, -0.0019109550630673766, 0.007929952815175056, 0.0219095591455698, 0.051585566252470016, -0.04921475797891617, 0.007996375672519207, -0.0767243355512619, -0.06049654632806778, -0.028899362310767174, 0.011281788349151611, -0.02507745288312435, -0.011455511674284935, -0.061559323221445084, -0.02101028710603714, -0.05501915514469147, 0.007556958589702845, 0.034233685582876205, 0.009728498756885529, -0.030411776155233383, -0.00847155973315239, -0.025915412232279778, 0.0700206607580185, -0.011169378645718098, -0.027938775718212128, 0.01031609158962965, 0.032823462039232254, -0.012569383718073368, 0.005068629514425993, -0.006882504094392061, -0.02732563577592373, -0.04197969660162926, -0.0193548072129488, -0.0021255542524158955, 0.02178693190217018, 0.019426340237259865, 0.015389830805361271, 0.017944583669304848, 0.008139442652463913, -0.04077385365962982, 0.022870145738124847, 0.02820447087287903, -0.01732122339308262, 0.006151844747364521, -0.052443962544202805, 0.0028996444307267666, 0.03985414281487465, 0.021439485251903534, -0.009478132240474224, -0.022073063999414444, 0.025792783126235008, 0.04443226009607315, -0.04798847436904907, -0.06658707559108734, 0.04230670630931854, 0.029532941058278084, 0.006095639895647764, 0.038546107709407806, 0.01797524094581604, -0.028940239921212196, -0.03566434979438782, 0.003548551583662629, -0.05072716996073723, -0.015727058053016663, -0.0054109664633870125, 0.09663096815347672, 0.027795709669589996, 0.03607310727238655, 0.04418700188398361, 0.06482940912246704, -0.06859000027179718, 0.03631836548447609, 0.03214900940656662, -0.11175510287284851, 0.023381097242236137, -0.011956242844462395, -0.01873144693672657, 0.008502217009663582, -0.007996375672519207, -0.021030724048614502, 0.05706295743584633, -0.006616809405386448, -0.012089090421795845, 0.03376361355185509, 0.001706574810668826, -0.010091273114085197, -0.03731982782483101, 0.027386948466300964, 0.024750445038080215, -0.04390086978673935, 0.03227163478732109, 0.009089809842407703, -0.023054089397192, -0.05432426184415817, -0.044473133981227875, -0.004767168778926134, 0.014848222956061363, -0.029819073155522346, -0.025874536484479904, 0.0027642424684017897, 0.04843811318278313, -0.03294609114527702, 0.022359196096658707, 0.03394755348563194, -0.009064262732863426, -0.02215481549501419, 0.00512994360178709, -0.013560627587139606, 0.012753325514495373, 0.04171400144696236, 0.0651155412197113, 0.021827807649970055, 0.02861323021352291, -0.07014328986406326, 0.035255588591098785, 0.001096627558581531, -0.025404460728168488, -0.006611700169742107, 0.0021268315613269806, 0.015532896853983402, -0.027897899970412254, 0.014071578159928322, -0.04112130030989647, 0.023503724485635757, -0.012385440990328789, 0.01896648481488228, -0.003402930684387684, 0.013478875160217285, 0.03962932527065277, 0.005288338288664818, -0.06531991809606552, 0.021030724048614502, 0.045862920582294464, -0.06388925760984421, 0.027938775718212128, -0.0024538401048630476, 0.04390086978673935, 0.005554032512009144, -0.002135773189365864, 0.037912528961896896, 0.08444990962743759, -0.04488189518451691, -0.0005869544693268836, 0.029839511960744858, 0.06503378599882126, -0.02658986672759056, 0.01938546448945999, -0.052076078951358795, 0.009498571045696735, 0.040957797318696976, 0.015175231732428074, 0.032189883291721344, 0.0145620908588171, -0.012559164315462112, 0.006279582157731056, -0.02074459195137024, 0.04377824440598488, -0.012211717665195465, -0.03407018259167671, -0.04529065638780594, -0.01999860443174839, -0.042470209300518036, -0.011210255324840546, 0.040957797318696976, -0.04063078761100769, -0.09156233817338943, -0.0064737433567643166, -0.030575281009078026, -0.03723807632923126, -0.008323384448885918, 0.033845365047454834, -0.03012564405798912, -0.002902199048548937, -0.002381029538810253, 0.014500776305794716, 0.01335624698549509, -0.045740291476249695, -0.06822212040424347, 0.04659869149327278, -0.014051140286028385, 0.0865754634141922, 0.07627470046281815, 0.052607469260692596, -0.011731424368917942, 0.01694311946630478, 0.006463524419814348, -0.07664258033037186, -0.0158394668251276, -0.018690571188926697, 0.08633020520210266, -0.04148918390274048, 0.008440903387963772, 0.058166611939668655, -0.009779593907296658, 0.0009471745579503477, 0.004570452496409416, 0.005850384011864662, 0.024627815932035446, 0.023973800241947174, 0.034744638949632645, -0.03603223338723183, 0.0006332593620754778, -0.03265995904803276, -0.017362099140882492, -0.017678888514637947, -0.056245435029268265, 0.04484102129936218, 0.002973732305690646, 0.021357733756303787, 0.03261908143758774, -0.01500150840729475, -0.04606730118393898, 0.011312444694340229, -0.023973800241947174, -0.03560303524136543, 0.03225119784474373, 0.02201174944639206, 0.007025570143014193, 0.020315393805503845, 0.011455511674284935, 0.03644099459052086, -0.02783658541738987, -0.014490557834506035, 0.006831408943980932, 0.06270384788513184, -0.0193548072129488, -0.035766538232564926, 0.03858698531985283, -0.008226303383708, -0.018056992441415787, 0.027877461165189743, 0.03605267032980919, -0.008405136875808239, 0.0797082856297493, -0.01745407097041607, 0.051830824464559555, -0.03496945649385452, 0.04819285497069359 ]
729,500
tinytuya.core
MessagePayload
MessagePayload(cmd, payload)
from tinytuya.core import MessagePayload
(cmd, payload)
[ -0.0009237999329343438, -0.053087249398231506, 0.015853451564908028, -0.0044019692577421665, -0.004151986446231604, -0.028488945215940475, -0.05443260818719864, 0.056541554629802704, -0.0027770812157541513, 0.0096902409568429, 0.009481164626777172, 0.01269003376364708, -0.005340540781617165, 0.017126090824604034, -0.03099786303937435, 0.0005857550422661006, 0.044360578060150146, 0.023671094328165054, 0.03599751740694046, -0.015771640464663506, -0.017735140398144722, 0.0060859438963234425, -0.011308311484754086, 0.06366833299398422, -0.018435092642903328, 0.037270158529281616, -0.023343844339251518, -0.0496693029999733, 0.055268917232751846, -0.05152371898293495, -0.027289027348160744, -0.1030474379658699, 0.0038883681409060955, 0.05036016181111336, -0.0439242422580719, 0.005981405731290579, -0.07715831696987152, -0.024361956864595413, -0.06966792047023773, -0.05061469227075577, 0.02092582918703556, 0.001159579143859446, 0.028488945215940475, -0.002381653990596533, 0.020216787233948708, 0.019562287256121635, -0.005131464451551437, 0.06759534031152725, -0.011353762820363045, 0.04312429949641228, -0.0035906615667045116, 0.026307277381420135, -0.016698848456144333, 0.029725221917033195, -0.04257888346910477, 0.047814883291721344, -0.00957206729799509, 0.06868617236614227, -0.047814883291721344, 0.05334177613258362, -0.03608842194080353, 0.038506437093019485, 0.02643454074859619, 0.020689481869339943, 0.019507745280861855, 0.01286274939775467, 0.007808552589267492, 0.021907581016421318, -0.018671439960598946, -0.023562012240290642, 0.030852418392896652, -0.02994338981807232, -0.02761627733707428, 0.02285297028720379, 0.02156214974820614, -0.055850692093372345, -0.016517043113708496, 0.0021021277643740177, -0.04705129936337471, 0.01264458242803812, 0.0335795022547245, -0.018235106021165848, -0.021853039041161537, 0.07064967602491379, 0.05319632962346077, -0.002279388252645731, 0.05279636010527611, 0.014580812305212021, -0.061559390276670456, -0.0014658080181106925, -0.028379861265420914, -0.01613525114953518, -0.028270777314901352, 0.030725153163075447, -0.0032338679302483797, -0.010353831574320793, 0.012853658758103848, 0.0256891380995512, -0.029325250536203384, 0.0020941738039255142, -0.031016042456030846, 0.025816401466727257, -0.08893932402133942, -0.026252735406160355, 0.02939797192811966, 0.04337882623076439, 0.0038111007306724787, -0.008999379351735115, 0.03821554780006409, 0.054468970745801926, 0.010317469947040081, -0.02345292828977108, -0.04119715839624405, 0.0045655942521989346, 0.008972108364105225, -0.0467967726290226, 0.05385083332657814, 0.022125747054815292, 0.0038610973861068487, -0.00452923309057951, 0.04577866196632385, 0.02207120507955551, -0.029270708560943604, -0.012199158780276775, 0.04759671911597252, 0.0818125382065773, 0.03966999053955078, -0.02316203899681568, 0.08828482031822205, -0.03479760140180588, -0.045633215457201004, 0.007926725782454014, 0.007094965316355228, -0.0036724740639328957, -0.00862667802721262, 0.028234416618943214, 0.05472349748015404, -0.007085875142365694, 0.05076013505458832, 0.021307621151208878, -0.0002996952389366925, 0.058977749198675156, 0.028925277292728424, -0.055996138602495193, -0.0051587349735200405, -0.06505005806684494, -0.03321589156985283, -0.020289510488510132, -0.03963363170623779, 0.02058039978146553, 0.010381102561950684, -0.05817780643701553, -0.031652361154556274, 0.025107359513640404, 0.004079264122992754, 0.029779763892292976, 0.008513049222528934, -0.01988953724503517, -0.0019100955687463284, -0.01495351456105709, -0.006622270680963993, -0.023616552352905273, -0.007663107942789793, -0.004617863334715366, -0.012780936434864998, -0.007885820232331753, 0.03376130759716034, 0.03594297543168068, -0.013417256064713001, 0.04596046730875969, -0.05574161186814308, -0.009781143628060818, -0.03952454775571823, 0.014635354280471802, 0.007808552589267492, -0.021543968468904495, -0.002264616545289755, 0.014162659645080566, 0.003431581426411867, -0.008513049222528934, -0.0439242422580719, 0.059668611735105515, -0.041524410247802734, 0.048323940485715866, 0.06054127961397171, -0.0031429650261998177, 0.019816815853118896, 0.040579020977020264, 0.00697679165750742, -0.02132580243051052, 0.030525168403983116, 0.028234416618943214, 0.01733516901731491, 0.023689275607466698, -0.02572549879550934, 0.02399834431707859, 0.030416084453463554, -0.02603456750512123, -0.015598923899233341, -0.007022242993116379, -0.023780178278684616, -0.003929274622350931, -0.0002009804593399167, 0.02092582918703556, 0.02027132920920849, -0.03570662811398506, 0.013253631070256233, 0.030525168403983116, -0.09570249170064926, -0.08348514884710312, -0.019944079220294952, 0.006808621343225241, -0.0005664381897076964, 0.01393540296703577, 0.05606885999441147, -0.04905116185545921, -0.027507193386554718, 0.01688065379858017, 0.021525789052248, -0.036070238798856735, 0.06926795095205307, 0.02305295504629612, -0.020616760477423668, -0.03897913172841072, 0.03230686113238335, 0.009408442303538322, 0.04272432625293732, 0.0015783002600073814, 0.006417739205062389, -0.05181460827589035, 0.017662419006228447, 0.030906960368156433, 0.05036016181111336, 0.05657791718840599, 0.034034017473459244, 0.0018691893201321363, -0.014462638646364212, -0.03767012804746628, 0.02721630409359932, 0.012053714133799076, 0.05301452428102493, -0.02548915147781372, 0.015571653842926025, 0.018353279680013657, 0.006526822689920664, 0.012017353437840939, 0.036361128091812134, 0.00023961416445672512, -0.029834305867552757, -0.019544105976819992, 0.004854210652410984, -0.026507262140512466, 0.024507401511073112, 0.013299082405865192, 0.006313201040029526, -0.03699744865298271, 0.09053920954465866, -0.03977907449007034, 0.025707317516207695, -0.06330472230911255, -0.006767715327441692, -0.026852693408727646, -0.05014199763536453, 0.07388581335544586, -0.05032380297780037, 0.006908614654093981, -0.03554300218820572, 0.0190895926207304, -0.0030361542012542486, -0.02067130245268345, 0.15882541239261627, 0.024780109524726868, -0.0016555676702409983, -0.01888960599899292, -0.044106047600507736, -0.07228592038154602, -0.0008726670639589429, 0.04516052082180977, 0.015771640464663506, -0.03583389148116112, -0.06188664212822914, -0.051887329667806625, 0.07788553833961487, 0.020707663148641586, 0.00569051643833518, -0.04501507803797722, -0.0095447963103652, -0.023434747010469437, -0.033688586205244064, -0.0706133097410202, -0.03467033803462982, 0.01465353462845087, 0.0055405269376933575, -0.011126505210995674, -0.030816055834293365, 0.0032565935980528593, -0.08617587387561798, 0.06315927952528, 0.09083010256290436, -0.025743680074810982, -0.0015919356374070048, 0.036761101335287094, -0.009562976658344269, -0.02528916485607624, -0.042906131595373154, 0.024852830916643143, 0.043160658329725266, 0.02701631933450699, -0.037706490606069565, -0.010181115940213203, 0.01479897927492857, 0.013062735088169575, 0.01477170828729868, 0.014017214998602867, -0.019998621195554733, 0.01868961937725544, 0.023380205035209656, 0.024616483598947525, 0.021853039041161537, 0.06279566884040833, 0.006622270680963993, -0.06806803494691849, 0.005567797925323248, 0.009835685603320599, 0.07192230969667435, -0.02008952386677265, 0.02379835955798626, -0.04545141011476517, -0.014308104291558266, -0.029725221917033195, -0.01802602969110012, -0.0006999517208896577, 0.04032449051737785, -0.05061469227075577, -0.013417256064713001, 0.0258345827460289, -0.03670655936002731, 0.005681426264345646, -0.03212505578994751, -0.022834789007902145, -0.0465058833360672, -0.05294180288910866, -0.03614296019077301, 0.05988677963614464, 0.010126573964953423, -0.03488850221037865, -0.0485057458281517, -0.016026167199015617, 0.08195798099040985, -0.020944010466337204, 0.0407608263194561, 0.01628069579601288, 0.07144961506128311, 0.07621292769908905, 0.03327043354511261, -0.035088490694761276, -0.02707086130976677, -0.01737152971327305, -0.010053852573037148, 0.050651051104068756, -0.04639679938554764, -0.019307758659124374, -0.005026926286518574, 0.006113214883953333, -0.056796081364154816, -0.009899317286908627, 0.01286274939775467, 0.002427105326205492, 0.05821416899561882, 0.04948749765753746, 0.04843302443623543, -0.016089798882603645, -0.03316134959459305, 0.08675765246152878, -0.0312887504696846, 0.027798082679510117, -0.054905302822589874, -0.008440326899290085, -0.07275861501693726, 0.018262377008795738, 0.020144065842032433, 0.037161074578762054, -0.02637999877333641, 0.01770786941051483, 0.048069413751363754, -0.0064131938852369785, -0.0049451133236289024, -0.0275617353618145, -0.06272294372320175, 0.03821554780006409, 0.04672405123710632, -0.053669024258852005, -0.029161624610424042, -0.028870737180113792, -0.05410536006093025, -0.059777695685625076, -0.10210204869508743, 0.055705249309539795, 0.01808966137468815, 0.00030083153978921473, 0.04977838695049286, -0.036361128091812134, 0.00540417293086648, 0.0012317332439124584, 0.006999517325311899, 0.020544037222862244, 0.03083423711359501, 0.021307621151208878, 0.0014817160554230213, 0.05988677963614464, 0.025125540792942047, 0.022871149703860283, -0.06188664212822914, -0.03737923875451088, 0.0005653019179590046, -0.004438330419361591, 0.009926588274538517, 0.0159352645277977, -0.018871426582336426, -0.020689481869339943, 0.0008851662278175354, 0.0047723981551826, 0.015098958276212215, -0.019744092598557472, 0.003747468814253807, 0.007754010614007711, -0.04676041007041931, -0.0070086074993014336, 0.014335375279188156, 0.021743955090641975, -0.014980784617364407, -0.045887745916843414, -0.06017766892910004, -0.03543391823768616, 0.09192093461751938, -0.002838440705090761, -0.034924864768981934, -0.06355925649404526, -0.018562356010079384, 0.0028475308790802956, 0.01791694574058056, 0.011817366816103458, 0.039451826363801956, 0.0032588662579655647, 0.06981337070465088, -0.04279704764485359, -0.10188388079404831, 0.018189653754234314, 0.018607808277010918, -0.007881274446845055, -0.013971763662993908, -0.04094263166189194, 0.05919591709971428, -0.03361586481332779, 0.020562218502163887, -0.07941270619630814, 0.03363404422998428, -0.04723310470581055, -0.011935540474951267, -0.05319632962346077, -0.02250753901898861, -0.05468713864684105, -0.007199503481388092, 0.015744369477033615, 0.047087661921978, -0.002692996058613062, -0.04799668863415718, -0.01745334267616272, -0.004781488329172134, 0.007899454794824123, 0.006890433840453625, 0.015917083248496056, -0.03536119684576988, -0.002890709787607193, 0.059232279658317566, 0.019362300634384155, 0.01145375519990921, 0.012208249419927597, -0.04948749765753746, -0.008594862185418606, 0.009553886950016022, -0.042615242302417755, -0.0016362507594749331, 0.021034913137555122, -0.023216580972075462, -0.01063563022762537, 0.04094263166189194, -0.07123145461082458, 0.05581433326005936, -0.04661496728658676, -0.013117277063429356, 0.052032776176929474, 0.01681702211499214, 0.014135388657450676, 0.018498724326491356, -0.019853176549077034, -0.023416567593812943, 0.040833547711372375, -0.03337951749563217, 0.0021123543847352266, -0.009276633150875568, -0.03941546380519867, -0.03887004777789116, -0.011644651181995869, 0.021507607772946358, 0.005954134743660688, 0.014889881946146488, -0.020962189882993698, 0.014535360969603062, 0.014162659645080566, -0.032743196934461594, 0.10493821650743484, -0.07130417227745056, 0.0014214928960427642, 0.049960192292928696, -0.017635148018598557, 0.0035656632389873266, 0.03367040678858757, 0.024561941623687744, -0.014389916323125362, 0.03008883446455002, 0.014989875257015228, 0.01928957924246788, -0.003529302077367902, 0.03868824243545532, 0.020562218502163887, -0.07403125613927841, 0.04814213514328003, -0.0026134562212973833, 0.11010149866342545, 0.0074722119607031345, -0.03099786303937435, 0.015453480184078217, -0.004111079964786768, -0.022816607728600502, -0.006454100366681814, -0.07657653838396072, -0.032052334398031235, -0.0022918873000890017, -0.034924864768981934, -0.0038883681409060955, -0.058323249220848083, -0.0751948133111, -0.03310680761933327, -0.08057626336812973, 0.042906131595373154, -0.06105033680796623, 0.03227050229907036, -0.036470212042331696, 0.028379861265420914, -0.0312887504696846, -0.023271122947335243, 0.0013226360315456986, 0.013026374392211437, -0.015498931519687176, -0.03707017004489899, -0.011353762820363045, 0.005463259760290384, 0.03554300218820572, 0.02107127383351326, -0.008449417538940907, -0.03916093707084656, -0.04476055130362511, 0.055159833282232285, -0.025907304137945175, 0.03257957100868225, -0.04243343695998192, 0.02276206575334072, -0.0915573239326477, 0.0229620523750782, -0.009276633150875568, -0.003870187560096383, 0.050796497613191605, 0.02141670510172844, 0.024561941623687744, 0.012499137781560421, 0.031761445105075836, 0.018498724326491356, 0.03628840669989586, 0.03803374245762825, -0.002431650413200259, 0.06810439378023148, 0.0015021691797301173, -0.05814144387841225, -0.011190137825906277, -0.03857915848493576, 0.03221596032381058, -0.002029405441135168, 0.009662969969213009, 0.0024043796584010124, -0.026979956775903702, 0.035324838012456894, 0.011135595850646496, 0.02603456750512123, 0.008794847875833511, 0.01722608506679535, 0.030361542478203773, -0.012999103404581547, 0.035088490694761276, 0.0010476550087332726, 0.01613525114953518, 0.04796032980084419, 0.0013158184010535479, -0.020144065842032433, 0.06970428675413132, -0.0026066384743899107, -0.020016800612211227, -0.011144685558974743, -0.02043495513498783, 0.004124715458601713, -0.0018953238613903522, -0.046687688678503036, -0.020834926515817642, -0.02003498189151287, -0.01678975112736225, -0.029561597853899002, 0.004317883867770433, 0.0312887504696846, -0.003104331437498331, -0.046033188700675964, -0.002988430205732584, 0.014408097602427006, -0.049305692315101624, 0.016980648040771484, -0.008349424228072166, 0.026161832734942436, 0.0030475170351564884, -0.029616139829158783, -0.03759740665555, -0.016462501138448715, -0.00923118181526661, 0.008294882252812386, 0.07392217218875885, -0.08043082058429718, 0.019016871228814125, 0.006222298368811607, 0.0037361059803515673, -0.010826526209712029, -0.0005792214069515467, 0.011208318173885345, -0.0137081453576684, -0.018444182351231575, -0.03752468526363373, -0.023434747010469437, -0.015262584201991558, 0.061450306326150894, -0.06123214215040207, -0.06784986704587936, -0.05185097083449364, -0.00964478962123394, 0.014608083292841911, 0.009626609273254871, -0.019907718524336815, 0.08326698839664459, -0.004426967352628708, 0.08777576684951782, 0.022743886336684227, 0.05348721891641617, 0.05657791718840599, -0.02692541666328907, -0.009481164626777172, -0.04428785666823387, 0.014162659645080566, 0.02256208099424839, 0.022671163082122803, -0.002977067371830344, 0.0009652743465267122, -0.029361611232161522, 0.04432421550154686, -0.0407608263194561, 0.06817711889743805, 0.04388788342475891, 0.027707180008292198, -0.029834305867552757, 0.04374243691563606, -0.00743585079908371, -0.000367020140402019, -0.0031225120183080435, 0.06610453128814697, -0.038797322660684586, -0.023816538974642754, 0.008681219071149826, 0.01903505064547062, -0.0020828109700232744, -0.015944354236125946, 0.011890089139342308, 0.030416084453463554, 0.04061537981033325, -0.025216443464159966, -0.05232366546988487, -0.03496122360229492, -0.046142272651195526, -0.061813920736312866, 0.055414360016584396, -0.009294813498854637, -0.015189861878752708, -0.002213483676314354, -0.03576117008924484, -0.023616552352905273, -0.018553266301751137, 0.011717373505234718, -0.03437944874167442, -0.0030770604498684406, -0.02448922023177147, 0.005999586079269648, 0.05505074933171272, -0.017807863652706146, -0.03350678086280823, -0.029616139829158783, -0.027507193386554718, 0.01868961937725544, -0.008522139862179756, 0.015717098489403725, 0.002091901144012809, 0.0029088903684169054, -0.005999586079269648, -0.04174257442355156, 0.08661220967769623, -0.017017008736729622, 0.049560219049453735, -0.048214856535196304, 0.04556049406528473, -0.008563045412302017, 0.031197847798466682, 0.04279704764485359, 0.0021634872537106276, -0.0025157355703413486, 0.0055723427794873714, -0.01765332743525505, 0.0045474134385585785, 0.015189861878752708, -0.01883506402373314, -0.06901342421770096, 0.034688517451286316, -0.014553542248904705, -0.007244954816997051, -0.023143857717514038, 0.016253424808382988, 0.032397765666246414, 0.004926932975649834, 0.03361586481332779, -0.013962673023343086, 0.018553266301751137, -0.006440464872866869, -0.014580812305212021, 0.0010345877381041646, 0.052178218960762024, -0.035070307552814484, -0.032161418348550797, 0.01673520915210247, 0.02677997201681137, 0.020489495247602463, -0.07810370624065399, 0.0011794641613960266, 0.0037247431464493275, -0.021307621151208878, 0.02156214974820614, -0.04010632634162903, -0.07534025609493256, -0.010453824885189533, 0.02270752564072609, -0.01681702211499214, 0.035088490694761276, 0.021053094416856766, 0.03381584957242012, 0.06305019557476044, -0.005258728284388781, 0.03628840669989586 ]
729,502
namedtuple_MessagePayload
__new__
Create new instance of MessagePayload(cmd, payload)
from builtins import function
(_cls, cmd, payload)
[ 0.009963332675397396, -0.03442469611763954, 0.01945531740784645, 0.011539911851286888, 0.012417595833539963, 0.06147034838795662, -0.0007694967789575458, 0.005879666656255722, -0.012458229437470436, -0.02475392445921898, -0.015180673450231552, 0.03676518425345421, 0.006838616915047169, 0.005513965152204037, -0.06858933717012405, -0.0002488801546860486, 0.03549741953611374, 0.09069395810365677, -0.028150884434580803, -0.0022876656148582697, -0.06644389033317566, 0.018675154075026512, 0.036862704902887344, -0.014953126199543476, 0.02998751774430275, 0.10031597316265106, 0.037837911397218704, -0.04489188268780708, 0.010906029492616653, -0.05288855731487274, -0.010670355521142483, -0.04222632572054863, 0.003967860713601112, -0.0029499917291104794, -0.0009259357466362417, -0.04928030073642731, 0.023161090910434723, 0.04040594771504402, -0.06114528328180313, -0.07216508686542511, 0.035074833780527115, 0.011369251646101475, -0.011287984438240528, 0.0031937926542013884, -0.008768708445131779, -0.006814236752688885, -0.023356132209300995, -0.034034613519907, 0.017781216651201248, 0.010199006646871567, 0.006245368160307407, -0.03696022555232048, 0.06715904176235199, -0.014099822379648685, -0.015318826772272587, 0.0747656300663948, 0.010450934991240501, 0.01973162405192852, -0.03965828940272331, 0.049800410866737366, -0.03320569172501564, 0.023778719827532768, -0.026411771774291992, -0.04199877753853798, 0.028085870668292046, 0.035854995250701904, -0.043559104204177856, -0.01721234805881977, -0.0573744922876358, 0.02992250584065914, -0.061015255749225616, 0.014034808613359928, 0.005769955925643444, -0.03023131936788559, 0.05587917938828468, -0.017813723534345627, -0.09329450130462646, -0.017374882474541664, 0.009150662459433079, -0.02195833995938301, 0.015083152800798416, -0.036830198019742966, -0.012905197218060493, 0.03370954841375351, -0.02769578993320465, -0.04050346836447716, -0.0380004420876503, 0.0017177809495478868, -0.01275079045444727, 0.009231929667294025, -0.05438386648893356, -0.016545958817005157, -0.04820757731795311, 0.02696438692510128, 0.0035594941582530737, -0.006501358933746815, 0.01870766095817089, -0.023063570261001587, 0.03370954841375351, -0.047850001603364944, 0.06189293786883354, 0.01945531740784645, 0.007066164631396532, -0.05464392155408859, 0.040600989013910294, 0.047817494720220566, 0.004750055260956287, 0.015310700982809067, -0.023534920066595078, 0.007049911189824343, -0.04651722311973572, 0.010085233487188816, 0.016919786110520363, -0.014433017000555992, -0.004514381289482117, -0.032848116010427475, 0.025404060259461403, 0.004205566830933094, 0.02199084684252739, 0.01275079045444727, 0.017163587734103203, 0.04313651844859123, 0.002909358125180006, -0.010133993811905384, 0.10246141999959946, 0.05487146973609924, 0.0229660514742136, 0.014010428451001644, 0.05100316181778908, -0.0008182569872587919, 0.004400607198476791, 0.0280046034604311, -0.04567204788327217, 0.03249054029583931, -0.045542020350694656, -0.01061346847563982, -0.015863316133618355, 0.04472935199737549, 0.005899983458220959, 0.03842303156852722, -0.04203128442168236, 0.001317540998570621, 0.04115360230207443, -0.009077522903680801, -0.036310091614723206, -0.014075442217290401, -0.0033055348321795464, 0.029564930126070976, 0.0005531234201043844, 0.011141704395413399, -0.00599344028159976, 0.03203544765710831, 0.03190542012453079, 0.020365506410598755, 0.005278290715068579, 0.05019049346446991, 0.0529535710811615, -0.05262850224971771, 0.016643479466438293, -0.05344117060303688, 0.012523243203759193, 0.07105985283851624, -0.060072556138038635, -0.014522410929203033, 0.0170173067599535, -0.014010428451001644, 0.024103788658976555, -0.03699273243546486, 0.021828312426805496, 0.004071475937962532, -0.01471745129674673, -0.042616408318281174, 0.018398845568299294, 0.04567204788327217, 0.0633232370018959, 0.03793542832136154, -0.04524945840239525, 0.09023886173963547, 0.005310797598212957, 0.029077328741550446, -0.003476195503026247, 0.0009462524903938174, -0.11110822856426239, 0.009792672470211983, 0.01573328860104084, 0.05015798658132553, 0.04050346836447716, -0.02069057524204254, 0.026590557768940926, -0.03572496771812439, -0.029402395710349083, 0.011938120238482952, 0.052530981600284576, 0.013270898722112179, -0.006302254740148783, -0.06793919950723648, -0.05912986025214195, 0.002240937203168869, -0.009565124288201332, 0.0010971042793244123, -0.005176707170903683, 0.017797470092773438, 0.022819770500063896, 0.056074220687150955, 0.007456246297806501, 0.004319340456277132, -0.02795584313571453, 0.006387585308402777, -0.06270560622215271, -0.02221839502453804, 0.04641970247030258, -0.05984501168131828, 0.010101486928761005, 0.0734003409743309, -0.001092025195248425, 0.007769124116748571, 0.02121068350970745, -0.01110919751226902, 0.009305070154368877, 0.009727658703923225, 0.07073478400707245, 0.0284596998244524, 0.009695151820778847, -0.024298829957842827, 0.09622011333703995, 0.006025947164744139, -0.010662228800356388, 0.018025018274784088, 0.00403287447988987, -0.01161305233836174, 0.05568414181470871, -0.012685776688158512, -0.009435097686946392, -0.02346990630030632, 0.006716716568917036, -0.0332707054913044, 0.039040662348270416, 0.04924779385328293, 0.007704110350459814, 0.007846327498555183, -0.0006323587731458247, 0.04047096148133278, 0.04993043839931488, 0.04599711671471596, 0.024120042100548744, 0.006155974231660366, 0.013685360550880432, 0.04001586511731148, -0.06186043098568916, -0.0030129735823720694, 0.0156032619997859, -0.02696438692510128, 0.015367587096989155, -0.029402395710349083, 0.007687856908887625, 0.00742780277505517, 0.01994291879236698, 0.0025456883013248444, 0.018382592126727104, -0.004477811045944691, -0.008687441237270832, -0.04788250848650932, -0.03323819860816002, 0.002003231318667531, -0.0454770065844059, -0.03203544765710831, -0.031076496466994286, 0.04846763238310814, 0.01437612995505333, -0.001916885026730597, 0.04573706164956093, -0.024038774892687798, -0.004408733919262886, 0.005656182300299406, -0.06225051358342171, 0.01924402266740799, -0.011450518853962421, 0.014132329262793064, 0.046549730002880096, -0.03598502278327942, 0.011873106472194195, 0.017066067084670067, -0.08204714953899384, 0.013693487271666527, -0.08243723213672638, 0.00755376648157835, 0.010662228800356388, -0.051328230649232864, 0.018821435049176216, -0.004266516771167517, 0.037350308150053024, 0.004134458024054766, 0.04170621931552887, 0.008671187795698643, 0.06579375267028809, 0.07444056123495102, -0.022283408790826797, -0.06524113565683365, 0.06267309933900833, 0.005639928858727217, 0.00674109673127532, -0.039105676114559174, -0.01851261965930462, 0.02722444012761116, -0.024055028334259987, -0.04521695151925087, 0.06062517315149307, -0.008825594559311867, -0.0804218128323555, 0.01797625795006752, -0.03094646893441677, -0.007082418072968721, -0.0538637600839138, -0.040861040353775024, 0.043071504682302475, 0.0312877893447876, -0.023778719827532768, 0.01799251139163971, -0.023404892534017563, 0.050548065453767776, -0.017894990742206573, -0.004575331229716539, 0.07053974270820618, 0.054611414670944214, -0.020398013293743134, -0.040080878883600235, 0.019877905026078224, -0.04489188268780708, 0.05669185146689415, 0.03517235070466995, -0.09257934987545013, 0.016017723828554153, 0.07912153750658035, 0.04066599905490875, -0.014847478829324245, 0.06663893163204193, 0.02925611473619938, 0.014693071134388447, -0.025534087792038918, -0.012279441580176353, -0.01361222006380558, 0.05561912804841995, -0.002541624940931797, 0.008354246616363525, -0.03304315730929375, -0.0012261156225576997, -0.038097962737083435, 0.010459061712026596, 0.10532201826572418, -0.07314028590917587, 0.03179164603352547, -0.030670160427689552, -0.034359682351350784, 0.0003027195343747735, 0.032100461423397064, 0.036115050315856934, -0.009678898379206657, 0.01323026604950428, -0.026866866275668144, -0.011369251646101475, 0.06634636968374252, -0.06218549981713295, -0.011637432500720024, 0.005623675417155027, 0.022348422557115555, -0.005424571223556995, 0.02147073857486248, 0.014140455983579159, 0.019065234810113907, -0.017878737300634384, 0.0010788192739710212, -0.025095246732234955, -0.05945492908358574, -0.04173872619867325, -0.04768746718764305, -0.024055028334259987, 0.030052531510591507, 0.004936969373375177, -0.062283020466566086, 0.05175081640481949, 0.0573744922876358, 0.0344897098839283, -0.0022734440863132477, -0.03322194516658783, 0.005904046818614006, 0.003776883240789175, -0.026574304327368736, 0.03213296830654144, -0.03218172863125801, 0.014457397162914276, -0.014668690972030163, -0.01109294407069683, 0.01726110838353634, 0.012539496645331383, 0.008260789327323437, -0.00888248160481453, -0.02475392445921898, -0.0564643032848835, -0.0019331384683027864, 0.040340933948755264, 0.022771010175347328, 0.07099483907222748, 0.0012098622974008322, 0.04771997407078743, 0.01644843816757202, -0.003464005421847105, 0.03487979248166084, 0.01696854643523693, 0.017374882474541664, -0.028280911967158318, 0.02475392445921898, -0.05045054480433464, -0.09700027853250504, -0.06137282773852348, 0.0014953125501051545, 0.024103788658976555, -0.026395518332719803, -0.047850001603364944, -0.017829976975917816, -0.03024757280945778, 0.02771204337477684, -0.060820214450359344, -0.011889359913766384, 0.0424213670194149, -0.02070682868361473, -0.03301065042614937, 0.0007583225960843265, 0.015180673450231552, -0.026135463267564774, 0.03245803341269493, -0.04719986766576767, 0.011450518853962421, -0.005176707170903683, -0.06166538968682289, 0.03578998148441315, -0.024591390043497086, -0.05487146973609924, -0.004364037420600653, 0.07866644114255905, 0.01657033897936344, 0.04121861606836319, 0.05867476388812065, 0.02072308212518692, -0.04368913173675537, 0.017147334292531013, 0.0005714084836654365, -0.005485521629452705, 0.08451766520738602, -0.014920619316399097, -0.02322610467672348, -0.008191712200641632, -0.004106014501303434, 0.0003428451018407941, 0.00480694230645895, 0.05451389402151108, 0.0006729922606609762, -0.04716736078262329, 0.02699689380824566, -0.01159679889678955, -0.004229946527630091, -0.03569246083498001, 0.023161090910434723, -0.038618072867393494, -0.02047928050160408, -0.02673683874309063, 0.09381461143493652, -0.010280273854732513, 0.018772674724459648, 0.007602526806294918, 0.015050645917654037, 0.018918955698609352, 0.006546055898070335, -0.03975581005215645, -0.029516169801354408, 0.05269351601600647, 0.07184001803398132, -0.05942242220044136, -0.01750491000711918, 0.04469684511423111, -0.023079823702573776, -0.032116714864969254, -0.05815465748310089, 0.017894990742206573, 0.023404892534017563, -0.034554723650217056, 0.021308204159140587, 0.025810394436120987, -0.016903532668948174, 0.019877905026078224, -0.04866267368197441, 0.010995423421263695, 0.11806467920541763, 0.034132134169340134, -0.02368120104074478, 0.026281744241714478, 0.013352165929973125, -0.009914572350680828, 0.028329672291874886, -0.01361222006380558, -0.014831225387752056, 0.001967676915228367, 0.034554723650217056, -0.06780917197465897, 0.058284685015678406, 0.03848804533481598, 0.04941032826900482, 0.0538637600839138, -0.026834359392523766, -0.05119820311665535, -0.045542020350694656, -0.00006158513861009851, 0.01396979484707117, -0.01818755269050598, 0.011824347078800201, 0.04274643585085869, -0.02724069356918335, -0.025176512077450752, 0.012157541699707508, -0.07886148244142532, 0.005058870185166597, 0.01075162272900343, -0.05470893532037735, -0.045542020350694656, -0.07834137976169586, -0.009743912145495415, -0.019536584615707397, -0.027386974543333054, 0.03816297650337219, -0.0009350783075205982, 0.04047096148133278, 0.03426216170191765, 0.024103788658976555, -0.0013683328870683908, -0.013100238516926765, -0.019617849960923195, 0.09667520970106125, -0.060105063021183014, -0.022771010175347328, 0.013059604912996292, 0.03023131936788559, -0.02998751774430275, -0.013685360550880432, 0.018577633425593376, 0.04391667991876602, 0.019130248576402664, -0.021584512665867805, -0.07535075396299362, -0.01496125292032957, -0.00884997472167015, 0.009711405262351036, -0.02917484939098358, -0.019130248576402664, -0.01695229299366474, 0.001522740232758224, 0.029629943892359734, -0.05594419315457344, 0.004114141222089529, -0.02647678554058075, -0.047622453421354294, -0.02150324545800686, -0.016050230711698532, 0.028914794325828552, 0.011247350834310055, 0.026541797444224358, -0.068069227039814, -0.005160453729331493, 0.00836237333714962, 0.03552992641925812, 0.007931658066809177, -0.06153536215424538, 0.016196509823203087, -0.004855702631175518, 0.06153536215424538, -0.03819548338651657, -0.04021090641617775, 0.07014966756105423, 0.024558883160352707, -0.06459100544452667, 0.041121095418930054, -0.042356353253126144, -0.0724901556968689, -0.025371553376317024, 0.005026363302022219, -0.03715526685118675, -0.02745198830962181, -0.012385088950395584, -0.010199006646871567, 0.05214089900255203, 0.009370083920657635, -0.06663893163204193, -0.004900399595499039, -0.0033563266042619944, 0.007123051676899195, -0.051880843937397, -0.012230681255459785, -0.04099106788635254, -0.04970289021730423, 0.053538691252470016, -0.0163265373557806, -0.04788250848650932, 0.009654518216848373, 0.014725578017532825, -0.003738281549885869, -0.028297165408730507, 0.0419662743806839, 0.03068641386926174, 0.0033055348321795464, -0.02225090190768242, -0.007269332185387611, -0.01474995817989111, -0.032588060945272446, -0.029857492074370384, -0.02325861155986786, -0.017342375591397285, 0.06563121825456619, 0.052563488483428955, 0.022413434460759163, -0.011409885250031948, -0.004766308702528477, 0.028394686058163643, -0.043591611087322235, 0.01336029265075922, -0.01585518941283226, -0.02200710028409958, 0.07275021076202393, 0.02646053209900856, 0.025566594675183296, 0.005424571223556995, 0.05617174133658409, 0.0018285071710124612, -0.04472935199737549, -0.010580961592495441, 0.0883534699678421, -0.06277061998844147, -0.01496125292032957, -0.024396350607275963, 0.006757350172847509, 0.011019803583621979, -0.010020219720900059, 0.014790591783821583, -0.010150247253477573, -0.0229660514742136, -0.024298829957842827, -0.03923569992184639, 0.02748449519276619, 0.013758501037955284, -0.04424174875020981, 0.0037443763576447964, 0.047102347016334534, -0.05474144220352173, 0.007590336725115776, 0.027110667899250984, -0.004225883167237043, 0.08068186789751053, -0.024770177900791168, -0.02543656714260578, -0.0034477519802749157, -0.052108392119407654, 0.07346535474061966, -0.03819548338651657, -0.007655350491404533, -0.024851445108652115, -0.024656403809785843, 0.06702901422977448, 0.005107630044221878, -0.04014589264988899, 0.013782881200313568, -0.032376766204833984, -0.004449367523193359, -0.007586273364722729, 0.029662450775504112, -0.03422965481877327, 0.004114141222089529, -0.054318856447935104, -0.026151716709136963, 0.01826881803572178, 0.027517002075910568, 0.057829588651657104, 0.001018376904539764, -0.003071892075240612, -0.043104011565446854, -0.0231935977935791, -0.020560547709465027, -0.056529317051172256, -0.03728529438376427, 0.01348219346255064, -0.041121095418930054, 0.032376766204833984, -0.003990209195762873, -0.03223048895597458, -0.0016873058630153537, 0.001929075107909739, -0.026785599067807198, -0.02498147264122963, -0.02270599640905857, 0.038130469620227814, -0.01184060052037239, -0.027386974543333054, 0.0021759236697107553, -0.0174724031239748, 0.033319465816020966, 0.014953126199543476, 0.00505480682477355, -0.004057254176586866, 0.02475392445921898, -0.03900815546512604, -0.03125528246164322, -0.0219745934009552, -0.04073101282119751, 0.02595667541027069, 0.012450102716684341, -0.030605148524045944, -0.016415931284427643, 0.030881455168128014, 0.042096298187971115, -0.05262850224971771, -0.029581183567643166, 0.07886148244142532, 0.030556388199329376, -0.009760165587067604, 0.02871975302696228, -0.037090253084897995, 0.03748033568263054, 0.015367587096989155, 0.06982459872961044, 0.02371370792388916, -0.060072556138038635, 0.0180087648332119, -0.044826868921518326, 0.015830809250473976, -0.004122267942875624, 0.03390458598732948, -0.040535975247621536, 0.06290064752101898, 0.012677649967372417, -0.020430520176887512, -0.01046718843281269, 0.029662450775504112, -0.020365506410598755, -0.03380706533789635, -0.03878060728311539, -0.0630306750535965, 0.00218405039049685, -0.015180673450231552, 0.024656403809785843, -0.01943906396627426, 0.02169828489422798, -0.0247214175760746, 0.024883951991796494, 0.07262018322944641, 0.006123467348515987, 0.04863016679883003, 0.02294979803264141, -0.019292782992124557, 0.04589959606528282, -0.016196509823203087, -0.01774870976805687, 0.004138521384447813, -0.03172663226723671, -0.027614522725343704, -0.09953580796718597, 0.03151533752679825, -0.015798302367329597, -0.025420313701033592, 0.05620424821972847, -0.029564930126070976, 0.0032364577054977417, 0.01674100011587143 ]
729,505
collections
_replace
Return a new MessagePayload object replacing specified fields with new values
def namedtuple(typename, field_names, *, rename=False, defaults=None, module=None): """Returns a new subclass of tuple with named fields. >>> Point = namedtuple('Point', ['x', 'y']) >>> Point.__doc__ # docstring for the new class 'Point(x, y)' >>> p = Point(11, y=22) # instantiate with positional args or keywords >>> p[0] + p[1] # indexable like a plain tuple 33 >>> x, y = p # unpack like a regular tuple >>> x, y (11, 22) >>> p.x + p.y # fields also accessible by name 33 >>> d = p._asdict() # convert to a dictionary >>> d['x'] 11 >>> Point(**d) # convert from a dictionary Point(x=11, y=22) >>> p._replace(x=100) # _replace() is like str.replace() but targets named fields Point(x=100, y=22) """ # Validate the field names. At the user's option, either generate an error # message or automatically replace the field name with a valid name. if isinstance(field_names, str): field_names = field_names.replace(',', ' ').split() field_names = list(map(str, field_names)) typename = _sys.intern(str(typename)) if rename: seen = set() for index, name in enumerate(field_names): if (not name.isidentifier() or _iskeyword(name) or name.startswith('_') or name in seen): field_names[index] = f'_{index}' seen.add(name) for name in [typename] + field_names: if type(name) is not str: raise TypeError('Type names and field names must be strings') if not name.isidentifier(): raise ValueError('Type names and field names must be valid ' f'identifiers: {name!r}') if _iskeyword(name): raise ValueError('Type names and field names cannot be a ' f'keyword: {name!r}') seen = set() for name in field_names: if name.startswith('_') and not rename: raise ValueError('Field names cannot start with an underscore: ' f'{name!r}') if name in seen: raise ValueError(f'Encountered duplicate field name: {name!r}') seen.add(name) field_defaults = {} if defaults is not None: defaults = tuple(defaults) if len(defaults) > len(field_names): raise TypeError('Got more default values than field names') field_defaults = dict(reversed(list(zip(reversed(field_names), reversed(defaults))))) # Variables used in the methods and docstrings field_names = tuple(map(_sys.intern, field_names)) num_fields = len(field_names) arg_list = ', '.join(field_names) if num_fields == 1: arg_list += ',' repr_fmt = '(' + ', '.join(f'{name}=%r' for name in field_names) + ')' tuple_new = tuple.__new__ _dict, _tuple, _len, _map, _zip = dict, tuple, len, map, zip # Create all the named tuple methods to be added to the class namespace namespace = { '_tuple_new': tuple_new, '__builtins__': {}, '__name__': f'namedtuple_{typename}', } code = f'lambda _cls, {arg_list}: _tuple_new(_cls, ({arg_list}))' __new__ = eval(code, namespace) __new__.__name__ = '__new__' __new__.__doc__ = f'Create new instance of {typename}({arg_list})' if defaults is not None: __new__.__defaults__ = defaults @classmethod def _make(cls, iterable): result = tuple_new(cls, iterable) if _len(result) != num_fields: raise TypeError(f'Expected {num_fields} arguments, got {len(result)}') return result _make.__func__.__doc__ = (f'Make a new {typename} object from a sequence ' 'or iterable') def _replace(self, /, **kwds): result = self._make(_map(kwds.pop, field_names, self)) if kwds: raise ValueError(f'Got unexpected field names: {list(kwds)!r}') return result _replace.__doc__ = (f'Return a new {typename} object replacing specified ' 'fields with new values') def __repr__(self): 'Return a nicely formatted representation string' return self.__class__.__name__ + repr_fmt % self def _asdict(self): 'Return a new dict which maps field names to their values.' return _dict(_zip(self._fields, self)) def __getnewargs__(self): 'Return self as a plain tuple. Used by copy and pickle.' return _tuple(self) # Modify function metadata to help with introspection and debugging for method in ( __new__, _make.__func__, _replace, __repr__, _asdict, __getnewargs__, ): method.__qualname__ = f'{typename}.{method.__name__}' # Build-up the class namespace dictionary # and use type() to build the result class class_namespace = { '__doc__': f'{typename}({arg_list})', '__slots__': (), '_fields': field_names, '_field_defaults': field_defaults, '__new__': __new__, '_make': _make, '_replace': _replace, '__repr__': __repr__, '_asdict': _asdict, '__getnewargs__': __getnewargs__, '__match_args__': field_names, } for index, name in enumerate(field_names): doc = _sys.intern(f'Alias for field number {index}') class_namespace[name] = _tuplegetter(index, doc) result = type(typename, (tuple,), class_namespace) # For pickling to work, the __module__ variable needs to be set to the frame # where the named tuple is created. Bypass this step in environments where # sys._getframe is not defined (Jython for example) or sys._getframe is not # defined for arguments greater than 0 (IronPython), or where the user has # specified a particular module. if module is None: try: module = _sys._getframe(1).f_globals.get('__name__', '__main__') except (AttributeError, ValueError): pass if module is not None: result.__module__ = module return result
(self, /, **kwds)
[ 0.0541859045624733, 0.0014151688665151596, -0.015421349555253983, -0.03568440303206444, -0.032841190695762634, -0.03333566337823868, 0.0027891318313777447, 0.021468330174684525, 0.021015064790844917, -0.04615073278546333, -0.04219495505094528, 0.05707032233476639, 0.004501756746321917, 0.06329242885112762, 0.010816577821969986, 0.03343867510557175, -0.029791945591568947, 0.05636982247233391, -0.06539393961429596, -0.03234671801328659, 0.019016573205590248, 0.015946725383400917, 0.03345927968621254, 0.059831127524375916, 0.0319964662194252, 0.010981401428580284, 0.01885174959897995, 0.010471477173268795, 0.001819502911530435, -0.006005776114761829, -0.004115450195968151, -0.015823107212781906, -0.03016279824078083, -0.010744467377662659, 0.002868968527764082, -0.060943689197301865, -0.05002409592270851, 0.05855374038219452, 0.04919997602701187, -0.005011681001633406, 0.06395173072814941, -0.09955371916294098, -0.04952962324023247, -0.061067305505275726, -0.0017873106990009546, 0.02338441088795662, 0.022704511880874634, -0.011424366384744644, -0.02427033893764019, -0.05344419553875923, 0.023590439930558205, 0.006345725618302822, 0.01578190177679062, -0.004233917687088251, -0.023178379982709885, -0.0009329298045486212, -0.0018426812021061778, 0.06185021996498108, -0.006896855775266886, 0.023116571828722954, -0.002180055482313037, 0.05760600045323372, -0.015112304128706455, 0.010419969446957111, -0.054227109998464584, -0.02420853078365326, -0.009317709133028984, -0.0735115185379982, -0.022766320034861565, 0.0012265226105228066, -0.009024116210639477, -0.0008640385349281132, 0.01875903643667698, 0.02427033893764019, 0.0763547345995903, 0.04223616048693657, -0.029194457456469536, -0.010857783257961273, 0.04425525292754173, -0.05158992484211922, -0.01659572124481201, -0.013443460687994957, -0.08076377958059311, -0.04347233846783638, -0.03424219414591789, 0.039495959877967834, -0.05047736316919327, -0.0004539099463727325, 0.030121592804789543, -0.001704898662865162, -0.053114548325538635, 0.016049740836024284, -0.0037909529637545347, 0.033376868814229965, -0.05167233571410179, -0.08661503344774246, 0.0038321588654071093, -0.03793013095855713, -0.01295929029583931, 0.0358080230653286, 0.02497084252536297, -0.045738670974969864, -0.09180699288845062, -0.021056270226836205, -0.008704769425094128, -0.019820090383291245, -0.019490443170070648, -0.015163811855018139, 0.03597284480929375, -0.03265576437115669, -0.04322510585188866, -0.05772962048649788, -0.02997737191617489, 0.060820069164037704, -0.0039686537347733974, -0.03403616324067116, 0.02109747752547264, -0.025959786027669907, -0.030677873641252518, -0.031089933589100838, 0.027134157717227936, 0.018800241872668266, -0.06127333641052246, 0.0491175651550293, 0.008488438092172146, -0.008993211202323437, 0.06143816187977791, -0.026000991463661194, 0.03893968090415001, -0.00331450835801661, 0.022951748222112656, 0.002977134194225073, -0.04240098223090172, 0.05674067512154579, 0.017924614250659943, 0.03840400278568268, 0.049859270453453064, 0.05027133226394653, -0.06984418630599976, 0.03760048374533653, 0.04200952872633934, -0.012135169468820095, 0.06555876135826111, 0.03545777127146721, -0.0018529827939346433, -0.04623314365744591, 0.013309541158378124, 0.006984418723732233, -0.03751807287335396, 0.030121592804789543, -0.03304722160100937, -0.03599344938993454, 0.018903257325291634, 0.02243667282164097, -0.04643917456269264, -0.00514817563816905, -0.011187431402504444, -0.06407534331083298, -0.02326079271733761, -0.04157686233520508, 0.018542705103754997, -0.05319695919752121, -0.016142453998327255, -0.01570979133248329, 0.055298466235399246, 0.02132410928606987, 0.04334872215986252, -0.08529643714427948, -0.013659792020916939, -0.03356229513883591, -0.0004024024528916925, 0.041206009685993195, 0.026371845975518227, 0.04417284205555916, -0.03411857783794403, 0.01944923587143421, -0.007108036894351244, 0.02480601705610752, 0.024002499878406525, -0.020458783954381943, 0.03881606087088585, -0.01431908831000328, -0.06197383999824524, 0.008874744176864624, 0.058471329510211945, 0.03181103989481926, -0.002030683681368828, 0.06226228177547455, 0.0522904247045517, 0.026845715939998627, 0.01612185128033161, -0.04005224257707596, 0.005732785910367966, -0.00664446922019124, 0.008725372143089771, 0.06300398707389832, -0.06353966891765594, 0.04615073278546333, 0.01761556975543499, 0.11043210327625275, -0.0275668203830719, 0.03317083790898323, 0.029235664755105972, -0.017450744286179543, 0.032841190695762634, -0.0294622965157032, 0.05488640442490578, -0.05113665759563446, -0.03158440813422203, -0.033788926899433136, 0.08340096473693848, -0.021406522020697594, 0.007726126816123724, 0.019562553614377975, -0.010816577821969986, -0.0725637823343277, 0.053526606410741806, -0.029853753745555878, 0.006350876297801733, -0.00420558825135231, 0.08818086236715317, 0.02344621904194355, -0.02610400691628456, -0.005830650217831135, 0.041432641446590424, -0.04882912337779999, -0.016173359006643295, -0.02909144200384617, -0.03840400278568268, -0.06386931240558624, 0.062715545296669, -0.012856274843215942, -0.02909144200384617, -0.019243206828832626, 0.023961294442415237, -0.016307277604937553, 0.009204392321407795, -0.03576681762933731, -0.02315777726471424, -0.02633064053952694, 0.027772851288318634, 0.035725612193346024, -0.03380953148007393, -0.00980703067034483, -0.009801879525184631, -0.06741303205490112, -0.027834659442305565, 0.028205513954162598, -0.019820090383291245, 0.007726126816123724, -0.01666783168911934, 0.014998987317085266, -0.010981401428580284, 0.032779380679130554, 0.004336932674050331, -0.024723606184124947, -0.03564319759607315, -0.013505269773304462, -0.014267580583691597, -0.027772851288318634, 0.004107723943889141, -0.058347709476947784, 0.03076028637588024, 0.045038167387247086, 0.051219068467617035, -0.027772851288318634, 0.004645977634936571, -0.02569194696843624, 0.01316532026976347, 0.01528743002563715, 0.12032154947519302, 0.03628189116716385, -0.015421349555253983, 0.01625577174127102, -0.04536781832575798, -0.03343867510557175, 0.016472103074193, -0.025176871567964554, 0.022786922752857208, -0.05113665759563446, -0.008869593963027, -0.022931143641471863, -0.022869335487484932, -0.011341954581439495, 0.022725114598870277, 0.061355747282505035, -0.055298466235399246, 0.030677873641252518, -0.008488438092172146, -0.00011404084943933412, 0.045161787420511246, -0.03286179155111313, 0.0134640634059906, -0.03191405534744263, 0.0004265465831849724, 0.024105515331029892, -0.08570849895477295, 0.020489688962697983, 0.02338441088795662, -0.06873162090778351, -0.024929635226726532, 0.01825426146388054, 0.041267819702625275, 0.03887787088751793, 0.051631130278110504, -0.0418240986764431, -0.0274019967764616, -0.004432221408933401, -0.01104321051388979, 0.04664520174264908, -0.027649233117699623, 0.013474364764988422, -0.021550742909312248, 0.005810047499835491, 0.060243185609579086, 0.022457275539636612, 0.0014525118749588728, -0.014689942821860313, 0.01481356006115675, 0.04318389669060707, -0.014782655984163284, -0.06288037449121475, -0.04800499975681305, -0.014380897395312786, -0.008751126006245613, -0.03393314778804779, -0.05064218491315842, -0.0077879359014332294, 0.011857029050588608, -0.017914311960339546, -0.035725612193346024, 0.007051378488540649, 0.014174867421388626, 0.05785323679447174, 0.0011988373007625341, -0.009698865003883839, 0.01001306064426899, -0.025939183309674263, 0.004447673447430134, -0.020551497116684914, 0.0491175651550293, -0.010471477173268795, -0.04623314365744591, -0.011177130043506622, -0.0071337902918457985, -0.017945216968655586, 0.014123359695076942, 0.01697687618434429, 0.12658485770225525, -0.022889938205480576, 0.01169220544397831, -0.0836481973528862, -0.05307333916425705, 0.014061550609767437, 0.04870550334453583, -0.028349734842777252, 0.002307536546140909, -0.01325803343206644, 0.006711428984999657, -0.009152884595096111, 0.008962307125329971, -0.05414469540119171, 0.0012857562396675348, 0.01137285865843296, 0.020170342177152634, -0.03541656583547592, -0.032264307141304016, -0.014998987317085266, -0.014659037813544273, -0.011352255940437317, 0.016204264014959335, -0.01584370993077755, -0.0294622965157032, -0.03568440303206444, -0.047098468989133835, -0.03212008625268936, 0.02727837860584259, 0.07379996031522751, -0.08727432787418365, -0.06786629557609558, 0.013556777499616146, -0.06642408668994904, 0.027834659442305565, 0.021045969799160957, 0.012217582203447819, -0.0024401682894676924, 0.05583414435386658, 0.029009031131863594, 0.014164566062390804, 0.06279795616865158, -0.06691855937242508, 0.01894446276128292, -0.03601405397057533, -0.03150199353694916, 0.035375360399484634, -0.013484667055308819, -0.03939294442534447, -0.03599344938993454, -0.050106506794691086, -0.012413310818374157, 0.0077827852219343185, -0.04376078397035599, -0.03529294580221176, 0.044337667524814606, -0.029194457456469536, 0.01812034286558628, 0.09650447219610214, -0.04413163661956787, 0.009431025944650173, -0.00850904081016779, 0.046397965401411057, 0.02363164722919464, -0.06300398707389832, -0.08335975557565689, 0.06436378508806229, 0.02243667282164097, 0.010528135113418102, 0.03347988426685333, 0.03560199216008186, 0.034551240503787994, -0.0024569083470851183, -0.006443589925765991, 0.00601092679426074, 0.023198982700705528, -0.02886481024324894, 0.04429646208882332, -0.04384319484233856, 0.024847224354743958, 0.013618586584925652, 0.005070914514362812, -0.040690936148166656, 0.0012497010175138712, 0.0047129373997449875, -0.012681149877607822, 0.054227109998464584, -0.03760048374533653, -0.007896102033555508, -0.03745626285672188, -0.010857783257961273, 0.028885412961244583, 0.008864442817866802, -0.0002852228353731334, 0.010898989625275135, -0.05043615773320198, 0.010765070095658302, 0.015194715932011604, -0.04755173623561859, 0.012217582203447819, 0.042091939598321915, 0.016719337552785873, 0.07515975832939148, 0.056699469685554504, 0.08463714271783829, 0.015627378597855568, -0.002007505390793085, -0.038136161863803864, -0.03922812268137932, -0.048334650695323944, 0.01609094627201557, 0.0022392889950424433, 0.017759790644049644, -0.025774359703063965, 0.0500653013586998, 0.0332738533616066, -0.041267819702625275, -0.008406026288866997, 0.03881606087088585, -0.0690612718462944, -0.01538014318794012, -0.04110299423336983, 0.06551755219697952, -0.01528743002563715, 0.02490903250873089, -0.019696472212672234, -0.03471606224775314, 0.016183659434318542, 0.00029632914811372757, -0.008581151254475117, -0.018707528710365295, -0.07862106710672379, 0.05274369195103645, -0.021880391985177994, 0.054103489965200424, 0.0022663306444883347, -0.0027556519489735365, 0.030080387368798256, 0.05286731198430061, 0.030327623710036278, -0.009977005422115326, 0.030410034582018852, -0.06180901452898979, 0.027875864878296852, 0.05183716118335724, -0.00830301083624363, 0.005537057761102915, -0.006479645147919655, -0.024311546236276627, 0.041515056043863297, -0.043513547629117966, -0.033603500574827194, 0.04289545491337776, -0.050394948571920395, 0.025877373293042183, -0.031131140887737274, 0.0665477067232132, -0.039495959877967834, 0.06044921651482582, 0.01107411552220583, -0.012506023980677128, -0.03261455520987511, -0.06378690153360367, -0.019016573205590248, 0.017481649294495583, -0.03016279824078083, 0.0019302440341562033, 0.006026378832757473, 0.004669155925512314, 0.02379647083580494, -0.06568238139152527, -0.05286731198430061, 0.037497468292713165, 0.029791945591568947, -0.032841190695762634, 0.015328635461628437, -0.029894959181547165, 0.028782397508621216, 0.025424107909202576, -0.00830301083624363, 0.039908021688461304, 0.02445576712489128, 0.003023491008207202, -0.050394948571920395, -0.023549234494566917, -0.05488640442490578, 0.03852761909365654, 0.03704420104622841, -0.00464082695543766, 0.017883408814668655, 0.04052611067891121, 0.020201247185468674, 0.0481698252260685, 0.054474346339702606, -0.055463287979364395, -0.026371845975518227, -0.011084416881203651, 0.00035186068271286786, -0.024538177996873856, 0.010002759285271168, -0.01528743002563715, -0.030307020992040634, -0.006484795827418566, -0.017656775191426277, 0.0015297731151804328, -0.01034270878881216, -0.04664520174264908, -0.01609094627201557, -0.035911038517951965, 0.004867460113018751, 0.01720350980758667, 0.030142195522785187, 0.004996228497475386, 0.006572358775883913, 0.024435164406895638, -0.009765824303030968, -0.0010694246739149094, 0.0319964662194252, 0.03976380079984665, 0.017728885635733604, -0.00738102663308382, -0.018305769190192223, 0.03063666820526123, 0.0082360515370965, 0.04693364351987839, 0.017656775191426277, 0.013896727003157139, 0.0294622965157032, -0.036899980157613754, 0.0038733649998903275, -0.014823862351477146, -0.05739997327327728, 0.02769043855369091, 0.04289545491337776, -0.01157888863235712, -0.06168539822101593, -0.01148617547005415, -0.026289435103535652, -0.02046908624470234, 0.008210297673940659, 0.027237173169851303, 0.00853994581848383, -0.02363164722919464, 0.04240098223090172, -0.0047129373997449875, -0.00038308711373247206, -0.0193256177008152, 0.02208642102777958, -0.03657033294439316, 0.006484795827418566, 0.0102963512763381, 0.0009715604246594012, -0.048046208918094635, 0.03811555728316307, -0.03352108970284462, -0.0025753756053745747, 0.00420558825135231, -0.03652912750840187, -0.01549345999956131, 0.006335423793643713, 0.05055977404117584, 0.014185168780386448, 0.061479367315769196, -0.04854067787528038, 0.03964018076658249, 0.008241201750934124, -0.021591948345303535, -0.01825426146388054, -0.014566324651241302, -0.015122605487704277, 0.012423612177371979, -0.04800499975681305, -0.06803112477064133, 0.024229133501648903, 0.012897481210529804, 0.00937951821833849, -0.00914258323609829, -0.05665826424956322, -0.011238939128816128, -0.03718842566013336, 0.051219068467617035, -0.0449969619512558, -0.030677873641252518, -0.028123101219534874, 0.023301998153328896, -0.06695976853370667, -0.036323096603155136, 0.0124339135363698, 0.020829638466238976, -0.014772354625165462, 0.014164566062390804, 0.06226228177547455, 0.011702506802976131, -0.032264307141304016, -0.0065157003700733185, 0.014380897395312786, -0.010744467377662659, -0.023198982700705528, 0.051754746586084366, -0.0960099995136261, 0.04442007839679718, 0.01549345999956131, -0.02008792944252491, 0.053938668221235275, 0.015277127735316753, -0.0316874198615551, -0.025547726079821587, 0.0071337902918457985, -0.0782502144575119, -0.010569341480731964, 0.02785526216030121, 0.012423612177371979, 0.012186677195131779, -0.049859270453453064, 0.035313550382852554, -0.027463804930448532, 0.005748238414525986, 0.05027133226394653, -0.024311546236276627, 0.05616379156708717, 0.053279370069503784, 0.01885174959897995, -0.023549234494566917, -0.0038836663588881493, 0.05455675721168518, -0.0037317192181944847, -0.026639685034751892, -0.02863817662000656, 0.025424107909202576, 0.0487879142165184, -0.0323261134326458, -0.0016173358308151364, 0.06127333641052246, 0.013361048884689808, -0.04487334564328194, -0.026248227804899216, -0.007442835718393326, -0.009168337099254131, 0.021045969799160957, 0.005403138231486082, 0.030595462769269943, -0.08752156794071198, 0.03939294442534447, 0.019789185374975204, 0.017368333414196968, 0.019820090383291245, -0.06168539822101593, -0.024167325347661972, 0.027298981323838234, -0.03181103989481926, 0.04800499975681305, -0.020366070792078972, 0.020603004842996597, 0.005217710975557566, -0.002402825513854623, 0.03976380079984665, 0.0036930886562913656, 0.05233163386583328, -0.001327606150880456, 0.02256029099225998, 0.03881606087088585, -0.006798991467803717, -0.00866356398910284, 0.04417284205555916, 0.012011552229523659, -0.00917348824441433, 0.050930626690387726, -0.05430952087044716, 0.026536669582128525, 0.07029744982719421, -0.015606775879859924, 0.03415978327393532, 0.028967825695872307, -0.017749488353729248, 0.08636779338121414, -0.0024672099389135838, 0.005065763834863901, 0.000005377102752390783, -0.03003918193280697, -0.02544471062719822, -0.037497468292713165, 0.01787310652434826, 0.04413163661956787, 0.04487334564328194, -0.04606831818819046, 0.023178379982709885, 0.03244973346590996, -0.031893450766801834, 0.02598038874566555, 0.018717829138040543, -0.006175750866532326, 0.07388237863779068, -0.05801806226372719, 0.06250951439142227, -0.0012213719310238957, 0.0459447018802166, -0.0497356541454792, -0.018892955034971237, 0.05896579846739769, 0.024352751672267914, -0.0076849209144711494, 0.026536669582128525, 0.012979893013834953, 0.03801254555583, -0.01964496448636055, -0.01958315633237362, 0.032717570662498474, -0.06551755219697952, 0.03945475444197655, -0.011857029050588608, -0.02832913212478161, -0.05274369195103645, -0.031007522717118263, -0.002333290409296751, 0.018068835139274597, 0.019346222281455994, -0.0017512553604319692, 0.036735158413648605, 0.005598866380751133, 0.03275877609848976 ]
729,506
tinytuya.OutletDevice
OutletDevice
Represents a Tuya based Smart Plug or Switch.
class OutletDevice(Device): """ Represents a Tuya based Smart Plug or Switch. """ def set_dimmer(self, percentage=None, value=None, dps_id=3, nowait=False): """Set dimmer value Args: percentage (int): percentage dim 0-100 value (int): direct value for switch 0-255 dps_id (int): DPS index for dimmer value nowait (bool): True to send without waiting for response. """ if percentage is not None: level = int(percentage * 255.0 / 100.0) else: level = value if level == 0: self.turn_off(nowait=nowait) elif level is not None: if level < 25: level = 25 if level > 255: level = 255 self.turn_on(nowait=nowait) self.set_value(dps_id, level, nowait=nowait)
(dev_id, address=None, local_key='', dev_type='default', connection_timeout=5, version=3.1, persist=False, cid=None, node_id=None, parent=None, connection_retry_limit=5, connection_retry_delay=5, port=6668)
[ 0.008266275748610497, -0.05799853056669235, -0.040806904435157776, -0.024135112762451172, -0.015316513366997242, -0.013497097417712212, -0.07002895325422287, 0.03629549592733383, -0.08205938339233398, -0.0026780690532177687, -0.0201435349881649, 0.028609391301870346, -0.016708923503756523, 0.05060947313904762, -0.011408481746912003, -0.0055603585205972195, 0.03180265054106712, 0.001648845849558711, 0.048938579857349396, -0.0220929104834795, 0.015093727968633175, 0.04058411717414856, 0.042366404086351395, 0.02881360985338688, -0.07856906950473785, 0.04492843896150589, -0.0017381921643391252, -0.020162101835012436, -0.024933427572250366, -0.06791248917579651, -0.02948196791112423, -0.04838161543011665, 0.03999002277851105, 0.06947199255228043, -0.009607630781829357, 0.00023946556029841304, -0.006251922342926264, 0.06301120668649673, -0.12869584560394287, -0.01528866495937109, -0.02940770611166954, -0.040027156472206116, 0.061340317130088806, -0.009681892581284046, -0.008001717738807201, 0.03373346105217934, 0.005681034177541733, 0.05020103231072426, 0.00850298535078764, -0.013673469424247742, 0.015065879561007023, 0.01288443710654974, -0.04585671424865723, 0.032006870955228806, -0.03954445198178291, 0.04054698720574379, 0.014564611949026585, 0.010396664030849934, -0.017516521736979485, 0.011018606834113598, -0.08109397441148758, 0.032118264585733414, 0.044594261795282364, -0.017191626131534576, -0.011371350847184658, -0.01173337735235691, -0.030001800507307053, 0.05079512670636177, 0.02601022459566593, 0.08859442919492722, 0.034160465002059937, -0.014768832363188267, -0.00804349035024643, 0.017479389905929565, 0.05721878260374069, -0.035255830734968185, -0.02279839850962162, 0.03588705509901047, -0.020626237615942955, -0.007092009764164686, -0.0038407316897064447, 0.035014476627111435, 0.02502625435590744, 0.009848982095718384, -0.006683569401502609, 0.016244787722826004, 0.014425370842218399, -0.005221538711339235, -0.049792591482400894, 0.0007455197046510875, -0.04711916297674179, -0.014740983955562115, -0.030280282720923424, 0.04994111508131027, 0.0104987733066082, 0.002144311787560582, -0.031115729361772537, 0.023058313876390457, -0.017238039523363113, -0.017859982326626778, -0.04619089141488075, 0.004813098348677158, -0.01756293512880802, 0.007778932340443134, 0.013097940012812614, -0.06969477981328964, -0.017135929316282272, 0.06884076446294785, 0.03336215019226074, 0.030837247148156166, -0.008386950939893723, -0.016374744474887848, -0.06108039990067482, -0.00005174399848328903, -0.026177313178777695, -0.0051240697503089905, -0.007351926527917385, -0.0013448363170027733, -0.004283982329070568, -0.02682710438966751, -0.05131496116518974, 0.021925820037722588, -0.029500532895326614, -0.038727570325136185, 0.026808539405465126, 0.046005237847566605, 0.006405087187886238, 0.024877730756998062, -0.027309807017445564, 0.013896254822611809, -0.047490473836660385, 0.031078597530722618, 0.01993931643664837, 0.04344320297241211, 0.022074345499277115, 0.0006474708206951618, 0.0032698435243219137, -0.008280199952423573, 0.0450398325920105, 0.022946922108530998, -0.01190974935889244, -0.0008795391768217087, -0.018853235989809036, -0.04953267425298691, 0.02174016647040844, 0.026641450822353363, 0.02400515414774418, -0.06022638827562332, -0.019456613808870316, 0.005513944663107395, -0.07177411019802094, 0.020551975816488266, 0.008489061146974564, 0.063902348279953, -0.00644221855327487, 0.02181442826986313, -0.006562893744558096, -0.021554511040449142, 0.011974728666245937, -0.015223685652017593, -0.03629549592733383, -0.040138546377420425, 0.007802139036357403, 0.031078597530722618, -0.03343641385436058, 0.007853194139897823, -0.08718345314264297, 0.02018066681921482, 0.07325934618711472, 0.01495448686182499, -0.016393311321735382, -0.05008963868021965, -0.011408481746912003, 0.004400016739964485, 0.03843052312731743, 0.010758690536022186, -0.037056680768728256, -0.041586656123399734, 0.015344361774623394, -0.017303017899394035, 0.006168377585709095, 0.009542652405798435, -0.033454976975917816, 0.014898790046572685, 0.044185820966959, 0.03026171773672104, 0.050757996737957, -0.00029153592186048627, -0.020496279001235962, -0.010192443616688251, 0.06367956101894379, 0.04949554428458214, 0.025471825152635574, 0.03620266914367676, 0.05306011438369751, -0.012893719598650932, 0.09683749824762344, -0.0782720223069191, 0.031932611018419266, 0.019605137407779694, 0.002123425714671612, 0.01216038316488266, -0.018528340384364128, 0.04403729736804962, 0.0010947826085612178, -0.024302201345562935, 0.04953267425298691, 0.022854095324873924, -0.0194751787930727, -0.022668439894914627, -0.020700499415397644, 0.021758731454610825, 0.03135707974433899, 0.0323781818151474, 0.061340317130088806, -0.07017748057842255, -0.0023172027431428432, 0.06824667006731033, -0.02545326016843319, -0.025750307366251945, -0.018890365958213806, 0.009941809810698032, -0.0029913615435361862, 0.01417473703622818, -0.06200867146253586, 0.03824486956000328, -0.03163556382060051, -0.021331725642085075, 0.0036434736102819443, -0.007644332479685545, 0.020032143220305443, 0.013422835618257523, -0.02495199255645275, 0.05755295976996422, -0.005314365960657597, 0.05424830690026283, -0.01608698070049286, -0.053282901644706726, -0.04693350940942764, -0.028200950473546982, 0.016838882118463516, -0.033027973026037216, 0.05291159078478813, 0.01587347686290741, 0.004685460589826107, 0.011696246452629566, 0.008489061146974564, -0.0037246975116431713, -0.011603419668972492, -0.02948196791112423, 0.005323648918420076, -0.06642725318670273, 0.030354544520378113, 0.024524986743927002, -0.00860509555786848, -0.0371866375207901, -0.01990218460559845, -0.006451501045376062, -0.003367312252521515, -0.03714950755238533, -0.05565928295254707, -0.014750266447663307, -0.02213004045188427, 0.0897083580493927, -0.0037641492672264576, 0.0015246892580762506, 0.010786538943648338, 0.0004104709660168737, -0.04756473749876022, -0.03432755544781685, 0.10953627526760101, 0.07990578562021255, -0.05473100766539574, -0.024060850962996483, -0.025546086952090263, 0.002541148802265525, 0.06728126853704453, 0.024302201345562935, -0.0016662509879097342, -0.025638915598392487, -0.008233786560595036, -0.03343641385436058, 0.026177313178777695, 0.052651673555374146, -0.02601022459566593, -0.03557144105434418, 0.021480249240994453, 0.044557128101587296, 0.044557128101587296, -0.03928453475236893, -0.00446267519146204, 0.048270225524902344, 0.0015745839336887002, 0.031227121129631996, 0.06189727783203125, 0.01675533689558506, -0.12461143732070923, 0.06163736432790756, 0.021220333874225616, -0.06453357636928558, 0.028219515457749367, -0.04281197488307953, -0.03347354382276535, 0.011167130433022976, -0.024617813527584076, 0.01647685468196869, 0.09468390047550201, -0.010452359914779663, 0.03733516111969948, -0.03544148430228233, 0.03410476818680763, -0.006307618692517281, 0.028052426874637604, 0.02474777214229107, 0.016978122293949127, -0.00625656358897686, 0.015641409903764725, 0.014016930013895035, 0.03559000790119171, 0.08710918575525284, 0.004611198790371418, 0.029259182512760162, 0.005838840734213591, 0.0419950932264328, 0.042292144149541855, -0.02467351034283638, 0.062157195061445236, -0.004089044872671366, -0.013413552194833755, -0.02846086584031582, -0.1099075898528099, -0.023763801902532578, 0.005588206462562084, -0.056439030915498734, 0.017200909554958344, -0.0494212843477726, 0.0118076391518116, 0.01348781492561102, -0.027792509645223618, 0.024153677746653557, 0.021907255053520203, 0.0227612666785717, -0.04314615577459335, 0.02898070029914379, 0.05220610275864601, -0.0012903001625090837, -0.02983471192419529, -0.011612702161073685, 0.04414869099855423, 0.07262811809778214, 0.026307271793484688, 0.026530057191848755, 0.04188370332121849, 0.05432256683707237, 0.09861978143453598, -0.03351067379117012, -0.014462501741945744, -0.0030122476164251566, -0.0201435349881649, -0.020700499415397644, -0.04318328574299812, 0.010740124620497227, 0.010016071610152721, 0.019456613808870316, -0.02608448639512062, -0.034160465002059937, -0.01007176749408245, -0.020032143220305443, 0.07080870866775513, 0.02682710438966751, -0.03390054777264595, -0.02404228411614895, -0.018528340384364128, 0.037409424781799316, 0.030911508947610855, 0.01405406091362238, -0.04270058125257492, 0.005871329922229052, 0.03163556382060051, -0.010730842128396034, 0.03100433573126793, 0.0077696493826806545, 0.013153635896742344, 0.039321668446063995, 0.05963229015469551, -0.025583218783140182, 0.000043258998630335554, 0.005750654730945826, -0.030985770747065544, 0.003112036967650056, 0.057070255279541016, 0.016736771911382675, -0.01591060869395733, 0.02749546244740486, -0.03139420971274376, 0.0013738448033109307, -0.03898748755455017, 0.022501351311802864, 0.0020015898626297712, -0.05565928295254707, -0.025156212970614433, -0.07797497510910034, -0.02240852266550064, 0.04656220227479935, -0.013784862123429775, -0.008438006043434143, 0.0595209002494812, 0.00857260636985302, -0.015353644266724586, -0.034903086721897125, -0.028850741684436798, 0.03820773959159851, -0.03583135828375816, 0.0236152783036232, 0.02912922389805317, -0.017934244126081467, 0.0009091278770938516, 0.016198372468352318, 0.010935062542557716, 0.020737631246447563, -0.022315695881843567, -0.00031561299692839384, 0.0170431025326252, 0.002622372703626752, 0.029983235523104668, -0.0227612666785717, 0.023559581488370895, 0.04433434456586838, -0.0004255553940311074, 0.02933344431221485, -0.0018983193440362811, 0.01710808090865612, -0.021146072074770927, -0.10003075748682022, 0.029036397114396095, -0.01251312717795372, 0.021257463842630386, -0.04786178469657898, 0.040992558002471924, -0.027346938848495483, -0.0008244229247793555, 0.015149423852562904, 0.019066737964749336, 0.019103869795799255, 0.0011197299463674426, -0.06360530108213425, -0.06843232363462448, 0.012225362472236156, 0.021554511040449142, -0.020069273188710213, -0.037205204367637634, -0.026919933035969734, 0.03453177586197853, -0.018649015575647354, 0.04923562705516815, -0.04782465100288391, -0.05109217390418053, -0.017832133919000626, -0.005411834921687841, -0.041438132524490356, 0.020849023014307022, -0.01216038316488266, -0.07233107089996338, -0.020087840035557747, -0.022000083699822426, 0.07804924249649048, 0.06546185165643692, -0.0332321934401989, 0.005314365960657597, 0.008201296441257, 0.010758690536022186, 0.012141818180680275, 0.024376463145017624, 0.03026171773672104, 0.04986685514450073, -0.03789212554693222, -0.02064480260014534, 0.026028789579868317, -0.0988425686955452, -0.034624602645635605, -0.03336215019226074, -0.048158831894397736, 0.011510591953992844, -0.0005056189838796854, -0.04511409252882004, 0.015353644266724586, 0.03947019204497337, -0.024376463145017624, 0.03417903184890747, -0.03880183398723602, -0.07470745593309402, -0.029352009296417236, -0.025007689371705055, -0.07663826644420624, -0.005829557776451111, 0.057107388973236084, -0.013079374097287655, -0.013404269702732563, -0.03447607904672623, -0.01859331876039505, -0.01470385305583477, -0.02968618832528591, -0.044668521732091904, -0.06854371726512909, 0.015632126480340958, -0.020422017201781273, -0.049718331545591354, 0.024970557540655136, -0.011306371539831161, 0.060857612639665604, 0.01513085886836052, 0.016133394092321396, 0.012113969773054123, -0.013051525689661503, 0.013608490116894245, 0.000048045407311292365, -0.011250675655901432, 0.0067903208546340466, 0.007342643570154905, -0.05302298441529274, 0.002965833991765976, 0.04864153265953064, 0.07125427573919296, -0.01304224319756031, 0.0209975466132164, 0.005681034177541733, -0.05677320808172226, 0.01138063333928585, 0.011677681468427181, 0.007551505230367184, 0.003912672866135836, -0.0017660404555499554, -0.013422835618257523, 0.04407442733645439, 0.03954445198178291, -0.04429721459746361, -0.02018066681921482, -0.03403050824999809, -0.04693350940942764, -0.041549522429704666, 0.009059949778020382, -0.06483062356710434, -0.032860882580280304, -0.07819776237010956, 0.005810992326587439, -0.04953267425298691, -0.032860882580280304, 0.009143494069576263, 0.010953627526760101, -0.023559581488370895, -0.020496279001235962, -0.01629120111465454, 0.009848982095718384, -0.013255746103823185, 0.01679246872663498, 0.02315114252269268, 0.005801709834486246, -0.021907255053520203, -0.010721559636294842, 0.01626335270702839, -0.03252670541405678, -0.01812918297946453, -0.0010054362937808037, 0.002541148802265525, 0.01962370239198208, -0.01468528714030981, -0.012048990465700626, -0.0002815279585774988, -0.013032960705459118, -0.04511409252882004, -0.012086121365427971, 0.01824057474732399, -0.004532295744866133, 0.026381533592939377, -0.056958865374326706, 0.05476813763380051, 0.063902348279953, 0.020403452217578888, 0.02170303463935852, -0.026882801204919815, -0.009858264587819576, 0.09780289977788925, -0.0546567440032959, -0.040844034403562546, 0.025898830965161324, 0.00027413078350946307, 0.0332321934401989, 0.019530875608325005, -0.014694569632411003, -0.04299762845039368, 0.02491486258804798, -0.040955428034067154, -0.06958338618278503, -0.026307271793484688, -0.01778572052717209, 0.008424082770943642, -0.011612702161073685, -0.004460354335606098, 0.08770328015089035, 0.045336879789829254, -0.03950732201337814, -0.0055464343167841434, -0.008916066959500313, -0.04927276074886322, 0.06308546662330627, -0.007811421994119883, -0.02064480260014534, -0.017618631944060326, -0.04258919134736061, -0.024896295741200447, 0.02502625435590744, 0.012624519877135754, -0.02346675470471382, 0.05681034177541733, -0.020050708204507828, -0.010721559636294842, -0.01699668914079666, -0.0005842321552336216, -0.011324937455356121, 0.012949415482580662, 0.0018472643569111824, 0.024543551728129387, -0.01650470308959484, -0.03057732991874218, -0.018621167168021202, -0.0406583808362484, -0.009848982095718384, -0.03230391815304756, -0.017646480351686478, -0.00025063386419788003, 0.02612161822617054, -0.011891184374690056, 0.0118076391518116, 0.003457818878814578, -0.05098078399896622, -0.060820482671260834, -0.0011997935362160206, -0.024859165772795677, 0.02237139269709587, 0.02428363636136055, 0.01943804696202278, 0.07229394465684891, 0.030335979536175728, -0.012373886071145535, 0.032155394554138184, 0.01251312717795372, -0.039433058351278305, 0.03739085793495178, -0.05911245942115784, -0.00860509555786848, -0.02608448639512062, 0.02732837200164795, -0.02181442826986313, 0.027941033244132996, 0.012197514064610004, 0.03555287793278694, 0.03924740478396416, 0.05023816227912903, 0.023596713319420815, 0.03326932340860367, -0.07938595116138458, 0.02760685421526432, 0.05502805486321449, -0.012810174375772476, 0.05153774842619896, -0.0004948858404532075, 0.020422017201781273, -0.03586848825216293, -0.02474777214229107, -0.02948196791112423, 0.04555966332554817, -0.006395804695785046, -0.023763801902532578, -0.0332878902554512, 0.015242251567542553, -0.047490473836660385, 0.01470385305583477, -0.03029884770512581, 0.01636546291410923, -0.014694569632411003, 0.007402981631457806, 0.01752580516040325, 0.0020723706111311913, -0.007245175074785948, 0.014248998835682869, 0.02467351034283638, 0.04949554428458214, -0.014165454544126987, -0.03241531178355217, -0.07225681096315384, -0.03300940617918968, -0.0843615010380745, -0.03093007393181324, 0.07017748057842255, -0.0066000246442854404, -0.07901464402675629, 0.011427047662436962, -0.02357814833521843, -0.028962133452296257, -0.012216079980134964, 0.04340606927871704, -0.043888773769140244, -0.034160465002059937, 0.015335079282522202, 0.034940216690301895, 0.027458330616354942, 0.014416088350117207, -0.06360530108213425, 0.050460949540138245, -0.03443894907832146, 0.04719342663884163, 0.04630228504538536, 0.041586656123399734, -0.01710808090865612, 0.007421547081321478, -0.018936779350042343, -0.08280199766159058, 0.019697964191436768, -0.028256647288799286, 0.062305718660354614, -0.02994610369205475, 0.010647297836840153, 0.06757831573486328, -0.021907255053520203, -0.021480249240994453, 0.01629120111465454, 0.01085151731967926, 0.05591919645667076, 0.04173517972230911, 0.009626196697354317, -0.04548540338873863, -0.0037502250634133816, -0.05673607811331749, 0.003225750522688031, -0.03482882305979729, -0.04032420367002487, 0.04344320297241211, -0.015437188558280468, 0.03224822133779526, 0.02159164287149906, -0.011640550568699837, -0.03022458590567112, 0.03546004742383957, -0.02127602882683277, -0.0014562291326001287, 0.04195796325802803, 0.0118076391518116, 0.012290341779589653, 0.049718331545591354, 0.026660015806555748, 0.08012857288122177, -0.008354461751878262, 0.010953627526760101, 0.014276847243309021, 0.13641907274723053, -0.04244066774845123, 0.01612411066889763, -0.013320725411176682, -0.025676045566797256, -0.042366404086351395, -0.0057367305271327496, 0.0194751787930727, 0.029277747496962547, 0.015093727968633175, -0.02576887421309948, 0.08153954893350601, -0.038022082298994064, -0.01026670541614294 ]
729,534
tinytuya.OutletDevice
set_dimmer
Set dimmer value Args: percentage (int): percentage dim 0-100 value (int): direct value for switch 0-255 dps_id (int): DPS index for dimmer value nowait (bool): True to send without waiting for response.
def set_dimmer(self, percentage=None, value=None, dps_id=3, nowait=False): """Set dimmer value Args: percentage (int): percentage dim 0-100 value (int): direct value for switch 0-255 dps_id (int): DPS index for dimmer value nowait (bool): True to send without waiting for response. """ if percentage is not None: level = int(percentage * 255.0 / 100.0) else: level = value if level == 0: self.turn_off(nowait=nowait) elif level is not None: if level < 25: level = 25 if level > 255: level = 255 self.turn_on(nowait=nowait) self.set_value(dps_id, level, nowait=nowait)
(self, percentage=None, value=None, dps_id=3, nowait=False)
[ 0.0025569009594619274, 0.01954375021159649, -0.007808736525475979, 0.006432786118239164, 0.01054310891777277, 0.031164832413196564, -0.006822784896939993, -0.025363055989146233, -0.023627782240509987, 0.0321464017033577, -0.053740933537483215, 0.024258790537714958, 0.031234946101903915, 0.02091093733906746, 0.03722953051328659, 0.0005899276584386826, 0.03933289274573326, 0.07565096765756607, 0.04946409538388252, 0.027554059401154518, 0.03410954028367996, -0.00020225701155140996, -0.012488720007240772, 0.012585124000906944, -0.04571309685707092, -0.03235673904418945, 0.012085574679076672, -0.0043622879311442375, -0.006537954322993755, -0.02574867196381092, 0.028009789064526558, -0.021839922294020653, -0.04830724373459816, 0.04360973462462425, -0.016975894570350647, 0.016187133267521858, -0.024118566885590553, 0.011086477898061275, -0.11175870150327682, -0.01744915172457695, -0.019859256222844124, 0.0464843288064003, 0.015258148312568665, 0.008299521170556545, -0.011892766691744328, -0.022015202790498734, 0.07098851352930069, 0.03170820325613022, 0.04711533710360527, -0.01201546285301447, -0.015319496393203735, -0.008185588754713535, -0.045958489179611206, 0.012865572236478329, 0.015109159983694553, 0.07063794881105423, 0.03291763737797737, 0.009649178944528103, 0.03472302109003067, -0.021068688482046127, -0.02075318433344364, 0.01789611577987671, 0.020209815353155136, -0.003021393669769168, -0.03940300643444061, 0.014408038929104805, 0.0014942643465474248, 0.04371489956974983, -0.05195307359099388, 0.030551351606845856, -0.017405331134796143, -0.009999739937484264, 0.008391543291509151, 0.032987747341394424, 0.017282634973526, 0.007716714404523373, -0.020332511514425278, 0.010683332569897175, 0.022576099261641502, 0.050831280648708344, 0.007944578304886818, 0.006318854168057442, 0.011007601395249367, -0.012313439510762691, -0.027764396741986275, -0.023487556725740433, -0.050550833344459534, 0.015258148312568665, 0.03188348188996315, -0.02785203605890274, -0.01318984106183052, 0.0028614504262804985, -0.024416543543338776, 0.05531845614314079, -0.016055673360824585, 0.03167314454913139, 0.013277481310069561, 0.05048071965575218, 0.005582676734775305, 0.014451858587563038, -0.035441670566797256, -0.013829614035785198, 0.0592096783220768, -0.042137376964092255, -0.01677432283759117, -0.0764923095703125, 0.0016958366613835096, 0.040384575724601746, -0.01857971027493477, -0.009140866808593273, 0.008229409344494343, -0.04564298316836357, -0.020648017525672913, 0.02205025963485241, -0.03330325335264206, 0.0458182655274868, 0.006301325745880604, -0.060611918568611145, 0.047255564481019974, -0.0011973833898082376, -0.034810662269592285, 0.03437246382236481, -0.019123077392578125, -0.0442056842148304, 0.014925115741789341, 0.024591822177171707, 0.020139703527092934, 0.04988476634025574, 0.0029534727800637484, 0.02392575703561306, -0.009798167273402214, -0.004092794377356768, -0.04672972112894058, -0.011796362698078156, 0.026134289801120758, -0.02080576866865158, -0.04161153733730316, -0.01705477014183998, 0.06380201876163483, -0.016563985496759415, -0.05500295013189316, -0.005985821597278118, -0.008913001976907253, -0.0029841468203812838, 0.038842108100652695, 0.018404429778456688, 0.054196663200855255, -0.00047353061381727457, -0.0015041239093989134, 0.043855126947164536, -0.030603935942053795, 0.026502378284931183, -0.022260595113039017, 0.01744915172457695, 0.010937489569187164, -0.01213815901428461, 0.03488077595829964, 0.00035631193895824254, 0.020157231017947197, 0.02694057859480381, -0.020437680184841156, -0.06204921752214432, 0.08974350243806839, 0.059980910271406174, 0.029341917484998703, 0.0002523762232158333, -0.061523377895355225, 0.011796362698078156, 0.02233070693910122, 0.02580125629901886, 0.008185588754713535, -0.07375793904066086, -0.025731144472956657, 0.003746615955606103, 0.05416160449385643, 0.012637708336114883, -0.02858821302652359, -0.05149734392762184, 0.0004932496813125908, -0.013093437068164349, 0.001373759121634066, 0.005280318204313517, 0.02375047840178013, -0.03307538852095604, 0.022611156105995178, -0.013628041371703148, -0.0015698539791628718, 0.00810233037918806, -0.03656346723437309, -0.04238276928663254, 0.0676581859588623, -0.005341666284948587, 0.0023991488851606846, 0.010043559595942497, 0.06373190879821777, -0.00012201150821056217, 0.0794370248913765, -0.12206518650054932, 0.11302072554826736, -0.010770972818136215, 0.03999895974993706, -0.010420412756502628, -0.002631395123898983, 0.023207109421491623, -0.003954761195927858, 0.02375047840178013, -0.00011537002865225077, 0.040104128420352936, 0.05307486653327942, -0.04062996804714203, -0.049534205347299576, 0.005552002694457769, 0.0797174721956253, 0.013663097284734249, 0.02387317456305027, -0.08939293771982193, 0.004925375804305077, 0.026695186272263527, 0.06674672663211823, 0.011559734120965004, -0.03198865056037903, -0.0003316631482448429, -0.007699185982346535, 0.054477110505104065, -0.043224114924669266, 0.0038802670314908028, -0.05615980178117752, -0.055283401161432266, -0.009701763279736042, -0.015521068125963211, -0.020437680184841156, 0.04070008173584938, -0.05268925055861473, 0.00806727446615696, 0.008299521170556545, 0.0014800227945670485, 0.004842117428779602, -0.00980693195015192, -0.051742736250162125, 0.005140094086527824, 0.0013376076240092516, -0.0330929160118103, 0.021910034120082855, 0.06120787188410759, 0.019701503217220306, 0.030989553779363632, 0.005547620821744204, -0.004445545841008425, 0.01154220663011074, 0.050726111978292465, -0.04041963070631027, -0.04630905017256737, -0.007239075377583504, 0.053846102207899094, 0.015871629118919373, 0.027554059401154518, -0.033513590693473816, 0.03552931174635887, -0.014083770103752613, -0.028044844046235085, -0.08539655059576035, -0.08462531864643097, -0.010578164830803871, 0.04574815183877945, 0.02324216440320015, -0.0020485881250351667, 0.028342820703983307, -0.01620466075837612, -0.03940300643444061, -0.06692200899124146, 0.017519263550639153, 0.08020825684070587, 0.012155687436461449, -0.03807087615132332, -0.02841293253004551, 0.007747388444840908, 0.027028217911720276, -0.039473120123147964, 0.005749193020164967, 0.0027431363705545664, -0.00949142687022686, -0.062154386192560196, 0.018457014113664627, 0.061418209224939346, -0.008575587533414364, 0.045152198523283005, 0.04098052904009819, 0.051812849938869476, 0.02517024800181389, 0.009219742380082607, -0.04318905994296074, 0.027466420084238052, -0.02205025963485241, 0.04403040558099747, 0.03915761411190033, 0.020209815353155136, 0.002747518243268132, 0.00657739257439971, -0.041260976344347, -0.0025919571053236723, 0.05160251259803772, -0.13265211880207062, -0.032251570373773575, 0.02983270399272442, 0.013110964559018612, 0.029657423496246338, 0.06166360154747963, 0.003735660808160901, 0.04672972112894058, -0.0041607157327234745, 0.011068949475884438, 0.04455624520778656, -0.019350942224264145, 0.03666863217949867, 0.03950817510485649, -0.0243814866989851, 0.015889156609773636, 0.004500321112573147, 0.017422860488295555, 0.05605463311076164, 0.013645569793879986, -0.017151175066828728, 0.004986723884940147, 0.027256082743406296, 0.016108257696032524, -0.00810233037918806, 0.08490576595067978, 0.030148208141326904, 0.00824255496263504, 0.0033675723243504763, -0.0839943066239357, -0.06232966482639313, 0.020595433190464973, -0.029815174639225006, 0.04241782799363136, -0.052549026906490326, 0.005271554458886385, -0.026221929118037224, 0.04336434230208397, 0.05086633563041687, 0.045607928186655045, -0.004075266420841217, -0.020928464829921722, -0.00949142687022686, 0.06355662643909454, 0.03687896952033043, 0.03610773757100105, 0.01298826839774847, 0.029972927644848824, 0.06569504737854004, -0.003509987611323595, 0.019175661727786064, 0.002042015315964818, 0.01938599906861782, 0.028500573709607124, 0.012041755020618439, 0.03337336331605911, -0.03712436184287071, -0.035213809460401535, -0.045678041875362396, -0.02432890236377716, -0.030095623806118965, 0.0061216638423502445, 0.033215612173080444, -0.03573964908719063, -0.007120761089026928, -0.07740376889705658, -0.010955017060041428, 0.10131199657917023, 0.04027940705418587, 0.004592343233525753, -0.021506890654563904, -0.03393426164984703, 0.006752672605216503, 0.01034153625369072, 0.0005513112409971654, -0.06863975524902344, 0.017861060798168182, 0.04785151407122612, 0.007944578304886818, -0.0247846320271492, -0.05608968809247017, 0.01139321830123663, 0.013934781774878502, 0.04536253586411476, 0.02410103753209114, 0.11589531600475311, -0.04690500348806381, -0.03547672927379608, -0.008203117176890373, 0.02564350515604019, 0.01225209143012762, 0.06173371523618698, -0.027378778904676437, 0.011016365140676498, 0.020139703527092934, 0.0020036727655678988, 0.012839280068874359, 0.04136614501476288, -0.02864079736173153, -0.007103233132511377, -0.08055881410837173, 0.00034097491879947484, 0.03091944009065628, 0.008321431465446949, -0.0292718056589365, 0.008378397673368454, 0.024118566885590553, -0.004182625561952591, -0.0712689608335495, 0.01898285374045372, -0.020823296159505844, 0.009298618882894516, 0.028605740517377853, 0.057947658002376556, -0.030200792476534843, -0.0075195240788161755, -0.0622946098446846, 0.004081839229911566, -0.029341917484998703, 0.00481582572683692, -0.04511714354157448, 0.03524886444211006, -0.013032088987529278, -0.006415258161723614, -0.06218944117426872, -0.010902433656156063, 0.018088923767209053, 0.004798297770321369, 0.0024933619424700737, -0.029517197981476784, -0.01989431120455265, 0.029254278168082237, -0.03908750042319298, 0.019929368048906326, -0.02040262520313263, 0.0022501605562865734, 0.029026413336396217, 0.04308389127254486, -0.06723751127719879, -0.008032218553125858, -0.017633195966482162, 0.013312537223100662, -0.04988476634025574, 0.015074104070663452, -0.005043690092861652, -0.03284752368927002, 0.04473152756690979, 0.002109936438500881, -0.032829996198415756, -0.04627399146556854, 0.004539759363979101, -0.0011371307773515582, 0.026221929118037224, 0.07298670709133148, 0.001661876100115478, -0.08287251740694046, 0.02347002923488617, 0.05784249305725098, -0.0052408804185688496, 0.04150636866688728, -0.03163808956742287, -0.1381208598613739, 0.021471833810210228, -0.03386414796113968, 0.06453819572925568, 0.05114678665995598, -0.026502378284931183, 0.010876141488552094, -0.0367036908864975, -0.061979107558727264, 0.02364530973136425, 0.030165735632181168, 0.009324911050498486, 0.03382909297943115, -0.04932387173175812, 0.010814793407917023, -0.01779971271753311, -0.04739578813314438, 0.03340842202305794, -0.018229149281978607, -0.05682586506009102, 0.0458182655274868, 0.005113801918923855, -0.04171670600771904, -0.034635383635759354, -0.012401079759001732, 0.00028483045753091574, 0.0428735576570034, 0.003917514346539974, -0.01829926110804081, -0.06327617913484573, -0.005582676734775305, -0.0487629733979702, 0.02268126793205738, 0.018229149281978607, 0.005740429274737835, -0.07070806622505188, 0.017519263550639153, -0.061979107558727264, -0.006301325745880604, 0.0018152464181184769, -0.024258790537714958, -0.015775224193930626, -0.003126561874523759, -0.010201312601566315, -0.02329474873840809, 0.0036786948330700397, 0.004169479478150606, -0.00427683861926198, 0.00206063874065876, -0.015670057386159897, -0.04301378130912781, 0.013251189142465591, 0.0000508723605889827, -0.026134289801120758, 0.004145378712564707, 0.041260976344347, 0.019736560061573982, -0.1019430086016655, -0.021016106009483337, -0.002633586060255766, 0.05261914059519768, 0.012322203256189823, -0.018562180921435356, 0.013671861961483955, -0.022698795422911644, -0.03677380084991455, -0.04080525040626526, 0.014092533849179745, -0.012234563007950783, -0.025030024349689484, 0.028833605349063873, 0.0857471153140068, 0.04119086638092995, -0.03006056696176529, -0.0035998187959194183, -0.04290861263871193, -0.027711812406778336, -0.01330377347767353, 0.0002312878059456125, -0.06962132453918457, 0.0007148148724809289, -0.014881295152008533, 0.03715942054986954, -0.039367951452732086, -0.0391225591301918, 0.02029745653271675, 0.016213426366448402, -0.029920343309640884, 0.029622366651892662, 0.016572751104831696, -0.0629606768488884, -0.03761514648795128, 0.031182361766695976, 0.047886572778224945, -0.024977440014481544, -0.020700599998235703, -0.005810541100800037, 0.005109420046210289, -0.014653431251645088, -0.02029745653271675, 0.06748290359973907, -0.0020507792942225933, -0.007909522391855717, -0.08154038339853287, -0.03905244544148445, -0.02899135835468769, -0.034302350133657455, -0.07530041038990021, -0.04960431903600693, 0.06110270321369171, -0.008093566633760929, 0.04171670600771904, -0.045502759516239166, 0.04757106676697731, 0.06562493741512299, -0.05395127087831497, 0.011095241643488407, 0.00039520225254818797, -0.054827671498060226, 0.021226441487669945, -0.008851653896272182, -0.01227838359773159, 0.0028570685535669327, 0.07200513780117035, 0.043224114924669266, 0.06176877021789551, -0.0095790671184659, 0.012094339355826378, -0.011182881891727448, -0.04055985435843468, -0.019701503217220306, -0.03908750042319298, -0.008536149747669697, -0.016336122527718544, -0.023119468241930008, -0.004969195928424597, 0.10145222395658493, 0.03940300643444061, -0.05111172795295715, -0.03204123303294182, -0.04665961116552353, 0.03290010988712311, 0.018509596586227417, 0.00029167733737267554, 0.04536253586411476, 0.014557027257978916, 0.0051926784217357635, -0.03971851244568825, -0.03433740511536598, 0.0034464483615010977, -0.03307538852095604, 0.03712436184287071, -0.022611156105995178, -0.0066869426518678665, 0.041751760989427567, -0.01926330290734768, -0.051637571305036545, 0.009097046218812466, -0.017352746799588203, 0.00648098811507225, -0.01744038797914982, -0.05244385823607445, 0.026186874136328697, -0.02045520767569542, -0.04105064272880554, -0.05111172795295715, -0.01372444536536932, -0.054932840168476105, -0.027326194569468498, 0.047430843114852905, -0.07200513780117035, -0.002981955651193857, -0.008913001976907253, -0.007690422236919403, 0.023855645209550858, -0.03796570748090744, 0.030148208141326904, -0.0016695446101948619, 0.041296035051345825, 0.031620562076568604, 0.019123077392578125, 0.011936587281525135, -0.003987626172602177, 0.020367568358778954, -0.026134289801120758, 0.026695186272263527, -0.05167262628674507, 0.01852712593972683, 0.004016109276562929, 0.013435233384370804, -0.012401079759001732, 0.0210336335003376, 0.026046648621559143, -0.03281246870756149, 0.025959009304642677, 0.013566693291068077, -0.00804536510258913, 0.009395022876560688, -0.044696468859910965, 0.03135764226317406, 0.025327999144792557, 0.022365763783454895, 0.07473950833082199, 0.01779971271753311, 0.006358291953802109, -0.024767102673649788, -0.01624848134815693, -0.05721148103475571, 0.01301456056535244, -0.04785151407122612, -0.06709729135036469, -0.031234946101903915, -0.0025678561069071293, -0.05591440945863724, 0.003829874098300934, 0.00561335077509284, 0.04168165102601051, 0.038281213492155075, -0.010008503682911396, 0.007598400115966797, 0.012295911088585854, 0.025906424969434738, 0.02574867196381092, 0.05321509391069412, -0.008404688909649849, -0.04974454268813133, -0.014513206668198109, 0.01642376184463501, -0.015039048157632351, -0.08259207010269165, -0.026695186272263527, 0.01602938212454319, -0.02881607785820961, -0.05654541775584221, -0.018281733617186546, 0.005920091178268194, -0.019736560061573982, 0.010648276656866074, -0.015039048157632351, -0.012909392826259136, -0.061067648231983185, 0.0014942643465474248, -0.007523905951529741, -0.017308928072452545, 0.03859671577811241, 0.022979244589805603, 0.008523003198206425, -0.023627782240509987, 0.026747770607471466, 0.04974454268813133, 0.006980536971241236, 0.005495036486536264, 0.02052532136440277, -0.006257506087422371, -0.06334628909826279, -0.026835409924387932, -0.028395405039191246, 0.01586286537349224, -0.019859256222844124, 0.030376072973012924, 0.019280830398201942, -0.008286375552415848, -0.034407518804073334, -0.053109925240278244, 0.03323313966393471, 0.08427475392818451, 0.02990281581878662, -0.0375099778175354, -0.04255805164575577, 0.021980145946145058, -0.0037268968299031258, -0.046063657850027084, 0.003347853198647499, -0.027080802246928215, 0.0681840255856514, 0.034582797437906265, 0.01460961066186428, -0.04806185141205788, -0.045152198523283005, -0.05370587855577469, -0.007852556183934212, -0.033951789140701294, -0.04105064272880554, 0.04774634912610054, 0.00012783135753124952, 0.018509596586227417, -0.003571335691958666, 0.024118566885590553, 0.07263614982366562, 0.018036341294646263, -0.01880757324397564, 0.0547926165163517, 0.08441498130559921, -0.0722154751420021, 0.031164832413196564, 0.03528391942381859, 0.03500347211956978, -0.006669414695352316, -0.010008503682911396, 0.00595076521858573, 0.024311374872922897, -0.02744889073073864, -0.0034354934468865395, 0.07102356851100922, 0.028167540207505226, -0.014451858587563038 ]
729,553
tinytuya.core
TuyaHeader
TuyaHeader(prefix, seqno, cmd, length, total_length)
from tinytuya.core import TuyaHeader
(prefix, seqno, cmd, length, total_length)
[ -0.0454743430018425, -0.04954347386956215, 0.02155926451086998, 0.0011321736965328455, -0.013081904500722885, -0.03051849454641342, -0.05164942890405655, 0.10515495389699936, -0.04925791919231415, 0.005528130568563938, 0.03380235657095909, -0.0034489468671381474, -0.009262630715966225, 0.020541980862617493, -0.03287430852651596, 0.0012481797020882368, 0.0481514036655426, 0.05875256285071373, -0.007036208640784025, -0.05864547938108444, -0.05022166296839714, -0.000856659491546452, -0.02562839724123478, 0.043832410126924515, -0.0409768782556057, 0.014233040623366833, -0.034105755388736725, -0.05603981018066406, 0.04508170485496521, -0.0788840651512146, 0.01691010221838951, -0.07360132783651352, -0.0012626803945749998, 0.06257183849811554, -0.02837684564292431, -0.019542545080184937, -0.0055861338041722775, -0.005479051265865564, -0.05689646676182747, -0.02273717150092125, 0.01794523186981678, -0.019685320556163788, 0.030946824699640274, -0.007879482582211494, 0.00758946780115366, 0.03182132914662361, -0.01854310929775238, 0.05875256285071373, -0.025039443746209145, 0.026181655004620552, 0.015616188757121563, 0.007178985048085451, 0.004555465187877417, -0.011529209092259407, -0.020399203523993492, 0.02207682840526104, 0.0008577749249525368, 0.07588575035333633, -0.02826976403594017, 0.07767046242952347, -0.02732386812567711, 0.0230227243155241, 0.002467357786372304, 0.013001592829823494, 0.024111395701766014, 0.002001103013753891, 0.0006820927956141531, 0.0022297685500234365, -0.0016229682369157672, -0.01747228391468525, 0.007147752679884434, 0.018177242949604988, 0.013867175206542015, 0.010503002442419529, 0.031089600175619125, -0.053041499108076096, -0.09366143494844437, -0.008919074200093746, -0.05275594815611839, -0.019631780683994293, 0.014813070185482502, -0.0033396335784345865, 0.0209167692810297, 0.046616554260253906, 0.0328386127948761, -0.01340315118432045, 0.051185403019189835, -0.01998872123658657, 0.003732269164174795, 0.06446363031864166, -0.04875820130109787, -0.04022730141878128, -0.01569650135934353, 0.020970311015844345, 0.0045331562869250774, 0.011047338135540485, 0.03362388536334038, 0.04950777813792229, -0.058681175112724304, -0.02314765378832817, -0.026717068627476692, 0.006518643349409103, -0.060680046677589417, 0.007415458559989929, -0.010279914364218712, 0.02561054937541485, -0.00972665473818779, -0.00017874958575703204, 0.040298689156770706, 0.034766096621751785, -0.0415479838848114, -0.07881267368793488, 0.004644700791686773, -0.041369516402482986, 0.032249659299850464, -0.11700540781021118, 0.06046588346362114, 0.00802225898951292, -0.005742295645177364, 0.009914048947393894, 0.02810913883149624, 0.034355614334344864, -0.025307148694992065, 0.01433119922876358, 0.03958480805158615, 0.040798407047986984, 0.03547998145222664, -0.004609006457030773, 0.06035879999399185, 0.004555465187877417, -0.018828662112355232, 0.023879382759332657, -0.006590031553059816, -0.0280020572245121, -0.01585712470114231, 0.004020052962005138, 0.03521227464079857, 0.012385868467390537, 0.02352244220674038, 0.03125022351741791, -0.020827533677220345, 0.025432078167796135, -0.00630894023925066, -0.0719950944185257, 0.00021249170822557062, -0.01637468859553337, -0.05807437375187874, -0.05104262754321098, -0.038692452013492584, 0.01623191311955452, 0.014045646414160728, -0.05582564324140549, 0.014170575886964798, 0.05825284495949745, -0.03051849454641342, -0.01907852105796337, -0.004912406671792269, -0.025664091110229492, 0.022415922954678535, 0.0370505228638649, 0.03512303903698921, 0.002353582764044404, -0.017499055713415146, 0.026752762496471405, -0.046081140637397766, -0.017454437911510468, -0.006706037558615208, 0.016196219250559807, 0.003281630575656891, -0.02248731255531311, -0.02050628699362278, -0.011903997510671616, -0.04854403808712959, 0.04483184590935707, 0.023111959919333458, -0.06935372203588486, -0.0032994775101542473, 0.02155926451086998, 0.004979333374649286, -0.02614596113562584, -0.008825377561151981, 0.05718202143907547, -0.06399960070848465, 0.05875256285071373, 0.04379671812057495, 0.015955282375216484, 0.06096560135483742, 0.021113086491823196, 0.010547620244324207, -0.01827540248632431, 0.029394129291176796, 0.0198637917637825, 0.01307298056781292, 0.004100365098565817, 0.01868588477373123, -0.006215243134647608, 0.04315422102808952, -0.026485055685043335, -0.008655830286443233, -0.025735478848218918, -0.024164937436580658, -0.0035716453567147255, -0.0072102174162864685, 0.021523570641875267, 0.06371404975652695, -0.006474025547504425, 0.03382020443677902, 0.00739314965903759, -0.11914705485105515, -0.0008594481041654944, 0.019292686134576797, -0.008986000902950764, -0.04051285609602928, 0.027538033202290535, -0.002231999533250928, -0.054754819720983505, -0.04972194507718086, 0.0218269694596529, 0.05100693553686142, -0.03601539134979248, 0.06257183849811554, 0.013438845984637737, 0.03533720225095749, -0.0454743430018425, 0.07138828933238983, -0.02341535873711109, 0.03191056475043297, 0.031375154852867126, -0.0168476365506649, -0.06992483139038086, 0.01959608681499958, 0.017847072333097458, 0.03908509016036987, 0.04743751883506775, -0.02391507662832737, -0.02130940556526184, 0.009789119474589825, -0.0034400231670588255, -0.025574855506420135, -0.0017032800242304802, 0.02013149857521057, 0.011627367697656155, 0.013126522302627563, 0.011145496740937233, -0.04761599004268646, -0.003324017394334078, -0.017998773604631424, 0.00019018286548089236, -0.027127550914883614, -0.03487318009138107, -0.01585712470114231, -0.0010769593063741922, 0.04058424383401871, -0.0013429921818897128, 0.020970311015844345, -0.03947772458195686, 0.040405772626399994, -0.03571199253201485, 0.0014612290542572737, -0.06275030970573425, -0.029233505949378014, -0.030286481603980064, -0.038192734122276306, 0.06114407256245613, -0.0331241674721241, 0.013849328272044659, -0.004327915143221617, 0.025307148694992065, -0.06010894104838371, -0.030054470524191856, 0.12228814512491226, 0.02380799502134323, -0.04254741966724396, -0.021487874910235405, -0.004595621023327112, -0.06128684803843498, 0.01982809789478779, 0.01943546161055565, -0.007107596844434738, 0.002335735596716404, -0.030536342412233353, -0.035015955567359924, 0.04483184590935707, 0.03323125094175339, 0.005925228353589773, -0.018489567562937737, -0.053826771676540375, 0.004544310737401247, -0.06656958162784576, -0.056967854499816895, -0.04179784283041954, -0.01681194268167019, -0.01242156233638525, -0.005202421918511391, -0.0032147038727998734, 0.0011700986651703715, -0.08930674940347672, 0.055932726711034775, 0.06999622285366058, -0.021006004884839058, -0.027395255863666534, 0.0367649681866169, -0.02523576095700264, -0.011466744355857372, -0.018453873693943024, -0.0007930793217383325, 0.04144090414047241, 0.01829325035214424, -0.03389159217476845, 0.017668601125478745, 0.03339187428355217, 0.011083032004535198, 0.01531278807669878, 0.011502438224852085, -0.05032874643802643, -0.022951334714889526, -0.028466081246733665, 0.033962979912757874, 0.021916205063462257, 0.04229756072163582, -0.03624740615487099, -0.07667102664709091, 0.01970316842198372, -0.04850834235548973, 0.06660527735948563, -0.02232668735086918, 0.03947772458195686, -0.03651510924100876, -0.06135823577642441, 0.022576546296477318, -0.041369516402482986, 0.015482335351407528, 0.032142579555511475, 0.015607264824211597, 0.0014099187683314085, 0.03426637873053551, -0.009441101923584938, -0.004517540335655212, -0.01868588477373123, -0.04297574982047081, -0.07056732475757599, -0.02602103166282177, -0.04982902854681015, 0.03337402641773224, -0.03954911231994629, -0.06085851788520813, -0.08637983351945877, -0.013296069577336311, 0.08145403861999512, 0.010931331664323807, 0.02561054937541485, 0.015321712009608746, 0.06617694348096848, 0.06817581504583359, 0.060537271201610565, -0.00960172526538372, -0.017516901716589928, -0.023575983941555023, 0.004008898511528969, 0.038192734122276306, -0.05336274579167366, -0.013510233722627163, 0.001553810783661902, -0.005617366172373295, -0.0436539389193058, -0.053826771676540375, 0.002387045882642269, 0.011868303641676903, 0.03205334395170212, 0.016883330419659615, 0.00671049952507019, 0.011573826894164085, 0.015750041231513023, 0.06364265829324722, -0.006059081293642521, 0.004689318593591452, -0.007205755449831486, -0.005876148585230112, -0.0960172489285469, -0.0013864944921806455, 0.03589046373963356, 0.07338716089725494, -0.019792404025793076, 0.011547056026756763, -0.015830352902412415, -0.05675369128584862, -0.002958152210339904, -0.01038699597120285, -0.06403529644012451, 0.017623985186219215, 0.054469265043735504, -0.08595149964094162, 0.003192395204678178, 0.00742884399369359, -0.02207682840526104, -0.0451887883245945, -0.07902684062719345, 0.04493892937898636, 0.046223919838666916, -0.003986590076237917, 0.08795037120580673, -0.06585569679737091, -0.000009777546438272111, 0.019399767741560936, -0.005202421918511391, -0.007522541098296642, 0.07085287570953369, 0.007116520311683416, 0.00900384783744812, 0.010556543245911598, -0.03217827156186104, 0.011716603301465511, -0.04247603192925453, -0.014268734492361546, -0.0005220268503762782, 0.04376102238893509, 0.03448054566979408, 0.01380471047013998, -0.009557107463479042, 0.003426637966185808, 0.03401651978492737, -0.007000514306128025, -0.049864720553159714, 0.009021695703268051, 0.048686813563108444, -0.005184574518352747, -0.0036541882436722517, -0.015268171206116676, -0.0025833637919276953, -0.010663625784218311, 0.013626240193843842, -0.04497462511062622, -0.02561054937541485, -0.017400896176695824, 0.06200072914361954, 0.008227500133216381, -0.031214529648423195, -0.039513420313596725, -0.012555415742099285, 0.001910752267576754, 0.02957259863615036, 0.020006569102406502, 0.007701011840254068, 0.007714397273957729, 0.0605015754699707, -0.005684292875230312, -0.06753332167863846, 0.041369516402482986, 0.018079085275530815, -0.0391564778983593, -0.02129155769944191, 0.00657218461856246, -0.008687063120305538, -0.046330999583005905, 0.024343406781554222, -0.0575389638543129, 0.01623191311955452, -0.027413103729486465, -0.02011365070939064, -0.019256992265582085, -0.018489567562937737, 0.028591010719537735, 0.05718202143907547, 0.01392963994294405, 0.04072701930999756, -0.017668601125478745, -0.009869431145489216, -0.020292121917009354, 0.008597827516496181, -0.01654423587024212, -0.018846508115530014, -0.006656958255916834, -0.05875256285071373, 0.001991064054891467, 0.05732479691505432, 0.029768917709589005, -0.01904282718896866, 0.034391310065984726, -0.03248167410492897, -0.024950208142399788, 0.009985437616705894, -0.022130370140075684, 0.01065470278263092, 0.010726090520620346, 0.026449361816048622, 0.0016173910116776824, 0.040691327303647995, -0.08416679501533508, 0.013322839513421059, -0.06906817108392715, 0.02561054937541485, 0.03349895402789116, -0.048044320195913315, 0.02577117271721363, 0.02455757185816765, 0.03624740615487099, 0.007357455790042877, 0.038442593067884445, -0.059323668479919434, -0.011297197081148624, 0.026877691969275475, -0.04058424383401871, -0.003083081915974617, -0.042119093239307404, 0.024361254647374153, 0.02368306554853916, 0.03128591924905777, -0.04840126261115074, -0.017151037231087685, 0.006072466727346182, -0.021327251568436623, 0.08709371834993362, -0.05104262754321098, 0.015910664573311806, 0.09009202569723129, 0.03075050562620163, -0.0581100694835186, 0.01585712470114231, 0.043439775705337524, 0.03419499099254608, 0.013742245733737946, 0.0058226073160767555, 0.06321433186531067, -0.04590266942977905, 0.047758765518665314, 0.046223919838666916, -0.05636105686426163, 0.07324438542127609, 0.009637419134378433, 0.06992483139038086, -0.020185038447380066, -0.04465337470173836, -0.021220169961452484, -0.0052247303538024426, 0.010726090520620346, -0.04736613109707832, -0.06731915473937988, 0.0011968692997470498, 0.04354685917496681, -0.0512210987508297, 0.015089699998497963, -0.03296354413032532, -0.02578902058303356, -0.029001493006944656, -0.021220169961452484, 0.01657992973923683, -0.06096560135483742, -0.00683542899787426, -0.034355614334344864, 0.05864547938108444, -0.0439394935965538, -0.025289302691817284, 0.042404644191265106, -0.005068568512797356, -0.023879382759332657, -0.022148218005895615, -0.03769301623106003, 0.008905689232051373, 0.027538033202290535, 0.020827533677220345, 0.027234632521867752, -0.0209167692810297, -0.04861542582511902, 0.05097123980522156, -0.057253409177064896, 0.026717068627476692, -0.03794287517666817, 0.02903718687593937, -0.03456978127360344, 0.02552131377160549, -0.0012269862927496433, -0.005929689854383469, 0.005086415912955999, 0.03912078216671944, -0.04233325645327568, 0.024646807461977005, 0.02314765378832817, 0.056860774755477905, 0.04479615390300751, 0.030572036281228065, 0.013563775457441807, 0.05971630662679672, 0.03258875384926796, -0.04483184590935707, -0.009512489661574364, -0.05846701189875603, 0.050792768597602844, 0.031339459121227264, 0.013617316260933876, -0.00033351717866025865, -0.04982902854681015, -0.011172267608344555, 0.02548561990261078, -0.004522001836448908, -0.010601161047816277, 0.013760092668235302, -0.01184153277426958, -0.04222617298364639, 0.03467686101794243, -0.002518668072298169, 0.05914519727230072, 0.0415479838848114, -0.019774556159973145, -0.0052381157875061035, 0.0707457959651947, 0.0278592798858881, -0.010752861388027668, -0.04854403808712959, -0.04950777813792229, -0.033730968832969666, -0.0023268121294677258, -0.004836556501686573, -0.03912078216671944, 0.0007099788635969162, -0.03747885301709175, 0.007455614861100912, 0.019096367061138153, -0.027502339333295822, -0.025985337793827057, -0.0409768782556057, -0.04950777813792229, 0.02982245944440365, -0.011529209092259407, 0.02734171599149704, -0.02118447609245777, 0.009914048947393894, 0.03549782931804657, -0.012430486269295216, 0.003643033793196082, -0.0005588364438153803, -0.00032654564711265266, -0.007116520311683416, 0.008588903583586216, -0.028430387377738953, -0.0021907282061874866, 0.02209467627108097, -0.007477923296391964, 0.005733372177928686, 0.024950208142399788, 0.03708621859550476, -0.0005766835529357195, -0.007852711714804173, -0.0061126225627958775, 0.0436539389193058, -0.005157804116606712, 0.06389252096414566, -0.09137701243162155, -0.017650755122303963, -0.022005440667271614, -0.03655080497264862, 0.0029358435422182083, 0.01485768798738718, 0.0013965334510430694, 0.06089421361684799, -0.041619375348091125, 0.050828464329242706, 0.004191831219941378, 0.040405772626399994, 0.05864547938108444, -0.03210688382387161, 0.030054470524191856, -0.060001857578754425, 0.038049958646297455, 0.028234068304300308, 0.04840126261115074, -0.007875020615756512, -0.007236987818032503, -0.052898723632097244, -0.002561054890975356, -0.04708057641983032, 0.048329874873161316, 0.04483184590935707, 0.0006068004877306521, -0.05157804116606712, 0.008178421296179295, -0.0006358019891194999, -0.019399767741560936, -0.007263758685439825, 0.07010330259799957, -0.010333455167710781, 0.02420063130557537, 0.025164373219013214, 0.03540859371423721, -0.024753889068961143, -0.011172267608344555, 0.036872051656246185, 0.003319555427879095, 0.028733788058161736, -0.009012771770358086, -0.06667666137218475, -0.054469265043735504, -0.03419499099254608, -0.06257183849811554, 0.08459512144327164, 0.034230686724185944, 0.019221296533942223, 0.030839741230010986, -0.0018850970081984997, -0.041869234293699265, 0.01840033195912838, 0.01116334367543459, -0.03840690106153488, -0.006143854930996895, 0.020684758201241493, 0.00313662295229733, 0.05425510182976723, 0.030679117888212204, -0.02919781021773815, -0.046330999583005905, -0.043582551181316376, 0.009673113003373146, -0.03628309816122055, 0.017320584505796432, 0.042119093239307404, 0.04204770177602768, 0.00040880951564759016, -0.03390944004058838, 0.054754819720983505, 0.037407465279102325, 0.04376102238893509, 0.010931331664323807, 0.02537853829562664, -0.022969182580709457, 0.055647172033786774, 0.030340023338794708, 0.004506385885179043, -0.009815890341997147, 0.020452745258808136, -0.08102571219205856, -0.008026720955967903, 0.03157147020101547, -0.02837684564292431, -0.08752204477787018, -0.006201857700943947, -0.03380235657095909, 0.005421048495918512, -0.04122673720121384, 0.04950777813792229, 0.016267606988549232, 0.012992668896913528, -0.008156112395226955, -0.009289401583373547, -0.00019952470029238611, -0.005041798111051321, -0.015036159195005894, 0.014973694458603859, 0.06060865893959999, -0.06217920035123825, -0.00018725483096204698, 0.058681175112724304, 0.01412595808506012, -0.000710536609403789, -0.02443264238536358, 0.015687577426433563, 0.049614861607551575, -0.003761270549148321, -0.008637983351945877, 0.021130934357643127, -0.0749577060341835, 0.004142751917243004, 0.039870359003543854, -0.022380229085683823, 0.047401826828718185, 0.019542545080184937, 0.054754819720983505, 0.024093547835946083, 0.011939691379666328, 0.04486754164099693 ]
729,555
namedtuple_TuyaHeader
__new__
Create new instance of TuyaHeader(prefix, seqno, cmd, length, total_length)
from builtins import function
(_cls, prefix, seqno, cmd, length, total_length)
[ 0.009963332675397396, -0.03442469611763954, 0.01945531740784645, 0.011539911851286888, 0.012417595833539963, 0.06147034838795662, -0.0007694967789575458, 0.005879666656255722, -0.012458229437470436, -0.02475392445921898, -0.015180673450231552, 0.03676518425345421, 0.006838616915047169, 0.005513965152204037, -0.06858933717012405, -0.0002488801546860486, 0.03549741953611374, 0.09069395810365677, -0.028150884434580803, -0.0022876656148582697, -0.06644389033317566, 0.018675154075026512, 0.036862704902887344, -0.014953126199543476, 0.02998751774430275, 0.10031597316265106, 0.037837911397218704, -0.04489188268780708, 0.010906029492616653, -0.05288855731487274, -0.010670355521142483, -0.04222632572054863, 0.003967860713601112, -0.0029499917291104794, -0.0009259357466362417, -0.04928030073642731, 0.023161090910434723, 0.04040594771504402, -0.06114528328180313, -0.07216508686542511, 0.035074833780527115, 0.011369251646101475, -0.011287984438240528, 0.0031937926542013884, -0.008768708445131779, -0.006814236752688885, -0.023356132209300995, -0.034034613519907, 0.017781216651201248, 0.010199006646871567, 0.006245368160307407, -0.03696022555232048, 0.06715904176235199, -0.014099822379648685, -0.015318826772272587, 0.0747656300663948, 0.010450934991240501, 0.01973162405192852, -0.03965828940272331, 0.049800410866737366, -0.03320569172501564, 0.023778719827532768, -0.026411771774291992, -0.04199877753853798, 0.028085870668292046, 0.035854995250701904, -0.043559104204177856, -0.01721234805881977, -0.0573744922876358, 0.02992250584065914, -0.061015255749225616, 0.014034808613359928, 0.005769955925643444, -0.03023131936788559, 0.05587917938828468, -0.017813723534345627, -0.09329450130462646, -0.017374882474541664, 0.009150662459433079, -0.02195833995938301, 0.015083152800798416, -0.036830198019742966, -0.012905197218060493, 0.03370954841375351, -0.02769578993320465, -0.04050346836447716, -0.0380004420876503, 0.0017177809495478868, -0.01275079045444727, 0.009231929667294025, -0.05438386648893356, -0.016545958817005157, -0.04820757731795311, 0.02696438692510128, 0.0035594941582530737, -0.006501358933746815, 0.01870766095817089, -0.023063570261001587, 0.03370954841375351, -0.047850001603364944, 0.06189293786883354, 0.01945531740784645, 0.007066164631396532, -0.05464392155408859, 0.040600989013910294, 0.047817494720220566, 0.004750055260956287, 0.015310700982809067, -0.023534920066595078, 0.007049911189824343, -0.04651722311973572, 0.010085233487188816, 0.016919786110520363, -0.014433017000555992, -0.004514381289482117, -0.032848116010427475, 0.025404060259461403, 0.004205566830933094, 0.02199084684252739, 0.01275079045444727, 0.017163587734103203, 0.04313651844859123, 0.002909358125180006, -0.010133993811905384, 0.10246141999959946, 0.05487146973609924, 0.0229660514742136, 0.014010428451001644, 0.05100316181778908, -0.0008182569872587919, 0.004400607198476791, 0.0280046034604311, -0.04567204788327217, 0.03249054029583931, -0.045542020350694656, -0.01061346847563982, -0.015863316133618355, 0.04472935199737549, 0.005899983458220959, 0.03842303156852722, -0.04203128442168236, 0.001317540998570621, 0.04115360230207443, -0.009077522903680801, -0.036310091614723206, -0.014075442217290401, -0.0033055348321795464, 0.029564930126070976, 0.0005531234201043844, 0.011141704395413399, -0.00599344028159976, 0.03203544765710831, 0.03190542012453079, 0.020365506410598755, 0.005278290715068579, 0.05019049346446991, 0.0529535710811615, -0.05262850224971771, 0.016643479466438293, -0.05344117060303688, 0.012523243203759193, 0.07105985283851624, -0.060072556138038635, -0.014522410929203033, 0.0170173067599535, -0.014010428451001644, 0.024103788658976555, -0.03699273243546486, 0.021828312426805496, 0.004071475937962532, -0.01471745129674673, -0.042616408318281174, 0.018398845568299294, 0.04567204788327217, 0.0633232370018959, 0.03793542832136154, -0.04524945840239525, 0.09023886173963547, 0.005310797598212957, 0.029077328741550446, -0.003476195503026247, 0.0009462524903938174, -0.11110822856426239, 0.009792672470211983, 0.01573328860104084, 0.05015798658132553, 0.04050346836447716, -0.02069057524204254, 0.026590557768940926, -0.03572496771812439, -0.029402395710349083, 0.011938120238482952, 0.052530981600284576, 0.013270898722112179, -0.006302254740148783, -0.06793919950723648, -0.05912986025214195, 0.002240937203168869, -0.009565124288201332, 0.0010971042793244123, -0.005176707170903683, 0.017797470092773438, 0.022819770500063896, 0.056074220687150955, 0.007456246297806501, 0.004319340456277132, -0.02795584313571453, 0.006387585308402777, -0.06270560622215271, -0.02221839502453804, 0.04641970247030258, -0.05984501168131828, 0.010101486928761005, 0.0734003409743309, -0.001092025195248425, 0.007769124116748571, 0.02121068350970745, -0.01110919751226902, 0.009305070154368877, 0.009727658703923225, 0.07073478400707245, 0.0284596998244524, 0.009695151820778847, -0.024298829957842827, 0.09622011333703995, 0.006025947164744139, -0.010662228800356388, 0.018025018274784088, 0.00403287447988987, -0.01161305233836174, 0.05568414181470871, -0.012685776688158512, -0.009435097686946392, -0.02346990630030632, 0.006716716568917036, -0.0332707054913044, 0.039040662348270416, 0.04924779385328293, 0.007704110350459814, 0.007846327498555183, -0.0006323587731458247, 0.04047096148133278, 0.04993043839931488, 0.04599711671471596, 0.024120042100548744, 0.006155974231660366, 0.013685360550880432, 0.04001586511731148, -0.06186043098568916, -0.0030129735823720694, 0.0156032619997859, -0.02696438692510128, 0.015367587096989155, -0.029402395710349083, 0.007687856908887625, 0.00742780277505517, 0.01994291879236698, 0.0025456883013248444, 0.018382592126727104, -0.004477811045944691, -0.008687441237270832, -0.04788250848650932, -0.03323819860816002, 0.002003231318667531, -0.0454770065844059, -0.03203544765710831, -0.031076496466994286, 0.04846763238310814, 0.01437612995505333, -0.001916885026730597, 0.04573706164956093, -0.024038774892687798, -0.004408733919262886, 0.005656182300299406, -0.06225051358342171, 0.01924402266740799, -0.011450518853962421, 0.014132329262793064, 0.046549730002880096, -0.03598502278327942, 0.011873106472194195, 0.017066067084670067, -0.08204714953899384, 0.013693487271666527, -0.08243723213672638, 0.00755376648157835, 0.010662228800356388, -0.051328230649232864, 0.018821435049176216, -0.004266516771167517, 0.037350308150053024, 0.004134458024054766, 0.04170621931552887, 0.008671187795698643, 0.06579375267028809, 0.07444056123495102, -0.022283408790826797, -0.06524113565683365, 0.06267309933900833, 0.005639928858727217, 0.00674109673127532, -0.039105676114559174, -0.01851261965930462, 0.02722444012761116, -0.024055028334259987, -0.04521695151925087, 0.06062517315149307, -0.008825594559311867, -0.0804218128323555, 0.01797625795006752, -0.03094646893441677, -0.007082418072968721, -0.0538637600839138, -0.040861040353775024, 0.043071504682302475, 0.0312877893447876, -0.023778719827532768, 0.01799251139163971, -0.023404892534017563, 0.050548065453767776, -0.017894990742206573, -0.004575331229716539, 0.07053974270820618, 0.054611414670944214, -0.020398013293743134, -0.040080878883600235, 0.019877905026078224, -0.04489188268780708, 0.05669185146689415, 0.03517235070466995, -0.09257934987545013, 0.016017723828554153, 0.07912153750658035, 0.04066599905490875, -0.014847478829324245, 0.06663893163204193, 0.02925611473619938, 0.014693071134388447, -0.025534087792038918, -0.012279441580176353, -0.01361222006380558, 0.05561912804841995, -0.002541624940931797, 0.008354246616363525, -0.03304315730929375, -0.0012261156225576997, -0.038097962737083435, 0.010459061712026596, 0.10532201826572418, -0.07314028590917587, 0.03179164603352547, -0.030670160427689552, -0.034359682351350784, 0.0003027195343747735, 0.032100461423397064, 0.036115050315856934, -0.009678898379206657, 0.01323026604950428, -0.026866866275668144, -0.011369251646101475, 0.06634636968374252, -0.06218549981713295, -0.011637432500720024, 0.005623675417155027, 0.022348422557115555, -0.005424571223556995, 0.02147073857486248, 0.014140455983579159, 0.019065234810113907, -0.017878737300634384, 0.0010788192739710212, -0.025095246732234955, -0.05945492908358574, -0.04173872619867325, -0.04768746718764305, -0.024055028334259987, 0.030052531510591507, 0.004936969373375177, -0.062283020466566086, 0.05175081640481949, 0.0573744922876358, 0.0344897098839283, -0.0022734440863132477, -0.03322194516658783, 0.005904046818614006, 0.003776883240789175, -0.026574304327368736, 0.03213296830654144, -0.03218172863125801, 0.014457397162914276, -0.014668690972030163, -0.01109294407069683, 0.01726110838353634, 0.012539496645331383, 0.008260789327323437, -0.00888248160481453, -0.02475392445921898, -0.0564643032848835, -0.0019331384683027864, 0.040340933948755264, 0.022771010175347328, 0.07099483907222748, 0.0012098622974008322, 0.04771997407078743, 0.01644843816757202, -0.003464005421847105, 0.03487979248166084, 0.01696854643523693, 0.017374882474541664, -0.028280911967158318, 0.02475392445921898, -0.05045054480433464, -0.09700027853250504, -0.06137282773852348, 0.0014953125501051545, 0.024103788658976555, -0.026395518332719803, -0.047850001603364944, -0.017829976975917816, -0.03024757280945778, 0.02771204337477684, -0.060820214450359344, -0.011889359913766384, 0.0424213670194149, -0.02070682868361473, -0.03301065042614937, 0.0007583225960843265, 0.015180673450231552, -0.026135463267564774, 0.03245803341269493, -0.04719986766576767, 0.011450518853962421, -0.005176707170903683, -0.06166538968682289, 0.03578998148441315, -0.024591390043497086, -0.05487146973609924, -0.004364037420600653, 0.07866644114255905, 0.01657033897936344, 0.04121861606836319, 0.05867476388812065, 0.02072308212518692, -0.04368913173675537, 0.017147334292531013, 0.0005714084836654365, -0.005485521629452705, 0.08451766520738602, -0.014920619316399097, -0.02322610467672348, -0.008191712200641632, -0.004106014501303434, 0.0003428451018407941, 0.00480694230645895, 0.05451389402151108, 0.0006729922606609762, -0.04716736078262329, 0.02699689380824566, -0.01159679889678955, -0.004229946527630091, -0.03569246083498001, 0.023161090910434723, -0.038618072867393494, -0.02047928050160408, -0.02673683874309063, 0.09381461143493652, -0.010280273854732513, 0.018772674724459648, 0.007602526806294918, 0.015050645917654037, 0.018918955698609352, 0.006546055898070335, -0.03975581005215645, -0.029516169801354408, 0.05269351601600647, 0.07184001803398132, -0.05942242220044136, -0.01750491000711918, 0.04469684511423111, -0.023079823702573776, -0.032116714864969254, -0.05815465748310089, 0.017894990742206573, 0.023404892534017563, -0.034554723650217056, 0.021308204159140587, 0.025810394436120987, -0.016903532668948174, 0.019877905026078224, -0.04866267368197441, 0.010995423421263695, 0.11806467920541763, 0.034132134169340134, -0.02368120104074478, 0.026281744241714478, 0.013352165929973125, -0.009914572350680828, 0.028329672291874886, -0.01361222006380558, -0.014831225387752056, 0.001967676915228367, 0.034554723650217056, -0.06780917197465897, 0.058284685015678406, 0.03848804533481598, 0.04941032826900482, 0.0538637600839138, -0.026834359392523766, -0.05119820311665535, -0.045542020350694656, -0.00006158513861009851, 0.01396979484707117, -0.01818755269050598, 0.011824347078800201, 0.04274643585085869, -0.02724069356918335, -0.025176512077450752, 0.012157541699707508, -0.07886148244142532, 0.005058870185166597, 0.01075162272900343, -0.05470893532037735, -0.045542020350694656, -0.07834137976169586, -0.009743912145495415, -0.019536584615707397, -0.027386974543333054, 0.03816297650337219, -0.0009350783075205982, 0.04047096148133278, 0.03426216170191765, 0.024103788658976555, -0.0013683328870683908, -0.013100238516926765, -0.019617849960923195, 0.09667520970106125, -0.060105063021183014, -0.022771010175347328, 0.013059604912996292, 0.03023131936788559, -0.02998751774430275, -0.013685360550880432, 0.018577633425593376, 0.04391667991876602, 0.019130248576402664, -0.021584512665867805, -0.07535075396299362, -0.01496125292032957, -0.00884997472167015, 0.009711405262351036, -0.02917484939098358, -0.019130248576402664, -0.01695229299366474, 0.001522740232758224, 0.029629943892359734, -0.05594419315457344, 0.004114141222089529, -0.02647678554058075, -0.047622453421354294, -0.02150324545800686, -0.016050230711698532, 0.028914794325828552, 0.011247350834310055, 0.026541797444224358, -0.068069227039814, -0.005160453729331493, 0.00836237333714962, 0.03552992641925812, 0.007931658066809177, -0.06153536215424538, 0.016196509823203087, -0.004855702631175518, 0.06153536215424538, -0.03819548338651657, -0.04021090641617775, 0.07014966756105423, 0.024558883160352707, -0.06459100544452667, 0.041121095418930054, -0.042356353253126144, -0.0724901556968689, -0.025371553376317024, 0.005026363302022219, -0.03715526685118675, -0.02745198830962181, -0.012385088950395584, -0.010199006646871567, 0.05214089900255203, 0.009370083920657635, -0.06663893163204193, -0.004900399595499039, -0.0033563266042619944, 0.007123051676899195, -0.051880843937397, -0.012230681255459785, -0.04099106788635254, -0.04970289021730423, 0.053538691252470016, -0.0163265373557806, -0.04788250848650932, 0.009654518216848373, 0.014725578017532825, -0.003738281549885869, -0.028297165408730507, 0.0419662743806839, 0.03068641386926174, 0.0033055348321795464, -0.02225090190768242, -0.007269332185387611, -0.01474995817989111, -0.032588060945272446, -0.029857492074370384, -0.02325861155986786, -0.017342375591397285, 0.06563121825456619, 0.052563488483428955, 0.022413434460759163, -0.011409885250031948, -0.004766308702528477, 0.028394686058163643, -0.043591611087322235, 0.01336029265075922, -0.01585518941283226, -0.02200710028409958, 0.07275021076202393, 0.02646053209900856, 0.025566594675183296, 0.005424571223556995, 0.05617174133658409, 0.0018285071710124612, -0.04472935199737549, -0.010580961592495441, 0.0883534699678421, -0.06277061998844147, -0.01496125292032957, -0.024396350607275963, 0.006757350172847509, 0.011019803583621979, -0.010020219720900059, 0.014790591783821583, -0.010150247253477573, -0.0229660514742136, -0.024298829957842827, -0.03923569992184639, 0.02748449519276619, 0.013758501037955284, -0.04424174875020981, 0.0037443763576447964, 0.047102347016334534, -0.05474144220352173, 0.007590336725115776, 0.027110667899250984, -0.004225883167237043, 0.08068186789751053, -0.024770177900791168, -0.02543656714260578, -0.0034477519802749157, -0.052108392119407654, 0.07346535474061966, -0.03819548338651657, -0.007655350491404533, -0.024851445108652115, -0.024656403809785843, 0.06702901422977448, 0.005107630044221878, -0.04014589264988899, 0.013782881200313568, -0.032376766204833984, -0.004449367523193359, -0.007586273364722729, 0.029662450775504112, -0.03422965481877327, 0.004114141222089529, -0.054318856447935104, -0.026151716709136963, 0.01826881803572178, 0.027517002075910568, 0.057829588651657104, 0.001018376904539764, -0.003071892075240612, -0.043104011565446854, -0.0231935977935791, -0.020560547709465027, -0.056529317051172256, -0.03728529438376427, 0.01348219346255064, -0.041121095418930054, 0.032376766204833984, -0.003990209195762873, -0.03223048895597458, -0.0016873058630153537, 0.001929075107909739, -0.026785599067807198, -0.02498147264122963, -0.02270599640905857, 0.038130469620227814, -0.01184060052037239, -0.027386974543333054, 0.0021759236697107553, -0.0174724031239748, 0.033319465816020966, 0.014953126199543476, 0.00505480682477355, -0.004057254176586866, 0.02475392445921898, -0.03900815546512604, -0.03125528246164322, -0.0219745934009552, -0.04073101282119751, 0.02595667541027069, 0.012450102716684341, -0.030605148524045944, -0.016415931284427643, 0.030881455168128014, 0.042096298187971115, -0.05262850224971771, -0.029581183567643166, 0.07886148244142532, 0.030556388199329376, -0.009760165587067604, 0.02871975302696228, -0.037090253084897995, 0.03748033568263054, 0.015367587096989155, 0.06982459872961044, 0.02371370792388916, -0.060072556138038635, 0.0180087648332119, -0.044826868921518326, 0.015830809250473976, -0.004122267942875624, 0.03390458598732948, -0.040535975247621536, 0.06290064752101898, 0.012677649967372417, -0.020430520176887512, -0.01046718843281269, 0.029662450775504112, -0.020365506410598755, -0.03380706533789635, -0.03878060728311539, -0.0630306750535965, 0.00218405039049685, -0.015180673450231552, 0.024656403809785843, -0.01943906396627426, 0.02169828489422798, -0.0247214175760746, 0.024883951991796494, 0.07262018322944641, 0.006123467348515987, 0.04863016679883003, 0.02294979803264141, -0.019292782992124557, 0.04589959606528282, -0.016196509823203087, -0.01774870976805687, 0.004138521384447813, -0.03172663226723671, -0.027614522725343704, -0.09953580796718597, 0.03151533752679825, -0.015798302367329597, -0.025420313701033592, 0.05620424821972847, -0.029564930126070976, 0.0032364577054977417, 0.01674100011587143 ]
729,558
collections
_replace
Return a new TuyaHeader object replacing specified fields with new values
def namedtuple(typename, field_names, *, rename=False, defaults=None, module=None): """Returns a new subclass of tuple with named fields. >>> Point = namedtuple('Point', ['x', 'y']) >>> Point.__doc__ # docstring for the new class 'Point(x, y)' >>> p = Point(11, y=22) # instantiate with positional args or keywords >>> p[0] + p[1] # indexable like a plain tuple 33 >>> x, y = p # unpack like a regular tuple >>> x, y (11, 22) >>> p.x + p.y # fields also accessible by name 33 >>> d = p._asdict() # convert to a dictionary >>> d['x'] 11 >>> Point(**d) # convert from a dictionary Point(x=11, y=22) >>> p._replace(x=100) # _replace() is like str.replace() but targets named fields Point(x=100, y=22) """ # Validate the field names. At the user's option, either generate an error # message or automatically replace the field name with a valid name. if isinstance(field_names, str): field_names = field_names.replace(',', ' ').split() field_names = list(map(str, field_names)) typename = _sys.intern(str(typename)) if rename: seen = set() for index, name in enumerate(field_names): if (not name.isidentifier() or _iskeyword(name) or name.startswith('_') or name in seen): field_names[index] = f'_{index}' seen.add(name) for name in [typename] + field_names: if type(name) is not str: raise TypeError('Type names and field names must be strings') if not name.isidentifier(): raise ValueError('Type names and field names must be valid ' f'identifiers: {name!r}') if _iskeyword(name): raise ValueError('Type names and field names cannot be a ' f'keyword: {name!r}') seen = set() for name in field_names: if name.startswith('_') and not rename: raise ValueError('Field names cannot start with an underscore: ' f'{name!r}') if name in seen: raise ValueError(f'Encountered duplicate field name: {name!r}') seen.add(name) field_defaults = {} if defaults is not None: defaults = tuple(defaults) if len(defaults) > len(field_names): raise TypeError('Got more default values than field names') field_defaults = dict(reversed(list(zip(reversed(field_names), reversed(defaults))))) # Variables used in the methods and docstrings field_names = tuple(map(_sys.intern, field_names)) num_fields = len(field_names) arg_list = ', '.join(field_names) if num_fields == 1: arg_list += ',' repr_fmt = '(' + ', '.join(f'{name}=%r' for name in field_names) + ')' tuple_new = tuple.__new__ _dict, _tuple, _len, _map, _zip = dict, tuple, len, map, zip # Create all the named tuple methods to be added to the class namespace namespace = { '_tuple_new': tuple_new, '__builtins__': {}, '__name__': f'namedtuple_{typename}', } code = f'lambda _cls, {arg_list}: _tuple_new(_cls, ({arg_list}))' __new__ = eval(code, namespace) __new__.__name__ = '__new__' __new__.__doc__ = f'Create new instance of {typename}({arg_list})' if defaults is not None: __new__.__defaults__ = defaults @classmethod def _make(cls, iterable): result = tuple_new(cls, iterable) if _len(result) != num_fields: raise TypeError(f'Expected {num_fields} arguments, got {len(result)}') return result _make.__func__.__doc__ = (f'Make a new {typename} object from a sequence ' 'or iterable') def _replace(self, /, **kwds): result = self._make(_map(kwds.pop, field_names, self)) if kwds: raise ValueError(f'Got unexpected field names: {list(kwds)!r}') return result _replace.__doc__ = (f'Return a new {typename} object replacing specified ' 'fields with new values') def __repr__(self): 'Return a nicely formatted representation string' return self.__class__.__name__ + repr_fmt % self def _asdict(self): 'Return a new dict which maps field names to their values.' return _dict(_zip(self._fields, self)) def __getnewargs__(self): 'Return self as a plain tuple. Used by copy and pickle.' return _tuple(self) # Modify function metadata to help with introspection and debugging for method in ( __new__, _make.__func__, _replace, __repr__, _asdict, __getnewargs__, ): method.__qualname__ = f'{typename}.{method.__name__}' # Build-up the class namespace dictionary # and use type() to build the result class class_namespace = { '__doc__': f'{typename}({arg_list})', '__slots__': (), '_fields': field_names, '_field_defaults': field_defaults, '__new__': __new__, '_make': _make, '_replace': _replace, '__repr__': __repr__, '_asdict': _asdict, '__getnewargs__': __getnewargs__, '__match_args__': field_names, } for index, name in enumerate(field_names): doc = _sys.intern(f'Alias for field number {index}') class_namespace[name] = _tuplegetter(index, doc) result = type(typename, (tuple,), class_namespace) # For pickling to work, the __module__ variable needs to be set to the frame # where the named tuple is created. Bypass this step in environments where # sys._getframe is not defined (Jython for example) or sys._getframe is not # defined for arguments greater than 0 (IronPython), or where the user has # specified a particular module. if module is None: try: module = _sys._getframe(1).f_globals.get('__name__', '__main__') except (AttributeError, ValueError): pass if module is not None: result.__module__ = module return result
(self, /, **kwds)
[ 0.0542268380522728, 0.0013855451252311468, -0.015400669537484646, -0.03566362336277962, -0.032861627638339996, -0.03329429030418396, 0.0028251728508621454, 0.021509429439902306, 0.021004658192396164, -0.04615050181746483, -0.04223594814538956, 0.057070039212703705, 0.004481131210923195, 0.06329211592674255, 0.010837126523256302, 0.03345911204814911, -0.029812399297952652, 0.05641074478626251, -0.0653936117887497, -0.032325953245162964, 0.019047383219003677, 0.01591574214398861, 0.0334797166287899, 0.05983082950115204, 0.03199630603194237, 0.0110019501298666, 0.01882075145840645, 0.010461123660206795, 0.0018413843354210258, -0.005923334509134293, -0.004118005279451609, -0.0157921239733696, -0.030162649229168892, -0.010754714719951153, 0.002796843880787492, -0.06081976741552353, -0.0500650517642498, 0.05855344608426094, 0.04924093559384346, -0.005042560398578644, 0.06386899948120117, -0.09963563084602356, -0.04948817193508148, -0.06098458915948868, -0.001800178550183773, 0.023363690823316574, 0.022683795541524887, -0.011475816369056702, -0.024249615147709846, -0.05348513275384903, 0.023590322583913803, 0.006330241449177265, 0.01582302898168564, -0.0042029921896755695, -0.023178264498710632, -0.000981857068836689, -0.0018606996163725853, 0.06180870532989502, -0.006922575179487467, 0.0231164563447237, -0.002176181646063924, 0.05760571360588074, -0.015143132768571377, 0.010481726378202438, -0.05430924892425537, -0.02420840971171856, -0.009322812780737877, -0.07346995174884796, -0.02280741184949875, 0.001220721984282136, -0.009013769216835499, -0.0008453628397546709, 0.01878984645009041, 0.024249615147709846, 0.07627194374799728, 0.04231835901737213, -0.02921491488814354, -0.010857729241251945, 0.044255033135414124, -0.05158966779708862, -0.016595637425780296, -0.013443393632769585, -0.08080457895994186, -0.043513327836990356, -0.03424202278256416, 0.03947516158223152, -0.05047710984945297, -0.00043942127376794815, 0.03014204651117325, -0.001702314824797213, -0.05315548554062843, 0.016049660742282867, -0.003760029561817646, 0.033376701176166534, -0.0516720786690712, -0.08661460131406784, 0.003790933871641755, -0.03788873553276062, -0.012948923744261265, 0.035766638815402985, 0.02497071772813797, -0.045779649168252945, -0.09180653095245361, -0.021025260910391808, -0.008740780875086784, -0.019819991663098335, -0.01952124945819378, -0.015225544571876526, 0.03597266599535942, -0.032676201313734055, -0.04326609522104263, -0.05768812447786331, -0.029956620186567307, 0.060902178287506104, -0.003966058604419231, -0.03405659645795822, 0.021087070927023888, -0.026000862941145897, -0.03067772090435028, -0.031069176271557808, 0.0271134190261364, 0.018810449168086052, -0.061149414628744125, 0.04907611384987831, 0.00848324503749609, -0.00896226242184639, 0.061437852680683136, -0.026000862941145897, 0.03893948346376419, -0.003286162856966257, 0.02299283817410469, 0.0029899962246418, -0.042400773614645004, 0.05682280287146568, 0.017903922125697136, 0.038383208215236664, 0.04990023002028465, 0.050312288105487823, -0.06980263441801071, 0.03760029748082161, 0.04202992096543312, -0.012176315300166607, 0.06555843353271484, 0.035416387021541595, -0.0018555488204583526, -0.0462329126894474, 0.013319776393473148, 0.006948328576982021, -0.03749728202819824, 0.030059633776545525, -0.03300584852695465, -0.03597266599535942, 0.018892861902713776, 0.02235414832830429, -0.046480145305395126, -0.005148150026798248, -0.011187375523149967, -0.06415743380784988, -0.023198867216706276, -0.04151484742760658, 0.018552912399172783, -0.053237900137901306, -0.01614237390458584, -0.015699410811066628, 0.05533939599990845, 0.021344605833292007, 0.043389711529016495, -0.08529601246118546, -0.013597914949059486, -0.03360333293676376, -0.000386948260711506, 0.04126761108636856, 0.02637171559035778, 0.04417262226343155, -0.0341184064745903, 0.01944913901388645, -0.00711830286309123, 0.02484709955751896, 0.023961175233125687, -0.020458681508898735, 0.03877466171979904, -0.01438082568347454, -0.06197353079915047, 0.008890151977539062, 0.058471035212278366, 0.031810879707336426, -0.002004919806495309, 0.06226196885108948, 0.052290163934230804, 0.02682497911155224, 0.016132071614265442, -0.040072645992040634, 0.005737908184528351, -0.0066289836540818214, 0.008704726584255695, 0.06300367414951324, -0.06353934854269028, 0.04615050181746483, 0.017646385356783867, 0.11043155193328857, -0.0275872852653265, 0.0331706739962101, 0.029235517606139183, -0.017460959032177925, 0.03277921676635742, -0.029482752084732056, 0.05488613247871399, -0.05109519883990288, -0.0315842479467392, -0.03376815468072891, 0.08335933834314346, -0.021447621285915375, 0.0077415406703948975, 0.01958305761218071, -0.010795921087265015, -0.07256342470645905, 0.05352633818984032, -0.029874207451939583, 0.00637144735082984, -0.004161786288022995, 0.08809801191091537, 0.023363690823316574, -0.02612447924911976, -0.005830621346831322, 0.041350025683641434, -0.048787672072649, -0.016162976622581482, -0.02905009128153324, -0.03840380907058716, -0.06395141035318375, 0.06271523237228394, -0.01283560786396265, -0.02905009128153324, -0.01926371268928051, 0.0239199697971344, -0.016255689784884453, 0.00923010054975748, -0.03574603423476219, -0.02315766178071499, -0.026351111009716988, 0.027793314307928085, 0.0357254333794117, -0.03376815468072891, -0.009848186746239662, -0.00974517222493887, -0.06741269677877426, -0.027793314307928085, 0.028205372393131256, -0.019819991663098335, 0.007782746106386185, -0.016688350588083267, 0.014988611452281475, -0.010960743762552738, 0.03277921676635742, 0.004329185001552105, -0.024826496839523315, -0.03566362336277962, -0.013484599068760872, -0.014257208444178104, -0.02777271158993244, 0.004105128347873688, -0.058347418904304504, 0.030760133638978004, 0.04503794386982918, 0.05121881514787674, -0.027731506153941154, 0.004640803672373295, -0.025691818445920944, 0.013196159154176712, 0.015287353657186031, 0.12048576772212982, 0.03624050319194794, -0.015462477691471577, 0.016286594793200493, -0.04540879651904106, -0.033438511192798615, 0.016461718827486038, -0.0251973494887352, 0.02276620641350746, -0.051136404275894165, -0.008843795396387577, -0.022848619148135185, -0.02293103002011776, -0.011341897770762444, 0.0226425901055336, 0.06135544180870056, -0.05529819056391716, 0.030636515468358994, -0.00848324503749609, -0.00013754046813119203, 0.04520276561379433, -0.032861627638339996, 0.013422790914773941, -0.03191389515995979, 0.0004613118653651327, 0.024125998839735985, -0.08570807427167892, 0.02046898379921913, 0.02340489625930786, -0.06873127818107605, -0.024888304993510246, 0.01821296475827694, 0.041247010231018066, 0.0388982780277729, 0.05163087323307991, -0.041823890060186386, -0.027401858940720558, -0.004383267369121313, -0.011084361001849174, 0.046644970774650574, -0.02764909528195858, 0.01341248955577612, -0.021509429439902306, 0.0057585109025239944, 0.06024288386106491, 0.02241595834493637, 0.0014653813559561968, -0.014658965170383453, 0.014803185127675533, 0.04318368434906006, -0.014813486486673355, -0.0628388524055481, -0.048045966774225235, -0.014349921606481075, -0.008766534738242626, -0.033953581005334854, -0.05064193159341812, -0.007782746106386185, 0.011856970377266407, -0.017883319407701492, -0.0357254333794117, 0.007071946281939745, 0.01420570071786642, 0.05785294994711876, 0.0011428172001615167, -0.00967821292579174, 0.010038764216005802, -0.025877244770526886, 0.004460528492927551, -0.020582299679517746, 0.049158524721860886, -0.010440520942211151, -0.0462329126894474, -0.011187375523149967, -0.007087398320436478, -0.017945127561688423, 0.014123288914561272, 0.016987092792987823, 0.1265842318534851, -0.02286922186613083, 0.011712749488651752, -0.08364778012037277, -0.05315548554062843, 0.014092384837567806, 0.04870526120066643, -0.028267182409763336, 0.00226374389603734, -0.013299173675477505, 0.006742299534380436, -0.009127086028456688, 0.00896226242184639, -0.05414442718029022, 0.0012992705451324582, 0.011362500488758087, 0.020211447030305862, -0.035478197038173676, -0.03224354237318039, -0.015029816888272762, -0.014679567888379097, -0.011341897770762444, 0.016183579340577126, -0.015864234417676926, -0.029482752084732056, -0.0357254333794117, -0.04713943973183632, -0.03211992606520653, 0.027278242632746696, 0.07384080439805984, -0.08727389574050903, -0.06778354942798615, 0.0135567095130682, -0.06642375886440277, 0.02781391702592373, 0.02104586362838745, 0.01219691801816225, -0.002450457774102688, 0.05583386495709419, 0.029029488563537598, 0.014185097999870777, 0.06271523237228394, -0.0669594332575798, 0.01894436776638031, -0.035993270576000214, -0.0315636470913887, 0.03537518158555031, -0.013443393632769585, -0.039372146129608154, -0.03597266599535942, -0.05010625720024109, -0.012444152496755123, 0.007762143388390541, -0.04376056417822838, -0.03521035984158516, 0.04429623857140541, -0.02921491488814354, 0.01814085617661476, 0.09650399535894394, -0.044090211391448975, 0.00944127980619669, -0.008555355481803417, 0.046356528997421265, 0.023610925301909447, -0.06304488331079483, -0.08335933834314346, 0.06432226300239563, 0.022436561062932014, 0.010543535463511944, 0.0334797166287899, 0.03558121249079704, 0.03461287543177605, -0.0025006772484630346, -0.006453859154134989, 0.00596453994512558, 0.02321946993470192, -0.0288646649569273, 0.044255033135414124, -0.04384297505021095, 0.024888304993510246, 0.013608217239379883, 0.005055437330156565, -0.04069073125720024, 0.0012316672364249825, 0.0047566951252520084, -0.01266048289835453, 0.0542268380522728, -0.03757969290018082, -0.0078960619866848, -0.03741487115621567, -0.010857729241251945, 0.02892647497355938, 0.008910754695534706, -0.00027411518385633826, 0.010919538326561451, -0.050435904413461685, 0.010785618796944618, 0.015235845930874348, -0.04755149781703949, 0.012227822095155716, 0.042112331837415695, 0.016760461032390594, 0.07515938580036163, 0.056657981127500534, 0.08463671803474426, 0.01565820537507534, -0.0020422625821083784, -0.03811536729335785, -0.03924852982163429, -0.048334408551454544, 0.016090866178274155, 0.002256017876788974, 0.01780090667307377, -0.025753628462553024, 0.0500650517642498, 0.03329429030418396, -0.041247010231018066, -0.008426587097346783, 0.038857072591781616, -0.06906092911958694, -0.015400669537484646, -0.04110278934240341, 0.06551723182201385, -0.01527705229818821, 0.024867702275514603, -0.01973758079111576, -0.03463348001241684, 0.016162976622581482, 0.00026075547793880105, -0.008617163635790348, -0.018676530569791794, -0.07862067222595215, 0.052702222019433975, -0.021921487525105476, 0.054103221744298935, 0.0022405656054615974, -0.0027453366201370955, 0.030080236494541168, 0.052825842052698135, 0.03032747097313404, -0.009992407634854317, 0.030368678271770477, -0.06180870532989502, 0.02787572704255581, 0.051836900413036346, -0.008333873935043812, 0.005578235723078251, -0.006474461872130632, -0.024352630600333214, 0.04149424657225609, -0.043554533272981644, -0.033623937517404556, 0.04289524257183075, -0.0503946989774704, 0.025856642052531242, -0.03113098442554474, 0.06654737144708633, -0.0395369678735733, 0.060448914766311646, 0.011022552847862244, -0.012485358864068985, -0.03261439502239227, -0.063786581158638, -0.01900617778301239, 0.017460959032177925, -0.030224457383155823, 0.0019122068770229816, 0.006041801068931818, 0.004635652992874384, 0.0237551461905241, -0.065682053565979, -0.05286704748868942, 0.03751788288354874, 0.02985360473394394, -0.0328410267829895, 0.015297655016183853, -0.029894810169935226, 0.028782254084944725, 0.02544458396732807, -0.008277215994894505, 0.03990782052278519, 0.024476246908307076, 0.00298226997256279, -0.050435904413461685, -0.023549117147922516, -0.05488613247871399, 0.03852742537856102, 0.037044018507003784, -0.0046717082150280476, 0.017903922125697136, 0.0405053049325943, 0.020201144739985466, 0.04821079224348068, 0.05455648526549339, -0.05546301230788231, -0.026392318308353424, -0.011094662360846996, 0.000345098611433059, -0.0245586596429348, 0.010054215788841248, -0.015266750007867813, -0.030286265537142754, -0.006479612551629543, -0.01766698807477951, 0.0015400669071823359, -0.010337506420910358, -0.046603765338659286, -0.016132071614265442, -0.035931460559368134, 0.004893189296126366, 0.01722402684390545, 0.030121441930532455, 0.005037409719079733, 0.006613531615585089, 0.0243938360363245, -0.009791528806090355, -0.001084227696992457, 0.03199630603194237, 0.03982540965080261, 0.01775970123708248, -0.0073397839441895485, -0.01833658292889595, 0.030636515468358994, 0.008282366208732128, 0.04697461798787117, 0.017646385356783867, 0.013855451717972755, 0.029462149366736412, -0.03689979761838913, 0.0038707703351974487, -0.01478258240967989, -0.0573996864259243, 0.027669697999954224, 0.04285403713583946, -0.011537625454366207, -0.06176749989390373, -0.01146551501005888, -0.02624809741973877, -0.02046898379921913, 0.008230859413743019, 0.027257639914751053, 0.008550204336643219, -0.02363152801990509, 0.042400773614645004, -0.004720639903098345, -0.00040755115333013237, -0.019315220415592194, 0.022086311131715775, -0.03661135584115982, 0.006443557795137167, 0.010275697335600853, 0.000973487098235637, -0.04800476133823395, 0.03811536729335785, -0.03354152292013168, -0.0025933904107660055, 0.004172087647020817, -0.036528944969177246, -0.015493382699787617, 0.006345693953335285, 0.050600726157426834, 0.014216002076864243, 0.06147905811667442, -0.04854043573141098, 0.03963998332619667, 0.008153598755598068, -0.021571237593889236, -0.018254172056913376, -0.014504442922770977, -0.015153434127569199, 0.012433851137757301, -0.04800476133823395, -0.06803078204393387, 0.024249615147709846, 0.012876814231276512, 0.00935886800289154, -0.009127086028456688, -0.056657981127500534, -0.011218280531466007, -0.03712642937898636, 0.05121881514787674, -0.04503794386982918, -0.030657118186354637, -0.02812296152114868, 0.023322485387325287, -0.0669594332575798, -0.03632291778922081, 0.012402947060763836, 0.02082953415811062, -0.014803185127675533, 0.014133591204881668, 0.06226196885108948, 0.011681845411658287, -0.03224354237318039, -0.0064693111926317215, 0.014319016598165035, -0.010744413360953331, -0.023260677233338356, 0.05175448954105377, -0.0960095226764679, 0.04446106404066086, 0.015462477691471577, -0.020077528432011604, 0.05393839627504349, 0.01524614728987217, -0.031687263399362564, -0.02560940757393837, 0.007133754901587963, -0.07824981957674026, -0.010543535463511944, 0.027834521606564522, 0.012444152496755123, 0.012135108932852745, -0.049859024584293365, 0.03533397614955902, -0.027443066239356995, 0.0057688127271831036, 0.050271082669496536, -0.024352630600333214, 0.056081101298332214, 0.05327910557389259, 0.018841354176402092, -0.023590322583913803, -0.003883647033944726, 0.05455648526549339, -0.003675042651593685, -0.026639552786946297, -0.028617430478334427, 0.025403378531336784, 0.048787672072649, -0.032325953245162964, -0.0016430814284831285, 0.06127303093671799, 0.013371283188462257, -0.04487312212586403, -0.026227494701743126, -0.007453099824488163, -0.009168291464447975, 0.021056165918707848, 0.005377357359975576, 0.030636515468358994, -0.08752112835645676, 0.039372146129608154, 0.019809691235423088, 0.017357945442199707, 0.01983029395341873, -0.06168508902192116, -0.024125998839735985, 0.027278242632746696, -0.031749073415994644, 0.04800476133823395, -0.02037627063691616, 0.020623505115509033, 0.0052099586464464664, -0.0023860735818743706, 0.03976359963417053, 0.0037445775233209133, 0.05224895849823952, -0.0013366133207455277, 0.022560177370905876, 0.038795266300439835, -0.0067783547565341, -0.008684122934937477, 0.04417262226343155, 0.012001190334558487, -0.009163140319287777, 0.05097157880663872, -0.05430924892425537, 0.026557140052318573, 0.07029709964990616, -0.015606698580086231, 0.03415961191058159, 0.02892647497355938, -0.01779060624539852, 0.08636736869812012, -0.0024890881031751633, 0.005055437330156565, 0.00002820827103278134, -0.029997825622558594, -0.025423981249332428, -0.03751788288354874, 0.01792452484369278, 0.044090211391448975, 0.04487312212586403, -0.046068087220191956, 0.023240072652697563, 0.032449569553136826, -0.03185208514332771, 0.026000862941145897, 0.01874864101409912, -0.006144815590232611, 0.07388200610876083, -0.05801777169108391, 0.0625092014670372, -0.0012464756146073341, 0.045944470912218094, -0.04969419911503792, -0.018892861902713776, 0.05896550416946411, 0.024352630600333214, -0.0077209374867379665, 0.026515934616327286, 0.012990130111575127, 0.03797115013003349, -0.019603662192821503, -0.01958305761218071, 0.032676201313734055, -0.06551723182201385, 0.03945455700159073, -0.01187757309526205, -0.028328990563750267, -0.052702222019433975, -0.031007368117570877, -0.0023358541075140238, 0.018037840723991394, 0.01938733085989952, -0.0017718495801091194, 0.03673497587442398, 0.005640044342726469, 0.03277921676635742 ]
729,559
tinytuya.core
TuyaMessage
TuyaMessage(seqno, cmd, retcode, payload, crc, crc_good, prefix, iv)
from tinytuya.core import TuyaMessage
(seqno, cmd, retcode, payload, crc, crc_good=True, prefix=21930, iv=None)
[ -0.011958115734159946, -0.059560082852840424, 0.030314790084958076, 0.0073021030984818935, -0.007578697521239519, -0.04952891170978546, -0.043997012078762054, 0.0905018225312233, -0.004656012635678053, 0.004969486501067877, 0.01771128736436367, -0.0030471528880298138, -0.008611318655312061, 0.012004214338958263, -0.0521104633808136, 0.008588268421590328, 0.047279272228479385, 0.015913421288132668, 0.01193967554718256, -0.04100979119539261, -0.02773323841392994, 0.004891118034720421, -0.009395003318786621, 0.05708916857838631, -0.0394977368414402, 0.034555912017822266, -0.028987135738134384, -0.03302542120218277, 0.04311190918087959, -0.06535013020038605, 0.003093251958489418, -0.07589761167764664, 0.007025508210062981, 0.07324230670928955, -0.036067962646484375, 0.011709179729223251, -0.04222680628299713, -0.0033283575903624296, -0.08393730223178864, -0.04904947802424431, 0.033062297850847244, 0.0040613338351249695, 0.027475083246827126, 0.018955964595079422, 0.032380033284425735, 0.01082407683134079, -0.026184309273958206, 0.09824647754430771, -0.03872327134013176, 0.03708214312791824, 0.00750493910163641, 0.004351758398115635, -0.009496421553194523, 0.010123370215296745, -0.0411573089659214, 0.05199982225894928, -0.012188611552119255, 0.08364226669073105, -0.045103393495082855, 0.04233744367957115, -0.037801291793584824, 0.027401326224207878, 0.01980418898165226, 0.039977170526981354, 0.022607015445828438, 0.0007370099192485213, 0.016614127904176712, 0.02845238521695137, 0.0018255257746204734, -0.006753523368388414, 0.033560171723365784, -0.0019350111251696944, -0.028636781498789787, 0.010851736180484295, 0.0297247227281332, -0.05126223713159561, -0.043886374682188034, 0.03068358451128006, -0.05841682478785515, 0.02677437663078308, 0.03013039380311966, -0.004289524629712105, 0.014797822572290897, 0.04676296189427376, 0.05111471936106682, -0.01425385195761919, 0.060113269835710526, -0.002546977251768112, -0.05719980597496033, 0.03544101491570473, -0.042263686656951904, -0.05258989334106445, -0.0181538388133049, 0.030277911573648453, -0.010777977295219898, -0.004033674485981464, 0.020099222660064697, 0.040309082716703415, -0.033670809119939804, -0.01930631697177887, -0.02806515246629715, 0.021721912547945976, -0.06712034344673157, -0.0317346453666687, 0.015913421288132668, 0.016429731622338295, -0.01570136472582817, -0.001913114101625979, 0.06959125399589539, 0.048459410667419434, -0.028987135738134384, -0.038022566586732864, -0.00937656406313181, -0.015941081568598747, -0.004010624717921019, -0.09905782341957092, 0.03625236079096794, 0.01930631697177887, 0.011672301217913628, 0.007256003562361002, 0.011432585306465626, 0.04713175445795059, -0.03206655755639076, -0.017499230802059174, 0.036897748708724976, 0.060113269835710526, 0.0327119454741478, -0.020541774109005928, 0.07626640796661377, -0.029300609603524208, -0.03241690993309021, 0.007518768776208162, 0.025852395221590996, -0.009348904713988304, -0.022496378049254417, 0.023584317415952682, 0.028913376852869987, -0.004473920911550522, 0.060113269835710526, 0.041526101529598236, -0.002770557999610901, 0.058158669620752335, -0.0016733985394239426, -0.06966501474380493, 0.017056679353117943, -0.04930763319134712, -0.048791322857141495, -0.04410765320062637, -0.04451332241296768, 0.025077929720282555, -0.0009824878070503473, -0.04373886063694954, 0.008712735958397388, 0.0435175821185112, -0.02465381659567356, 0.004637572914361954, 0.017858805134892464, -0.025483600795269012, 0.016807744279503822, 0.005117003805935383, 0.010363085195422173, -0.008712735958397388, -0.018301356583833694, 0.022293541580438614, -0.014226192608475685, -0.01327655091881752, 0.014078675769269466, 0.040198445320129395, -0.006334021221846342, 0.015046757645905018, -0.06988628953695297, -0.0017563770525157452, -0.041599858552217484, 0.029134653508663177, 0.03258286789059639, -0.0503033772110939, -0.00531523022800684, 0.018080079928040504, 0.027475083246827126, -0.020375818014144897, -0.042706239968538284, 0.07191465049982071, -0.04337006434798241, 0.0561303049325943, 0.054028186947107315, 0.026258066296577454, 0.055429600179195404, 0.033117618411779404, -0.022496378049254417, -0.042263686656951904, 0.013857400044798851, 0.021998506039381027, 0.03013039380311966, 0.03474030643701553, 0.00888330303132534, 0.044439565390348434, 0.0352012999355793, -0.026147428900003433, -0.042153049260377884, -0.015996400266885757, -0.028599902987480164, -0.009653158485889435, -0.018421214073896408, 0.02517012692987919, 0.05188918486237526, -0.028802739456295967, 0.013553145341575146, 0.02393466979265213, -0.08408482372760773, -0.06745225191116333, -0.0010568227153271437, 0.010390744544565678, -0.015913421288132668, 0.03715590387582779, 0.031052377074956894, -0.04569346085190773, 0.0012988430680707097, 0.02371339499950409, 0.02583395503461361, -0.010418404825031757, 0.07324230670928955, 0.004199631046503782, 0.022053826600313187, -0.03619704023003578, 0.04056723788380623, 0.012631163001060486, 0.025981472805142403, 0.049565788358449936, 0.001538558630272746, -0.059670720249414444, 0.014014136977493763, 0.03101549856364727, 0.035736050456762314, 0.05683101341128349, -0.018900645896792412, -0.021168721839785576, -0.009044650010764599, -0.011174430139362812, -0.008477631025016308, 0.012234710156917572, 0.0354778952896595, -0.011524783447384834, 0.00830245390534401, 0.03582824766635895, -0.0015062892343848944, -0.011275848373770714, 0.012031873688101768, -0.009067699313163757, -0.025741755962371826, -0.0237687136977911, -0.018448874354362488, -0.021058084443211555, 0.021519076079130173, -0.003003358608111739, 0.000032269395887851715, -0.05089344456791878, 0.062289152294397354, -0.020394256338477135, 0.011663081124424934, -0.04123106598854065, -0.036289237439632416, 0.005476577207446098, -0.07471747696399689, 0.10606488585472107, -0.045103393495082855, 0.0013138253707438707, -0.030499188229441643, 0.02682969532907009, -0.043997012078762054, -0.015037537552416325, 0.16359661519527435, 0.018421214073896408, -0.01793256402015686, 0.0021874038502573967, -0.03864951431751251, -0.06468630582094193, -0.0007433485588990152, 0.04480835795402527, -0.011238968931138515, -0.024856653064489365, -0.0716564953327179, -0.03462966904044151, 0.07460683584213257, 0.02421126514673233, 0.001651501515880227, -0.02800983376801014, -0.03488782420754433, -0.01840277388691902, -0.05373315140604973, -0.05756859853863716, -0.038243841379880905, -0.015738245099782944, 0.006877990905195475, 0.0162822138518095, -0.026184309273958206, -0.0046421829611063, -0.09389472007751465, 0.08991175144910812, 0.07973306626081467, -0.03971901535987854, -0.007108486723154783, 0.05067216977477074, -0.02616586908698082, -0.004390942398458719, -0.02800983376801014, 0.01322123222053051, 0.0375615730881691, 0.02321552485227585, -0.014797822572290897, -0.0009121866314671934, 0.006592176388949156, 0.0003316256625112146, 0.02225666120648384, 0.023971550166606903, -0.030867980793118477, 0.013571585528552532, 0.008500680327415466, 0.005637924186885357, 0.01952759362757206, 0.05561399459838867, -0.005236861761659384, -0.07656144350767136, 0.051962945610284805, -0.010704219341278076, 0.03920270502567291, -0.009846774861216545, 0.027419764548540115, -0.031605567783117294, -0.039018306881189346, -0.021721912547945976, -0.02515168860554695, 0.0021228650584816933, 0.022293541580438614, -0.03864951431751251, -0.034389954060316086, 0.029706282541155815, -0.020062344148755074, -0.0005353261949494481, -0.01779426634311676, -0.03415023908019066, -0.05985511466860771, -0.019066601991653442, -0.05583527311682701, 0.049123238772153854, -0.014521227218210697, -0.025299204513430595, -0.08187206089496613, -0.01891908422112465, 0.0905018225312233, -0.0004906676476821303, 0.03282258287072182, 0.02599991112947464, 0.04676296189427376, 0.061404045671224594, 0.0327119454741478, -0.019158801063895226, -0.0036164771299809217, -0.01639285311102867, 0.01049216277897358, 0.04473460093140602, -0.08762523531913757, -0.012188611552119255, 0.009242876432836056, -0.01545242965221405, -0.058601219207048416, -0.018006321042776108, 0.021850990131497383, -0.005333669949322939, 0.032435350120067596, 0.03509066253900528, 0.031273651868104935, 0.0166325680911541, 0.005614874418824911, 0.09101813286542892, -0.022736093029379845, 0.025704877451062202, -0.03332045301795006, -0.0036164771299809217, -0.06616147607564926, 0.024229705333709717, 0.03898142650723457, 0.04104666784405708, -0.021555954590439796, 0.017748165875673294, 0.02269921451807022, -0.022164463996887207, -0.004526935052126646, -0.005688633304089308, -0.06877990812063217, 0.03864951431751251, 0.04875444620847702, -0.08629757910966873, -0.01132194697856903, -0.014216973446309566, -0.03167932480573654, -0.05428634211421013, -0.06822671741247177, 0.051852308213710785, 0.029319049790501595, -0.008122667670249939, 0.0566834956407547, -0.04598849639296532, -0.002049106638878584, -0.002549282042309642, -0.011792158707976341, 0.02933748997747898, 0.04067787528038025, 0.044550202786922455, -0.00524608138948679, 0.03820696100592613, -0.018605610355734825, 0.02360275760293007, -0.06409623473882675, -0.025741755962371826, -0.022717652842402458, 0.014401369728147984, -0.006481538526713848, -0.0002351055882172659, -0.020560214295983315, 0.003113996470347047, 0.007869122549891472, -0.013341089710593224, -0.02170347236096859, -0.023031126707792282, 0.03675023093819618, 0.005402818787842989, -0.01597796007990837, -0.01255740411579609, 0.019048161804676056, -0.0012319993693381548, -0.005785441491752863, -0.06660403311252594, -0.02526232600212097, -0.04547218605875969, 0.061735961586236954, -0.006582956295460463, -0.025372963398694992, -0.054876409471035004, -0.019343197345733643, 0.0054396977648139, 0.010215568356215954, 0.019933266565203667, 0.04506651312112808, 0.005849980283528566, 0.08253589272499084, -0.03206655755639076, -0.07409052550792694, 0.022182904183864594, 0.030499188229441643, -0.023916231468319893, -0.027604160830378532, -0.00563331414014101, 0.009791456162929535, -0.03641831502318382, 0.03828072175383568, -0.04724239185452461, 0.010243227705359459, -0.029761601239442825, -0.014899239875376225, -0.029614083468914032, -0.044218290597200394, 0.004877288360148668, 0.002844316652044654, 0.025760196149349213, 0.03597576543688774, 0.007269833702594042, -0.011847477406263351, -0.031882163137197495, 0.005070904735475779, -0.013239671476185322, -0.007772313896566629, -0.005831540562212467, -0.04038284346461296, -0.004969486501067877, 0.04609913378953934, 0.018292136490345, -0.01299995556473732, 0.016558809205889702, -0.035293497145175934, -0.01589498110115528, 0.009975852444767952, -0.02688501589000225, 0.011386485770344734, 0.012446766719222069, -0.004711331333965063, -0.013018395751714706, 0.04930763319134712, -0.08991175144910812, 0.024911971762776375, -0.07490187138319016, 0.002263467526063323, 0.048127494752407074, 0.004476225934922695, 0.00047597356024198234, -0.007546428125351667, 0.013774421066045761, -0.030665144324302673, 0.030001316219568253, -0.06568204611539841, -0.023510558530688286, 0.01207797322422266, -0.02087368816137314, -0.02209070511162281, -0.02616586908698082, 0.031199894845485687, 0.00842692144215107, 0.039460860192775726, -0.018144618719816208, 0.01043684408068657, 0.00844075158238411, -0.025004170835018158, 0.0801018550992012, -0.06273170560598373, -0.004533849656581879, 0.08541247993707657, -0.016614127904176712, -0.029189972206950188, -0.01941695623099804, 0.03245379030704498, 0.000022869491658639163, 0.01447512861341238, 0.017665188759565353, 0.042706239968538284, -0.012455985881388187, 0.05638846009969711, 0.018107740208506584, -0.07147210091352463, 0.08002809435129166, -0.0008217170834541321, 0.08364226669073105, 0.016918381676077843, -0.032158754765987396, 0.006006717216223478, -0.002399459946900606, -0.006204943638294935, -0.050118979066610336, -0.08644510060548782, -0.02310488559305668, 0.0006378967664204538, -0.017370153218507767, -0.0016238420503214002, -0.027438204735517502, -0.05506080761551857, -0.042263686656951904, -0.0497501865029335, 0.013912718743085861, -0.05660973861813545, 0.014272292144596577, -0.03994029015302658, 0.03828072175383568, -0.016669446602463722, -0.011192869395017624, 0.010381525382399559, 0.017176536843180656, -0.031199894845485687, -0.035791367292404175, -0.042042411863803864, 0.006112745031714439, 0.024911971762776375, 0.010234007611870766, -0.01559072732925415, -0.02186943031847477, -0.05410194396972656, 0.04016156494617462, -0.03619704023003578, 0.031052377074956894, -0.049344513565301895, 0.028157351538538933, -0.04831189289689064, 0.03335733339190483, -0.002924990141764283, -0.023418359458446503, 0.02092900685966015, 0.023233963176608086, -0.016245335340499878, 0.023031126707792282, 0.020615532994270325, 0.01240988727658987, 0.036178600043058395, 0.05233173817396164, -0.005762391723692417, 0.07114018499851227, -0.0072928830049932, -0.024026868864893913, -0.007551038172096014, -0.0486438050866127, 0.05863809958100319, 0.01812618039548397, 0.014216973446309566, -0.0031693154014647007, -0.026921894401311874, 0.012207050807774067, 0.037358738481998444, 0.016651008278131485, 0.0019096566829830408, 0.006688984576612711, 0.02120560221374035, -0.019398516044020653, 0.04687359929084778, -0.004570729099214077, 0.040640998631715775, 0.05166791006922722, -0.008108837530016899, -0.021685032173991203, 0.07921675592660904, 0.009325854480266571, -0.014512007124722004, -0.04687359929084778, -0.027659481391310692, 0.013829740695655346, -0.0033444922883063555, -0.020265178754925728, -0.038686394691467285, 0.007011678535491228, -0.03223251551389694, -0.012649602256715298, 0.004151226952672005, 0.01126662828028202, -0.010215568356215954, -0.016780085861682892, -0.03359704837203026, 0.022846730425953865, -0.02515168860554695, 0.02092900685966015, -0.017056679353117943, 0.01872546784579754, 0.01765596866607666, -0.038354478776454926, -0.03542257472872734, -0.004614523146301508, -0.012225490063428879, 0.02343679964542389, 0.01606093905866146, -0.04403389245271683, -0.007998200133442879, -0.007103876676410437, 0.00012288300786167383, -0.016733985394239426, 0.017665188759565353, 0.0346481092274189, -0.009344294667243958, -0.009985072538256645, -0.021574394777417183, 0.0005088191828690469, -0.011699960567057133, 0.0823146179318428, -0.08644510060548782, -0.04285375401377678, -0.032435350120067596, -0.013848179951310158, 0.013719102367758751, 0.01606093905866146, -0.009846774861216545, 0.08615006506443024, -0.03461122885346413, 0.08327347785234451, -0.0033214427530765533, 0.04963954910635948, 0.06144092604517937, -0.016531148925423622, 0.008680466562509537, -0.05343811586499214, 0.005407428368926048, 0.03391052410006523, 0.02087368816137314, 0.018504193052649498, 0.008901743218302727, -0.04333318769931793, 0.018144618719816208, -0.04093603044748306, 0.06863239407539368, 0.05974447727203369, 0.018089300021529198, -0.04871756583452225, 0.018439654260873795, 0.022680774331092834, -0.014899239875376225, 0.008823374286293983, 0.05089344456791878, -0.021721912547945976, 0.010307766497135162, 0.027770118787884712, 0.010519822128117085, -0.00968081783503294, -0.009067699313163757, 0.03698994591832161, 0.03018571250140667, 0.034058041870594025, -0.002696799347177148, -0.07456996291875839, -0.059338804334402084, -0.02024674043059349, -0.08954295516014099, 0.07744654268026352, 0.026516221463680267, 0.013682222925126553, -0.006997848395258188, -0.030314790084958076, -0.06169908121228218, -0.003747859736904502, 0.01969354972243309, -0.03982965275645256, -0.020799929276108742, -0.003932256251573563, 0.0018612525891512632, 0.06133028864860535, 0.0060943057760596275, -0.03809632360935211, -0.04392325505614281, -0.028304869309067726, 0.0023130241315811872, -0.04993458092212677, 0.02024674043059349, 0.018817666918039322, 0.012179391458630562, -0.010584360919892788, -0.025483600795269012, 0.07892172038555145, 0.010602801106870174, 0.0544707365334034, -0.02705097198486328, 0.018605610355734825, -0.020707732066512108, 0.02382403239607811, 0.05583527311682701, 0.01793256402015686, -0.0046606226824223995, -0.001870472333393991, -0.05823242664337158, -0.023528998717665672, 0.013608464039862156, -0.050561532378196716, -0.10104930400848389, 0.02186943031847477, -0.011008473113179207, -0.008851033635437489, -0.03282258287072182, 0.018301356583833694, 0.021353119984269142, 0.004812749568372965, -0.010455283336341381, -0.042042411863803864, 0.007016288116574287, -0.017508450895547867, -0.028046714141964912, 0.007841463200747967, 0.047721825540065765, -0.04012468829751015, -0.015212714672088623, 0.037192780524492264, 0.03440839424729347, 0.004298744257539511, -0.051409754902124405, 0.007680115755647421, 0.025409843772649765, -0.013774421066045761, -0.0000340341248374898, -0.010565921664237976, -0.08740396052598953, 0.01028932724148035, 0.04506651312112808, 0.007647846359759569, 0.060445185750722885, 0.009408833459019661, 0.02694033458828926, 0.03538569435477257, 0.0004405348445288837, 0.048791322857141495 ]
729,561
namedtuple_TuyaMessage
__new__
Create new instance of TuyaMessage(seqno, cmd, retcode, payload, crc, crc_good, prefix, iv)
from builtins import function
(_cls, seqno, cmd, retcode, payload, crc, crc_good=True, prefix=21930, iv=None)
[ 0.009963332675397396, -0.03442469611763954, 0.01945531740784645, 0.011539911851286888, 0.012417595833539963, 0.06147034838795662, -0.0007694967789575458, 0.005879666656255722, -0.012458229437470436, -0.02475392445921898, -0.015180673450231552, 0.03676518425345421, 0.006838616915047169, 0.005513965152204037, -0.06858933717012405, -0.0002488801546860486, 0.03549741953611374, 0.09069395810365677, -0.028150884434580803, -0.0022876656148582697, -0.06644389033317566, 0.018675154075026512, 0.036862704902887344, -0.014953126199543476, 0.02998751774430275, 0.10031597316265106, 0.037837911397218704, -0.04489188268780708, 0.010906029492616653, -0.05288855731487274, -0.010670355521142483, -0.04222632572054863, 0.003967860713601112, -0.0029499917291104794, -0.0009259357466362417, -0.04928030073642731, 0.023161090910434723, 0.04040594771504402, -0.06114528328180313, -0.07216508686542511, 0.035074833780527115, 0.011369251646101475, -0.011287984438240528, 0.0031937926542013884, -0.008768708445131779, -0.006814236752688885, -0.023356132209300995, -0.034034613519907, 0.017781216651201248, 0.010199006646871567, 0.006245368160307407, -0.03696022555232048, 0.06715904176235199, -0.014099822379648685, -0.015318826772272587, 0.0747656300663948, 0.010450934991240501, 0.01973162405192852, -0.03965828940272331, 0.049800410866737366, -0.03320569172501564, 0.023778719827532768, -0.026411771774291992, -0.04199877753853798, 0.028085870668292046, 0.035854995250701904, -0.043559104204177856, -0.01721234805881977, -0.0573744922876358, 0.02992250584065914, -0.061015255749225616, 0.014034808613359928, 0.005769955925643444, -0.03023131936788559, 0.05587917938828468, -0.017813723534345627, -0.09329450130462646, -0.017374882474541664, 0.009150662459433079, -0.02195833995938301, 0.015083152800798416, -0.036830198019742966, -0.012905197218060493, 0.03370954841375351, -0.02769578993320465, -0.04050346836447716, -0.0380004420876503, 0.0017177809495478868, -0.01275079045444727, 0.009231929667294025, -0.05438386648893356, -0.016545958817005157, -0.04820757731795311, 0.02696438692510128, 0.0035594941582530737, -0.006501358933746815, 0.01870766095817089, -0.023063570261001587, 0.03370954841375351, -0.047850001603364944, 0.06189293786883354, 0.01945531740784645, 0.007066164631396532, -0.05464392155408859, 0.040600989013910294, 0.047817494720220566, 0.004750055260956287, 0.015310700982809067, -0.023534920066595078, 0.007049911189824343, -0.04651722311973572, 0.010085233487188816, 0.016919786110520363, -0.014433017000555992, -0.004514381289482117, -0.032848116010427475, 0.025404060259461403, 0.004205566830933094, 0.02199084684252739, 0.01275079045444727, 0.017163587734103203, 0.04313651844859123, 0.002909358125180006, -0.010133993811905384, 0.10246141999959946, 0.05487146973609924, 0.0229660514742136, 0.014010428451001644, 0.05100316181778908, -0.0008182569872587919, 0.004400607198476791, 0.0280046034604311, -0.04567204788327217, 0.03249054029583931, -0.045542020350694656, -0.01061346847563982, -0.015863316133618355, 0.04472935199737549, 0.005899983458220959, 0.03842303156852722, -0.04203128442168236, 0.001317540998570621, 0.04115360230207443, -0.009077522903680801, -0.036310091614723206, -0.014075442217290401, -0.0033055348321795464, 0.029564930126070976, 0.0005531234201043844, 0.011141704395413399, -0.00599344028159976, 0.03203544765710831, 0.03190542012453079, 0.020365506410598755, 0.005278290715068579, 0.05019049346446991, 0.0529535710811615, -0.05262850224971771, 0.016643479466438293, -0.05344117060303688, 0.012523243203759193, 0.07105985283851624, -0.060072556138038635, -0.014522410929203033, 0.0170173067599535, -0.014010428451001644, 0.024103788658976555, -0.03699273243546486, 0.021828312426805496, 0.004071475937962532, -0.01471745129674673, -0.042616408318281174, 0.018398845568299294, 0.04567204788327217, 0.0633232370018959, 0.03793542832136154, -0.04524945840239525, 0.09023886173963547, 0.005310797598212957, 0.029077328741550446, -0.003476195503026247, 0.0009462524903938174, -0.11110822856426239, 0.009792672470211983, 0.01573328860104084, 0.05015798658132553, 0.04050346836447716, -0.02069057524204254, 0.026590557768940926, -0.03572496771812439, -0.029402395710349083, 0.011938120238482952, 0.052530981600284576, 0.013270898722112179, -0.006302254740148783, -0.06793919950723648, -0.05912986025214195, 0.002240937203168869, -0.009565124288201332, 0.0010971042793244123, -0.005176707170903683, 0.017797470092773438, 0.022819770500063896, 0.056074220687150955, 0.007456246297806501, 0.004319340456277132, -0.02795584313571453, 0.006387585308402777, -0.06270560622215271, -0.02221839502453804, 0.04641970247030258, -0.05984501168131828, 0.010101486928761005, 0.0734003409743309, -0.001092025195248425, 0.007769124116748571, 0.02121068350970745, -0.01110919751226902, 0.009305070154368877, 0.009727658703923225, 0.07073478400707245, 0.0284596998244524, 0.009695151820778847, -0.024298829957842827, 0.09622011333703995, 0.006025947164744139, -0.010662228800356388, 0.018025018274784088, 0.00403287447988987, -0.01161305233836174, 0.05568414181470871, -0.012685776688158512, -0.009435097686946392, -0.02346990630030632, 0.006716716568917036, -0.0332707054913044, 0.039040662348270416, 0.04924779385328293, 0.007704110350459814, 0.007846327498555183, -0.0006323587731458247, 0.04047096148133278, 0.04993043839931488, 0.04599711671471596, 0.024120042100548744, 0.006155974231660366, 0.013685360550880432, 0.04001586511731148, -0.06186043098568916, -0.0030129735823720694, 0.0156032619997859, -0.02696438692510128, 0.015367587096989155, -0.029402395710349083, 0.007687856908887625, 0.00742780277505517, 0.01994291879236698, 0.0025456883013248444, 0.018382592126727104, -0.004477811045944691, -0.008687441237270832, -0.04788250848650932, -0.03323819860816002, 0.002003231318667531, -0.0454770065844059, -0.03203544765710831, -0.031076496466994286, 0.04846763238310814, 0.01437612995505333, -0.001916885026730597, 0.04573706164956093, -0.024038774892687798, -0.004408733919262886, 0.005656182300299406, -0.06225051358342171, 0.01924402266740799, -0.011450518853962421, 0.014132329262793064, 0.046549730002880096, -0.03598502278327942, 0.011873106472194195, 0.017066067084670067, -0.08204714953899384, 0.013693487271666527, -0.08243723213672638, 0.00755376648157835, 0.010662228800356388, -0.051328230649232864, 0.018821435049176216, -0.004266516771167517, 0.037350308150053024, 0.004134458024054766, 0.04170621931552887, 0.008671187795698643, 0.06579375267028809, 0.07444056123495102, -0.022283408790826797, -0.06524113565683365, 0.06267309933900833, 0.005639928858727217, 0.00674109673127532, -0.039105676114559174, -0.01851261965930462, 0.02722444012761116, -0.024055028334259987, -0.04521695151925087, 0.06062517315149307, -0.008825594559311867, -0.0804218128323555, 0.01797625795006752, -0.03094646893441677, -0.007082418072968721, -0.0538637600839138, -0.040861040353775024, 0.043071504682302475, 0.0312877893447876, -0.023778719827532768, 0.01799251139163971, -0.023404892534017563, 0.050548065453767776, -0.017894990742206573, -0.004575331229716539, 0.07053974270820618, 0.054611414670944214, -0.020398013293743134, -0.040080878883600235, 0.019877905026078224, -0.04489188268780708, 0.05669185146689415, 0.03517235070466995, -0.09257934987545013, 0.016017723828554153, 0.07912153750658035, 0.04066599905490875, -0.014847478829324245, 0.06663893163204193, 0.02925611473619938, 0.014693071134388447, -0.025534087792038918, -0.012279441580176353, -0.01361222006380558, 0.05561912804841995, -0.002541624940931797, 0.008354246616363525, -0.03304315730929375, -0.0012261156225576997, -0.038097962737083435, 0.010459061712026596, 0.10532201826572418, -0.07314028590917587, 0.03179164603352547, -0.030670160427689552, -0.034359682351350784, 0.0003027195343747735, 0.032100461423397064, 0.036115050315856934, -0.009678898379206657, 0.01323026604950428, -0.026866866275668144, -0.011369251646101475, 0.06634636968374252, -0.06218549981713295, -0.011637432500720024, 0.005623675417155027, 0.022348422557115555, -0.005424571223556995, 0.02147073857486248, 0.014140455983579159, 0.019065234810113907, -0.017878737300634384, 0.0010788192739710212, -0.025095246732234955, -0.05945492908358574, -0.04173872619867325, -0.04768746718764305, -0.024055028334259987, 0.030052531510591507, 0.004936969373375177, -0.062283020466566086, 0.05175081640481949, 0.0573744922876358, 0.0344897098839283, -0.0022734440863132477, -0.03322194516658783, 0.005904046818614006, 0.003776883240789175, -0.026574304327368736, 0.03213296830654144, -0.03218172863125801, 0.014457397162914276, -0.014668690972030163, -0.01109294407069683, 0.01726110838353634, 0.012539496645331383, 0.008260789327323437, -0.00888248160481453, -0.02475392445921898, -0.0564643032848835, -0.0019331384683027864, 0.040340933948755264, 0.022771010175347328, 0.07099483907222748, 0.0012098622974008322, 0.04771997407078743, 0.01644843816757202, -0.003464005421847105, 0.03487979248166084, 0.01696854643523693, 0.017374882474541664, -0.028280911967158318, 0.02475392445921898, -0.05045054480433464, -0.09700027853250504, -0.06137282773852348, 0.0014953125501051545, 0.024103788658976555, -0.026395518332719803, -0.047850001603364944, -0.017829976975917816, -0.03024757280945778, 0.02771204337477684, -0.060820214450359344, -0.011889359913766384, 0.0424213670194149, -0.02070682868361473, -0.03301065042614937, 0.0007583225960843265, 0.015180673450231552, -0.026135463267564774, 0.03245803341269493, -0.04719986766576767, 0.011450518853962421, -0.005176707170903683, -0.06166538968682289, 0.03578998148441315, -0.024591390043497086, -0.05487146973609924, -0.004364037420600653, 0.07866644114255905, 0.01657033897936344, 0.04121861606836319, 0.05867476388812065, 0.02072308212518692, -0.04368913173675537, 0.017147334292531013, 0.0005714084836654365, -0.005485521629452705, 0.08451766520738602, -0.014920619316399097, -0.02322610467672348, -0.008191712200641632, -0.004106014501303434, 0.0003428451018407941, 0.00480694230645895, 0.05451389402151108, 0.0006729922606609762, -0.04716736078262329, 0.02699689380824566, -0.01159679889678955, -0.004229946527630091, -0.03569246083498001, 0.023161090910434723, -0.038618072867393494, -0.02047928050160408, -0.02673683874309063, 0.09381461143493652, -0.010280273854732513, 0.018772674724459648, 0.007602526806294918, 0.015050645917654037, 0.018918955698609352, 0.006546055898070335, -0.03975581005215645, -0.029516169801354408, 0.05269351601600647, 0.07184001803398132, -0.05942242220044136, -0.01750491000711918, 0.04469684511423111, -0.023079823702573776, -0.032116714864969254, -0.05815465748310089, 0.017894990742206573, 0.023404892534017563, -0.034554723650217056, 0.021308204159140587, 0.025810394436120987, -0.016903532668948174, 0.019877905026078224, -0.04866267368197441, 0.010995423421263695, 0.11806467920541763, 0.034132134169340134, -0.02368120104074478, 0.026281744241714478, 0.013352165929973125, -0.009914572350680828, 0.028329672291874886, -0.01361222006380558, -0.014831225387752056, 0.001967676915228367, 0.034554723650217056, -0.06780917197465897, 0.058284685015678406, 0.03848804533481598, 0.04941032826900482, 0.0538637600839138, -0.026834359392523766, -0.05119820311665535, -0.045542020350694656, -0.00006158513861009851, 0.01396979484707117, -0.01818755269050598, 0.011824347078800201, 0.04274643585085869, -0.02724069356918335, -0.025176512077450752, 0.012157541699707508, -0.07886148244142532, 0.005058870185166597, 0.01075162272900343, -0.05470893532037735, -0.045542020350694656, -0.07834137976169586, -0.009743912145495415, -0.019536584615707397, -0.027386974543333054, 0.03816297650337219, -0.0009350783075205982, 0.04047096148133278, 0.03426216170191765, 0.024103788658976555, -0.0013683328870683908, -0.013100238516926765, -0.019617849960923195, 0.09667520970106125, -0.060105063021183014, -0.022771010175347328, 0.013059604912996292, 0.03023131936788559, -0.02998751774430275, -0.013685360550880432, 0.018577633425593376, 0.04391667991876602, 0.019130248576402664, -0.021584512665867805, -0.07535075396299362, -0.01496125292032957, -0.00884997472167015, 0.009711405262351036, -0.02917484939098358, -0.019130248576402664, -0.01695229299366474, 0.001522740232758224, 0.029629943892359734, -0.05594419315457344, 0.004114141222089529, -0.02647678554058075, -0.047622453421354294, -0.02150324545800686, -0.016050230711698532, 0.028914794325828552, 0.011247350834310055, 0.026541797444224358, -0.068069227039814, -0.005160453729331493, 0.00836237333714962, 0.03552992641925812, 0.007931658066809177, -0.06153536215424538, 0.016196509823203087, -0.004855702631175518, 0.06153536215424538, -0.03819548338651657, -0.04021090641617775, 0.07014966756105423, 0.024558883160352707, -0.06459100544452667, 0.041121095418930054, -0.042356353253126144, -0.0724901556968689, -0.025371553376317024, 0.005026363302022219, -0.03715526685118675, -0.02745198830962181, -0.012385088950395584, -0.010199006646871567, 0.05214089900255203, 0.009370083920657635, -0.06663893163204193, -0.004900399595499039, -0.0033563266042619944, 0.007123051676899195, -0.051880843937397, -0.012230681255459785, -0.04099106788635254, -0.04970289021730423, 0.053538691252470016, -0.0163265373557806, -0.04788250848650932, 0.009654518216848373, 0.014725578017532825, -0.003738281549885869, -0.028297165408730507, 0.0419662743806839, 0.03068641386926174, 0.0033055348321795464, -0.02225090190768242, -0.007269332185387611, -0.01474995817989111, -0.032588060945272446, -0.029857492074370384, -0.02325861155986786, -0.017342375591397285, 0.06563121825456619, 0.052563488483428955, 0.022413434460759163, -0.011409885250031948, -0.004766308702528477, 0.028394686058163643, -0.043591611087322235, 0.01336029265075922, -0.01585518941283226, -0.02200710028409958, 0.07275021076202393, 0.02646053209900856, 0.025566594675183296, 0.005424571223556995, 0.05617174133658409, 0.0018285071710124612, -0.04472935199737549, -0.010580961592495441, 0.0883534699678421, -0.06277061998844147, -0.01496125292032957, -0.024396350607275963, 0.006757350172847509, 0.011019803583621979, -0.010020219720900059, 0.014790591783821583, -0.010150247253477573, -0.0229660514742136, -0.024298829957842827, -0.03923569992184639, 0.02748449519276619, 0.013758501037955284, -0.04424174875020981, 0.0037443763576447964, 0.047102347016334534, -0.05474144220352173, 0.007590336725115776, 0.027110667899250984, -0.004225883167237043, 0.08068186789751053, -0.024770177900791168, -0.02543656714260578, -0.0034477519802749157, -0.052108392119407654, 0.07346535474061966, -0.03819548338651657, -0.007655350491404533, -0.024851445108652115, -0.024656403809785843, 0.06702901422977448, 0.005107630044221878, -0.04014589264988899, 0.013782881200313568, -0.032376766204833984, -0.004449367523193359, -0.007586273364722729, 0.029662450775504112, -0.03422965481877327, 0.004114141222089529, -0.054318856447935104, -0.026151716709136963, 0.01826881803572178, 0.027517002075910568, 0.057829588651657104, 0.001018376904539764, -0.003071892075240612, -0.043104011565446854, -0.0231935977935791, -0.020560547709465027, -0.056529317051172256, -0.03728529438376427, 0.01348219346255064, -0.041121095418930054, 0.032376766204833984, -0.003990209195762873, -0.03223048895597458, -0.0016873058630153537, 0.001929075107909739, -0.026785599067807198, -0.02498147264122963, -0.02270599640905857, 0.038130469620227814, -0.01184060052037239, -0.027386974543333054, 0.0021759236697107553, -0.0174724031239748, 0.033319465816020966, 0.014953126199543476, 0.00505480682477355, -0.004057254176586866, 0.02475392445921898, -0.03900815546512604, -0.03125528246164322, -0.0219745934009552, -0.04073101282119751, 0.02595667541027069, 0.012450102716684341, -0.030605148524045944, -0.016415931284427643, 0.030881455168128014, 0.042096298187971115, -0.05262850224971771, -0.029581183567643166, 0.07886148244142532, 0.030556388199329376, -0.009760165587067604, 0.02871975302696228, -0.037090253084897995, 0.03748033568263054, 0.015367587096989155, 0.06982459872961044, 0.02371370792388916, -0.060072556138038635, 0.0180087648332119, -0.044826868921518326, 0.015830809250473976, -0.004122267942875624, 0.03390458598732948, -0.040535975247621536, 0.06290064752101898, 0.012677649967372417, -0.020430520176887512, -0.01046718843281269, 0.029662450775504112, -0.020365506410598755, -0.03380706533789635, -0.03878060728311539, -0.0630306750535965, 0.00218405039049685, -0.015180673450231552, 0.024656403809785843, -0.01943906396627426, 0.02169828489422798, -0.0247214175760746, 0.024883951991796494, 0.07262018322944641, 0.006123467348515987, 0.04863016679883003, 0.02294979803264141, -0.019292782992124557, 0.04589959606528282, -0.016196509823203087, -0.01774870976805687, 0.004138521384447813, -0.03172663226723671, -0.027614522725343704, -0.09953580796718597, 0.03151533752679825, -0.015798302367329597, -0.025420313701033592, 0.05620424821972847, -0.029564930126070976, 0.0032364577054977417, 0.01674100011587143 ]