diff --git a/bundles/org.openhab.transform.vat/README.md b/bundles/org.openhab.transform.vat/README.md index a39046905d3..00ac4c7899a 100644 --- a/bundles/org.openhab.transform.vat/README.md +++ b/bundles/org.openhab.transform.vat/README.md @@ -15,11 +15,28 @@ Number CurrentSpotPrice "Current Spot Price incl. VAT [VAT(12.5):%s]" Add Danish VAT to price: -```java +:::: tabs + +::: tab DSL + +```javascript var Number price = 499 logInfo("Price", "Price incl. VAT: " + transform("VAT", "DK", price.toString)) ``` +::: + +::: tab JavaScript + +```javascript +var price = 499; +console.log("Price incl. VAT: " + actions.Transformation.transform("VAT", "DK", price.toString())); +``` + +::: + +:::: + ## Usage as a Profile The functionality of this `TransformationService` can also be used in a `Profile` on an `ItemChannelLink`.