Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checking Teslamate config fails, but in general working #17699

Open
1 task done
souhl opened this issue Dec 12, 2024 · 2 comments
Open
1 task done

Checking Teslamate config fails, but in general working #17699

souhl opened this issue Dec 12, 2024 · 2 comments
Labels
bug Something isn't working vehicles Specific vehicle support

Comments

@souhl
Copy link

souhl commented Dec 12, 2024

Describe the bug

When checking the teslamate config in the UI I get a "failed" and the following error:
chargeStatus: strconv.ParseBool: parsing "16": invalid syntax
Beside that everything seems to work fine.

Steps to reproduce

  1. Configure Teslamate
  2. Configure Teslamate in EVCC UI
  3. Store settings
Screenshot 2024-12-12 at 16 04 07

...

Configuration details

#uri: 0.0.0.0:7070 # uri for ui
interval: 30s # control cycle interval

# sponsor token enables optional features (request at https://cloud.evcc.io)
sponsortoken: xxxx

# log settings
log: info
levels:
  site: info
  lp-1: info
  lp-2: info
  cache: info
  db: error
  mqtt: info
  proxy: info
  #tronity: debug
  opel: info
  tesla: info


# meter definitions
# name can be freely chosen and is used as reference when assigning meters to site and loadpoints
# for examples see https://github.com/evcc-io/config#meters
meters:
#- name: grid1
#  type: template
#  template: solaredge-hybrid
#  usage: grid
  
#  modbus: tcpip
#  id: 1
#  host: 192.168.178.108 # Hostname
# port: 1502 # Port
#  timeout: 10s # optional
#  watchdog: 60s # optional
  
#- name: pv-dach
#  type: template
#  template: solaredge-hybrid
#  usage: pv
#  modbus: tcpip
#  id: 1
#  host: 192.168.178.108 # Hostname
#  port: 1502 # Port
#  timeout: 10s # optional
 
  
#- name: byd
#  type: template
#  template: solaredge-hybrid
#  usage: battery
#  modbus: tcpip
#  id: 1
#  host: 192.168.178.108 # Hostname
#  port: 1502 # Port
#  timeout: 10s # optional
  
#- name: baumhaus_pv
#  type: template
#  template: shelly-1pm
#  usage: pv
#  host: 192.168.178.122 #IP-Adresse oder Hostname
 


# charger definitions
# name can be freely chosen and is used as reference when assigning charger to vehicle
# for examples see https://github.com/evcc-io/config#chargers
chargers:
- name: easee-garage
  type: template
  template: easee
  user: xxxx
  password: xxxx
  charger: EH637942
  authorize: true
#timeout: 10

- name: easee-stellplatz
  type: template
  template: easee
  user: xxxx
  password: xxxx
  authorize: true
#timeout: 10

# vehicle definitions
# name can be freely chosen and is used as reference when assigning vehicle to loadpoint
# for examples see https://github.com/evcc-io/config#vehicles
vehicles:
#- name: Speedy
#  type: template
#  template: flobz
#  title: Speedy # Wird in der Benutzeroberflaeche angezeigt (Optional)
#  url: http://192.168.178.117:5000
#  capacity: 50 # kWh
#  vin: xxxx
#  priority: 1
#  remotestart: true

#- name: Rodney
#  type: template
#  template: tesla-command
#  title: Rodney # Wird in der Benutzeroberfläche angezeigt (optional)
#  accessToken: xxxx
#  refreshToken: xxxx # Siehe https://docs.evcc.io/docs/devices/vehicles#tesla-command
#  #vin: xxxx # Erforderlich, wenn mehrere Fahrzeuge des Herstellers vorhanden sind (optional)
#  capacity: 75 # Akkukapazität in kWh (optional) 
#- name: Rodney
#  title: Rodney
#  type: template
#  template: teslamate
#  priority: 2

# site describes the EVU connection, PV and home battery
site:
  title: Steinröselweg # display name for UI
  meters:
    grid: #grid1 #my_grid # grid meter
    pv:  # pv meter
    #- pv-dach
    #- baumhaus_pv
    battery:  # battery meter
    #- byd
  residualPower: 200 #:  #100W aus dem Stromnetz zulassen

# loadpoint describes the charger, charge meter and connected vehicle
loadpoints:
- title: Stellplatz # display name for UI
  priority: 1
  charger: easee-stellplatz # charger
  mode: pv
  soc:
    poll:
      mode: charging
      interval: 20m
    estimate: true # set true to interpolate between api updates

