Skip to content

[bug] Python integration On Sequence receives "params": { "command": "send_cmd" } #381

@ijc

Description

@ijc

Is there an existing issue for this?

  • I have searched the existing issues

Description

I have just published a Python integration for MythTV.

It mostly works well but when I try and use a simple command on an On/Off sequence instead of getting a message with the desired command I get:

{
  "kind": "req",
  "id": 5,
  "msg": "entity_command",
  "msg_data": {
    "cmd_id": "send_cmd",
    "entity_id": "mythtv",
    "entity_type": "remote",
    "params": {
      "command": "send_cmd"
    }
  }
}

Notice the "command": "send_cmd" which appears instead of whatever command was supposed to appear.

When a command is sent by a button (hard or soft) in the UI then it works.

How to Reproduce

  • Install the integration and point it at a MythTV system (or hack mytvtv.py to fake one I suppose).
  • Configure an activity with a On Sequence using a command from the integration
  • Switch to that activity on the remote

Expected behavior

I expect the message received by the integration to contain the right command name somewhere, if not the "command" field then somewhere else.

System version

UI 0.42.1, core 0.43.0-beta, system 1.7.12

What part of the system affected by the problem?

Integration

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingintegrationIntegration driver related issue

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions