Media "state" property?


#1

Can anyone comment on what the “state” property of the media widget is for? I tried to link it to the Play/Pause item of my squeezebox player but it does nothing when pressed.


#2

Same, not seeing anything from my HA media player entity when I setup this widget


#3

@cybergrimes HA media player components should be supported. What type of media player you use?


#4

@TommySharp I’ve got to test Media widget with squeezebox player specifically, and it looks like Player item does work with it. Since OpenHAB item states are pretty standardized I’m not sure why it wouldn’t work in your case.
Any chance you can provide JSON from items API for "type": "Player" item?


#5

I think I have the same issue with the Media widget in combination with Home Assistant (0.84.5). I’m running the latest beta version of the HomeHabit app.

I can’t use the Pause/Play button for both my Sonos and the Google cast media players (they work fine within Home Assistant).


#6

Is this a bug? Do you want me to collect some logging or screenshots?


#7

@stefan2904 yes, fix should be available soon.


#8

@Igor, you still need me to help out with this? Sorry I’ve been offline for a little while.


#9

@TommySharp Yes, that would be great.


#10

Sure thing @Igor although I’m not exactly sure what you are asking for…

Maybe this is what you are looking for?

{
    "link": "http://192.168.1.93:8080/rest/items/BulletBox",
    "state": "PAUSE",
    "editable": false,
    "type": "Player",
    "name": "BulletBox",
    "label": "Bullet Box",
    "tags": [],
    "groupNames": [
      "SBBulletBox"
    ]
  }