From fd40b4fa9702c6929beeee3da6f850b082d40e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Vran=C3=ADk?= Date: Fri, 23 Dec 2016 17:12:34 +0100 Subject: [PATCH] Update hdmi_cec.markdown --- source/_components/hdmi_cec.markdown | 43 +++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/source/_components/hdmi_cec.markdown b/source/_components/hdmi_cec.markdown index 60611b83ef7..575769d2e28 100644 --- a/source/_components/hdmi_cec.markdown +++ b/source/_components/hdmi_cec.markdown @@ -106,7 +106,7 @@ Choose just one schema. Mixing both approaches is not possible. ### {% linkable_title Select Device %} -Call the `hdmi_cec/select_device` service with the name of the device from config or entity_id or prysical address"to select it, for example: +Call the `hdmi_cec/select_device` service with the name of the device from config or entity_id or physical address"to select it, for example: ```json {"device": "Chromecast"} @@ -137,6 +137,47 @@ Call the `hdmi_cec/power_on` service (no arguments) to power on any devices that Call the `hdmi_cec/standby` service (no arguments) to place in standby any devices that support this function. +### {% linkable_title Change volume level %} + +Call the `hdmi_cec/volume` service with one of following commands: + +#### Volume up +Increase volume three times: +```json +{"up": 3} +``` +Keep increasing volume until release is called: +```json +{"up": "press"} +``` +Stop increasing volume: +```json +{"up": "release"} +``` + + +#### Volume down +Decrease volume three times: +```json +{"down": 3} +``` +Keep decreasing volume until release is called: +```json +{"down": "press"} +``` +Stop decreasing volume: +```json +{"down": "release"} +``` + +#### Volume mute +Toggle mute: +```json +{"mute": ""} +``` +value is ignores. + + ## {% linkable_title Useful References %} * [CEC overview](http://wiki.kwikwai.com/index.php?title=The_HDMI-CEC_bus)