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

OH2 incomming call conversion warning #26

Open
GeneralLuzi opened this issue Jan 29, 2017 · 2 comments
Open

OH2 incomming call conversion warning #26

GeneralLuzi opened this issue Jan 29, 2017 · 2 comments

Comments

@GeneralLuzi
Copy link

HI,

I get the following warnings:

2017-01-29 14:14:29.077 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '123456789' of item fboxIncomingCall with format '%1$s für %2$s': java.util.MissingFormatArgumentException: Format specifier '%2$s'
2017-01-29 14:14:29.077 [WARN ] [ui.internal.items.ItemUIRegistryImpl] - Exception while formatting value '' of item fboxOutgoingCall with format '%1$s für %2$s': java.util.MissingFormatArgumentException: Format specifier '%2$s'

I use OH2.

Sitemap:

Text   item=fboxIncomingCall icon="phone"
Text   item=fboxOutgoingCall	 icon="phone"

Items:

Call    fboxIncomingCall				"Eingehender Anruf: [%1$s für %2$s]"					{fritzboxtr064="callmonitor_ringing" } 
Call    fboxOutgoingCall				"Ausgehender Anruf: [%1$s für %2$s]"					{fritzboxtr064="callmonitor_outgoing" }

Ringing and parts of the presence detection are working... so no config error...

BR, GL

@mueller-ma
Copy link

mueller-ma commented Feb 24, 2017

I can confirm this with oh2 and openjdk-8

It seems that the item state changes to nothing when the call is over, so there will be no '%2$s'

@mueller-ma
Copy link

@GeneralLuzi I found a workaround. Make the item with number or name only visible when the switch item is on

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

2 participants