Skip to content

Commit

Permalink
Changes for 4.3.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
andan67 committed Dec 18, 2024
1 parent 1c0ec4d commit 11a1bc5
Show file tree
Hide file tree
Showing 38 changed files with 11 additions and 5,338 deletions.
42 changes: 1 addition & 41 deletions bundles/org.openhab.binding.sony/README-SCALAR.md
Original file line number Diff line number Diff line change
Expand Up @@ -798,44 +798,4 @@ sony.sources:local=false
```

Setting the value to anything but 'false' will result in that provider being activated.
Please note that disabling will disable the ability to use custom thing types for your devices.

### Sony Support pages

This addon provides some support pages that can be useful to you.
If you go to "{ip}:{port}/sony", you can access the page (where IP/port is the IP/Port address that openHAB is listening on for it's web interface).

#### Sony API/Definition Explorer

The first page is the API/Definition explorer.
This will allow you to load your device file and explore the API on your own.
Please ignore the "Rest API, Merge File and Save" functionality as it only applies to myself (to manage devices).

To use this page:

1. To explore your device, press the "Load File" button and navigate to your device file (in `userdata/sony/definition/capabilities` folder as described above) and open your device JSON file.
This will load all the capabilities into the right side.
2. Click on one of the capabiliites and the left side will be loaded with details of the call
3. Change any parameters you want to press the execute button
4. Results appear in the bottom window.

Example of seeing the digital channels on a TV:

1. Click on the `avContent/getSchemeList` capability and press execute (there are no parameters for this call)
2. The results will be something like `[[{"scheme":"tv"},{"scheme":"extInput"}]]`.
3. Click on the `avContent/getSourceList` capability, change the paramater from `{"scheme":"string"}` to `{"scheme":"tv"}` (as shown in the getSchemeList call) and then press execute
4. The results will be something like `[[{"source":"tv:analog"},{"source":"tv:atsct"}]]`
5. Copy the source you want to explore.
For this example I copied `{"source":"tv:atsct"}` (digital ATSCT source)
6. Click on the `avContent/getContentList` (highest version) capability
7. Replace the parameter with what you copied.
For our example - `{"source":"tv:atsct"}` and press execute
8. The results will be something like `[[{"uri":"tv:atsct?dispNum=4.1&trip=1793.25.3&srvName=UNC-TV","title":"UNC-TV","index":0,"dispNum":"4.1","originalDispNum":"4.1","tripletStr":"1793.25.3","programNum":3,"programMediaType":"tv","visibility":"visible"},...`.
You'll have a single line for each digital (ATSCT) TV station that has been scanned on the set.
9. Copy the URI portion that you want to tune to.
For our example - `tv:atsct?dispNum=4.1&trip=1793.25.3&srvName=UNC-TV`
10. Click on the `avContent/playContent` and replace the `{"uri":"string"}` with `{"uri":"tv:atsct?dispNum=4.1&trip=1793.25.3&srvName=UNC-TV"}` and press Execute
11. The TV should switch to that channel.
For our example - it will switch to station 4.1 (UNC-TV).

Feel free to explore other APIs
Please note that disabling will disable the ability to use custom thing types for your devices.
33 changes: 4 additions & 29 deletions bundles/org.openhab.binding.sony/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
<version>4.3.0-SNAPSHOT</version>
</parent>

<properties>
<bundle.version>4.3.0</bundle.version>
</properties>

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

<name>openHAB Add-ons :: Bundles :: Sony Binding</name>
Expand All @@ -23,33 +27,4 @@
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>add-source</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
<sources>
<source>src/3rdparty/java</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<header>${project.basedir}/header.txt</header>
</configuration>
</plugin>
</plugins>
</build>

</project>
Loading

0 comments on commit 11a1bc5

Please sign in to comment.