Search code examples
openhab

What is the difference between postUpdate and sendCommand in openHAB


In a rules file in openHAB I can execute postUpdate and sendCommand. What is the difference?

I noticed, that when I use postUpdate(zwaveLamp1, ON), only its value is changed, no actions are performed - the light stays dark. sendCommand(zwaveLamp1, ON) will perform the bound action and switch the light on and the item is updated.

Whats the use case of postUpdate? What is it good for?


Solution

  • Yes, correct from my point of view. postUpdate works "internally" on the Item, sendCommand acts the 'command' towardsthe peripheral/interface. marco