Open lukaiwo opened 1 year ago
@lukaiwo 试试 micli.py action '{"did":"**","siid":5,"aiid":5,"in":["今天天气怎么样",0]}'
我试了一样的,我看了一下 Microphone = 4 Mute = 1 # bool # rwn
Clock = 6 Switch_Status = 1 # bool # rwn Status = 2 # uint 从4直接到6了,没有5.感觉是屏蔽了。或者我操作方法有误?
@peguoxyz micli.py spec 的结果里面没有5.其他的都有,我也试了一下其他的,好像调整声音的貌似可以正常使用。
@lukaiwo 你试试:
micli.py list
拿到modelmicli.py spec <你拿到的model>
@peguoxyz 恩我试过了,上面就是我拿到的spec,没有5,我测试过2调整音量正常。我试了几个设备都没有5.郁闷了。
不同设备不一样,我的两台,一台是5,一台是7,建议你把完整spec贴出来
(venv) PS C:\git\MiService> python micli.py spec xiaomi.wifispeaker.l16a
Device_Information = 1
Device_Manufacturer = 1
Device_Model = 2
Device_ID = 3
Current_Firmware_Version = 4
Serial_Number = 5 # rn
Speaker = 2
Volume = 1 # uint8 # rwn
Mute = 2 # bool # rwn
Play_Control = 3 Playing_State = 1 # uint8 # rn _Seek_Time = 2 # int16 Play_Loop_Mode = 3 # uint8 # rwn
_Seek = 1 # in=[2]
_Play = 2
_Pause = 3
_Stop = 4
_Previous = 5
_Next = 6
Microphone = 4 Mute = 1 # bool # rwn
Clock = 6 Switch_Status = 1 # bool # rwn Status = 2 # uint8 # rn Device_Fault = 3 # uint8 # rn Ringtone = 4 # uint8 # rwn
_Stop_Alarm = 1
Intelligent_Speaker = 7 _Text_Content = 1 _Silent_Execution = 2 # bool Sleep_Mode = 3 # bool # rwn Audio_Id = 4 # rn
_Wake_Up = 1
_Play_Radio = 2
_Play_Text = 3 # in=[1]
_Execute_Text_Directive = 4 # in=[1, 2]
_Play_Music = 5
No_Disturb = 9 No_Disturb = 1 # bool # rwn Enable_Time_Period = 2 # rwn
tv-switch = 8
_tv = 1 # -switchon
Speaker_Volume MIN = 0 MAX = 100
Play_Control_Playing_State Playing = 1 Stop = 0 Pause = 2
Play_Control_Seek_Time MIN = -30000 MAX = 30000 STEP = 10
Play_Control_Play_Loop_Mode Single_Cycle = 1
Clock_Status Idle = 1 Busy = 2
Clock_Device_Fault No_Faults = 0
Clock_Ringtone MIN = 1 MAX = 5
我这边总是报错-704040002。是现在接口不能用了吗