Skip to content

Commit

Permalink
fix for #4
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrounger committed Oct 4, 2023
1 parent 6662ea8 commit ae310d2
Show file tree
Hide file tree
Showing 12 changed files with 268 additions and 188 deletions.
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

0 comments on commit ae310d2

Please sign in to comment.