Skip to content

Commit

Permalink
Aiways soc settings (openWB#611)
Browse files Browse the repository at this point in the history
* Aiways soc settings

* Update src/components/vehicles/aiways/vehicle.vue

---------

Co-authored-by: benderl <benderl@users.noreply.github.com>
  • Loading branch information
FriedrichF and benderl authored Jan 9, 2025
1 parent d4b7ce5 commit 7c6eff2
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions src/components/vehicles/aiways/vehicle.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<template>
<div class="vehicle-soc-aiways">
<openwb-base-alert subtype="info">
Alle Werte müssen von der Aiways App abgefangen werden. Dazu kann diese
<a href="https://community.home-assistant.io/t/read-aiways-u5-state-of-charge/466441/5"> Anleitung </a> verwendet
werden.
</openwb-base-alert>
<openwb-base-text-input
title="User ID"
required
:model-value="vehicle.configuration.user_id"
@update:model-value="updateConfiguration($event, 'configuration.user_id')"
>
</openwb-base-text-input>
<openwb-base-text-input
title="VIN"
required
:model-value="vehicle.configuration.vin"
@update:model-value="updateConfiguration($event, 'configuration.vin')"
>
</openwb-base-text-input>
<openwb-base-text-input
title="Device ID"
required
:model-value="vehicle.configuration.device_id"
@update:model-value="updateConfiguration($event, 'configuration.device_id')"
>
</openwb-base-text-input>
<openwb-base-text-input
title="Register ID"
required
:model-value="vehicle.configuration.register_id"
@update:model-value="updateConfiguration($event, 'configuration.register_id')"
>
</openwb-base-text-input>
<openwb-base-text-input
title="Token"
required
:model-value="vehicle.configuration.token"
@update:model-value="updateConfiguration($event, 'configuration.token')"
>
</openwb-base-text-input>
<openwb-base-text-input
title="Condition URL"
subtype="url"
required
:model-value="vehicle.configuration.condition_url"
@update:model-value="updateConfiguration($event, 'configuration.condition_url')"
>
</openwb-base-text-input>
</div>
</template>

<script>
import VehicleConfigMixin from "../VehicleConfigMixin.vue";
export default {
name: "VehicleSocAiways",
mixins: [VehicleConfigMixin],
};
</script>

0 comments on commit 7c6eff2

Please sign in to comment.