Navigation

    • Register
    • Login
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Daniel Lindberg
    3. Topics
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Topics created by Daniel Lindberg

    • Daniel Lindberg

      Openhab - How to respond to Arduino request?
      Troubleshooting • • Daniel Lindberg  

      14
      0
      Votes
      14
      Posts
      5763
      Views

      Daniel Lindberg

      I did, but after a simulated "power outage" item.state would simply return 0, so my sensor would reset and start accumulating KWH from 0 again. I updated use rrd4j rather than my.openhab and used pulseCountItem.previousState(false, "rrd4j").state // get the most recent update, even if it is the same as the current state It's now working
    • Daniel Lindberg

      Openhab issue: Error during the execution of rule 'Arduino sends to Openhab': 5
      Troubleshooting • • Daniel Lindberg  

      4
      0
      Votes
      4
      Posts
      2568
      Views

      Daniel Lindberg

      I found late last night that the issue was the line var String msg = message.get(5) so by looking at your code I'm pretty confident that it will work. I haven't digged into the details, but it seems like the Pulse Meter request for last pulse count // Fetch last known pulse count value from gw gw.request(CHILD_ID, V_VAR1); doesn't carry any payload, so String[] message has a length of 5 rather than 6. So the error message "5" is some weird presentation of an IndexOutOfBoundsException
    • Daniel Lindberg

      Is this enough to get me started?
      My Project • • Daniel Lindberg  

      12
      0
      Votes
      12
      Posts
      3772
      Views

      Moshe Livne

      @Daniel-Lindberg go wire wrap! Its the future!