OH3 - state.toString?

see the following information for that.
easiest for ECMA is events.sendCommand("ITEMNAME", VALUE); or events.postUpdate("ITEMNAME", VALUE);
to read the value it’s just items["ITEMNAME"]

your line should read:

... 
 NotificationAction.sendBroadcastNotification("GW battery is " + items["GPSTrackerGW_BatteryLevel"] );  
...