Requesting the battery level of a remote node using the gateway's serial API
-
I can't seem to find any way to request the battery level of a remote node from the controller using the serial API. The I_BATTERY_LEVEL internal message seems to be ignored by the remote node, so it looks like it's a one-way message (node to gateway).
The remote node does seem to publish its battery level every couple of minutes. I just can't request it from the controller at will. I'm using the MockMySensors sketch while testing, if it helps.
Is there a way to get the battery level of a remote node from the controller? If not, should I file a bug to put this into the todo? It looks like this shouldn't require any API change to implement.
-
Request of I_BATTERY_LEVEL is currently not supported (none of the internal commands is passed to the sketch receive-function).
But you could do a little hack by implementing
receive() {}
and callsendBatteryLevel (...)
when you receive a command of your choice.
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
PJON and Minicore not working
Development • 21 Mar 2025, 19:51 • Trand 21 Mar 2025, 19:51 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Home Assistant/MySensors quirks
Development • 17 Mar 2025, 02:35 • OldSurferDude 17 Mar 2025, 02:35