1) Give a description of the problem
I’m trying to build on Nezmo’s sample piston to add the ability to reset the HEM on specific days of the month when my billing cycle ends and the new one starts. I’m also adding the ability to differentiate cost based on summer usage or not
So far, I have got the cost per kWh but it is not totally accurate as I would like it to start at the beginning of the summer month’s billing cycle not on the 1st day of the month Also would like to reset the physical device in ST when the cycle resets
2) What is the expected behaviour?
Calculate energy usage and reset at the start of the billing cycle
Reset physical devices in SmartThings
Adjust costPerkWH based on time of year
Upcoming billing cycle end dates are 5/19, 6/16, 7/2, 8/18, 9/15, 10/20, 11/17, 15/15
To the best of my understanding the cycles runs 4 Tuesdays for 2 months then it’s the 5th Tuesday the 3rd month
3) What is happening/not happening?
Trying to add date in the if statement but no variable for date.
**4) Post a Green Snapshot of the piston![image|45x37]
5) Attach logs after turning logging level to Full
(PASTE YOUR LOGS HERE THEN HIGHLIGHT ALL OF THE LOGS AND CLICK ON THE </> ICON TO FORMAT THEM CORRECTLY)