Author Topic: OpenSprinkler Plugin Update for firmware 2.1.3+  (Read 28733 times)

Offline Jamr

  • Hero Member
  • *****
  • Posts: 738
  • Karma: +22/-8
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #120 on: June 13, 2018, 02:25:15 pm »
You have to set the variables as per the original plugin.
I'm busy finishing a new book, but I'll take a look and write a guide in the next weeks.

Thanks again. Anything I can do to help, let me know.

In the mean time. I have managed to get Vera to operate the OS controller (Disable/Enable) and it's outputs (Valves) (On/Off) but unfortunately there is still no feedback on status of the OS controller or any of the outputs.
To do this I had to completely delete the OS add on and follow the first post on this thread.
http://forum.micasaverde.com/index.php/topic,29977.0.html

I ended up with the following and I can now enable and disable the OS controller and turn on and off any of the valves connected to that controller.
Remember the valves will turn on and then automatically off for the predetermined time set in the Variables tab called "ManualMaxMinutes" or you can turn them off before that time set via a scene or manually.

Offline therealdb

  • Full Member
  • ***
  • Posts: 126
  • Karma: +1/-0
  • Automate all the things!
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #121 on: June 13, 2018, 02:46:28 pm »
Great. I forgot to commit a new version with local icons. I'll do next day since I'm travelling again.

If you are able to write a small manual, feel free to make a pull request or send it to me directly and I'll publish it.
Vera Edge, Fibaro FGRM 222 (12), Fibaro FGS 223 (20), Fibaro FGS 222 (5), Fibaro Universal Binary Sensor (2), Fibaro Plug (3), NeoCoolCam Door Sensor (3), NeoCoolCam PIR (1), Nest (3), Raspberry PI running my own integrations, Harmony Hub, OpenSprinkler, Personal Weather Station

Offline Jamr

  • Hero Member
  • *****
  • Posts: 738
  • Karma: +22/-8
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #122 on: June 25, 2018, 02:36:06 pm »
Great. I forgot to commit a new version with local icons. I'll do next day since I'm travelling again.

If you are able to write a small manual, feel free to make a pull request or send it to me directly and I'll publish it.

Everything is already documented on the first post to this thread, or the link I provided.
If there is anything I can further do, please let me know.
Thank you for your effort here.

Offline helraiser

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +2/-0
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #123 on: June 27, 2018, 06:33:43 am »
Yep, I've been struggling trying to get this working and using the instructions from the first post and well... no bueno.

I tried installing the original app, overwriting the files mentioned in the first, and then uploading the two files from this most recent modification. Nothing works however.

As a final resort, I uploaded all the files in the most recent update and that just about killed Vera :) Luckily I was able to uninstall the app and reinstall it. still no luck getting this working.

Offline RichieB

  • Jr. Member
  • **
  • Posts: 86
  • Karma: +1/-0
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #124 on: June 28, 2018, 08:29:11 pm »
yeah it killed my vera as well === it loads abou 35 valves / zones that kills the vera

Offline helraiser

  • Jr. Member
  • **
  • Posts: 93
  • Karma: +2/-0
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #125 on: June 28, 2018, 09:39:43 pm »
I found you're supposed to put the password (not sure if it's the hashed or clear text) into the I_OpenSprinkler1.xml file. Problem is I did that and it wouldn't work. I did get it working once after I disabled the password on the controller but then I had to deny internet access to the controller.

When I went to start modifying the sprinkler names that killed it and now I can't get it to communicate again. Been struggling with it since without making any file changes.

Edit: Got it working in UI7 on my Veraplus, with md5 hashed password and 6 zones

1. Install the opensprinkler app and let it install the controller
2. Add your IP to the device. Under Advanced - Variables, add your zones (2 are added by default)
3. If yours works, abort. Proceed no further! For most though, it won't work.
4. Upload the 3 files from the first post in this thread.
5. Note, the I_OpenSprinkler1.xml file will be uploaded again later but with the password modification
6. Ensure your OS controller has "Ignore Password" enabled. At this point,
7. Open the 2 files from therealdb's github (D_OpenSprinkler1_UI7.xml and D_OpenSprinkler1_UI7.json)
8. In Vera, go to the controller's property and click Advanced. Change the device_file to D_OpenSprinkler1_UI7.xml
9. Reload
10. You should be ready to rock at this point.

To restore security

1. Uncheck "Ignore Password" on your controller
2. Open up "I_OpenSprinkler1.xml" in notepad or a true xml editor (this tripped me up till i just used a plain text editor)
3. Look for the line "HASHEDPW = md5(PW)" and change md5(PW) to your hashed password in quotes
4. for example: HASHEDPW = "bj289hgkadjfjashggjio2"
5. To generate a hash I'd recommend doing it offline using an app but there are online generators too
6. Save and upload the file

Done.

Now I just wish I could use these as a light switch so I could integrate them into Alexa, Google, or Homekit. I've got the older OS2.2 which doesn't support IFTT. Although, now that it's in Vera...
« Last Edit: June 29, 2018, 12:54:15 am by helraiser »

Offline therealdb

  • Full Member
  • ***
  • Posts: 126
  • Karma: +1/-0
  • Automate all the things!
Re: OpenSprinkler Plugin Update for firmware 2.1.3+
« Reply #126 on: July 09, 2018, 02:37:09 pm »
I didn't tried with my Alexa, but it should work if you change category_num (3) and subcategory_num (3) to your device and do a rediscovery again.
Remember to not use all lights on/off, becuase you will change your spinklers status as well.
Vera Edge, Fibaro FGRM 222 (12), Fibaro FGS 223 (20), Fibaro FGS 222 (5), Fibaro Universal Binary Sensor (2), Fibaro Plug (3), NeoCoolCam Door Sensor (3), NeoCoolCam PIR (1), Nest (3), Raspberry PI running my own integrations, Harmony Hub, OpenSprinkler, Personal Weather Station