INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Scene Troubles (Solved)  (Read 3353 times)

drmimosa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 690
Scene Troubles (Solved)
« on: November 02, 2016, 10:14:21 am »

I'm having the following problem with scenes:

1. Error message pops up in browser when I save a scene (may be due to using a previously deleted scene name)

2. Successful scene saves don't work or don't appear when Engen restarts

Here's the error code:

Code: [Select]
2016-11-02 10:08:25: tornado.access:500 POST /api/v1/scenes (::1) 12.00ms
2016-11-02 10:08:34: zupdate:config /0:5/association/1/nodes {'maxnode': 5, 'nodes': [1]}
2016-11-02 10:08:34: zupdate:config /0:5/association/1/name {'name': u'Lifeline'}
2016-11-02 10:08:34: zupdate:config /0:5/association/1/command_list {'cmds': ['basic_report', 'hail:01']}
2016-11-02 10:08:35: zupdate:config /0:5/association/2/nodes {'maxnode': 5, 'nodes': []}
2016-11-02 10:08:35: zupdate:config /0:5/association/2/name {'name': u'Retransmit'}
2016-11-02 10:08:35: zman.0:Wrote database
2016-11-02 10:08:35: zupdate:config /0:5/association/2/command_list {'cmds': ['switch_binary:01', 'basic_set']}
2016-11-02 10:08:58: rest:Exception on /api/v1/scenes [POST]
Traceback (most recent call last):
  File "site-packages\flask\app.py", line 1988, in wsgi_app
  File "site-packages\flask\app.py", line 1641, in full_dispatch_request
  File "site-packages\flask\app.py", line 1544, in handle_user_exception
  File "site-packages\flask\app.py", line 1639, in full_dispatch_request
  File "site-packages\flask\app.py", line 1625, in dispatch_request
  File "views\api.py", line 350, in scene_create
  File "views\api.py", line 126, in build_result
ValueError: result must be present
2016-11-02 10:08:58: tornado.access:500 POST /api

I've tried the following troubleshooting items:

1. Restart computer
2. Restart Engen
3. Remove and reconnect Z-stick
4. Reset Z-Stick and all devices and rebuild

Any ideas what may be happening?

Logged

drmimosa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 690
Re: Scene Troubles
« Reply #1 on: November 02, 2016, 10:18:18 am »

I narrowed it down a bit.

The error message occurs after I do the following:

1. Build/save a scene with name (say Night)
2. Delete scene Night
3. Rebuild and try to save with same name

But in addition to that, scenes aren't always appearing when Engen restarts, in the instance where they successfully save and work.

I'm on build 36.

My system includes 3 Aeon power outlets, an Aeon LED bulb, and the Fibaro LED strip.
Logged

drmimosa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 690
Re: Scene Troubles
« Reply #2 on: November 03, 2016, 12:36:51 am »

Somehow it all works now. Not sure what changed.

I did carefully set the scene within the settings page. Previously I was trying to save a configuration set prior to going to the settings scenes page. Maybe this was the difference.
Logged

drmimosa

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 690
Re: Scene Troubles
« Reply #3 on: November 03, 2016, 11:49:39 am »

Ok, I woke up with a clear head and figured out why the earlier error occurs.

When you press [+ New Scene] it opens a page with values displayed for each device. These values are their current On/Off and color status. However, Engen only saves the device values for the scene that you input from this point on. If you don't change anything, the website sends a POST command with no value and gets an error.

Say a light switch is on and you want to make a scene. You need to open [+ New Scene], name the scene, turn off the light, turn it back on, then hit save. Then the scene saves correctly and works.
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72379
  • Where did I put my teeth?
Re: Scene Troubles (Solved)
« Reply #4 on: November 03, 2016, 01:15:04 pm »

Thanks for reporting that.  We'll see if we can make it easier and clearer.
Logged
Pages: [1]   Go Up