Hello,
Looking to rework some code to work with the built-in HA device trackers as opposed to OwnTracks that the original project was written.
There is a link to the original JavaScript. I have located the section I need to change for getting the “traveling” piece to start working.
const stateVelo = state && state.attributes ? (
state.attributes.speed ? state.attributes.speed : (
state.attribute.moving ? 16 : 0
)) : 0;
It used to be state.attributes.velocity instead of speed. The part that seems to not work is the moving part of the equation. I don’t know enough about JavaScript to understand what is happening with all of the variables in this statement.
Is someone willing/able to help?
TIA,
Donnie