- title: Garage # display name for UI
  priority: 2
  charger: easee-garage # charger
  #vehicle: Speedy
  mode: pv
  soc:
    poll:
      mode: charging
      interval: 20m
    estimate: true # set true to interpolate between api updates

# tariffs are the fixed or variable tariffs
# cheap can be used to define a tariff rate considered cheap enough for charging
#tariffs:
#  currency: EUR
#  grid:
#    type: tibber
#    token: "xxx" # access token
# feedin:
#    type: fixed
#    price: 0.08

# mqtt message broker
mqtt:
  broker: 192.168.178.117:1883
  topic: evcc # root topic for publishing, set empty to disable
  user: mqtt
  password: knuspel0815!

# push messages
##messaging:
##  events:
#    start: # charge start event
#      title: Laden gestartet
#      msg: Wallbox ${title} laden gestartet in ${mode} Modus
#    stop: # charge stop event
#      title: Laden fertig
#      msg: Wallbox ${title} fertig geladen mit ${chargedEnergy:%.1fk}kWh in ${chargeDuration}
##    connect: # vehicle connect event
##      title: Verbunden
##      msg: Verbunden an Wallbox ${title} mit ${pvPower:%.1fk}kW PV
##    guest: # vehicle could not be identified
##      title: Unbekanntes Fahrzeug
##      msg: Unbekanntes Fahrzeug, wer könnte das sein?
      
##  services:
##  - type: pushover
##    app: atzhcyenqj9j82kgqwav4467vqgy5z # app id
##    recipients:
##    - uj76bopjywmtbuvgjo2wrmzoqqob3g # list of recipient ids
##    devices:
##    - iphone-sascha

#modbusproxy:
#   - port: 5200
#     uri: 192.168.178.108:1502

Log details

