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

problems with ${device.*} script variable constructs #1402

Open
rwschul opened this issue Feb 20, 2024 · 0 comments
Open

problems with ${device.*} script variable constructs #1402

rwschul opened this issue Feb 20, 2024 · 0 comments

Comments

@rwschul
Copy link

rwschul commented Feb 20, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant