The TV doesn't support many functions, and most functions are not that interesting for integration with a smart home environment. Some functions are however, among which the possibility to control volume and mute, but also the ability to display an image or video, and being able to send a text message. The idea is to have the TV display an image from the front door webcam when someone rings the bell, or even better play the most recent video recorded.
The plugin will let you:
Mute the volume
Change the volume level
Change the level of brightness, contrast, sharpness and color temperature setting
Display an image
Play a sound
Play a video
Send a text message
An uri for display can be set, so an image or video can be sent to the TV. The plugin has a text entry field so a uri can be input manually for testing purposes. Play and stop are used to display and stop displaying the set uri. Uri has to be a UPnP/DLNA mediaserver uri. The TV can't seem to handle web based media. The plugin can be controlled from virtual devices through api, for example:
fibaro:call(thatId, 'setMessage', 'TestMessage') -- (Set msg text to be sent to TV)
fibaro:call(thatId, 'sendMSG') -- Send set message as SMS to TV
fibaro:call(thatId, 'setAVTransportUri', 'http://192.168.178.185:50002/p/JPEG_LRG/17.jpg') -- Set image or video to be displayed
fibaro:call(thatId, 'play') -- Play set image, video or sound
fibaro:call(thatId, 'stop') -- Stop playing set image, video or sound
fibaro:call(thatId, 'setVolume', 50) -- Set volume to 50. Also works for other configurable stuff like brightness and contrast.
fibaro:call(thatId, 'setMute', 'false') -- Mute or unmute (true) volume
local val=fibaro:get(thatId, 'volume'); -- Get the volume. Also works for other stuff like brightness and contrast
Known issues:
Due to issues with 4.017 the sliders and other ui components will not automatically update
I cannot seem to get the mute button and volume slider to display in the widget on the main web page, the view.xml won't get validated
ext entry form items cannot be used to get user input. The uri input is in playlist style as a workaround
The mute and imagescale switches will not always display the correct color related to the state of that function. Might be beta issue.
Todo:
Implement sending calendar reminder and incoming call messages
Test for state of the UPnP channel before trying to determine imageScale (zoom)
Things to keep in mind
Image zoom function only works when displaying an image, and only when displayed through the UPnP protocol, so not when using the TV's builtin media player.
To manually display an image or play a sound, input the URL into the text entry field, and press the play button right next to it. The text entry field itself does not respond to or generate events upon presssing -- The URL has to point to an UPnP/DLNA capable media server. Using regular web protocol links (images or MP3's on the internet or network shares) result in an error "resource not found". The URL has to be the URI as the media player 'serves' it. So it has to be the UPnP URI property of the file, not the name of the file as it might be know to the web server. The UPnP spy tools from Intel can be used to determine URI's for now. Note that names may change when the media server re-indexes them.
Page was built with Mobirise