Skip to content

state_detection_rules doesn't seems to work #257

@unstable09

Description

@unstable09

Hi, I see a problem with state_detection_rules... I wanted to add support for player (one of Polish services with VOD). I figrued out that it changes wake lock size depending on state of the media, while media_session_state is none and audio_state is paused. I prepared this code for my configuration.yaml:

media_player:
  - platform: androidtv
    name: AndroidTV_Philips
    host: 192.168.0.11
    device_class: androidtv
    scan_interval: 1
    apps: {}
    state_detection_rules:
      'pl.tvn.player.pl':
        - 'playing':
            'audio_state': paused
            'wake_lock_size': 3
        - 'paused':
            'audio_state': paused
            'wake_lock_size': 2 
        - 'idle'

This code not working, I don't know if there is some information how to exlude one of the parameters, because in my case media_session_state is always none...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions