# \[SOLVED\] New \[WARN\] in log since fresh 3.0.1

**URL:** <https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012>\
**Category:** Bindings\
**Tags:** openuv\
**Created:** [March 15, 2021, 8:48am UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012 "2021-03-15T08:48:20Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [March 15, 2021, 4:28pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/21 "2021-03-15T16:28:45Z")

</div>

It should work now … I’m waiting tomorrow morning, as now my Binding is offline. If everything works as expected, I will update the binding doc. Ok?

Andrea

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [March 15, 2021, 5:26pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/22 "2021-03-15T17:26:03Z")

</div>

Question: the items should be String?

As I see in my logs:

```yaml
2021-03-15 18:20:38.442 [ERROR] [org.openhab.core.items.GenericItem] - Tried to set invalid state 93 min (QuantityType) on item Openuv_SafeExposure5 of type StringItem, ignoring it
2021-03-15 18:20:38.458 [ERROR] [org.openhab.core.items.GenericItem] - Tried to set invalid state 93 min (QuantityType) on item Openuv_SafeExposure6 of type StringItem, ignoring it
2021-03-15 18:20:38.478 [ERROR] [org.openhab.core.items.GenericItem] - Tried to set invalid state 93 min (QuantityType) on item Openuv_SafeExposure1 of type StringItem, ignoring it
2021-03-15 18:20:38.496 [ERROR] [org.openhab.core.items.GenericItem] - Tried to set invalid state 93 min (QuantityType) on item Openuv_SafeExposure2 of type StringItem, ignoring it
2021-03-15 18:20:38.542 [ERROR] [org.openhab.core.items.GenericItem] - Tried to set invalid state 93 min (QuantityType) on item Openuv_SafeExposure3 of type StringItem, ignoring it
2021-03-15 18:20:38.558 [ERROR] [org.openhab.core.items.GenericItem] - Tried to set invalid state 93 min (QuantityType) on item Openuv_SafeExposure4 of type StringItem, ignoring it

```

---

<div class="post-metadata">

**Author:** ![glhopital](https://community.openhab.org/user_avatar/community.openhab.org/glhopital/32/91632_2.png) [@glhopital](https://community.openhab.org/u/glhopital)\
**Post date:** [March 15, 2021, 5:30pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/23 "2021-03-15T17:30:05Z")

</div>

No, items should be be Quantity type:time

---

<div class="post-metadata">

**Author:** ![glhopital](https://community.openhab.org/user_avatar/community.openhab.org/glhopital/32/91632_2.png) [@glhopital](https://community.openhab.org/u/glhopital)\
**Post date:** [March 15, 2021, 5:31pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/24 "2021-03-15T17:31:31Z")

</div>

You should leave file configurations and use MainUI, it’s so easy and reliable.

---

<div class="post-metadata">

**Author:** ![glhopital](https://community.openhab.org/user_avatar/community.openhab.org/glhopital/32/91632_2.png) [@glhopital](https://community.openhab.org/u/glhopital)\
**Post date:** [March 18, 2021, 3:36pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/25 "2021-03-18T15:36:06Z")

</div>

> [@ariela](#):
>
> It should work now … I’m waiting tomorrow morning, as now my Binding is offline. If everything works as expected, I will update the binding doc. Ok?
> 
> Andrea

Hello @ariela , did you push a doc update with your configuration findings ?

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [March 21, 2021, 7:06pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/26 "2021-03-21T19:06:02Z")

</div>

Not yet, as I followed your suggestion. But I can, I have the previous static configurations. I’ll do for sure

Andrea

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [February 26, 2022, 5:24pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/27 "2022-02-26T17:24:31Z")

</div>

Just sent the pull request. Sorry Gaël for this enormous delay 🙂

Andrea

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [April 28, 2022, 2:37pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/28 "2022-04-28T14:37:30Z")

</div>

@glhopital ciao 🙂

I’ve moved my openhabian setup from snapshot to 3.3.0 M3, and the “safe exposure” fields are now reporting “NULL”.

Did you change something there?

thanks  
Andrea

---

<div class="post-metadata">

**Author:** ![glhopital](https://community.openhab.org/user_avatar/community.openhab.org/glhopital/32/91632_2.png) [@glhopital](https://community.openhab.org/u/glhopital)\
**Post date:** [April 28, 2022, 3:13pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/29 "2022-04-28T15:13:20Z")

</div>

No recently. Please check your configuration.

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [April 28, 2022, 3:37pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/30 "2022-04-28T15:37:42Z")

</div>

very strange. I’ve re-created the channels, but I see only one id (SafeExposure, index II).

Here my previous working things file:

```yaml
Bridge openuv:openuvapi:local "OpenUV API" @ "Accounts" [apikey="xxxxxxxxxxxx"] {
    Thing uvreport milan "Local UV" @ "Outdoor" [location="45.465051,9.094615", refresh=20] {
        Channels:
            Type SafeExposure : pale [       
                index="I"
            ]
            Type SafeExposure : white [
                index="II"
            ]
            Type SafeExposure : light_brown [
                index="III"
            ]
            Type SafeExposure : moderate_brown [
                index="IV"
            ]
            Type SafeExposure : dark_brown [
                index="V"
            ]
            Type SafeExposure : black [
                index="VI"
            ]
    }
}

```

Any suggestion?

Andrea

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [April 30, 2022, 5:30pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/31 "2022-04-30T17:30:44Z")

</div>

@glhopital it’s very strange. I’ve tried almost everything, not able to see any safe exposure info coming from openuv ☹

all the other data are ok.  
Nothing from log in DEBUG or TRACE. But in the PaperUI I see only one channel (Index II), without any item associated, totally different from my configuration above ☹

Any suggestion?

Andrea

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [May 5, 2022, 1:02pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/32 "2022-05-05T13:02:15Z")

</div>

@glhopital

not sure, but to me this is an issue with the binding (or interactions between 3.3.3 M3/M4 and the binding).

In facts, using a simple curl request like:

```yaml
/usr/bin/curl -s -XGET "https://api.openuv.io/api/v1/uv?lat=mylat&lng=mylong" -H "x-access-token: myAPItoken" > openuv.txt

```

I can see this output:

```yaml
{"result":{"uv":5.9241,"uv_time":"2022-05-05T12:53:12.419Z","uv_max":7.0539,"uv_max_time":"2022-05-05T11:21:36.620Z","ozone":346.1,"ozone_time":"2022-05-05T12:04:36.960Z","safe_exposure_time":{"st1":28,"st2":34,"st3":45,"st4":56,"st5":90,"st6":169},"sun_info":{"sun_times":{"solarNoon":"2022-05-05T11:21:36.620Z","nadir":"2022-05-04T23:21:36.620Z","sunrise":"2022-05-05T04:07:38.465Z","sunset":"2022-05-05T18:35:34.774Z","sunriseEnd":"2022-05-05T04:10:58.283Z","sunsetStart":"2022-05-05T18:32:14.957Z","dawn":"2022-05-05T03:34:25.586Z","dusk":"2022-05-05T19:08:47.654Z","nauticalDawn":"2022-05-05T02:52:53.077Z","nauticalDusk":"2022-05-05T19:50:20.163Z","nightEnd":"2022-05-05T02:05:41.342Z","night":"2022-05-05T20:37:31.897Z","goldenHourEnd":"2022-05-05T04:49:20.119Z","goldenHour":"2022-05-05T17:53:53.120Z"},"sun_position":{"azimuth":0.7152622056409075,"altitude":0.9589889031401362}}}}

```

so the 6 indexes (st1, st2, st3, …) are there, no issues on [openuv.io](http://openuv.io) side, or with the API token.

but if I use this configuration:

```yaml
Bridge openuv:openuvapi:local "OpenUV API" @ "Accounts" [apikey="myAPItoken"] {
    Thing uvreport milan "Local UV" @ "Outdoor" [location="mylat,mylong", refresh=20] {
        Channels:
            Type SafeExposure : pale [       
                index="I"
            ]
            Type SafeExposure : white [
                index="II"
            ]
            Type SafeExposure : light_brown [
                index="III"
            ]
            Type SafeExposure : moderate_brown [
                index="IV"
            ]
            Type SafeExposure : dark_brown [
                index="V"
            ]
            Type SafeExposure : black [
                index="VI"
            ]
    }
}

```

I receive all the info, but not the safe exposure values.

Not sure how to troubleshoot further. Any clue?

Andrea

---

<div class="post-metadata">

**Author:** ![glhopital](https://community.openhab.org/user_avatar/community.openhab.org/glhopital/32/91632_2.png) [@glhopital](https://community.openhab.org/u/glhopital)\
**Post date:** [May 5, 2022, 1:17pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/33 "2022-05-05T13:17:20Z")

</div>

I have no time to dig in this right now. Can you please file an issue in github openhab-addons repo with the elements you collected ?  
Thanks

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [May 5, 2022, 4:14pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/34 "2022-05-05T16:14:47Z")

</div>

thank you,

> <https://github.com/openhab/openhab-addons/issues/12688>
>
> \## Expected Behavior
> 
> With the config below in openuv.things, I should be able… to receive by openuv a value in minutes for each of six safe exposures per Fitzpatrick Skin Type.
> 
> \`Bridge openuv:openuvapi:local "OpenUV API" @ "Accounts" \[apikey="myAPIkey" \] {
> 
> Thing uvreport milan "Local UV" @ "Outdoor" \[location="myLat,myLong", refresh=20 \] {
> Channels:
> Type SafeExposure : pale \[       
> index="I"
> \]
> Type SafeExposure : white \[
> index="II"
> \]
> Type SafeExposure : light\_brown \[
> index="III"
> \]
> Type SafeExposure : moderate\_brown \[
> index="IV"
> \]
> Type SafeExposure : dark\_brown \[
> index="V"
> \]
> Type SafeExposure : black \[
> index="VI"
> \]
> }
> }
> \`
> 
> \## Current Behavior
> 
> After the migration from snapshot to 3.3.0 M3, the Binding is working great. But I'm not able to receive any data for each SafeExposure item anymore.
> 
> But if I try a normal curl request, like this:
> 
> \`/usr/bin/curl -s -XGET "https://api.openuv.io/api/v1/uv?lat=mylat&lng=mylong" -H "x-access-token: myAPItoken" \> openuv.txt
> \`
> I see a value for each SafeExposure (st1, st2, st3, st4, st5 and st6).
> 
> \## Steps to Reproduce (for Bugs)
> 
> In 3.3.0 M3 (and also M4), configure manually the Openuv Binding, via config files (things file with the config above, and items file like the following:
> 
> \`
> Number:Time Openuv\_SafeExposure1 "Safe Exposure I \[%d %unit%\]" (gWeather) { channel = "openuv:uvreport:local:milan:pale" }
> \`
> 
> \## Context
> I would like to collect all the six values, one for each Fitzpatrick Skin Type, as exposed by 
> 
> result.safe\_exposure\_time.st1
> result.safe\_exposure\_time.st2
> result.safe\_exposure\_time.st3
> result.safe\_exposure\_time.st4
> result.safe\_exposure\_time.st5
> result.safe\_exposure\_time.st6
> 
> Community topic: https://community.openhab.org/t/new-warn-in-log-since-fresh-3-0-1/119012/28?u=ariela
> 
> \## Your Environment
> openhabian 3.3.0 M4

thanks again  
Andrea

---

<div class="post-metadata">

**Author:** ![glhopital](https://community.openhab.org/user_avatar/community.openhab.org/glhopital/32/91632_2.png) [@glhopital](https://community.openhab.org/u/glhopital)\
**Post date:** [May 5, 2022, 4:56pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/35 "2022-05-05T16:56:29Z")

</div>

Once the ongoing PR on netatmo is merged, I’ll have time to take a look at this. Thanks for your patience.

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [May 5, 2022, 5:01pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/36 "2022-05-05T17:01:22Z")

</div>

Thank you 🙂 and thank you also for working on the new PR for Netatmo Binding (#12677 right?)

---

<div class="post-metadata">

**Author:** ![glhopital](https://community.openhab.org/user_avatar/community.openhab.org/glhopital/32/91632_2.png) [@glhopital](https://community.openhab.org/u/glhopital)\
**Post date:** [May 5, 2022, 5:14pm UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/37 "2022-05-05T17:14:12Z")

</div>

No, currently #12357. #12677 will come after - or else none of us will have its Netatmo working with OH.

---

<div class="post-metadata">

**Author:** ![glhopital](https://community.openhab.org/user_avatar/community.openhab.org/glhopital/32/91632_2.png) [@glhopital](https://community.openhab.org/u/glhopital)\
**Post date:** [May 7, 2022, 9:11am UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/38 "2022-05-07T09:11:15Z")

</div>

Pull request created.  
[https://github.com/openhab/openhab-addons/pull/12695](https://github.com/openhab/openhab-addons/pull/12695)

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [May 7, 2022, 9:55am UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/39 "2022-05-07T09:55:48Z")

</div>

thank you very much 🙂

---

<div class="post-metadata">

**Author:** ![ariela](https://community.openhab.org/user_avatar/community.openhab.org/ariela/32/18303_2.png) [@ariela](https://community.openhab.org/u/ariela)\
**Post date:** [May 8, 2022, 9:31am UTC](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012/40 "2022-05-08T09:31:29Z")

</div>

ciao Gaël,

we are almost there 🙂 I’ve tried the fix in 3.3.0 M5, and it works at the beginning … after some time (few minutes or so) I see all the SafeExposure items still with a “NULL” value ☹

Adding the comment in GitHub

Andrea

[Previous page](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012.md?page=1)

[Next page](https://community.openhab.org/t/solved-new-warn-in-log-since-fresh-3-0-1/119012.md?page=3)
