PLEG Device properties not working any more ?

I had to redo my PLEG which i use for my Aeon multisensors. I have replaced them, so now need to change my PLEG. Most of the conditions i wanted were still theer, so i only had to add a few things to incorporate the new sensor. I used to have a device property ‘lightlevel’, as i was struggling to set it up in trigger inputs.
The problem is when i am on the PLEG settings input page (triggers is yellow) and i click on device properties to set up the light sensor of the multisensor, nothing happens. When i click on schedules that goes yellow and i could enter a schedule, but on device properties nothing happens. Has this feature been disabled ?

Have you tried to refresh your browser ?

Yes i have tried refreshing multiple times. No change. Very strange.

Do you have access to Chrome Browser ?
If so. Open Vera Control Tab.
While mouse is in it … type Control Shift I
This opens up a new browser debug window.
In that window … open the tab labeled Console
Now go back to the Vera Window and try to open the device properties table.
See if there are any errors in the Console window … Send them to me if so.

^^^
Hello Richard, can you explain what the Vera Control TAB is, where do we find it or how do we open it?

I havent got Chrome but will install over the weekend if i can. What i’ll do first is reinstall another instance of PLEG, see if that works and if it does just transfer everything over and delete the one which is not working. Something strange happened there anyway, i had 2 LightwaveRF switches on my Vera (which are controlled by PLEG). I changed them to dimmers. Switched both on to see if it worked, it worked ok. Switched them off, all of a sudden both disappeared from my UI5. So i recreated them in Rfxtrx. Went back in to PLEG, and in Inputs they were gone. So i recreated them. Before they disappeared they were called On1 and On2. Tried recreating them, but PLEG renamed them On11 and On21, and i cannot change it to On1 and On2. Something strange going on.

Reload Vera and Reload the browser … the names are cached … it still thinks they exist and will not let you create new inputs that match existing inputs in the same PLEG instance.

I thought it might be something like that. I did reload Vera (button top left on the UI5) but i might try reboot

@RichardTSchaefer

This has just happened again. I have 2 PLEGS, both have been working fine for months. Just opened one and wanted to add a Device property, clicked on it, nothing opens. Schedule opens, but not device properties. I have tried in my other PLEG, and it works there.
As you suggested earlier, I have logged some (one) error in console in Chrome and sent it as a pm with reference to this thread.
Last time i uninstalled and reinstalled PLEG. My PLEGs have grown quite a bit since so i really want to avoid that this time if i can…

I have seen similar cases like yours. In each instance I had deleted a device that I had used in the PLEG as a device property. I was also unable to create a status report. To remedy the situation, I would open the Advanced tab for the PLEG, copy the properties to Notepad, remove the entries related to the deleted devices, paste the edited content bsck into PLEG, close and save. Then I could open Status and also add new device properties.

This is basically what @RichardTSchaefer recommended, and it did solve that problem. Now i have a new problem, only on this PLEG, i get a blank status and report page… ??? I did pm RichardTSchaefer with a log of the error console

My next release … I will add detection of references to deleted Vera Devices in Triggers, Properties, and Actions … and cleanup (With a warning) as appropriate.

I had a look at your suggestion about deleted devices in actions. I can access actions, but i cannot find anything in there with a reference to a deleted device. But that could still be there but not visible i guess. At the moment i can live without status, do you think your next release might fix it ? Or do i have to bite the bullett and delete that PLEG ?

Try this: Go to the Advanced tab for the PLEG, copy the Actions to Notepad, remove the entries related to the deleted devices, paste the edited content bsck into Actions in the PLEG, close and save.

I cannot copy the actions to notepad, only the action names (as you have to click edit to see the actions). I cannot see any actions relating to a deleted device, although it is possible that there is one which is not visible

I have a bug fix pending audit.

In the mean time … you can clean up the actions in the Actions Editor.
Goto the Advanced Tab … You will see the actions from deleted devices … because the device Name is blank … you can delete these actions there!

Aaaaaaaaaaaaaaaaaaah !!! I did not realise i had to go to the advanced tab. With that info i found the dead device, deleted it, and hey presto, status is back !!! :slight_smile:

And lesson learnt for the future: Delete all actions and everything relating to devices you want to delete BEFORE deleting them…

Wen my update is made available … you will not have to worry about that.

This was my problem … I had not protected the code against devices being deleted.