Comments (19)
Second this, getting the same error messages.
Put in debug log in the code to get some more information:
def description = evt.description
log.debug description
def parsedEvent = parseLanMessage(description)
log.debug parsedEvent
def text = parsedEvent.body
log.debug text
def json = new JsonSlurper().parseText(text)
Giving me the following output:
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:48:42 PM: error java.lang.IllegalArgumentException: The JSON input text should neither be null nor empty. @ line 69
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:48:42 PM: debug null
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:48:42 PM: debug [devicetype:04, mac:XXXXXXX, networkAddress:XXXXXXX, deviceAddress:XXXX, stringCount:04, ssdpPath:/description.xml, ssdpUSN:uuid:xxxxxxx-da50-11e1-9b23-221517K010::upnp:rootdevice, ssdpTerm:urn:schemas-upnp-org:device:basic:1, ssdpNTS:null]
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:48:42 PM: debug devicetype:04, mac:XXXXXXX, networkAddress:XXXXXXX, deviceAddress:XXXX, stringCount:04, ssdpPath:/description.xml, ssdpUSN:uuid:xxxxxxx-da50-11e1-9b23-221517K010::upnp:rootdevice, ssdpTerm:urn:schemas-upnp-org:device:basic:1, ssdpNTS:
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:48:42 PM: debug In response handler
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:48:42 PM: debug hub id is 0b64d003-e769-4673-99cd-417cde9ccfbe
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:45:35 PM: debug [index:17, mac:XXXXXXX, ip:XXXXXXX, port:XXXX, requestId:e9323149-fe24-45b0-960a-b870f83b74b6, headers:[content-length:58592, http/1.1 200 ok:null, connection:keep-alive, set-cookie:jo2016q81dmaynuw032uzl0x2=8b980a9b-cfd5-4eab-9367-a789ab5c890c; expires=Wed, 29 Mar 2017 13:45:35 GMT+00:00, content-type:application/json; charset=UTF-8, date:Tue, 28 Mar 2017 13:45:35 GMT], body:[{"repeat":0,"order":0,"sendUrl":"http://192.168.1.xx:XXXX/send?deviceMac\XXXXXXX\u0026codeId\u003d45","displayName":"Speakers • On/Off","code":"...[TRUNCATED]","learnedByMac":"XXXXXXX","remoteName":"Speakers","codeLength":888,"id":"45","name":"","index":0,"remoteType":4,"type":0,"delay":0},{"repeat":0,"order":0,"sendUrl":"http://192.168.1.xx:XXXX/send?deviceMac\XXXXXXX\u0026codeId\u003d46","displayName":"Speakers • idx 36","code":"...[TRUNCATED]
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:45:35 PM: debug [{"repeat":0,"order":0,"sendUrl":"http://192.168.1.xx:XXXX/send?deviceMac\XXXXXXX\u0026codeId\u003d45","displayName":"Speakers • On/Off","code":"...[TRUNCATED]","learnedByMac":"XXXXXXX","remoteName":"Speakers","codeLength":888,"id":"45","name":"","index":0,"remoteType":4,"type":0,"delay":0},{"repeat":0,"order":0,"sendUrl":"http://192.168.1.xx:XXXX/send?deviceMac\XXXXXXX\u0026codeId\u003d46","displayName":"Speakers • idx 36","code":"...[TRUNCATED]
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:45:35 PM: debug getChildDevices(false), children=0
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:45:35 PM: debug index:17, mac:XXXXXXX, ip:XXXXXXX, port:2694, requestId:e9323149-fe24-45b0-960a-b870f83b74b6, headers:...[TRUNCATED], body:...[TRUNCATED]
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:45:35 PM: debug In response handler
21b104b3-bfa0-4105-b1a6-c0ec1576ee4f 2:45:35 PM: debug hub id is XXXXXXX
from broadlink-rm-smartthings-alexa.
Hi guys has any one solved this? I am having the exact same issue.
from broadlink-rm-smartthings-alexa.
It still doesn't work and apparently nobody reads the issues so i chalk it up to an unfixable bug and stopped bothering. I just use Simple Control to call the RM Plugin endpoints and link ST switches to it. It's easier than fighting with code that doesn't work.
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
The debug info above is very odd. Please describe what version of the code you are trying to use. Is it the tasker lan version? What were you trying to figure when the error came up? I no longer use that version since I found the free rm bridge app but can attempt to assist.
from broadlink-rm-smartthings-alexa.
Be that as it may, I posted the question 5 months ago and this is the first reply I've received.
In any event, they error isn't that odd if the code is not successfully pulling the JSON data, there's nothing for it to parse.
The RM app has been forked off into a separate RM Plugin app and is no longer part of Tasker. (which happened before I purchased my first RM Pro). I use the paid version with your LAN code. Perhaps that's why…maybe the syntax differs since that update. I have both the Plugin and Bridge apps and actually prefer the former. It allows for macro creation, has its own HTTP and Alexa bridge functionality as well as a "repeat" option, should an IR command need to be sent multiple times (like a temp-up command on a window AC using variables for current and target temperatures).
In fact, Broadlink themselves have finally joined the party and introduced Alexa integration using their ihc app and new Alexa Smart Home skill, although it seems its functionality is limited only to controlling media devices (similar to Harmony's) without requiring a skill invocation and handles TV channels much like your TV Channel SmartApp.
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
Hi Kumoodley, Becky,
I have tried all the things you have mentioned above yet I am still getting the error: @line 66 ..
I followed all the steps as detailed in the https://beckyricha.github.io/Broadlink-RM-SmartThings-Alexa.html. Tried both with RM Tasker and RM Bridge however still am not able to get the broadlink to work with Samsung Smartthings.
- RM Bridge fun2code website test code works/even set up static ip
Tried first with
RM Tasker - downloading the raw code from
•Broadlinkswitch device handler: entered it into My Device Handler, Create New Device, From Code - Create, then publish, for me
•Broadlink LAN SmartApp: entered it into My SmartApps, Create New App, From Code - Create, update the BLMAC (entered Broadlink RM Pro MAC address) and then BLURL: wasn't sure what to put here so first tried with URL for RM Tasker (from documentation) and then for RM Bridge App - both didn't work
Updated settings, Clicked on Code then went on simulator and set location and installed
Then tried with
RM Bridge - downloading the raw code from
•Broadlink RM Bridge Switch LAN: changed IP to RM Bridge IP:Port added username:password that I had entered into the RM bridge app; create, publish
•Set up New Device, entered the device ID exactly to what I had entered in RM Bridge fun2code app.
The device appears in the smartthings app but doesn't switch on the fan that I had connected it when I turn the switch on, on the smartthings app.
On the Log file, here is the error I have been getting for RM Bridge version when I simulate for RM Bridge Switch LAN:
f14d115f-7864-4634-a6f2-b7079b1d81a0 2:16:31 PM: error java.lang.IllegalArgumentException: The JSON input text should neither be null nor empty. @ line 66
f14d115f-7864-4634-a6f2-b7079b1d81a0 2:16:31 PM: debug In response handler
f14d115f-7864-4634-a6f2-b7079b1d81a0 2:16:31 PM: debug hub id is f31fff9b-c585-4f23-98ad-229cdaa4582b
f14d115f-7864-4634-a6f2-b7079b1d81a0 2:16:31 PM: error java.lang.IllegalArgumentException: The JSON input text should neither be null nor empty. @ line 66
f14d115f-7864-4634-a6f2-b7079b1d81a0 2:16:31 PM: debug In response handler
f14d115f-7864-4634-a6f2-b7079b1d81a0 2:16:31 PM: debug hub id is f31fff9b-c585-4f23-98ad-229cdaa4582b
Your help will be greatly appreciated.
regards
A3
from broadlink-rm-smartthings-alexa.
I really appreciate all the hard work @beckyricha @itsamti have put into creating the code for the connect. Your guidance would help me get my broadlink connected to Samsung Smartthings
The other work around I have found to connect aircon and remote controlled fan to IFTTT, Google Home is via Anymote App. I have a Samsung S5 Android Phone with inbuilt IR blaster. Anymote has really good remote learning inbuilt for the upgraded app at some $9+. It also has compatibility with IFTTT. So now I can use August lock to communicate with Aircon via IFTTT and Anymote. So if I enter home it can automatically switch on the aircon. My next challenge is to find ways to create scenes with RF remote controlled devices as well. For that Smartthings is a good hub. Any other alternatives?
Also have been searching for MiLight connectivity with Amazon Alexa or Google Home (preferably without programming HA Bridge). While Anymote has built in remote for MiLights however it doesn't work. Any guidance in those areas would be appreciated as well.
regards
A3
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
Hi Beckyricha, Kumoodley,
Apologies for the delay in getting back on this. Been on the road a lot last month.
Beckyricha - for RM Tasker Setup - I tried to enter multiple IP address and port details into the app settings however all of them are giving me errors. I even forwarded my port on my router, however still I am getting the error:
e87d05be-2af4-4a8f-a9ca-270d04c3812a 9:18:12 AM: error java.lang.IllegalArgumentException: The JSON input text should neither be null nor empty. @ line 66
e87d05be-2af4-4a8f-a9ca-270d04c3812a 9:18:12 AM: debug In response handler
Kumoodley - I would prefer to stick with the RM tasker app version as that works better with Alexa and I can set up codes directly instead on the broadlink vs RM Bridge that I have to do online for every code. Any suggestions on this?
Additionally would love to see a youtube video of the setup if you guys can record one - might give you guys some great mileage as well.
E.g. - This guys video on connecting xiaomi with smartthings is simple yet gets the job done: https://www.youtube.com/watch?v=sciUre0HVl0
If you guys can create something like this may get a lot of queries resolved as people can follow the steps easily through video
Sincerely appreciate all that you guys are doing!
regards,
A3Scream
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
Hi Kumoodley,
how do I go about setting it up with Broadlink RM Voice Pro app?
and have Smartthings connect with broadlink via that?
Please can you provide some guidance on that.
Appreciate your help.
regards,
A3Scream
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
Hi Becky - Please can you help find a solution to Json error @line 66 so I can use RM Tasker to connect broadlink to smartthings. Sincerely appreciate your help on this.
A3Scream
from broadlink-rm-smartthings-alexa.
from broadlink-rm-smartthings-alexa.
Related Issues (20)
- Some of the devices not working from Smartthings HOT 5
- Almost certainly something I am missing. Can't get ST to control the RM2 HOT 2
- Duplicated end of comment section cause RM Bridge Switch Cloud Multikeys to fail adding as handler
- Example for RF switch
- Alexa unable to discover devices in RM Tasker plugin on Android TV box HOT 1
- Downgrade of RM pro+ can brick the device HOT 15
- Rm 2 check data failed
- Location
- Different codes while learning... normal? HOT 4
- Smarthings Hub not linking to Alexa correctly HOT 1
- RM Plugin Lite issue HOT 2
- RM Bridge not working?
- New issue with RM frequency learning HOT 1
- RM MINI 3 cant connect to internet
- error groovy.lang.MissingPropertyException HOT 1
- rm pro + no permissions
- Only the off command is working HOT 11
- java.lang.IllegalArgumentException: Text must not be null or empty @line 66 (lanResponseHandler)
- Location - Create device HOT 5
- Unable to load codes from RM Bridge host HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from broadlink-rm-smartthings-alexa.