I see there are other threads about charting problems, but I think mine are different. I also think there is an error in the hs help file. Here is the excerpt.
I found not give any of these to work. I did find what I think is an error. I removed the extra " marks around Current Cost in the statement and now my Last Hour chart works. However, none of the other charts show any data. Today and Today vs Yesterday do not even show a chart. Month and Month vs. Last Month show the chart but no data.
Since the help file was wrong, I want to make sure its not something simple like that. Any help is appreciated.
HSTouch
To display data in HSTouch, use the HomeSee Device Association and select a Current Cost device.
To display graphs in HSTouch add an image element and set the ImageURL property to the following:
Day vs Yesterday: [$SCRIPT=&hs.plugin(""Current Cost"").ChartDayVSYesterdayUrl(0,now,500,100)]
Day: [$SCRIPT=&hs.plugin(""Current Cost"").ChartDayUrl(0,now,500,100)]
Month: [$SCRIPT=&hs.plugin(""Current Cost"").ChartMonthUrl(0,now,500,100)]
Month vs Last Month: [$SCRIPT=&hs.plugin(""Current Cost"").ChartMonthVSLastMonthUrl(0,now,500,100)]
Last Hour: [$SCRIPT=&hs.plugin(""Current Cost"").ChartLastHourUrl(0,500,100)]
Replace 0 with the sensor to chart (10=All 'Sensors To Add' sensors), replace ""now"" with an actual date for different days (must be mm/dd/yyyy format), replace 500 with the width of your chart and replace 100 with the height of your chart.
To display data in HSTouch, use the HomeSee Device Association and select a Current Cost device.
To display graphs in HSTouch add an image element and set the ImageURL property to the following:
Day vs Yesterday: [$SCRIPT=&hs.plugin(""Current Cost"").ChartDayVSYesterdayUrl(0,now,500,100)]
Day: [$SCRIPT=&hs.plugin(""Current Cost"").ChartDayUrl(0,now,500,100)]
Month: [$SCRIPT=&hs.plugin(""Current Cost"").ChartMonthUrl(0,now,500,100)]
Month vs Last Month: [$SCRIPT=&hs.plugin(""Current Cost"").ChartMonthVSLastMonthUrl(0,now,500,100)]
Last Hour: [$SCRIPT=&hs.plugin(""Current Cost"").ChartLastHourUrl(0,500,100)]
Replace 0 with the sensor to chart (10=All 'Sensors To Add' sensors), replace ""now"" with an actual date for different days (must be mm/dd/yyyy format), replace 500 with the width of your chart and replace 100 with the height of your chart.
Since the help file was wrong, I want to make sure its not something simple like that. Any help is appreciated.
Comment