Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse SmartHome » How to get Infos from Sonos-Binding for our binding
How to get Infos from Sonos-Binding for our binding [message #1770893] Fri, 18 August 2017 13:08 Go to next message
markus petke is currently offline markus petkeFriend
Messages: 6
Registered: August 2017
Junior Member
Hello,

we are developing a binding and are also using other bindings e.g. Sonos to interact with.

We can already trigger a function of other bindings via our triggerchannel and the rule-engine.

Now we need the otherway. We want to display e.g. the currently played title of sonos on our devices.

Is there any possibility to get these information? Maybe also via a triggerchannel?

Greetings
MP
Re: How to get Infos from Sonos-Binding for our binding [message #1771278 is a reply to message #1770893] Wed, 23 August 2017 15:55 Go to previous messageGo to next message
Stefan Triller is currently offline Stefan TrillerFriend
Messages: 23
Registered: April 2017
Junior Member
Hello Markus,

bindings should never ever interact with each other directly!

The rule engine is a good way to achieve what you like to do. You can have an item displaying the current Sonos song title and a rule that reacts on state changes of that item. This rule can then change another item which is linked to your physical thing.

Regards,

Stefan
Re: How to get Infos from Sonos-Binding for our binding [message #1771328 is a reply to message #1771278] Thu, 24 August 2017 06:46 Go to previous messageGo to next message
markus petke is currently offline markus petkeFriend
Messages: 6
Registered: August 2017
Junior Member
Hello Stefan,

yeah we already got this working with a rule. Our problem was that we wanted to configure the rules with the PaperUI but in this case the use is very limited. So we wrote our own rule in a textfile.

We also struggled to get the right syntax and the available commands for the rules. Is there a complete documentation for the rules?

Our way was to create different rules with HABmin and then study the created textfiles...

Regards
Markus
Re: How to get Infos from Sonos-Binding for our binding [message #1771337 is a reply to message #1771328] Thu, 24 August 2017 07:56 Go to previous message
Stefan Triller is currently offline Stefan TrillerFriend
Messages: 23
Registered: April 2017
Junior Member
Hello Markus,

indeed the configuration of rules in PaperUI is very limited at the moment. But this is also due to the fact that it uses the "new" rule engine which is still work in progress. However it will be very powerful since it also supports scripting languages through JSR-223.

Since you are asking for documentation about the textual configuration of rules, this is the "old" rule engine, but its still supported and also will be supported because it will take a while until the "new" one is finished. You can find documentation about such rules on the openHAB website: http://docs.openhab.org/configuration/rules-dsl.html

Regards,

Stefan
Previous Topic:Binding using MqttService
Next Topic:Can i deploy and run ESH in any server
Goto Forum:
  


Current Time: Sat Jun 23 08:44:34 GMT 2018

Powered by FUDForum. Page generated in 0.02082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top