Looking to rework some code to work with the built-in HA device trackers as opposed to OwnTracks that the original project was written.
const stateVelo = state && state.attributes ? ( state.attributes.speed ? state.attributes.speed : ( state.attribute.moving ? 16 : 0 )) : 0;
Is someone willing/able to help?