I got a JSON I want to take the values to some channels of an http-Thing.
Generally it works fine, but I got a lot of warnings, because the JSON changes depends on values.
So for example a block with detailed timer informations only there if timeractive is true.
Is there a way to let a channel only read the JSON if another one got successfull?
here an example of the things:
Type number : timer "Timer" [ mode="READONLY", stateExtension="&cmd=status", stateTransformation="JSONPATH:$.timer.status" ]
Type string : timer-date "Timer Date" [ mode="READONLY", stateExtension="&cmd=status", stateTransformation="JSONPATH:$.timer.next.date" ]
Type string : timer-time "Timer Time" [ mode="READONLY", stateExtension="&cmd=status", stateTransformation="JSONPATH:$.timer.next.time" ]
Type number : timer-unix "Timer Unix" [ mode="READONLY", stateExtension="&cmd=status", stateTransformation="JSONPATH:$.timer.next.unix" ]
So is there a way (syntax totally wrong, just as an example) like:
Type string : timer-date "Timer Date" [ mode="READONLY", dependsOn="timer==true", stateExtension="&cmd=status", stateTransformation="JSONPATH:$.timer.next.date" ]
Hope my crude explanation is understandable