Create scene is failing

Hi @amg0, @akbooer,

Running the latest versions of ALTUI (2547) and the development version of openLuup (2020.5.22) creating new scenes is failing. Each time I try I get the below error. The scene does not get created.

2020-05-30 13:32:38.759   openLuup.server:: GET /data_request?id=lr_ALTUI_Handler&command=addWatch&service=urn:micasaverde-com:serviceId:SecuritySensor1&variable=ArmedTripped&device=0-10063&scene=-1&expression=(new%20%3D%3D%20%271%27)&xml=&provider=&providerparams=%5B%5D&_=1590837969118 HTTP/1.1 tcp{client}: 0x2578598
2020-05-30 13:32:38.762   openLuup.server:: GET /data_request?id=scene&action=create&json=%7B%22modeStatus%22%3A%220%22%2C%22timers%22%3A%5B%5D%2C%22triggers%22%3A%5B%5D%2C%22groups%22%3A%5B%7B%22delay%22%3A0%2C%22actions%22%3A%5B%7B%22device%22%3A%2210163%22%2C%22service%22%3A%22urn%3Aupnp-org%3AserviceId%3ASwitchPower1%22%2C%22action%22%3A%22GetStatus%22%2C%22arguments%22%3A%5B%5D%7D%5D%7D%5D%2C%22name%22%3A%22Test%202%22%2C%22lua%22%3A%22%22%2C%22room%22%3A0%2C%22paused%22%3A0%2C%22triggers_operator%22%3A%22OR%22%7D HTTP/1.1 tcp{client}: 0x275c8d8
2020-05-30 13:32:38.767   openLuup.server:: request completed (2 bytes, 1 chunks, 3 ms) tcp{client}: 0x275c8d8
2020-05-30 13:32:38.842   openLuup.server:: GET /data_request?id=lu_status2&output_format=json&DataVersion=837909593&Timeout=60&MinimumDelay=1500&_=1590837969119 HTTP/1.1 tcp{client}: 0x275c8d8
2020-05-30 13:32:38.946   luup_log:3: ALTUI: warning: Unknown data push provider: or data:[]
2020-05-30 13:32:38.948   openLuup.context_switch::  ERROR: [dev #3] [string "L_ALTUI.lua"]:2066: bad argument #5 to 'format' (string expected, got nil)
2020-05-30 13:32:38.949   openLuup.servlet:: error in callback [lr_ALTUI_Handler] : [string "L_ALTUI.lua"]:2066: bad argument #5 to 'format' (string expected, got nil)

suggesting to run it in debug mode and capture the log please. You have a watch with a data provider that is empty or not existing in the configuration. I made a GitHub version push that will avoid the crash but it wont fix the root issue. you need to check your list of data push watches, as well as your list of data providers to see which one is missing

1 Like

Hi amg0, i will make the log later. I do not have any data push setup.
I did find that i can make a scene without a watch, save that ok, and then add the watch. It is only if there is a wacht on a new scene.

Chhers Rene