[site  ] ERROR 2024/12/11 04:02:51 grid powers: model 203 block 0 point WphC: read tcp 192.168.178.117:38514->192.168.178.117:502: i/o timeout
[site  ] ERROR 2024/12/11 04:03:01 grid currents: model 203 block 0 point AphA: read tcp 192.168.178.117:34100->192.168.178.117:502: i/o timeout
[lp-2  ] INFO 2024/12/11 13:22:56 car connected
[lp-2  ] INFO 2024/12/11 13:22:56 start charging ->
[main  ] ERROR 2024/12/11 13:22:56 vehicle status: strconv.ParseBool: parsing "16": invalid syntax
[lp-2  ] WARN 2024/12/11 13:22:56 charger logic error: disabled but charging
[lp-2  ] INFO 2024/12/11 13:23:56 stop charging <-
[main  ] ERROR 2024/12/11 13:23:56 vehicle status: strconv.ParseBool: parsing "16": invalid syntax
[main  ] ERROR 2024/12/11 13:24:56 vehicle status: strconv.ParseBool: parsing "16": invalid syntax
[lp-2  ] INFO 2024/12/11 13:24:56 vehicle updated: unknown -> Speedy
[lp-2  ] INFO 2024/12/11 14:25:56 car disconnected
[lp-2  ] INFO 2024/12/11 14:25:56 vehicle updated: Speedy -> unknown
[site  ] ERROR 2024/12/11 18:03:15 pv 1 power: add[0]: model 103 block 0 point DCW: read tcp 192.168.178.117:42244->192.168.178.117:502: i/o timeout
[site  ] ERROR 2024/12/11 18:03:48 grid power: model 203 block 0 point W: read tcp 192.168.178.117:40288->192.168.178.117:502: i/o timeout
[lp-2  ] INFO 2024/12/11 23:04:56 car connected
[lp-2  ] INFO 2024/12/11 23:04:56 start charging ->
[main  ] ERROR 2024/12/11 23:04:56 vehicle status: strconv.ParseBool: parsing "16": invalid syntax
[lp-2  ] INFO 2024/12/11 23:04:56 vehicle updated: unknown -> Speedy
[lp-2  ] WARN 2024/12/11 23:04:56 charger logic error: disabled but charging
[lp-2  ] INFO 2024/12/11 23:05:56 stop charging <-
[lp-2  ] INFO 2024/12/11 23:08:56 start charging ->
[site  ] ERROR 2024/12/11 23:22:01 telemetry: upload failed: Post "https://api.evcc.io/v1/charge": context deadline exceeded
[site  ] ERROR 2024/12/12 00:05:31 telemetry: upload failed: Post "https://api.evcc.io/v1/charge": context deadline exceeded
[site  ] ERROR 2024/12/12 00:44:31 telemetry: upload failed: Post "https://api.evcc.io/v1/charge": context deadline exceeded
[site  ] ERROR 2024/12/12 00:48:01 telemetry: upload failed: Post "https://api.evcc.io/v1/charge": context deadline exceeded
[lp-2  ] INFO 2024/12/12 03:01:56 stop charging <-
[site  ] ERROR 2024/12/12 04:04:15 pv 1 power: add[0]: model 103 block 0 point DCW: read tcp 192.168.178.117:55684->192.168.178.117:502: i/o timeout
[site  ] ERROR 2024/12/12 04:04:47 grid power: model 203 block 0 point W: read tcp 192.168.178.117:41162->192.168.178.117:502: i/o timeout
[lp-2  ] INFO 2024/12/12 07:05:56 car disconnected
[lp-2  ] INFO 2024/12/12 07:05:56 vehicle updated: Speedy -> unknown
[main  ] INFO 2024/12/12 13:59:55 new version available: 0.131.9
Using config file: /config/evcc.yaml
starting evcc: 'EVCC_DATABASE_DSN=/data/evcc.db evcc --config /config/evcc.yaml'
[main  ] INFO 2024/12/12 14:15:18 evcc 0.131.9
[main  ] INFO 2024/12/12 14:15:18 using config file: /config/evcc.yaml
[mqtt  ] INFO 2024/12/12 14:15:18 connecting evcc-1616694001 at tcp://192.168.178.117:1883
[main  ] INFO 2024/12/12 14:15:18 listening at :7070
[site  ] INFO 2024/12/12 14:15:22 site config:
[site  ] INFO 2024/12/12 14:15:22   meters:      grid ✓ pv ✓ battery ✓
[site  ] INFO 2024/12/12 14:15:22     grid:      power ✓ energy ✓ currents ✓
[site  ] INFO 2024/12/12 14:15:22     pv 1:      power ✓ energy ✗ currents ✗
[site  ] INFO 2024/12/12 14:15:22     battery 1: power ✓ energy ✗ currents ✗ soc ✓ capacity ✓
[site  ] INFO 2024/12/12 14:15:22   vehicles:
[site  ] INFO 2024/12/12 14:15:22     vehicle 1: range ✓ finish ✗ status ✓ climate ✗ wakeup ✗
[site  ] INFO 2024/12/12 14:15:22     vehicle 2: range ✓ finish ✗ status ✓ climate ✓ wakeup ✓
[lp-1  ] INFO 2024/12/12 14:15:22 loadpoint 1:
[lp-1  ] INFO 2024/12/12 14:15:22   mode:        pv
[lp-1  ] INFO 2024/12/12 14:15:22   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-1  ] INFO 2024/12/12 14:15:22   meters:      charge ✓
[lp-1  ] INFO 2024/12/12 14:15:22     charge:    power ✓ energy ✓ currents ✓
[lp-2  ] INFO 2024/12/12 14:15:22 loadpoint 2:
[lp-2  ] INFO 2024/12/12 14:15:22   mode:        pv
[lp-2  ] INFO 2024/12/12 14:15:22   charger:     power ✓ energy ✓ currents ✓ phases ✓ wakeup ✗
[lp-2  ] INFO 2024/12/12 14:15:22   meters:      charge ✓
[lp-2  ] INFO 2024/12/12 14:15:22     charge:    power ✓ energy ✓ currents ✓
[lp-1  ] INFO 2024/12/12 14:15:22 car disconnected
[lp-2  ] INFO 2024/12/12 14:15:53 car disconnected

What type of operating system are you running?

HomeAssistant Add-on

Nightly build

  • I have verified that the issue is reproducible with the latest nightly build

Version

0.131.9

@souhl
Copy link
Author

souhl commented Dec 12, 2024

Teslamate version is 1.32.0

@andig
Copy link
Member

andig commented Dec 12, 2024

/cc @Hofyyy 16 klingt nicht sehr boolish :O

@andig andig added the vehicles Specific vehicle support label Dec 12, 2024
@andig andig closed this as completed Dec 13, 2024
@andig andig reopened this Dec 13, 2024
@andig andig added the bug Something isn't working label Dec 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vehicles Specific vehicle support
Projects
None yet
Development

No branches or pull requests

2 participants