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

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

Question: the items should be String?

As I see in my logs:

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

No, items should be be Quantity type:time

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

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

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

Andrea

1 Like

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

Andrea

@glhopital ciao :slight_smile:

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

No recently. Please check your configuration.

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

Here my previous working things file:

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

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

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 :frowning:

Any suggestion?

Andrea

@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:

/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:

{"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 side, or with the API token.

but if I use this configuration:

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

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

1 Like

thank you,

thanks again
Andrea

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

1 Like

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

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

1 Like

Pull request created.
https://github.com/openhab/openhab-addons/pull/12695

1 Like

thank you very much :slight_smile:

ciao Gaël,

we are almost there :slight_smile: 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 :frowning:

Adding the comment in GitHub

Andrea