forked from platypush/platypush
Added some temporary debug lines to Z-Wave's Value.vue to investigate setValue issues
This commit is contained in:
parent
f92d19a24e
commit
b9738d88df
9 changed files with 22 additions and 8 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
platypush/backend/http/webapp/dist/static/js/chunk-79deab7a.d6acdb7d.js
vendored
Normal file
2
platypush/backend/http/webapp/dist/static/js/chunk-79deab7a.d6acdb7d.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
platypush/backend/http/webapp/dist/static/js/chunk-79deab7a.d6acdb7d.js.map
vendored
Normal file
1
platypush/backend/http/webapp/dist/static/js/chunk-79deab7a.d6acdb7d.js.map
vendored
Normal file
File diff suppressed because one or more lines are too long
|
@ -195,12 +195,23 @@ export default {
|
|||
},
|
||||
|
||||
async onValueChange(event, data) {
|
||||
console.debug('DATA (1)')
|
||||
console.debug(data)
|
||||
|
||||
const target = event.target ? event.target : event.event.target.parentElement
|
||||
console.debug('TARGET')
|
||||
console.debug(target)
|
||||
|
||||
const value = this.node.values[this.value.id_on_network]
|
||||
console.debug('VALUE')
|
||||
console.debug(value)
|
||||
|
||||
if (data === undefined)
|
||||
data = target.value != null ? target.value : event.value
|
||||
|
||||
console.debug('DATA (2)')
|
||||
console.debug(data)
|
||||
|
||||
switch (value.type) {
|
||||
case 'List':
|
||||
data = value.data_items[event.target.value]
|
||||
|
@ -223,6 +234,9 @@ export default {
|
|||
break
|
||||
}
|
||||
|
||||
console.debug('DATA (3)')
|
||||
console.debug(data)
|
||||
|
||||
this.commandRunning = true
|
||||
try {
|
||||
this.request('zwave.set_value', {
|
||||
|
|
Loading…
Reference in a new issue