Change switch with mouse has an effect, moving it per rest call not?

  • Platform information:
    • Hardware: INTEL Atom C2538, 16 GB Ram
    • OS: Synology DSM 6.2.4-25556 Update 2
    • Java Runtime Environment: openjdk version “14.0.2” 2020-07-14
    • openHAB version: 3.1.0
  • Issue of the topic:
    I have created a Switch that is realted to the Denon / Marrantz binding. When I move the switch per mouse on the OpenHab webinterface, the receiver is turned ON and OFF as it should be. When I use the call of the REST Api and trigger it over a REST Tool (Postman), the swtich moves, but the receiver (reproducable) doesn’t turn on.

What API endpoint are you calling? Do you get any lines in events.log saying the Item received a command?

try press F5…
Firefox?

I’m calling

http://myserver:8080/rest/items/DenonMarantzAVR_Power/state

When I do this over the webinterface, the log says:

When I do this over Postman, the log says:

The switch in the webinterface turns on in both cases…

Christoph

That just updates the internal state in openhab, and the binding doesn’t get any info on this. To send a command to the item (which gets sent to the binding) you need to send a POST request to http://myserver:8080/rest/items/DenonMarantzAVR_Power. This is what the web UI does.

That helped me - thank you very much!
Regards