Author Topic: Virtual Rain Sensor  (Read 30214 times)

Offline blakem

  • Sr. Newbie
  • *
  • Posts: 47
  • Karma: +7/-0
Re: Virtual Rain Sensor
« Reply #135 on: May 26, 2017, 08:19:32 pm »
I am not on UI7 yet so I cannot answer but it sounds like you have the right idea.

Sent from my A0001 using Tapatalk


Offline icare

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +0/-0
Re: Virtual Rain Sensor
« Reply #136 on: May 27, 2017, 02:53:00 pm »
The following code I use to switch ON/OFF the sprinkler based on a start/stop schedule and treshold set in vrain plugin:
-- Get current status sprinkler switch
local switch_status = luup.variable_get("urn:upnp-org:serviceId:SwitchPower1", "Status", id_sprinkler)

-- If switch is ON THEN switch it off
if (switch_status == "1")
then
-- Turn Sprinkler OFF
luup.call_action("urn:upnp-org:serviceId:SwitchPower1", "SetTarget", {newTargetValue = "0"}, id_sprinkler)
return true
else
--Switch Sprinkler ON depending on vrain
--Force update virtual rain sensor(this step optional)
luup.call_action("urn:upnp-org:serviceId:VRainSensor", "Update", {}, id_vrain)
--Get current state virtual rain sensor
local rain = luup.variable_get("urn:micasaverde-com:serviceId:SecuritySensor1","Tripped", id_vrain)
if (rain == "0")
then
luup.call_action("urn:upnp-org:serviceId:SwitchPower1","SetTarget",{ newTargetValue="1" },id_sprinkler)
-- Register action in database
luup.call_action("urn:micasaverde-com:serviceId:HomeAutomationGateway1", "RunScene", {SceneNum = "3"}, 0)
return true

else
return false
end
end

Offline williams2353

  • Sr. Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
Re: Virtual Rain Sensor
« Reply #137 on: May 27, 2017, 03:47:44 pm »
"I would try to do a reboot or power off and see if it allows you to either continue the uninstall or allows you to install."

I tried that, still no luck.  Also tried a different browser, same results.



Offline williams2353

  • Sr. Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
Re: Virtual Rain Sensor
« Reply #138 on: May 28, 2017, 08:38:51 am »
Here is what the apps.mios.com page returns when I try to uninstall the Virtual Rain Sensor:


Offline rjspindler

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Virtual Rain Sensor
« Reply #139 on: July 17, 2017, 11:20:55 am »
Icons not displaying, please advise.  Installed app v3.2 on VeraEdge/UI7 from the Install Apps menu.

Offline kwieto

  • Full Member
  • ***
  • Posts: 133
  • Karma: +3/-5
Re: Virtual Rain Sensor
« Reply #140 on: September 11, 2017, 09:15:34 am »
I have the same problem - no icon displaying

Offline rafale77

  • Hero Member
  • *****
  • Posts: 691
  • Karma: +35/-20
Re: Virtual Rain Sensor
« Reply #141 on: September 11, 2017, 01:18:07 pm »
I have customized this app with my own icons. I did not like the default ones but it appears the that they are also no longer reachable. I suspect the server hosting them is down. Try uploading this file into the apps/develop apps/luup files. You will be pulling the icons I am hosting.
127 zwave nodes, 8 zigbee nodes, 256 devices, 17 apps, 128 scenes on a Vera Plus linked with Echo and HomeKit through bridges