代码: 全选
commandArray = {}
if devicechanged['aaa'] then
vol = otherdevices_svalues['Xiaomi Gateway Volume']
print('volumesalues:'..vol)
print('xiaomi volume sValue before:'..otherdevices_svalues['Xiaomi Gateway Volume'])
commandArray['Xiaomi Gateway Volume'] = 'Set Level 90'
commandArray['Variable:XiaomiMP3']='10002'
commandArray['Xiaomi Gateway MP3']='On'
commandArray[1] = {['UpdateDevice'] = 6 .. '|0|' .. vol}
print('xiaomi volume sValue after:'..otherdevices_svalues['Xiaomi Gateway Volume'])
end
我猜想是不是要等mp3播放完了,再调音量才有效。如果真是这样,这代码要如何改呢?请教。