Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can't get status… #130

Open
Open
@albi

Description

@albi

I try to get the audio source status of my amp for the stateful http-switch. Switching the state already works, but I can't get the status right. The status response is:

{"type":"0","ch":"0","mode":"43","loop":"4","eq":"0","vendor":"","status":"stop","curpos":"0","offset_pts":"0","totlen":"0","Title":"556E6B6E6F776E","Artist":"556E6B6E6F776E","Album":"556E6B6E6F776E","alarmflag":"0","plicount":"0","plicurr":"0","vol":"50","mute":"0"}

Where "mode", when set to 43, should reflect as "true" for the switch. When "mode" is another value, it should be seen as "false".

My config for the switch is:

{ "accessory": "HTTP-SWITCH", "name": "TV Audio Test", "switchType": "stateful", "onUrl": "https://10.0.1.23/httpapi.asp?command=setPlayerCmd:switchmode:optical", "offUrl": "https://10.0.1.23/httpapi.asp?command=setPlayerCmd:switchmode:wifi", "statusUrl": "https://10.0.1.23/httpapi.asp?command=getPlayerStatus", "statusPattern": "/\"mode\":\"43\"/g" }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp