GithubHelp home page GithubHelp logo

jasper-seinhorst / homebridge-porsche-taycan Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 0.0 719 KB

Homebridge plugin for owners of a Porsche Taycan or Macan EV. See current charge state and Battery level in the Apple Home app

License: Apache License 2.0

TypeScript 100.00%
electric-vehicles homebridge homebridge-plugin homekit porsche taycan macan ev apple apple-home

homebridge-porsche-taycan's Introduction

๐Ÿ‘‹ Hello there! Welcome to my GitHub profile! I'm a seasoned JavaScript developer with a passion for crafting engaging user experiences.

About Me

๐Ÿš€ I have extensive experience working with Angular, Vue, and React

๐Ÿ”ง While my primary focus is on frontend development, I'm also proficient in Codigniter and Laravel (PHP), enabling me to deliver comprehensive solutions to my clients.

homebridge-porsche-taycan's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

homebridge-porsche-taycan's Issues

Error message "Porsche Connect connection failed" and plugin does not work until restart

Describe The Bug:

I randomly get the error message "Porsche Connect connection failed". When this happens, the plugin stops working until it gets restarted manually. I get this failure basically every single day so I have a daily cron job set to run in the middle of the night to try and kickstart this plugin.

To Reproduce:

Nothing special but I do also have the electric sidecar app running on my phone which probably hits the same API. There might be a rate limiting issue due to MyPorsche, Electric Sidecar, and this plugin all trying to use the same API (guessing at what the problem might be).

Expected behavior:

Would love to have a graceful recovery where this app tries to connect again after an appropriate timeout period (maybe 5-10 minutes).

Logs:

[20/11/2023, 04:00:36] Homebridge v1.7.0 (HAP v0.11.1) (Homebridge B4CB) is running on port 51889.
[20/11/2023, 04:00:38] [homebridge-porsche-taycan] Launched child bridge with PID 18661
[20/11/2023, 04:00:38] [Hubitat-v2] Launched child bridge with PID 18660
[20/11/2023, 04:00:39] Registering platform 'homebridge-hubitat-tonesto7.Hubitat-v2'
[20/11/2023, 04:00:39] [Hubitat-v2] Loaded homebridge-hubitat-tonesto7 v2.9.4 child bridge successfully
[20/11/2023, 04:00:39] Loaded 3 cached accessories from cachedAccessories.0E3AF68A4B39.
[20/11/2023, 04:00:39] Registering platform 'homebridge-porsche-taycan.PorscheTaycan'
[20/11/2023, 04:00:39] [homebridge-porsche-taycan] Loaded homebridge-porsche-taycan v0.14.0 child bridge successfully
[20/11/2023, 04:00:39] Loaded 3 cached accessories from cachedAccessories.0EE180F26898.
DEPRECATED user supplied a custom 'mdns' option. This option is deprecated and ignored. Please move to the new 'bind' option.
[20/11/2023, 04:00:39] [homebridge-porsche-taycan] Authentication
[20/11/2023, 04:00:39] [homebridge-porsche-taycan] Retrieving available vehicles
[20/11/2023, 04:00:40] Homebridge v1.7.0 (HAP v0.11.1) (homebridge-porsche-taycan) is running on port 57646.
[20/11/2023, 04:00:40] [Hubitat-v2] Homebridge Version: 2.7
[20/11/2023, 04:00:40] [Hubitat-v2] Plugin Version: 2.9.4
[20/11/2023, 04:00:40] [Hubitat-v2] Checking Package Version for Updates...
[20/11/2023, 04:00:40] [Hubitat-v2] Adaptive Lighting Supported... Assigning Adaptive Lighting Controller to [Office Lights]!!!
DEPRECATED user supplied a custom 'mdns' option. This option is deprecated and ignored. Please move to the new 'bind' option.
[20/11/2023, 04:00:41] [Hubitat-v2] Fetching Hubitat-v2 Devices. NOTICE: This may take a moment if you have a large number of devices being loaded!
[20/11/2023, 04:00:41] [Hubitat-v2] Refreshing All Device Data | Source: (First Launch)
[20/11/2023, 04:00:41] Homebridge v1.7.0 (HAP v0.11.1) (Hubitat-v2) is running on port 59026.
[20/11/2023, 04:00:41] [Hubitat-v2] Temperature Unit is Now: (F)
[20/11/2023, 04:00:41] [Hubitat-v2] Updating Global Values | HubIP: 192.168.68.155 | UsingCloud: false
[20/11/2023, 04:00:41] [Hubitat-v2] Devices to Remove: (0) 
[20/11/2023, 04:00:41] [Hubitat-v2] Devices to Update: (3)
[20/11/2023, 04:00:41] [Hubitat-v2] Devices to Create: (0) 
[20/11/2023, 04:00:41] [Hubitat-v2] Total Initialization Time: (1 seconds)
[20/11/2023, 04:00:41] [Hubitat-v2] Unknown Capabilities: []
[20/11/2023, 04:00:41] [Hubitat-v2] Hubitat DeviceCache Size: (3)
[20/11/2023, 04:00:41] [Hubitat-v2] WebServer Initiated...
[20/11/2023, 04:00:41] [Hubitat-v2] Sending StartDirect Request to Hubitat | UsingCloud: (false)
[20/11/2023, 04:00:41] [Hubitat-v2] Direct Connect Active | Listening at 192.168.68.141:8000
[20/11/2023, 04:00:42] [homebridge-porsche-taycan] Porsche Connect connection failed
[20/11/2023, 04:00:42] [Hubitat-v2] Hubitat-v2 Hub Communication Established
[20/11/2023, 04:00:44] [Hubitat-v2] INFO: Your plugin version is up-to-date
[20/11/2023, 04:00:44] [Hubitat-v2] Sending Plugin Status to Hubitat | UpdateAvailable: false | newVersion: 2.9.4
[20/11/2023, 05:00:41] [Hubitat-v2] Refreshing All Device Data
[20/11/2023, 05:00:41] [Hubitat-v2] Temperature Unit is Now: (F)
[20/11/2023, 05:00:41] [Hubitat-v2] Updating Global Values | HubIP: 192.168.68.155 | UsingCloud: false
[20/11/2023, 05:00:41] [Hubitat-v2] Devices to Remove: (0) 
[20/11/2023, 05:00:41] [Hubitat-v2] Devices to Update: (3)
[20/11/2023, 05:00:41] [Hubitat-v2] Devices to Create: (0) 
[20/11/2023, 05:00:41] [Hubitat-v2] Total Initialization Time: (0 seconds)
[20/11/2023, 05:00:41] [Hubitat-v2] Unknown Capabilities: []
[20/11/2023, 05:00:41] [Hubitat-v2] Hubitat DeviceCache Size: (3)
[20/11/2023, 05:00:41] [Hubitat-v2] Checking Package Version for Updates...
[20/11/2023, 05:00:44] [Hubitat-v2] INFO: Your plugin version is up-to-date
[20/11/2023, 05:00:44] [Hubitat-v2] Sending Plugin Status to Hubitat | UpdateAvailable: false | newVersion: 2.9.4
[20/11/2023, 06:00:41] [Hubitat-v2] Refreshing All Device Data
[20/11/2023, 06:00:41] [Hubitat-v2] Temperature Unit is Now: (F)
[20/11/2023, 06:00:41] [Hubitat-v2] Updating Global Values | HubIP: 192.168.68.155 | UsingCloud: false
[20/11/2023, 06:00:41] [Hubitat-v2] Devices to Remove: (0) 
[20/11/2023, 06:00:41] [Hubitat-v2] Devices to Update: (3)
[20/11/2023, 06:00:41] [Hubitat-v2] Devices to Create: (0) 
[20/11/2023, 06:00:41] [Hubitat-v2] Total Initialization Time: (0 seconds)
[20/11/2023, 06:00:41] [Hubitat-v2] Unknown Capabilities: []
[20/11/2023, 06:00:41] [Hubitat-v2] Hubitat DeviceCache Size: (3)
[20/11/2023, 06:00:41] [Hubitat-v2] Checking Package Version for Updates...
[20/11/2023, 06:00:45] [Hubitat-v2] INFO: Your plugin version is up-to-date
[20/11/2023, 06:00:45] [Hubitat-v2] Sending Plugin Status to Hubitat | UpdateAvailable: false | newVersion: 2.9.4

Plugin Config:

{
    "mdns": {
        "interface": "XXXXXXXXXXXX"
    },
    "bridge": {
        "name": "XXXXXXXXXXXX",
        "username": "XXXXXXXXXXXX",
        "port": 51889,
        "pin": "XXXXXXXXXXXX"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Hubitat-v2",
            "app_url_local": "XXXXXXXXXXXX",
            "app_url_cloud": "XXXXXXXXXXXX",
            "use_cloud": false,
            "app_id": 1213,
            "access_token": "XXXXXXXXXXXX",
            "direct_port": 8000,
            "polling_seconds": 3600,
            "temperature_unit": "F",
            "round_levels": true,
            "adaptive_lighting": true,
            "adaptive_lighting_offset": 0,
            "consider_fan_by_name": true,
            "consider_light_by_name": true,
            "validateTokenId": false,
            "logConfig": {
                "debug": false,
                "showChanges": true
            },
            "platform": "Hubitat-v2",
            "_bridge": {
                "username": "XXXXXXXXXXXX",
                "port": 59026
            }
        },
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "f",
            "lang": "auto",
            "platform": "config"
        },
        {
            "username": "XXXXXXXXXXXX",
            "password": "XXXXXXXXXXXX",
            "pollInterval": 15,
            "chargerDevice": "contact",
            "batteryDevice": true,
            "lowBattery": 30,
            "platform": "PorscheTaycan",
            "_bridge": {
                "username": "XXXXXXXXXXXX",
                "port": 57646
            }
        }
    ]
}

Screenshots:

Environment:

  • Plugin Version: homebridge-hubitat-tonesto7 v2.9.4
  • Homebridge Version: v1.7.0
  • Node.js Version: v18.17.1
  • NPM Version: 9.6.7
  • Operating System: Raspbian

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.