My plex rule to update my hue based on the progess being updates has broken - I’m getting loads of errors like this:
java.lang.ClassCastException: null
2016-02-26 22:02:40.873 [ERROR] [e.x.l.lazy.LazyLinkingResource] - resolution of uriFragment ‘xtextLink_::0.2.0.2.0.0.2.1.7::0::/1’ failed.
java.lang.ClassCastException: null
2016-02-26 22:02:40.879 [ERROR] [e.x.l.lazy.LazyLinkingResource] - resolution of uriFragment ‘xtextLink_::0.2.0.2.0.0.2.1.7::0::/1’ failed.
java.lang.ClassCastException: null
2016-02-26 22:02:40.884 [ERROR] [e.x.l.lazy.LazyLinkingResource] - resolution of uriFragment ‘xtextLink_::0.2.0.2.0.0.2.1.7::0::/1’ failed.
java.lang.ClassCastException: null
2016-02-26 22:02:40.890 [ERROR] [e.x.l.lazy.LazyLinkingResource] - resolution of uriFragment ‘xtextLink_::0.2.0.2.0.0.2.1.7::0::/1’ failed.
java.lang.ClassCastException: null
2016-02-26 22:02:40.895 [ERROR] [e.x.l.lazy.LazyLinkingResource] - resolution of uriFragment ‘xtextLink_::0.2.0.2.0.0.2.1.7::0::/1’ failed.
java.lang.ClassCastException: null
2016-02-26 22:02:40.901 [ERROR] [e.x.l.lazy.LazyLinkingResource] - resolution of uriFragment ‘xtextLink_::0.2.0.2.0.0.2.1.7::0::/1’ failed.
java.lang.ClassCastException: null
2016-02-26 22:02:40.901 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule ‘PlexLightsRule’: The name ‘PlexLoungeRokuProgress’ cannot be resolved to an item or type.
PlexLightsRule looks like this
rule "PlexLightsRule"
when
Item PlexLoungeRokuProgress received update
then
// logInfo("Updating hue")
var amount = (PlexLoungeRokuProgress.state as DecimalType )
var DecimalType hue = new DecimalType(120D-(amount * 1.2D))// 0-360; 0=red, 120=green, 240=blue, 360=red(again)
var PercentType sat = new PercentType(100) // 0-100
var PercentType bright = new PercentType(100) // 0-100
var HSBType light = new HSBType(hue,sat,bright)
sendCommand(Lounge_Light_Hue_Color, light)
end
and the item PlexLoungeRokuProgress looks like this:
Dimmer PlexLoungeRokuProgress “Progress [%.1f%%]” {plex=“Plex4224D4001173#playback/progress”}
All of this worked really recently so I suspect there might be an issues with the latest plex binding 1.8.1. Has anyone else encountered this?