[Documentation] Markdown improvements n to s (#13948)
Signed-off-by: Jerome Luckenbach <github@luckenba.ch>
This commit is contained in:
committed by
GitHub
parent
d73218d882
commit
1ca9baf157
@@ -8,11 +8,11 @@ The Pulseaudio bridge is required as a "bridge" for accessing any other Pulseaud
|
||||
|
||||
You need a running pulseaudio server with module **module-cli-protocol-tcp** loaded and accessible by the server which runs your openHAB instance. The following pulseaudio devices are supported:
|
||||
|
||||
* Sink
|
||||
* Source
|
||||
* Sink-Input
|
||||
* Source-Output
|
||||
* Combined-Sink
|
||||
- Sink
|
||||
- Source
|
||||
- Sink-Input
|
||||
- Source-Output
|
||||
- Combined-Sink
|
||||
|
||||
## Discovery
|
||||
|
||||
@@ -22,14 +22,14 @@ The Pulseaudio bridge is discovered through mDNS in the local network.
|
||||
|
||||
The Pulseaudio binding can be customized to handle different devices. The Sink and Source support is activated by default and you need no further action to use it. If you want to use another type of device, or disable the Sink/Source type, you have to switch the corresponding binding property.
|
||||
|
||||
- **sink:** Allow the binding to parse sink devices from the pulseaudio server
|
||||
- **source:** Allow the binding to parse source devices from the pulseaudio server
|
||||
- **sinkInput:** Allow the binding to parse sink-input devices from the pulseaudio server
|
||||
- **sourceOutput:** Allow the binding to parse source-output devices from the pulseaudio server
|
||||
- **sink:** Allow the binding to parse sink devices from the pulseaudio server
|
||||
- **source:** Allow the binding to parse source devices from the pulseaudio server
|
||||
- **sinkInput:** Allow the binding to parse sink-input devices from the pulseaudio server
|
||||
- **sourceOutput:** Allow the binding to parse source-output devices from the pulseaudio server
|
||||
|
||||
You can use the GUI on the bindings page (click on the pulseaudio binding then "Expand for details"), or create a `<openHAB-conf>/services/pulseaudio.cfg` file and use the above options like this:
|
||||
|
||||
```
|
||||
```text
|
||||
binding.pulseaudio:sink=true
|
||||
binding.pulseaudio:source=true
|
||||
binding.pulseaudio:sinkInput=false
|
||||
@@ -44,7 +44,6 @@ To know without hesitation the correct value to use, you should use the command
|
||||
`pactl -s <ip-address|hostname> list sinks | grep "name:"`
|
||||
If you need to narrow the identification of a device (in case name or description are not consistent and sufficient), you can use the `additionalFilters` parameter (optional/advanced parameter), in the form of one or several (separator '###') regular expression(s), each one matching a property value of the pulseaudio device. You can use every properties listed with `pactl`.
|
||||
|
||||
|
||||
## Channels
|
||||
|
||||
All devices support some of the following channels:
|
||||
@@ -63,7 +62,6 @@ Sink things can register themselves as audio sink in openHAB. MP3 and WAV files
|
||||
Use the appropriate parameter in the sink thing to activate this possibility (activateSimpleProtocolSink).
|
||||
This requires the module **module-simple-protocol-tcp** to be present on the server which runs your openHAB instance. The binding will try to command (if not discovered first) the load of this module on the pulseaudio server.
|
||||
|
||||
|
||||
## Audio source
|
||||
|
||||
Source things can register themselves as audio source in openHAB.
|
||||
@@ -75,14 +73,14 @@ This requires the module **module-simple-protocol-tcp** to be present on the tar
|
||||
|
||||
### pulseaudio.things
|
||||
|
||||
```
|
||||
```java
|
||||
Bridge pulseaudio:bridge:<bridgname> "<Bridge Label>" @ "<Room>" [ host="<ipAddress>", port=4712 ] {
|
||||
Things:
|
||||
Thing sink multiroom "Snapcast" @ "Room" [name="alsa_card.pci-0000_00_1f.3", activateSimpleProtocolSink=true, simpleProtocolSinkPort=4711, additionalFilters="analog-stereo###internal"]
|
||||
Thing source microphone "microphone" @ "Room" [name="alsa_input.pci-0000_00_14.2.analog-stereo"]
|
||||
Thing sink-input openhabTTS "OH-Voice" @ "Room" [name="alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1"]
|
||||
Thing source-output remotePulseSink "Other Room Speaker" @ "Other Room" [name="alsa_input.pci-0000_00_14.2.analog-stereo"]
|
||||
Thing combined-sink hdmiAndAnalog "Zone 1+2" @ "Room" [name="combined"]
|
||||
Thing sink multiroom "Snapcast" @ "Room" [name="alsa_card.pci-0000_00_1f.3", activateSimpleProtocolSink=true, simpleProtocolSinkPort=4711, additionalFilters="analog-stereo###internal"]
|
||||
Thing source microphone "microphone" @ "Room" [name="alsa_input.pci-0000_00_14.2.analog-stereo"]
|
||||
Thing sink-input openhabTTS "OH-Voice" @ "Room" [name="alsa_output.pci-0000_00_1f.3.hdmi-stereo-extra1"]
|
||||
Thing source-output remotePulseSink "Other Room Speaker" @ "Other Room" [name="alsa_input.pci-0000_00_14.2.analog-stereo"]
|
||||
Thing combined-sink hdmiAndAnalog "Zone 1+2" @ "Room" [name="combined"]
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user