Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relay conditionals wont trigger #209

Closed
pewi81 opened this issue Mar 17, 2017 · 2 comments
Closed

Relay conditionals wont trigger #209

pewi81 opened this issue Mar 17, 2017 · 2 comments

Comments

@pewi81
Copy link

pewi81 commented Mar 17, 2017

Mycodo Issue Report:

  • Specific Mycodo Version: 5.01

Problem Description

Please list: Gets error when using relay conditionals:
Trying to deactivate one relay when another turns on
Trying to activate one relay when another turns off

Errors

Error: Actuate Relay: 'ConditionalActions' object has no attribute 'name'

========= Remote Traceback (1) =========
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/rpyc/core/protocol.py", line 305, in _dispatch_request
res = self._HANDLERS[handler](self, *args)
File "/usr/local/lib/python2.7/dist-packages/rpyc/core/protocol.py", line 535, in _handle_call
return self._local_objects[oid](*args, **dict(kwargs))
File "/var/www/mycodo/mycodo/mycodo_daemon.py", line 213, in exposed_relay_off
return mycodo.relay_off(relay_id, trigger_conditionals)
File "/var/www/mycodo/mycodo/mycodo_daemon.py", line 561, in relay_off
trigger_conditionals=trigger_conditionals)
File "/var/www/mycodo/mycodo/controller_relay.py", line 328, in relay_on_off
self.check_conditionals(relay_id, duration)
File "/var/www/mycodo/mycodo/controller_relay.py", line 354, in check_conditionals
timestamp, each_cond_action.id, each_cond_action.name)
AttributeError: 'ConditionalActions' object has no attribute 'name'

Steps to Reproduce the issue:

How can this issue be reproduced?

  1. Turning on the relay with the conditionals
  2. ...
  3. etc
@kizniche
Copy link
Owner

Thanks for submitting this issue. I'll look into it when I get a chance.

@kizniche
Copy link
Owner

I'm going to release 5.0.2 in a second so you can update. Let me know if the update doesn't resolve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants