Did the udp command for the energy monitor just change?

LightwaveRF Communi… > Forum > LightwaveRF Hackers > Did the udp command…

LightwaveRF Community: Welcome Forums LightwaveRF Hackers Did the udp command for the energy monitor just change?

This topic contains 19 replies, has 6 voices, and was last updated by  rhlangdon 3 years ago.

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #20832
     pauly says:

    pauly
    Participant

    I’ve not been able to get any energy readings today, though I can see the reading on the display of my wifi link.

    I always send

    666,@?

    and now I’m receiving

    666,?W=0,0,0,0;

    I thought it coincided with the power going off and the box being reset, but no, it happened at 18 minutes past two yesterday (Friday).

    Anyone any ideas?

    Super annoying as I just got a heater for my home brew and wanted to see what it had done to my usage! Details here http://www.clarkeology.com/m/23788/Aquarium+heater+is+in – I was looking at my energy graph thinking “oh good, it’s not going up, energy must be minimal”, not spotting the graph hadn’t moved all day…

    My firmware version is U2.91Z

    12 rooms automated, time to stop now... API + more at https://github.com/pauly/lightwaverf
    #20833
     Antyronnen says:

    Antyronnen
    Participant

    My firmware is U2.91Z now but last time I looked, a few days ago admittedly, it was U2.91Y. Don’t know when it changed but could that be the reason?

    #20834
     skiv71 says:

    skiv71
    Participant

    No need to poll it anymore, its broadcast automatically now. Just listen :)

    developer of BMS Link (http://linode.bmslink.co.uk). A cloud based Home Automation platform for LightwaveRF, Z-Wave, RFXCOM.
    #20835
     pauly says:

    pauly
    Participant

    Thanks, that’s probably been the case for a long time though. I am listening too and that’s what now fails, since 2pm Friday… did the port that we listen on change? I’m listening on 9761 but can’t bind to that.
    Hmm now I say it like that it sounds like an issue at my end.

    12 rooms automated, time to stop now... API + more at https://github.com/pauly/lightwaverf
    #20837
     skiv71 says:

    skiv71
    Participant

    Yea, it’s been like this since the new heating came into play.

    I think you need at least 1 device registered using the new F*p string before it broadcasts.

    On another note, it appears they’ve just altered the code in f/w for this, as my wfl is now sending duplicated data (which i’ve now filtered), but some data is absent.

    developer of BMS Link (http://linode.bmslink.co.uk). A cloud based Home Automation platform for LightwaveRF, Z-Wave, RFXCOM.
    #20851
     Grunthos says:

    Grunthos
    Participant

    I got hit with this over the last few days too,
    I’d just got a pi zero sorted out logging all this data and providing some graphs on a webserver.
    Previously this was being performed by an always on desktop which was ironically the biggest drain!

    It all looked fine for a couple of days and then went to 0,0,0

    I had to rejig it all to use the new(ish) broadcast data method.

    Looks like the latest release has deliberately buggered the old mechanism to allow for multiple meters per location.

    N.B. the wonderful “lightwaver” android app that normally replaces the official app on my phone also reports 0 at the moment.

    #20852
     Grunthos says:

    Grunthos
    Participant

    As an additional confusion, although the broadcast energy use data for my wifilink is giving me current wattage and todays watthours tototal quite happily, it insists that yesterdays total is still 0 (yesUse)

    Is anyone else seeing this?

    the wifilink is the newer JSJSLW930 box

    #20853
     Grunthos says:

    Grunthos
    Participant

    FYI example of broadcast message:
    {“trans”:27040,”mac”:”XX:XX:XX”,”time”:1452525687,”prod”:”pwrMtr”,”serial”:”123456″,”router”:”030500″,”type”:”energy”,”cUse”:315,”todUse”:6650,”yesUse”:0}

    #20855
     skiv71 says:

    skiv71
    Participant

    I think there’s been a recent update to the energy code in firmware.

    That router key is new and I’m seeing duplicate data now.

    Also, my maxUse was 0 last time I checked.

    developer of BMS Link (http://linode.bmslink.co.uk). A cloud based Home Automation platform for LightwaveRF, Z-Wave, RFXCOM.
    #20856
     pauly says:

    pauly
    Participant

    What’s the new method? Can anyone provide a link to any examples please?

    12 rooms automated, time to stop now... API + more at https://github.com/pauly/lightwaverf
    #20857
     skiv71 says:

    skiv71
    Participant

    There’s no method as such, just listen for messages as before, except this data comes as a json string.

    developer of BMS Link (http://linode.bmslink.co.uk). A cloud based Home Automation platform for LightwaveRF, Z-Wave, RFXCOM.
    #20858
     pauly says:

    pauly
    Participant

    ok I get it now, it’s because I’m sending a request at all that it’s responding with 666,?W=0,0,0,0… if I don’t send and only listen then I get the json string. Thanks everyone.

    I get

    {
    "trans":17903,
    "mac":"03:0F:DA",
    "time":1452531946,
    "prod":"pwrMtr",
    "serial":"9EB3FE",
    "router":"4F0500",
    "type":"energy",
    "cUse":1163,
    "todUse":4680,
    "yesUse":0
    }

    I suppose this is very old news, we’re missing a peak usage value from there aren’t we? Don’t think I found a way of using it anyway… is there anything else useful in there? Can you hack my system from the data I’ve posted there?

    What does “trans” do?

    12 rooms automated, time to stop now... API + more at https://github.com/pauly/lightwaverf
    #20859
     skiv71 says:

    skiv71
    Participant

    trans is the incremental transmit number, useful for seeing if you’re missing any incoming messages.

    there’s used to be maxUse up and till a recent update.

    the router key is new.

    i suppose its not the best idea to post your wifilink’s mac address, depends on how their web service operates etc.

    developer of BMS Link (http://linode.bmslink.co.uk). A cloud based Home Automation platform for LightwaveRF, Z-Wave, RFXCOM.
    #20863
     Grunthos says:

    Grunthos
    Participant

    Pauly,
    Thanks for posting your example string. You too are getting yesUse = 0, it’s not just me!

    Looks like the latest release has mucked it up.

    Time to raise a ticket!

    Wouldn’t it be nice if lightwaverf issued release notes like every other company on the planet?

    #20878
     pauly says:

    pauly
    Participant

    good work on getting a pi zero btw @Grunthos – I got one too by buying the magazine

    12 rooms automated, time to stop now... API + more at https://github.com/pauly/lightwaverf
Viewing 15 posts - 1 through 15 (of 20 total)

You must be logged in to reply to this topic.