cynical behaviours - garage door not configurable

Posted on
Fri Jul 08, 2022 6:17 pm
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

cynical behaviours - garage door not configurable

hi, thanks for addressing the python 3 issues in your very useful plugins,

I'm having trouble with Cynical Behaviours 3.1.0: no sensor devices are available in the dropdown list when attempting to configure a Garage Door. Affects both existing and new doors.

logs as follows:

Code: Select all
   Cynical Behaviors Error         in filter BinarySensorFilter: Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 67, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/plug.py", line 618, in menufilter
    menu = filter._evaluate()
  File ".../Server Plugin/cyin/filter.py", line 77, in _evaluate
    menu = self.evaluate()
  File ".../Server Plugin/cyin/filter.py", line 105, in evaluate
    return self.sort([item for item in self.generate()])
  File ".../Server Plugin/cyin/filter.py", line 109, in sort
    return sorted(values, key=lambda s: natural_sort(s[1]))
TypeError: '<' not supported between instances of 'str' and 'int'

Posted on
Wed Jul 13, 2022 2:08 am
agame offline
Posts: 514
Joined: Jul 13, 2017
Location: Melbourne, Australia

Re: cynical behaviours - garage door not configurable

FYI looks like there are other python3 issues in the plugin, for instance, attempting to configure a presence sensor generates the following:

Code: Select all
   Error (client)                  getXmlFromPlugin() caught exception: incorrect type returned (expected XML string)
   Error (client)                  runDialogForDevice() caught exception: NSInvalidArgumentException -- *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]
   Cynical Behaviors Error         in getIOMConfigUiValues:
  File ".../Server Plugin/cyin/plug.py", line 387, in getIOMConfigUiValues
    (cls, obj, dev) = self._startUi(type, id)
  File ".../Server Plugin/cyin/plug.py", line 368, in _startUi
    obj.refresh()         # update
  File ".../Server Plugin/cyin/iom.py", line 521, in refresh
    self.io.refreshFromServer()
RuntimeError: LowLevelBadParameterError -- copyFrom source and destination type mismatch (object may have changed classes)

   Cynical Behaviors Error         Error in plugin execution UiGetValues2:

type: object of type 'NoneType' has no len()

   Cynical Behaviors Error         in getIOMConfigUiXml:
  File ".../Server Plugin/cyin/plug.py", line 381, in getIOMConfigUiXml
    (cls, obj, dev) = self._startUi(type, id)
  File ".../Server Plugin/cyin/plug.py", line 368, in _startUi
    obj.refresh()         # update
  File ".../Server Plugin/cyin/iom.py", line 521, in refresh
    self.io.refreshFromServer()
RuntimeError: LowLevelBadParameterError -- copyFrom source and destination type mismatch (object may have changed classes)

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest