Added some temporary debug lines to Z-Wave's Value.vue to investigate setValue issues

This commit is contained in:
Fabio Manganiello 2021-03-16 20:00:25 +01:00
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

View file

@ -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', {