Setting up Esp8266 PIR sensor in openhab2 with MQTT (im stumped)

No. In that example they do show you just the difference between a transformed item and a default item.

%s: use item value as string
%d: use item value as integer