[OBSOLETE] Raspberry Pi Device Type

I am running a PI 3 and have (eventually) got this device type working in ST. I had the same problem(s) and when the install failed I found another Berryio script that did install. After that I re-tried the entire steps linked at the very top of this thread. Still would not work but reading others post above I got on the right track. Find my post above that starts with…

Read from here on…

@dsmith, do you happen to have your code posted publicly somewhere so that we can take a look?

Nope, which part of the code are you looking for?

The code that does this:

so the code that was broken/ie switch that didnt do anything by being set by SendEvents, i don’t have that anymore

but here’s my whole chop up of your devicehandler code, both the on and off() calls are actually toggle calls for different pieces

i also use a poller smartapp to keep the rpi data up to date in smartthings, polls every 15 min automatically.
refresh also works well.

Thanks for the code. I’ll take a look at it an incorporate it into what I currently have.

Do you know if any thing has changed for the Raspberry pi 3? Nothing seems to work other then restart. Doesn’t even say that its on. This error comes up when anything is pressed except for restart.
973fe0ba-f3a4-43fb-95f5-1fa7be91d047 2:39:36 PM: error groovy.json.JsonException: Lexing failed on line: 1, column: 1, while reading ‘<’, no possible valid JSON value or punctuation could be recognized. @ line 125

So, I’m new here, and new to SmartThings, and I’m relatively confused.

I’ve got an RPi 3 that is currently being used to control some 433mhz outlets in my basement. I can control those outlets from my phone using a php site that I set up by following a tutorial, or by running a command in CLI or via SSH.

Is this thread relevant to me if I want to add this functionality to my SmartThings? I tried this tutorial, but couldn’t figure out how to make it work with my application.

Thank you!

I am having a problem in two places. On my iPhone the Cayenne app is stuck at downloading the drivers 4 of 4. And on the Github hub page when downloading the $ wget https://raw.githubusercontent.com/nicholaswilde/smartthings/master/device-types/raspberry-pi/raspberrypi.py it says Error in the pull function. Unable to establish SSL connection. Any ideas

Tried again I get Connection refused

Hello,

I have pi 3 ,i tried the smartapp and i get the following error,anyone got pi 3 to work with smartthings?
thanks

the error i got

startup failed: script1494300288475788133211.groovy: 3: unexpected char: ‘#’ @ line 3, column 1. # To be used with WebIOPi https://code.google.com/p/webiopi/ ^ 1 error

Hey guys, i’m going nuts here, appreciate if anyone can help,

The app was working / displaying CPU/Temp results etc, then I wanted to change the device name, so i deleted it and created a new one, and no matter what i do it wont come back, just blanks, i can only restart it…

I don’t have a GPIO installed, just the RBP3, the web version works fine, and display all results with no issues…

Here are some stuff that could help:

http://ipaddr:port/api_command/smartthings output:

{ “1M_load”:“0.52”, “5M_load”:“0.54”, “15M_load”:“0.38”, “cpu_temp”:“49.4”, “cpu_speed”:“600000000”, “cpu_volt”:“1.2000”, “cpu_perc”:“20.2”, “disk_usage”:“45.45”, “mem_avail”:“357.125”, “gpio_value_17”:“not_exported” }

From live log:

98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug disk_usage: 45
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug mem_avail: 354
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: error java.lang.NumberFormatException: For input string: “not_exported” @ line 168
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug temp: 49
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug cpu_perc: 5.8
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug check temp…
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug temp: 120.2 F
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug Computer is up
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug result: [cpu_speed:600000000, 5M_load:0.47, 1M_load:0.34, cpu_volt:1.2000, disk_usage:45.45, cpu_perc:5.8, 15M_load:0.37, cpu_temp:49.4, gpio_value_17:not_exported, mem_avail:354.1875]
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug body:
{
“1M_load”:“0.34”,
“5M_load”:“0.47”,
“15M_load”:“0.37”,
“cpu_temp”:“49.4”,
“cpu_speed”:“600000000”,
“cpu_volt”:“1.2000”,
“cpu_perc”:“5.8”,
“disk_usage”:“45.45”,
“mem_avail”:“354.1875”,
“gpio_value_17”:“not_exported”
}
98d03e1c-cc2d-4c82-8626-a68dc0c9b9fc 11:51:24 PM: debug descMap: [index:17, mac:B827EBC26D53, ip:C0A802E4, port:0050, requestId:2c2c32ec-60bd-4da5-b1cd-3eb8b59c9561, headers:SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI0IEp1bCAyMDE3IDIxOjUxOjIyIEdNVA0KU2VydmVyOiBBcGFjaGUvMi40LjEwIChSYXNwYmlhbikNClZhcnk6IEFjY2VwdC1FbmNvZGluZw0KQ29udGVudC1MZW5ndGg6IDI0MA0KQ29udGVudC1UeXBlOiB0ZXh0L2h0bWw7IGNoYXJzZXQ9VVRGLTg=, body:CnsKICAiMU1fbG9hZCI6IjAuMzQiLAogICI1TV9sb2FkIjoiMC40NyIsCiAgIjE1TV9sb2FkIjoiMC4zNyIsCiAgImNwdV90ZW1wIjoiNDkuNCIsCiAgImNwdV9zcGVlZCI6IjYwMDAwMDAwMCIsCiAgImNwdV92b2x0IjoiMS4yMDAwIiwKICAiY3B1X3BlcmMiOiI1LjgiLAogICJkaXNrX3VzYWdlIjoiNDUuNDUiLAogICJtZW1fYXZhaWwiOiIzNTQuMTg3NSIsCiAgImdwaW9fdmFsdWVfMTciOiJub3RfZXhwb3J0ZWQiCn0K]

Does this still work?

A couple of questions:

  1. Is this still a solution to integrating the Pi with st?

  2. Does it need Webiopi installed on the Pi

  3. Will it show temperature sensors that are connected to the Pi, especially the 1 wire type?

Thanks

Mine still works. I am using the version that uses BerryIO on the PI. I never got around to adding the 1-wire temp sensor though.

FYI, The PI I am running it on is a model B Rev 2.0 running Jessie.

Mine is on a Pi3. It is acting squirrely lately. I just ordered an ardruino and going to try that. More I/O ports and at first blush it seems to be easier to setup. Time will tell tho :))

Does this work on pi zero W? I want to use it to check if my dog is outside using a BLE tile. Anyone done that?

Are there any updating instructions for installing berryio as I’ve followed the ones on github and getting errors.

I have made this work on ST V3 with Webioui on PI3 but I am only getting Temperature tile nothing else. Does anyone know if this is working with SmartThings V3?

Are you using the ST Classic Mobile Phone App? My guess is that the Device Handler for this is not fully compatible with the “New” ST App.

FYI - I don’t think hub v2 versus hub v3 has anything to do with it.

Thanks for pointing this out. I was using SmartThings app. Installed the ST Classic app and this works. However I read that classic app is going to be closed within 3-4 months and users would need to migrate to new app.