Announcement

Collapse
No announcement yet.

Flume Intelligent Water Sensor

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • rdc
    replied
    I got it finally. The trick was to make it a get. It wont work as a post

    Leave a comment:


  • rdc
    replied
    Trying to get device created for battery level. Here is json response my Big5 Http protocol and hs4 error. What did I do wrong


    "success":true
    "code":602
    "message":"Request OK"
    "http_code":200
    "http_message":"OK"
    "detailed":NULL
    "data":[
    0:{
    "id":"6689353939840905180"
    "type":2
    "location_id":24847
    "user_id":22804
    "bridge_id":"6691169106077616041"
    "oriented":true
    "last_seen":"2020-09-20T18:40:36.000Z"
    "connected":true
    "battery_level":"high"
    "product":"flume1"

    URL https://api.flumewater.com/users/22804/devices
    Extra headers content-type: application/json
    authorization: Bearer ${str1580}

    Device name expression JSON(input, "name")
    Device value JSON(input,"data[0].1.[0].battery_level")


    HS4 log
    Sep-20 4:44:56 PM Big5 [Big5 Plugin] [HTTP Flume Battery - POST https://api.flumewater.com/users/22804/devices IN]:
    Sep-20 4:44:56 PM Big5 [Big5 Plugin] [Raw message in]: {"success":false,"code":86,"message":"The route requested is not defined","http_code":404,"http_message":"Not Found","detailed":null,"data":[],"count":0,"pagination":null}
    Sep-20 4:44:56 PM Big5 [HttpConnection] [HTTP POST https://api.flumewater.com/users/22804/devices OUT]:

    Leave a comment:


  • mterry63
    replied
    Glad to hear you got it sorted.

    Leave a comment:


  • rdc
    replied
    I think I have it all working now thanks. I changed one of the Big5 profiles and got rid of the errors. I also cut out the refresh token

    Thank you Big 5 is tricky but very useful
    Attached Files

    Leave a comment:


  • mterry63
    replied
    "Event Engine" and "Program" are just the Floor and Room locations ins HS3. I don't use "Floor" or "Room", I have renamed them "Category" and "Group". I don't know what you use personally.

    Focus on getting the single device with hourly water consumption from Flume via Big5. Once you have that, you can do whatever you want with it.

    Leave a comment:


  • rdc
    replied
    I dont have anything in the drop down box that starts with "event engine program" I just have the virtual devices that you instructed me to make
    Attached Files

    Leave a comment:


  • rdc
    replied
    Do you have Big 5 debug log turned on ?

    Leave a comment:


  • mterry63
    replied
    Originally posted by rdc View Post
    {"queries":[{"request_id":"1","bucket":"HR","since_datetime":"${str15 72} ","until_datetime":"${str1573}"}]}


    I just cut and pasted this from your instructions but it does not work. Error is malformed Json
    What URL did you use for this query? The URL is critical to the body and response.

    15 72 shouldn't have a space, and you should be using the reference numbers to your created devices to store these date/time strings.

    It does look like in your debug above that you got a good authentication token. I have no idea why you get the errors. I don't get errors.

    Leave a comment:


  • mterry63
    replied
    Originally posted by rdc View Post
    Would you mind expanding this event so I can see how it is clicked in on Hs4 thanks
    I'm using Easy Trigger to add 2 device values together and storing in a device.

    Click image for larger version

Name:	Untitled.png
Views:	29
Size:	15.5 KB
ID:	1420494

    Leave a comment:


  • rdc
    replied
    Would you mind expanding this event so I can see how it is clicked in on Hs4 thanks
    Attached Files

    Leave a comment:


  • rdc
    replied
    {"queries":[{"request_id":"1","bucket":"HR","since_datetime":"${str15 72} ","until_datetime":"${str1573}"}]}


    I just cut and pasted this from your instructions but it does not work. Error is malformed Json

    Leave a comment:


  • rdc
    replied
    Isnt this ok and if so why all the red errors in Big 5 Ivan has told me in the past to ignore them. Is that true.
    Attached Files

    Leave a comment:


  • mterry63
    replied
    I'm not sure I understand what you're asking for. The events are posted above in full. All they are doing is creating daily and monthly totals by adding the hourly total. They are just adding two devices together.

    From the debug you posted, it doesn't appear you're getting the authentication token from flume. You can't possibly be getting valid data from them without an authentication token.


    Sent from my Pixel 2 using Tapatalk

    Leave a comment:


  • rdc
    replied
    Would you mind showing how you set the last 3 events. The line that says "set device event engine program" How is this done please

    Leave a comment:


  • mterry63
    replied
    Something is wrong with the request you sent to flume, you should get success:true. Flume returned request has malformed JSON, so check that JSON (between the curly braces) carefully. I can't see anything that jumps out. Did you set the Big5 header to send content-type: application/json?

    Leave a comment:

Working...
X