RESOLVED: issue creating device as sprinkler zones

Posted on
Thu Jan 03, 2019 8:45 pm
bsp9493 offline
Posts: 153
Joined: Nov 30, 2017
Location: Kelowna, BC

RESOLVED: issue creating device as sprinkler zones

Hello...

awesome plugin for an interesting little device!

Glad to see you added a native sprinkler control option. I was just about to ask if that was possible.

Has anyone reported issues with creating devices with the 1.0 version?

I get the following error when trying to create a new device, using the sprinkler option

Code: Select all
Traceback (most recent call last):
  File "plugin.py", line 82, in closedDeviceFactoryUi
IndexError: index 0 out of list range



your help would be appreciated.

Thanx in advance

d

Posted on
Fri Jan 04, 2019 4:51 pm
bsp9493 offline
Posts: 153
Joined: Nov 30, 2017
Location: Kelowna, BC

Re: issue creating device as sprinkler zones

some further log files for debugging if it helps.

I added a new devices, then added 4 relays... then updated the corresponding relays to the devices...

ended up with the following log entries..., BUT, the relays do work. (on/off)

Still can't get it to add as a sprinkler device though.

d


Code: Select all
Jan 4, 2019 at 8:00:49 AM
   SQL Logger                      creating table device_history_1255274073 for "new device"
   SQL Logger                      creating table device_history_1674201755 for "new device 1"
   SQL Logger                      creating table device_history_226541648 for "new device 2"
   SQL Logger                      creating table device_history_605973097 for "new device 3"
   Error (client)                  _sendClosedConfigUi3() caught exception: LowLevelBadParameterError
   8 Channel Network Relay Error   Error in plugin execution UiClosed3:

Traceback (most recent call last):
  File "plugin.py", line 121, in closedDeviceFactoryUi
  File "plugin.py", line 346, in set_device_states
TypeError: cannot concatenate 'str' and 'int' objects

   8 Channel Network Relay Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 131, in runConcurrentThread
  File "plugin.py", line 346, in set_device_states
TypeError: cannot concatenate 'str' and 'int' objects

   8 Channel Network Relay Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   Error (client)                  doPluginDeviceFactory requires at least one root device
   8 Channel Network Relay Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 131, in runConcurrentThread
  File "plugin.py", line 346, in set_device_states
TypeError: cannot concatenate 'str' and 'int' objects

   8 Channel Network Relay Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   8 Channel Network Relay Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 131, in runConcurrentThread
  File "plugin.py", line 346, in set_device_states
TypeError: cannot concatenate 'str' and 'int' objects

   8 Channel Network Relay Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   8 Channel Network Relay Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 131, in runConcurrentThread
  File "plugin.py", line 346, in set_device_states
TypeError: cannot concatenate 'str' and 'int' objects

   8 Channel Network Relay Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)
   8 Channel Network Relay Error   Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
  File "plugin.py", line 131, in runConcurrentThread
  File "plugin.py", line 346, in set_device_states
TypeError: cannot concatenate 'str' and 'int' objects

   8 Channel Network Relay Error   plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)

Jan 4, 2019 at 8:02:05 AM
   8 Channel Network Relay         Sent "new device 3" on
   8 Channel Network Relay         Sent "new device 3" off
   8 Channel Network Relay         Sent "new device 2" on
   8 Channel Network Relay         Sent "new device 2" off
   8 Channel Network Relay         Sent "new device 1" on
   8 Channel Network Relay         Sent "new device 1" off
   8 Channel Network Relay         Sent "new device" on

Posted on
Sat Jan 05, 2019 12:17 am
TwitchCaptain offline
User avatar
Posts: 104
Joined: Dec 13, 2016
Location: San Francisco

Re: issue creating device as sprinkler zones

I ran into some bugs with the sprinkler devices myself. Thanks for the logs. I just cracked the code open and hope to clean things up. The sprinkler stuff is still rather new to me, and I can't find any good examples out there, so I'm kinda flying blind. Please be patient as I dial it in!

Posted on
Sat Jan 05, 2019 12:50 am
TwitchCaptain offline
User avatar
Posts: 104
Joined: Dec 13, 2016
Location: San Francisco

Re: issue creating device as sprinkler zones

I totally missed a commit in my last Git pull request, :?

I should have a new version released later tonight, but I'm still going to call sprinkler support experimental! Please let me know if you see any other weird behaviors after you upgrade. Thanks so much!

Posted on
Sun Sep 22, 2019 10:13 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: RESOLVED: issue creating device as sprinkler zones

since I needed to rebuild my implementation of the 8-channel relay; I thought I'd try using the sprinkler definitions.

I'm seeing some odd behaviour so I'll go back to just treating each zone as an on/off device (which is perfectly fine). I haven't used indigo's native irrigation controller functionality before so I could be missing something.

I'm seeing some strange cycling in the logs when I activate a zone, and subsequently turn it off. Eg:

Code: Select all
[size=50]8 Channel Network Relay         Sent "irrigation controller - veggie trough wollemi" off
   8 Channel Network Relay         Sent "irrigation controller - veggie troughs BBQ" on
   8 Channel Network Relay         Sent "irrigation controller - strawberry" off
   8 Channel Network Relay         Sent "irrigation controller - fire deck" off
   8 Channel Network Relay         Sent "irrigation controller - fire south" off
   8 Channel Network Relay         Sent "irrigation controller - fire north" off
   8 Channel Network Relay         Sent "irrigation controller - master" on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Zone "irrigation controller - master" unexpectedly turned off
   8 Channel Network Relay         Zone "irrigation controller - veggie troughs BBQ" unexpectedly turned on
   8 Channel Network Relay         Sent "irrigation controller - veggie trough wollemi" off
   8 Channel Network Relay         Sent "irrigation controller - veggie troughs BBQ" off
   8 Channel Network Relay         Sent "irrigation controller - strawberry" off
   8 Channel Network Relay         Sent "irrigation controller - fire deck" off
   8 Channel Network Relay         Sent "irrigation controller - fire south" off
   8 Channel Network Relay         Sent "irrigation controller - fire north" off
   8 Channel Network Relay         Sent "irrigation controller - master" off
[/size]

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest