-
Notifications
You must be signed in to change notification settings - Fork 14
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
Unable to find value for JSON path #8
Comments
@roberthawdon any resolution from your end? |
@IBC-IT No, in the end I found a better plugin for my use case of controlling Home Assistant: https://github.com/cgiesche/streamdeck-homeassistant However, for controlling other APIs, this issue would still stand. |
My apologies for not responding sooner - I've not worked on the plugin since I originally submitted it elgato to be distributed. The json path code is just the included streamdeck utility javascript, here. It's fairly basic in functionality. I have not tested, but it looks like |
@mjbnz So in my case, with response of: Would not the path be Still not working in my case... |
Also, should the "value" fields include quote marks or not? |
Yes, that's how I'd read it. looks like the streamdeck SDK's Absolutely no promises, but I'll try to get some time to look at that this weekend.
No. it's supposed to be for basic string matching if included. with field defined, it tries to parse as json, without, it looks for the text in the response body. code for that is here. |
@mjbnz thank you! I also don't understand why it does not work when the path is empty, and the value is entered as simply |
@mjbnz any hope you had a chance to look at this? |
Has anyone else been able to find a solution? |
I wasn't able to find time last month, more pressing items got in the way. There's a few little items I'd like to sort out with the plugin. Give me a couple of weeks and I should be able to find some time to look into it. |
Hi, I'm currently attempting to use this plugin to control my home automation system (Home Assistant)
When using the API to toggle an appliance, the following JSON response comes back from the API:
Logic would tell me that the JSON Path for the
state
value should be$.[0].state
or$[0]['state']
; however, neither of these are working, and neither is setting the path tostate
or leaving the path empty and making the plugin look for the expected value ofon
.I'm sure there's something simple I'm missing here.
The text was updated successfully, but these errors were encountered: