Yonsm / MiService

XiaoMi Cloud Service for mi.com
MIT License
662 stars 201 forks source link

micli 5-4一直报-704220025 #43

Open wuerbuzuo opened 10 months ago

wuerbuzuo commented 10 months ago

使用micli.py 5-4 查询天气 #1micli.py 5-5 查询天气 #1 返回-704220025 使用micli 5-5 查询天气 \#1 返回0,无回应 只有使用micli 5-5 查询天气 \#0 或者 micli.py action '{"did":"123465789","siid":5,"aiid":5,"in":["查询天气",0]}'可以正常输出天气

下面是我的spec,我看不懂为什么这个命令必须是5-5

Device_Information = 1
    Device_Manufacturer = 1
    Device_Model = 2
    Device_Serial_Number = 3
    Current_Firmware_Version = 4

Speaker = 2
    Volume = 1  # uint8  # rw
    Mute = 2  # bool  # rw

Play_Control = 3
    _Playing_State = 1  # uint8  # n

    _Play = 1
    _Pause = 2
    _Next = 3
    _Previous = 4

Microphone = 4
    Mute = 1  # bool  # rw

Intelligent_Speaker = 5
    _Text_Content = 1
    _Silent_Execution = 2  # uint8
    Sleep_Mode = 3  # bool  # rwn
    Audio_Id = 4  # rn

    _Play_Text = 1  # in=[1]
    _Wake_Up = 2  # in=[1]
    _Play_Radio = 3
    _Execute_Text_Directive = 4  # in=[1, 2]

Clock = 6

    _Stop_Alarm = 1

Speaker_Volume
    MIN = 5
    MAX = 100

Play_Control_Playing_State
    Stop = 0
    Playing = 1
    Pause = 2

Intelligent_Speaker_Silent_Execution
    On = 0
    Off = 1
RoCry commented 9 months ago

我也是, micli 5-5 查询天气 \#1 这样是可以的 也是看不懂为什么是 5-5

RoCry commented 9 months ago

我看懂了 我的spec是

Intelligent_Speaker = 5
    _Text_Content = 1
    _Silent_Execution = 2  # uint8

    _Play_Text = 1  # in=[1]
    _Wake_Up = 2
    _Play_Radio = 3
    _Play_Music = 4
    _Execute_Text_Directive = 5  # in=[1, 2]

所以是 5-5