Giter VIP home page Giter VIP logo

autoamap's People

Contributors

dscao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

autoamap's Issues

怎么从device_tracker.gaodemap_car提取state状态显示在lovelace上面?

从隔壁hass过来的,请问下你是这么取到这个值放到hass的lovelace上面的啊

我试了很多办法 没能把device的state指去出发赋值一个id, 直接state_attr也不成功

image


gps_accuracy: 0
icon: 'mdi:car'
querytime: '2021-04-17 21:11:03'
macaddr: '40:45:EA:53:20:7F'
status: 静止
loginStatus: 1
naviStatus: 未导航
onlineStatus: 离线
lastofflinetime: 未知
lastonlinetime: 未知
laststoptime: '2021-04-17 17:51:08'
Parking_time: 3小时19分钟
friendly_name: car

Home Assistant 2021.12.7

`Logger: homeassistant.components.device_tracker
Source: custom_components/gaodemap/device_tracker.py:181
Integration: 设备跟踪器 (documentation, issues)
First occurred: 19:16:31 (1 occurrences)
Last logged: 19:16:31

Error setting up platform legacy gaodemap
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/device_tracker/legacy.py", line 251, in async_setup_legacy
setup = await self.platform.async_setup_scanner( # type: ignore[attr-defined]
File "/config/custom_components/gaodemap/device_tracker.py", line 91, in async_setup_scanner
await scanner.async_start(hass, interval)
File "/config/custom_components/gaodemap/device_tracker.py", line 130, in async_start
await self.async_update_info()
File "/config/custom_components/gaodemap/device_tracker.py", line 181, in async_update_info
if ret['data']['carLinkInfoList'][0]['onlineStatus'] == 1:
KeyError: 'carLinkInfoList'`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.