cdjackson / HABmin

A web admin console for openHAB home automation
http://www.cd-jackson.com/index.php/openhab/habmin
217 stars 51 forks source link

sitemap chart item not saved correctly #237

Open TommyFive opened 9 years ago

TommyFive commented 9 years ago

Hi,

Version: 0.1.3-snapshot and also in the latest source from today (25.05.2015, 0.1.4-snapshot).

I setup an new chart item via HABmin in the sitemap with following properties: Item=Weather_Chart period=D refresh=60000 labelcolor=blue valuecolor=green visibility=Weather_Chart_Period==0

The generated test.sitemap chart item looks like this: Chart item=Weather_Chart period=Drefresh=60000

There is a missing space before "refresh" and the other properties are missing at all.

Steps to reproduce: 1) Create a new sitemap via HABmin with name e.p. "test" 2) Drag&Drop a frame and put another chart item into it 3) Set the properties a mentioned at the top 4) Press "Update data" and then "Save" 5) Check the file, item is corrupt 6) Reload HABmin and check the properties again - some are missing, and the period looks "Drefresh".

I then put in an old backup to check if the read of the sitemap works. Chart item=Keller_Steckdose_Waschmaschine_Leistung period=W refresh=60000 visibility=[Keller_Steckdose_Waschmaschine_Diagramm_Spanne==2]

The designer does not even show the visibility property at all (only checked in latest version)