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

Aiways soc settings #611

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions src/components/vehicles/aiways/vehicle.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
<template>
<div class="vehicle-soc-aiways">
<openwb-base-alert subtype="info">
Alle Werte müssen von der Aiways App abgefangen werden. Dazu kann die Anleitung unter
<a href="https://community.home-assistant.io/t/read-aiways-u5-state-of-charge/466441/5">Link</a> verwendet werden.
FriedrichF marked this conversation as resolved.
Show resolved Hide resolved
</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>
Loading