Git Product home page Git Product logo

Comments (15)

beckyricha avatar beckyricha commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

spezzer avatar spezzer commented on July 23, 2024

Hi - thanks for quick response.

  1. Yes, using cloud version at graph.api.smartthings.com *
  2. No, but just tried the simulator, and not getting a response. I selected 'TV' in preferences and clicked the On|Off options. Unfortunately the log is not providing any feedback with nothing printed. Is there an option to enable this or is it there are simply no errors to report.
  3. Yes, it tests successfully from http://rm-bridge.fun2code.de
  • Just reread your help - "externally accessible ip address". If I grab my IP from WhatsMyIP presumably this is the one I need (albeit not static but can sort that out if necc). I was using the LAN IP. However, no joy with external IP either but guessing this could be a router issue? I'm using the Virgin Media Hub 3.0 and it has a habit of not saving any changes - appalling piece of kit. I might need to dig out my spare Netgear D7000. I've set up port forwarding on the Hub 3.0 and seems to have stuck - doesnt appear to have helped. Also tried adding .18 as DMZ as well but didnt make any difference.

Also - should the simulator actually switch devices on|off or is it literally just a dry run?

Thanks again

from broadlink-rm-smartthings-alexa.

beckyricha avatar beckyricha commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

beckyricha avatar beckyricha commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

spezzer avatar spezzer commented on July 23, 2024

Hi - Port Forwarding is working. I've tested this by logging into RM Bridge online on my phone and disconnected phone wifi. It successfully switched TV on|off using external IP and port 7474.

I had a look round SmartThings API Hub and found the live logger. It generates a log when talking to Alexa so that connection is working. Not exactly sure what to make of the log - hope you can shed some light on the content (below)

The bit I'm struggling to understand is how SmartThings API talks to the RM Bridge on my Android. Is there something I can test on the Android? FYI It's an Samsung Tab3 running Android 4.4.2

Regards Richard

control, params: [appId:60001429-8f74-4c28-b80f-925ea2f9c2ab, param1:control, param2:3a46217f-37d5-41ec-8b0a-e5cde13cba76, param3:TurnOffRequest, action:[GET:executeSmartAppGet, POST:executeSmartAppPost, PUT:executeSmartAppPut, DELETE:executeSmartAppDelete, OPTIONS:executeSmartAppOptions], controller:smartAppApi, id:3a46217f-37d5-41ec-8b0a-e5cde13cba76, command:TurnOffRequest], request: [:], devices: null params.id: 3a46217f-37d5-41ec-8b0a-e5cde13cba76 params.command: TurnOffRequest params.value: null

from broadlink-rm-smartthings-alexa.

beckyricha avatar beckyricha commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

spezzer avatar spezzer commented on July 23, 2024

Hi - checked the names.
ST Device Name/Label/NetworkID all = 'TV' - I think code uses device.deviceNetworkId
(I tried device.NetworkId but that generated error log which is reassuring - and changed it back - although it still controlled simulator okay which means I still don't fully understand code!)
RM Bridge Codes are 'TV on' & 'TV off'
The SmartThings app on the Android Tablet reflects what the simulator is doing so definitely talking to my LAN - which is also good. The bit (more!) I don't understand is how RM Bridge picks up the incoming command or even what format it takes - it must be as simple as 'TV on' or 'TV off' as this is what follows the URL? Presumably the RM Bridge running on the Android sends this to the MAC address of the RMPro. I think it's this link that is failing. Even the local SmartThings app on the Android has no affect.
Can RM Bridge run on Android 4.4.1?
Sorry lots of questions again - thanks in advance.
Regards Richard

from broadlink-rm-smartthings-alexa.

beckyricha avatar beckyricha commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

spezzer avatar spezzer commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

spezzer avatar spezzer commented on July 23, 2024

Focussing on the login I commented it out :-
/def userpass = "Basic " + userpassascii.encodeAsBase64().toString()/
I would have expected this simulator to generate a login error but it doesn't generate any log entries at all.

One question - what directs the command to RM Bridge - is the 7474 port number?

I know it is reaching my LAN because the SmartThings App on the Android syncs with the simulator. I dont quite understand what directs the command to RM Bridge and this is where it seems to be failing.

regards

from broadlink-rm-smartthings-alexa.

beckyricha avatar beckyricha commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

spezzer avatar spezzer commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

spezzer avatar spezzer commented on July 23, 2024

AHHHHHH! - using wrong device handler - should have been using Broadlink-RM-SmartThings-Alexa/RM Bridge Switch Cloud

DOH!

I'm now in business - thanks for you help

from broadlink-rm-smartthings-alexa.

beckyricha avatar beckyricha commented on July 23, 2024

from broadlink-rm-smartthings-alexa.

spezzer avatar spezzer commented on July 23, 2024

Hi - very embarrassing - I was using the wrong device handler! I was using LAN instead of Cloud version. Everything is working now and having great fun adding TV functionality.

One question - 'TV on|off' and 'TV Guide on|off' work well. Any suggestions for up|down or PgUp|PgDn? The voice command 'Turn up on' doesn't really track very well. Should I be using a different controller?

Regards
Richard

from broadlink-rm-smartthings-alexa.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.