Goodmorning all..
Is there some documentation for MediaPlayer avalible?
tryd:
.updateText
.setText
.setStatus
but nothing seems to work...
i would like to set the status and text..
thnx in advance..
Documentation MediaPlayer [Solved]
Moderator: leecollings
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Documentation MediaPlayer
What is the Hardware, name, deviceType and subType in domoticz ? (look at the devices tab from the GUI)
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 106
- Joined: Monday 11 March 2019 0:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Documentation MediaPlayer
name deviceType and subType
Light/Switch / Switch
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Documentation MediaPlayer
You can use the switchOn / switchOff and update methods (see below)
Code: Select all
return
{
on =
{
devices =
{
'media player',
},
},
logging =
{
level = domoticz.LOG_DEBUG,
marker = mediaplayer,
},
execute = function(dz, item)
item.switchOn().silent()
item.update(item.nValue,'songtext : ' .. dz.time.rawTime).silent()
end
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 106
- Joined: Monday 11 March 2019 0:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Documentation MediaPlayer
thx waaren,update methods (see below)
text is working..
but for example kodi show Video when a movie is playing...
How do i ad some value over there?
-
- Posts: 106
- Joined: Monday 11 March 2019 0:14
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Documentation MediaPlayer
Find it out!
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Documentation MediaPlayer [Solved]
Code: Select all
local mediaPlayerStates =
{
Off = 0,
On = 1,
Paused = 2,
Stopped = 3,
Video = 4,
Audio = 5,
Photo = 6,
Playing = 7,
Disconnected = 8,
Sleeping = 9,
Unknown = 10,
}
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: Google [Bot] and 1 guest