Update README.md (#10639)

Fixed what I believe were typos. Making similar adjustments to my setup allowed the Harmony integration to work for me.
This commit is contained in:
2wyck3d 2021-05-06 13:23:53 -07:00 committed by GitHub
parent f907bf37f9
commit 0b630bed2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ Note that this is prefixed by the hub the device is controlled from.
In the thing file, this looks e.g. like In the thing file, this looks e.g. like
```java ```java
Bridge harmonyhub:hub:great [ name="Great Room"] { Bridge harmonyhub:hub:GreatRoom [ name="Great Room"] {
device denon [ name="Denon AV Receiver"] device denon [ name="Denon AV Receiver"]
} }
``` ```
@ -55,7 +55,7 @@ Bridge harmonyhub:hub:great [ name="Great Room"] {
or or
```java ```java
Bridge harmonyhub:hub:great [ name="Great Room"] { Bridge harmonyhub:hub:GreatRoom [ name="Great Room"] {
device denon [ id=176254] device denon [ id=176254]
} }
``` ```
@ -83,10 +83,10 @@ String HarmonyHubGreatButton { channel="harmonyhub:hub:GreatRoom:butt
Player HarmonyHubGreatPlayer { channel="harmonyhub:hub:GreatRoom:player" } Player HarmonyHubGreatPlayer { channel="harmonyhub:hub:GreatRoom:player" }
``` ```
Devices can be sent button commands directly, regardless if they are part of the current running activity or not. Devices can be sent button commands directly, regardless if they are part of the current running activity or not. Note that you must define a Harmony device thing for this to work.
```java ```java
String HarmonyGreatRoomDenon "Denon Button Press" (gMain) { channel="harmonyhub:device:GreatRoom:29529817:buttonPress" } String HarmonyGreatRoomDenon "Denon Button Press" (gMain) { channel="harmonyhub:device:GreatRoom:denon:buttonPress" }
``` ```
Hubs can also trigger events when a new activity is starting (activityStarting channel) and after it is started (activityStarted channel). Hubs can also trigger events when a new activity is starting (activityStarting channel) and after it is started (activityStarted channel).