1.3.0 and 400:Bad Request
I have this set up now on a pi3 with promini gateway and nrf24l01+.
I have a node with 4 relays (and 4 local switches) that connects to the gw and then onto myc. So far so good.....
But whenever I click the button to turn on or off a relay I always get the 400: Bad Request error pop-up (followed with ack data). I do not know how to solve this...
Any ideas ????
Range wasn't the issue as the relays still operated, just kept getting that damn pop-up message!
I have disabled ack in the gateway and node, no more pop-ups. But now I don't know for sure the status of the relays and so back to the old problem of 'is it off or is it on?'
As an aside, I have tracked some issues down to bad dupont cables from china - now soldering wires directly instead on new modules once the node works as intended....
Anything you can suggest to get ack working without errors?
@skywatch It is strange, that
without ackit works for you and
with ackis not working
can you post your gateway setting edit page? I want to see values for,
Failed retry count
Ack wait time(Milliseconds)
Ack enabled - Ticked Failed retry count - 7 Ack wait time(Milliseconds) - tried 2000 and 3500
Thanks for the help
@skywatch All the values look better.
Ack wait time(Milliseconds)value 2000 is big enough.
Till now I didn't get any clue.
Can you enable
DEBUGfor the followings and send the
<logger level="DEBUG" name="org.mycontroller.standalone.provider" /> <logger level="DEBUG" name="org.mycontroller.standalone.provider.mysensors" /> <logger level="DEBUG" name="org.mycontroller.standalone.gateway" /> <logger level="DEBUG" name="org.mycontroller.standalone.gateway.ethernet" /> <logger level="DEBUG" name="org.mycontroller.standalone.gateway.mqtt" /> <logger level="DEBUG" name="org.mycontroller.standalone.gateway.serial" />
Give me a few days as its the World Cup and amazingly England are still hanging in there
@skywatch Sure, enjoy! have a fun time
@jkandasa I am sorry I didn't get back to this sooner, but as you know I have other issues taking my time.
So today I still get
I will add the debug and see what happens...But what is the message actually telling me? It seems that the message was sent OK and ack received, no?
@skywatch Message says, received acknowledgment
For this message should not throw 400 I hope we have some issue in the code. For good message, it says as bad.
I hope we have some issue in the code. For good message, it says as bad.
That's what I thought. I am now using latest 1.4.0 snapshot FYI.
Trouble is that sometimes when this happens it resends the command. My amplifier only has one button that toggles the power on and off, no descrete commands. The result is the amp turns on and off and on and off and on and off (You get the idea and how annoying it is).
@skywatch can you send gateway raw message on this particular period(error occurred)?
@jkandasa I will try and replicate this tonight/tomorrow and send you the log.
@jkandasa Sorry, I completely forgot about this after the system crashed.
I will look into it again and send you the log......
Sorry for the dumb question - but I can't think how to get the raw gateway message you want - Can you please give me a hint?
@skywatch np, this one help you, https://github.com/mycontroller-org/mycontroller/issues/473