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

fix for #4 #5

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
174 changes: 88 additions & 86 deletions admin/build/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions admin/build/index.js.map

Large diffs are not rendered by default.

178 changes: 90 additions & 88 deletions admin/build/tab.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions admin/build/tab.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/lib/Helper.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions build/lib/object_definition.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/lib/object_definition.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/lib/replaceFunktion.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/types/TractiveDevice.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions src/lib/object_definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,42 @@ export const stateAttrb: StateAttr = {
read: true,
write: false,
},
prioritized_zone_entered_at: {
name: 'Prioritized zone entered at',
desc: 'Prioritized zone entered at',
type: 'number',
role: 'value',
def: null,
read: true,
write: false,
},
prioritized_zone_last_seen_at: {
name: 'Prioritized zone last seen at',
desc: 'Prioritized zone last seen at',
type: 'number',
role: 'value',
def: null,
read: true,
write: false,
},
prioritized_zone_type: {
name: 'Prioritized zone type',
desc: 'Prioritized zone type',
type: 'string',
role: 'value',
def: null,
read: true,
write: false,
},
prioritized_zone_id: {
name: 'Prioritized zone id',
desc: 'Prioritized zone id',
type: 'string',
role: 'value',
def: null,
read: true,
write: false,
},
hw_status: {
name: 'Hardware Status',
desc: 'Hardware Status of the device',
Expand Down
4 changes: 4 additions & 0 deletions src/types/TractiveDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ export interface Tracker {
charging_state: string;
battery_state: string;
power_saving_zone_id: string | null;
prioritized_zone_entered_at: number | null;
prioritized_zone_last_seen_at: number | null;
prioritized_zone_type: string,
prioritized_zone_id: string
}

export interface DeviceHwReport {
Expand Down