Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[huesync] Hue Play HDMI Sync Box Binding - Initial contribution #16516

Open
wants to merge 128 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 112 commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
418eb57
☠️ Binding skeleton created for org.openhab.binding.huesync
pgfeller Feb 8, 2024
1fbd2b6
🔃 Version Sync - we'll use 4.1.x for development ...
pgfeller Feb 9, 2024
053f7eb
💳 updated credits in headers (initial code by Marco Kawon)
pgfeller Feb 9, 2024
656008d
✏️ class & filenames updated to be consistent with other bindings
pgfeller Feb 9, 2024
d5d9b62
🔎 skeleton mDNS discovery implemented
pgfeller Feb 9, 2024
cc6d39a
🔎 mDNS device discovery - use API to get device information (wip 🔨)
pgfeller Feb 10, 2024
a16c04c
🔐 preparation(s) to support SSL (wip), create ThingUID for discovered…
pgfeller Feb 13, 2024
beadc45
🏭 Inbox/Thing Factory (wip)
pgfeller Feb 14, 2024
c72c5e3
🔎 device discovery improvements (wip)
pgfeller Feb 16, 2024
7b4fffc
💬 Basic JSON de-serialization added to Thing-Handler to get device in…
pgfeller Feb 17, 2024
294deb3
🔐 SSL Handshake & 🔎 Discovery working - 👍
pgfeller Feb 24, 2024
eb06000
🔓 Registration (acquire API token) - wip 🔧
pgfeller Feb 25, 2024
4b66cda
🔧 Prototype to use resource strings for loggger, exceptions & UI ...
pgfeller Feb 29, 2024
2d3cfc9
🔓 Registration (acquire API token) - wip 🔧
pgfeller Mar 2, 2024
871e286
🔓 Registration (acquire API token)
pgfeller Mar 7, 2024
267fc75
⏫ pom version change to 4.2
pgfeller Mar 12, 2024
f18346f
📜 linter fix ...
pgfeller Mar 12, 2024
142f8f9
📜 linter fix
pgfeller Mar 13, 2024
57b8ca7
📜 ... temporary refactoring/removal of log message consistency mechan…
pgfeller Mar 16, 2024
2d981b5
📦 Device information DTO
pgfeller Mar 17, 2024
9f64cc9
👤 Added myself as owner of the huesync binding
pgfeller Mar 21, 2024
9b66703
🔧 refactoring to simplify API connection
pgfeller Mar 22, 2024
6e840ac
feat(unregistration): 👋 Device unregistration
pgfeller Mar 23, 2024
de14fc1
fix(linter): 🔎 Format should be constant. Use placeholder to reduce t…
pgfeller Mar 23, 2024
70bb80b
fix(linter): 🔎 Format should be constant. Use placeholder to reduce t…
pgfeller Mar 23, 2024
36b8d0c
refactor: 📜 code moved and group areas added to improve overview
pgfeller Mar 29, 2024
6f9b46a
refactor: 📜 refactoring to simplify maintentance and pending implemen…
pgfeller Mar 31, 2024
428b3e3
fix(linter): 🔎 linter performance check fixed
pgfeller Mar 31, 2024
7f3a4e5
feat(infrastructure): 🔌 check online/offline state (poll) - wip ...
pgfeller Apr 6, 2024
a76e439
refactor(code review): 🔎 improved null handling based on code review
pgfeller Apr 12, 2024
072bee7
refactor(code review): 🔎 improved null handling based on code review
pgfeller Apr 12, 2024
cb0c86c
refactor(code review): 🔎 improved null handling based on code review
pgfeller Apr 12, 2024
4dd836e
refactor(code review): 🔎 improved null handling based on code review
pgfeller Apr 12, 2024
4e1a812
refactor(code review): 🔎 code split (single response) and better enca…
pgfeller Apr 15, 2024
5e60e97
refactor(code review): 🔎 improved null handling based on code review …
pgfeller Apr 15, 2024
048ce86
refactor(code review): 🔎 improved null handling based on code review
pgfeller Apr 18, 2024
0ce8d19
refactor(connection): 📜 Simplified authentication mechanism
pgfeller Apr 26, 2024
dbd0bcc
refactor(communication): 📜 improved error handling and manual configu…
pgfeller Apr 30, 2024
024b8f6
feat(channel): 🔧 firmware channel group added
pgfeller May 3, 2024
3399194
fix(channel): 🔃 keep properties and firmware channel information in sync
pgfeller May 7, 2024
4c72662
feat(dto): 📺 HDMI Status DTO & Get API implemented
pgfeller May 8, 2024
f7a6d91
feat(channel): Some HDMI input and ouput channels added (read only) -…
pgfeller May 14, 2024
520713d
feat(channel): Additional channel `connection-status`added
pgfeller May 18, 2024
a95d401
feat(channel): ➕ Additional channel `connection-lastSyncMode` added
pgfeller May 19, 2024
7ec2c02
refactor(dto class renamed): 📜 Dto classes renamed to include the nat…
pgfeller May 25, 2024
adf46e7
feat(channel): ➕ "execution" API channel group implementation started…
pgfeller May 30, 2024
87eae1f
chore(documentation): 📜 new "remote control" group added to readme
pgfeller May 30, 2024
0cf1991
feat(channel): ➕ Infrastructure to handle command execution (🔧 wip)
pgfeller May 31, 2024
73b3ea6
chore(documentation): 📜 readme updated: bug fixes & "mode" channel added
pgfeller May 31, 2024
5adecd6
chore(documentation): 📜 readme - item configuration header level changed
pgfeller May 31, 2024
0744fcd
fix(channel): 🐞Command executors are not global, but are defined per …
pgfeller Jun 1, 2024
77e1c10
feat(channel): ➕ write support for "mode" channel added
pgfeller Jun 2, 2024
4c18512
chore(documentation): 📜 readme - "mode" chanel is now R/W
pgfeller Jun 2, 2024
1088264
chore(documentation): 🐞 bugfix in readme ...
pgfeller Jun 2, 2024
78a9c79
fix(connection): 🐞 bugfix to improve handling of invalid API token
pgfeller Jun 11, 2024
e6e72d0
fix(communication): 🐞 bugfix: de-serialization is more tolerant if we…
pgfeller Jun 16, 2024
8274825
feat(channel): ➕ "syncActive" ON/OFF switch added to thing
pgfeller Jun 19, 2024
a885cc8
build(vscode): 🔧 configuration files added for IDE ... [wip]
pgfeller Jul 6, 2024
91daa6a
feat(channel): ➕ channel to select HDMI source added
pgfeller Jul 7, 2024
c760b56
Update bundles/org.openhab.binding.huesync/pom.xml
pgfeller Jul 9, 2024
b22683f
style(format): code format fixes (whitespace)
pgfeller Jul 14, 2024
65915aa
fix(localization): 🐛Suppress "Null type mismatch" linter error - the …
pgfeller Jul 14, 2024
a46fecb
style(format): code format fixes (whitespace)
pgfeller Jul 14, 2024
be1087f
refactor(i18n): Different handling of resource key resolution (linter…
pgfeller Jul 16, 2024
df5b459
refactor(i18n): Different handling of resource key resolution (linter…
pgfeller Jul 17, 2024
1116696
build(vscode): ⚙️ Small improvements in the utility build script(s)
pgfeller Jul 31, 2024
353956c
docs(channel): 📜 Use of "Material Design Icons" to visualize category.
pgfeller Aug 12, 2024
61e88ec
feat(channel): ➕ Add support to adjust brightness
pgfeller Aug 16, 2024
e69fd3f
fix(channel): 🐛 default execution handler fixed
pgfeller Aug 26, 2024
a201ee5
docs(readme): 🧹 Prepare for 1st official code review round of the PR
pgfeller Sep 11, 2024
27a3e97
fix(channel): 🐛 PUT command payload problem solved for `StringType` c…
pgfeller Sep 13, 2024
90476fb
chore(project): 🔎 Resolve code review findings
pgfeller Sep 29, 2024
b815915
chore(project): 🔎 Resolve code review findings
pgfeller Sep 29, 2024
f0b72ac
chore(project): 🔎 Resolve code review findings
pgfeller Sep 29, 2024
4cf94bd
Update bundles/org.openhab.binding.huesync/src/main/feature/feature.xml
pgfeller Sep 29, 2024
ea8c492
Update bundles/org.openhab.binding.huesync/src/main/resources/OH-INF/…
pgfeller Sep 29, 2024
1b7dcf1
Update bundles/org.openhab.binding.huesync/src/main/resources/OH-INF/…
pgfeller Sep 29, 2024
2866bd3
chore(project): 🔎 Resolve code review findings
pgfeller Oct 5, 2024
d9f1a97
Update bundles/org.openhab.binding.huesync/src/main/feature/feature.xml
pgfeller Oct 5, 2024
45babc6
chore(project): 🔎 Resolve code review findings
pgfeller Oct 5, 2024
b64be6e
chore(project): 🔎 Resolve code review findings
pgfeller Oct 5, 2024
19b4efc
chore(project): 🔎 Resolve code review findings
pgfeller Oct 11, 2024
9301a43
chore(project): 🔎 Resolve code review findings
pgfeller Oct 11, 2024
8bc8285
chore(project): 🔎 Resolve code review findings
pgfeller Oct 16, 2024
3917018
chore(project): 🔎 Resolve code review findings
pgfeller Oct 17, 2024
13eedb0
chore(project): 🔎 Resolve code review findings, updated exception han…
pgfeller Oct 22, 2024
b466d08
chore(project): 🔎 Resolve code review findings
pgfeller Oct 22, 2024
1fc9dfa
chore(project): 🔎 Resolve code review findings
pgfeller Oct 23, 2024
4eab015
chore(project): 🔎 Resolve code review findings
pgfeller Oct 26, 2024
3baf75d
chore(project): 🔎 Resolve code review findings
pgfeller Oct 28, 2024
a7b4612
chore(project): 🔎 Resolve code review findings
pgfeller Oct 28, 2024
3b79781
chore(project): 🔎 Resolve code review findings
pgfeller Oct 30, 2024
ce62b8a
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Oct 30, 2024
4b40f35
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Oct 30, 2024
3f95878
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Oct 30, 2024
e67bb3a
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Oct 30, 2024
1f04cd6
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Oct 30, 2024
ce69d02
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Oct 30, 2024
10c513c
chore(project): 🔎 Resolve code review findings
pgfeller Oct 30, 2024
2be093c
chore(project): 🔎 Resolve code review findings
pgfeller Oct 30, 2024
88ca719
chore(project): 🔎 Resolve code review findings
pgfeller Nov 6, 2024
6108d4e
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 6, 2024
59c8c5c
chore(project): 🔎 Resolve code review findings
pgfeller Nov 6, 2024
356dad6
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 6, 2024
34c114a
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 6, 2024
ee9170a
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 6, 2024
5d2a788
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 6, 2024
2ad011b
🔧 post merge clean up (fix)
pgfeller Nov 7, 2024
6101c15
chore(project): 🔎 Resolve code review findings (README.md)
pgfeller Nov 12, 2024
87412db
refactor(lint): 🔎 Apply static code analysis improvements/cosmetics
pgfeller Nov 12, 2024
95cfce5
refactor(project): 🔎 Resolve code review and code analysis finding
pgfeller Nov 12, 2024
1616f91
refactor(project): 🔎 Resolve code review and code analysis finding
pgfeller Nov 16, 2024
f6bf2e5
refactor(logger): 🧹 Obsolete custom log factory removed
pgfeller Nov 17, 2024
8395105
docs(readme): 🔎 Address review findings and complete readme
pgfeller Nov 20, 2024
818f6f4
Update bundles/org.openhab.binding.huesync/README.md
pgfeller Nov 20, 2024
4befab5
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 20, 2024
7a788af
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 20, 2024
1293f64
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 20, 2024
dc699a1
Update bundles/org.openhab.binding.huesync/src/main/java/org/openhab/…
pgfeller Nov 20, 2024
d49584d
refactor(project): 🔎 Resolve code review finding
pgfeller Nov 21, 2024
546c703
docs(readme): 🔎 Resolve code review finding
pgfeller Nov 22, 2024
aeb8f76
refactor(project): 🔎 Resolve code review finding
pgfeller Nov 22, 2024
649d765
refactor(project): 🔎 Resolve code review finding
pgfeller Nov 22, 2024
5633ef2
refactor(project): 🔎 Resolve code review finding
pgfeller Nov 23, 2024
dd30809
refactor(project): 🔎 Resolve static code analysis - HdmiChannels.java
pgfeller Nov 23, 2024
b1781ed
refactor(project): 🔎 Resolve static code analysis - HueSyncLocalizer.…
pgfeller Nov 23, 2024
e842959
refactor(lint): Static code analysis ...
pgfeller Nov 26, 2024
d8d519b
refactor(lint): 🧹 static code analysis - HueSyncConnection
pgfeller Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
/bundles/org.openhab.binding.hpprinter/ @cossey
/bundles/org.openhab.binding.http/ @J-N-K
/bundles/org.openhab.binding.hue/ @cweitkamp @andrewfg
/bundles/org.openhab.binding.huesync/ @pgfeller
/bundles/org.openhab.binding.hydrawise/ @digitaldan
/bundles/org.openhab.binding.hyperion/ @tavalin
/bundles/org.openhab.binding.iammeter/ @lewei50
Expand Down
5 changes: 5 additions & 0 deletions bom/openhab-addons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,11 @@
<artifactId>org.openhab.binding.hue</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.huesync</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.binding.hydrawise</artifactId>
Expand Down
13 changes: 13 additions & 0 deletions bundles/org.openhab.binding.huesync/NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
This content is produced and maintained by the openHAB project.

* Project home: https://www.openhab.org

== Declared Project Licenses

This program and the accompanying materials are made available under the terms
of the Eclipse Public License 2.0 which is available at
https://www.eclipse.org/legal/epl-2.0/.

== Source Code

https://github.com/openhab/openhab-addons
178 changes: 178 additions & 0 deletions bundles/org.openhab.binding.huesync/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
# hueSync Binding

<!-- markdownlint-disable MD033 -->
This binding integrates the [Play HDMI Sync Box](https://www.philips-hue.com/en-us/p/hue-philips-hue-play-hdmi-sync-box/046677579753) into openHAB.
The integration happens directly through the Hue [HDMI Sync Box API](https://developers.meethue.com/develop/hue-entertainment/hue-hdmi-sync-box-api/).

- [hueSync Binding](#huesync-binding)
- [Supported Things](#supported-things)
- [Discovery](#discovery)
- [Binding Configuration](#binding-configuration)
- [Thing Configuration](#thing-configuration)
- [Channels](#channels)
- [firmware](#firmware)
- [hdmi-connection \[in|out\]](#hdmi-connection-inout)
- [commands](#commands)
- [Item Configuration](#item-configuration)
- [Sitemap Configuration](#sitemap-configuration)
- [Additional Information](#additional-information)
- [Configuration using GUI](#configuration-using-gui)

## Supported Things

This binding provides only one thing type: **`box`**.
Each thing will represent a Hue Play HDMI sync box.

## Discovery

The binding supports auto discovery using [mDNS](https://en.wikipedia.org/wiki/Multicast_DNS) to find devices in the local network.

Make sure the device is connected to the network (the LED on the Sync Box is white or red).
If the LED is blinking blue, you need to setup the device using the official [Hue Sync App](https://www.philips-hue.com/en-in/explore-hue/propositions/entertainment/hue-sync).

If the device is not discovered you can check if it is properly configured and discoverable:

<p>
<details>
<summary><b>Linux</b> (Ubuntu based distributions)</summary>

```bash
$ avahi-browse --resolve _huesync._tcp
+ wlp0s20f3 IPv4 HueSyncBox-XXXXXXXXXXX _huesync._tcp local
= wlp0s20f3 IPv4 HueSyncBox-XXXXXXXXXXX _huesync._tcp local
hostname = [XXXXXXXXXXX.local]
address = [192.168.0.12]
port = [443]
txt = ["name=Sync Box" "devicetype=HSB1" "uniqueid=XXXXXXXXXXX" "path=/api"]
```

</details>
</p>

mDNS uses link-local multicast addresses; its scope is limited to a single physical or logical LAN ([Layer 3](https://en.wikipedia.org/wiki/OSI_model#Layer_3:_Network_layer")).
If your device is not automatically discovered, create a thing and manually configure the "host" parameter.

To communicate with the sync box, you need to couple the thing with the hardware (registration).
The thing will start this process automatically.
To complete the registration you just press the "coupling" button on the sync box for 3 seconds.:

![Device Registration](doc/device_registration.png)

For special use cases it is possible to configure the id and token manually in the **advanced configuration** settings section.

## Binding Configuration

The binding does not require configuration.

## Thing Configuration

| Name | Type | Description | Default | Required | Advanced |
| -------------------- | ------- | --------------------------------- | ------- | -------- | -------- |
| host | text | IP address of the device | N/A | yes | no |
| port | integer | Port of the HDMI Sync Box. | 443 | yes | yes |
| registrationId | text | Application Registration Id | N/A | no | yes |
lsiepel marked this conversation as resolved.
Show resolved Hide resolved
| apiAccessToken | text | API Access Token | N/A | no | yes |
| statusUpdateInterval | integer | Status Update Interval in seconds | 10 | yes | yes |

### Channels

#### firmware

Information about the installed device firmware and available updates.

| Channel | Type | Read/Write | Description |
| ------------------ | ------ | ---------- | --------------------------------- |
| firmware | String | R | Installed firmware version |
| available-firmware | String | R | Latest available firmware version |

#### hdmi-connection [in\|out]

Information about a HDMI input connection.

| Channel | Type | Read/Write | Description |
| ------- | ------ | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | String | R | <details><summary>Friendly Type</summary><ul><li>generic</li><li>video</li><li>game</li><li>music</li><li>xbox</li><li>playstation</li><li>nintendoswitch</li><li>phone</li><li>desktop</li><li>laptop</li><li>appletv</li><li>roku</li><li>shield</li><li>chromecast</li><li>firetv</li><li>diskplayer</li><li>settopbox</li><li>satellite</li><li>avreceiver</li><li>soundbar</li><li>hdmiswitch</li></ul></details> |
| status | String | R | <details><summary>Device connection status</summary><ul><li>unplugged</li><li>plugged</li><li>linked</li><li>unknown</li></ul></details> |
| name | String | R | Friendly Name |
| mode | String | R | <details><summary>Mode</summary><ul><li>video</li><li>game</li><li>music</li><li>powersave</li><li>passthrough</li></ul></details> |

#### commands

| Channel | Type | Read/Write | Description |
| ----------- | -------------------- | ---------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| mode | String | R/W | <details><summary>Hue Sync operation mode</summary><ul><li>video</li><li>game</li><li>music</li><li>powersave</li><li>passthrough</li></ul></details> |
| hdmi-source | Switch | R/W | <details><summary>Source</summary><ul><li>input1</li><li>input2</li><li>input3</li><li>input4</li></ul></details> |
| sync-active | Switch | R/W | <details><summary>Synchronization</summary><p><b>OFF</b> in case of powersave or passthrough mode, and <b>ON</b> in case of video, game or music mode. When changed from OFF to ON, it will start syncing in last used mode for current source. When changed from ON to OFF, will set passthrough mode.</p></details> |
| brightness | Number:Dimensionless | R/W | <details><summary>Brightness</summary><p><ul><li>0 = max reduction</li><li>100 = no brightness reduction/boost compared to input</li><li>200 = max boost</li></ul></p></details> |

## Item Configuration

TODO
lsiepel marked this conversation as resolved.
Show resolved Hide resolved

### Sitemap Configuration

TODO

## Additional Information

### Configuration using GUI

It is also possible to add the equipment to the model using the advanced configuration option available in the UI.
Select the "**Channels**"-Tab of the thing and click "**Add Equipment to Model**":

![Add Equipment to Model](doc/add_equipment_to_model.png)

Select "**Expert Mode**" to use the adapted example configuration.

![Expert Mode](doc/expert_mode.png)

You need to update the device in the example with the UID of your thing (<code>huesync:box:<u><b>HueSyncBox</b></u></code>).</p>

```plaintext
Group HueSyncBox "HueSyncBox" <iconify:mdi:television-ambient-light> ["NetworkAppliance"]

Group HueSyncBox_Inputs "Inputs" <receiver> (HueSyncBox) ["Receiver"]

Group HueSyncBox_Input_1 "Input 1" <iconify:mdi:hdmi-port> (HueSyncBox_Inputs) ["Receiver"]
Group HueSyncBox_Input_2 "Input 2" <iconify:mdi:hdmi-port> (HueSyncBox_Inputs) ["Receiver"]
Group HueSyncBox_Input_3 "Input 3" <iconify:mdi:hdmi-port> (HueSyncBox_Inputs) ["Receiver"]
Group HueSyncBox_Input_4 "Input 4" <iconify:mdi:hdmi-port> (HueSyncBox_Inputs) ["Receiver"]

Group HueSyncBox_Output "Output" <iconify:mdi:tv> (HueSyncBox) ["Screen"]
Group HueSyncBox_Firmware "Firmware" <iconify:mdi:information> (HueSyncBox)
Group HueSyncBox_Execution "Remote Control" <iconify:mdi:remote> (HueSyncBox) ["RemoteControl"]

String HueSyncBox_Device_Mode "Mode" <iconify:mdi:multimedia> (HueSyncBox_Execution) { channel="huesync:box:HueSyncBox:device-commands#mode" }
String HueSyncBox_Device_Input "Input" <iconify:mdi:input> (HueSyncBox_Execution) { channel="huesync:box:HueSyncBox:device-commands#hdmi-source" }
Switch HueSyncBox_Device_Hdmi "HDMI" <iconify:mdi:hdmi-port> (HueSyncBox_Execution) { channel="huesync:box:HueSyncBox:device-commands#hdmi-active" }
Switch HueSyncBox_Device_Sync "Sync" <iconify:mdi:sync> (HueSyncBox_Execution) { channel="huesync:box:HueSyncBox:device-commands#sync-active" }
Number HueSyncBox_Device_Brightness "Brightness" <iconify:mdi:brightness-percent> (HueSyncBox_Execution) { channel="huesync:box:HueSyncBox:device-commands#brightness" }

String HueSyncBox_Firmware_Version "Firmware Version" <iconify:mdi:text> (HueSyncBox_Firmware) { channel="huesync:box:HueSyncBox:device-firmware#firmware" }
String HueSyncBox_Latest_Firmware_Version "Latest Firmware Version" <iconify:mdi:text> (HueSyncBox_Firmware) { channel="huesync:box:HueSyncBox:device-firmware#available-firmware" }

String HueSyncBox_Device_hdmi_in1_Name "Name - Input 1" <iconify:mdi:text> (HueSyncBox_Input_1) { channel="huesync:box:HueSyncBox:device-hdmi-in-1#name" }
String HueSyncBox_Device_hdmi_in1_Type "Type - Input 1" <iconify:mdi:devices> (HueSyncBox_Input_1) { channel="huesync:box:HueSyncBox:device-hdmi-in-1#type" }
String HueSyncBox_Device_hdmi_in1_Status "Status - Input 1" <iconify:mdi:connection> (HueSyncBox_Input_1) { channel="huesync:box:HueSyncBox:device-hdmi-in-1#status" }
String HueSyncBox_Device_hdmi_in1_Mode "Mode - Input 1" <iconify:mdi:multimedia> (HueSyncBox_Input_1) { channel="huesync:box:HueSyncBox:device-hdmi-in-1#mode" }

String HueSyncBox_Device_hdmi_in2_Name "Name - Input 2" <iconify:mdi:text> (HueSyncBox_Input_2) { channel="huesync:box:HueSyncBox:device-hdmi-in-2#name" }
String HueSyncBox_Device_hdmi_in2_Type "Type - Input 2" <iconify:mdi:devices> (HueSyncBox_Input_2) { channel="huesync:box:HueSyncBox:device-hdmi-in-2#type" }
String HueSyncBox_Device_hdmi_in2_Status "Status - Input 2" <iconify:mdi:connection> (HueSyncBox_Input_2) { channel="huesync:box:HueSyncBox:device-hdmi-in-2#status" }
String HueSyncBox_Device_hdmi_in2_Mode "Mode - Input 2" <iconify:mdi:multimedia> (HueSyncBox_Input_2) { channel="huesync:box:HueSyncBox:device-hdmi-in-2#mode" }

String HueSyncBox_Device_hdmi_in3_Name "Name - Input 3" <iconify:mdi:text> (HueSyncBox_Input_3) { channel="huesync:box:HueSyncBox:device-hdmi-in-3#name" }
String HueSyncBox_Device_hdmi_in3_Type "Type - Input 3" <iconify:mdi:devices> (HueSyncBox_Input_3) { channel="huesync:box:HueSyncBox:device-hdmi-in-3#type" }
String HueSyncBox_Device_hdmi_in3_Status "Status - Input 3" <iconify:mdi:connection> (HueSyncBox_Input_3) { channel="huesync:box:HueSyncBox:device-hdmi-in-3#status" }
String HueSyncBox_Device_hdmi_in3_Mode "Mode - Input 3" <iconify:mdi:multimedia> (HueSyncBox_Input_3) { channel="huesync:box:HueSyncBox:device-hdmi-in-3#mode" }

String HueSyncBox_Device_hdmi_in4_Name "Name - Input 4" <iconify:mdi:text> (HueSyncBox_Input_4) { channel="huesync:box:HueSyncBox:device-hdmi-in-4#name" }
String HueSyncBox_Device_hdmi_in4_Type "Type - Input 4" <iconify:mdi:devices> (HueSyncBox_Input_4) { channel="huesync:box:HueSyncBox:device-hdmi-in-4#type" }
String HueSyncBox_Device_hdmi_in4_Status "Status - Input 4" <iconify:mdi:connection> (HueSyncBox_Input_4) { channel="huesync:box:HueSyncBox:device-hdmi-in-4#status" }
String HueSyncBox_Device_hdmi_in4_Mode "Mode - Input 4" <iconify:mdi:multimedia> (HueSyncBox_Input_4) { channel="huesync:box:HueSyncBox:device-hdmi-in-4#mode" }

String HueSyncBox_Device_hdmi_out_Name "Name - Output" <iconify:mdi:text> (HueSyncBox_Output) { channel="huesync:box:HueSyncBox:device-hdmi-out#name" }
String HueSyncBox_Device_hdmi_out_Type "Type - Output" <iconify:mdi:tv> (HueSyncBox_Output) { channel="huesync:box:HueSyncBox:device-hdmi-out#type" }
String HueSyncBox_Device_hdmi_out_Status "Status - Output" <iconify:mdi:connection> (HueSyncBox_Output) { channel="huesync:box:HueSyncBox:device-hdmi-out#status" }
String HueSyncBox_Device_hdmi_out_Mode "Mode - Output" <iconify:mdi:multimedia> (HueSyncBox_Output) { channel="huesync:box:HueSyncBox:device-hdmi-out#mode" }
```
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions bundles/org.openhab.binding.huesync/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.openhab.addons.bundles</groupId>
<artifactId>org.openhab.addons.reactor.bundles</artifactId>
<version>4.3.0-SNAPSHOT</version>
</parent>

<artifactId>org.openhab.binding.huesync</artifactId>

<name>openHAB Add-ons :: Bundles :: Hue Sync Box Binding</name>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<features name="org.openhab.binding.huesync-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>

<feature name="openhab-binding-huesync" description="Hue Sync Box Binding" version="${project.version}">
<feature>openhab-runtime-base</feature>
<feature>openhab-transport-mdns</feature>
<bundle start-level="80">mvn:org.openhab.addons.bundles/org.openhab.binding.huesync/${project.version}</bundle>
</feature>
</features>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright (c) 2010-2024 Contributors to the openHAB project
*
* See the NOTICE file(s) distributed with this work for additional
* information.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0
*
* SPDX-License-Identifier: EPL-2.0
*/
package org.openhab.binding.huesync.internal;

/**
*
* @author Patrik Gfeller - Initial contribution
*/
public class HdmiChannels {
public String NAME;
public String TYPE;
public String MODE;
public String STATUS;

public HdmiChannels(String name, String type, String mode, String status) {
NAME = name;
TYPE = type;
MODE = mode;
STATUS = status;
}
}
Loading