Advertisement
__Dave__

OpenHAB - Stromkosten-DEBUG

Feb 13th, 2020
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1. logInfo("Stromrechner","nLoad: " + nLoad)
  2. logInfo("Stromrechner","myItemTag.state: " + myItemTag.state)
  3. val newLoad = nLoad
  4. if (myItemTag.state instanceof Number) {
  5.     newLoad = newLoad + (myItemTag.state as Number)
  6. }
  7. logInfo("Stromrechner","newLoad : " + newLoad )
  8. myItemTag.postUpdate(newLoad)
  9. logInfo("Stromrechner","myItemTag.postUpdate done")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement