lucasvdh / codes.lucasvdh.philips-jointspace

A Jointspace connector for Philips TV's supporting models up to 2018
GNU General Public License v3.0
7 stars 10 forks source link

Feature TV channel control #5

Open lucasvdh opened 5 years ago

lucasvdh commented 5 years ago

TV Control

This means being able to query what TV channel is currently being displayed and also switching to a different TV channel.

Maybe a new custom capability can be made for this feature. That way the monitor can just update the capability value and Homey will take care of the flow card triggers and actions.

Getting current TV channel

Getting the current active channel can be done by either fetching it from the activities/tv endpoint or by using the notifychange endpoint.

See the following links for the documentation on this endpoint:

Setting current TV channel

If a custom capability is created for this we can just make sure that it's settable and provide the autocomplete option the same as the Open an app flow card action is implemented.

See the following link for the documentation on this endpoint:

Getting channel list overview

This endpoint should be used for fetching the autocomplete results in the set tv channel flow action.

See the following link for the documentation on this endpoint:

Misc

This issue depends on issue #2 in which the notifychange endpoint will be implemented.