problems with ${device.*} script variable constructs
rwschul opened this issue · 0 comments
Hi,
I have been using ha-bridge for several years now to control about 50 wiz lights and some insteon devices. It works great. Very happy with the results up to now.
Today I tried expanding a couple of scripts to use some of the ${device...} constructs explained in the README. All of them work as expected except device.mapType, device.deviceType, device.targetDevice, device.requestorAddress, and device.comments which fail with this cryptic error no matter what level of logging I have on...
02-20-2024 15:30:13.448 DEBUG matchedPart: :userid = c72696ff66374cbcbfb6443fe91f7b8e spark.Request
02-20-2024 15:30:13.448 DEBUG matchedPart: :id = 1051 spark.Request
02-20-2024 15:30:13.450 ERROR spark.http.matching.GeneralError
I am using a simple bash script called via the On Target Item as...
/opt/HA_BRIDGE/scripts/wiz_test_ctl ${device.requestorAddress}
The script itself is very simple just to see the values returned by and command line args
#!/usr/bin/env bash
exec &> /var/tmp/$$
printf '%s\n' "COMMAND ${0} ARGS ${*}"
printf '%s\n' "1) ${1} 2) ${2} 3) ${3}"
Can somebody help me?