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

[kodi] Channel for online/offline state #2375

Closed
Newan opened this issue Jun 16, 2017 · 4 comments
Closed

[kodi] Channel for online/offline state #2375

Newan opened this issue Jun 16, 2017 · 4 comments

Comments

@Newan
Copy link

Newan commented Jun 16, 2017

Right now the Kodi binding does not provide a channel for the online state.
It is possible to provide a online/offline state to check this channel in rules.

@kaikreuzer
Copy link
Member

Online/Offline status is a feature of a Thing, it must not be modelled as a Channel.

See eclipse-archived/smarthome#1654.

@Newan
Copy link
Author

Newan commented Jun 16, 2017

thanks for answer, but the issue is open? Is it implemented?
Is there any documentation or example.

I search for 2 state request:

rule "Kodi event on"
when
  Thing kodiUID changed from ONLINE to OFFLINE
then
  // do something
end

How get the kodiUID?

rule "Kodi event on"
when
  Item seonorXYZ changed 
then
   If (kodiUID.getStatus() == ThingStatus.Online)
end

But i don´t know how to get the "thing" object. Muss i run over all things an compare the ui?

@sjsf
Copy link

sjsf commented Jun 30, 2017

see eclipse-archived/smarthome#3001 (comment), i.e. getThingStatusInfo("kodi:your:thing") should do the trick.

@Newan
Copy link
Author

Newan commented Jun 30, 2017

Thanks!

Flole998 pushed a commit to Flole998/openhab-addons that referenced this issue Dec 30, 2021
* New translations persistence.properties (French)

* New translations lsp.properties (French)

* New translations jsonStorage.properties (French)

* New translations chart.properties (French)

* New translations SystemProfiles.properties (Hebrew)

* New translations SystemProfiles.properties (Italian)

* New translations SystemProfiles.properties (German)

* Update source file SystemProfiles.properties

* New translations SystemProfiles.properties (German)

* New translations SystemProfiles.properties (Dutch)

* New translations SystemProfiles.properties (Finnish)

* New translations audio.properties (Polish)

* New translations lsp.properties (Polish)

* New translations hli.properties (Polish)

* New translations persistence.properties (Polish)

* New translations network.properties (Polish)

* New translations i18n.properties (Polish)

* New translations chart.properties (Polish)

* New translations jsonStorage.properties (Polish)

* New translations addons.properties (Polish)

* New translations restauth.properties (Polish)

* New translations ephemeris.properties (Polish)

* New translations voice.properties (Polish)

* New translations inbox.properties (Polish)

* New translations inbox.properties (Hungarian)

* New translations ephemeris.properties (Hungarian)

* New translations restauth.properties (Hungarian)

* New translations addons.properties (Hungarian)

* New translations jsonStorage.properties (Hungarian)

* New translations voice.properties (Hungarian)

* New translations i18n.properties (Hungarian)

* New translations lsp.properties (Hungarian)

* New translations brokerConnectionInstance.properties (Hungarian)

* New translations hli.properties (Hungarian)

* New translations inbox.properties (French)

* New translations addons.properties (French)

* New translations audio.properties (French)

* New translations SystemProfiles.properties (Hungarian)

* New translations SystemProfiles.properties (Polish)

* New translations ephemeris.properties (French)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants