Is it possible to have the zwave battery appear as an entity. That way you wouldn’t need to template the attribute to get the reading. Also by calling zwave.refresh_entity you could call for an update to the battery reading (through COMMAND_CLASS_Battery) without doing a full node refresh which i presume would causes more radio traffic (thus power) then is necessary.