t>
  <script>
    function readerMarker(entityId, zoom = 20, isClick = false) {
      ha.readerMarker(({ hass }) => {
        const state = hass.states[entityId]
        const { latitude, longitude } = state.attributes
        if (latitude && longitude) {
          try {
            const { icon, radius, entity_picture, friendly_name, map } = state.attributes
            // 坐标转换
            const [lng, lat] = ha.transform([longitude, latitude], map === 'gaode' ? gcoord.GCJ02 : gcoord.WGS84, gcoord.B