Page 1 of 1

Cron module in Home Automation

Posted: 05 Feb 2015 17:09
by ha-dummy
Hi all, I have been successfully using a Razberry since October 2014. I have recently updated the SW to version v2.0.1.The GUI looks very good and I saw different new features in the Home Automation UI.

Since I am using some thermostatic valves (Danfoss living-connect LC-13) I would like to use the “Cron scheduler” for them but the window that is displayed in HA-> Preferences-> Cron scheduler looks empty as per image below ( I previously selected Cron it in HA->Preferences->Scheduler). Can you help me in explaining what should I do to set-up a scheduler for my LC-13 valves?
My Z-wave network is quite small and I have 3 LC-13 valves, a Fibaro universal binary sensor and a Fibaro wall-plug.

By the way, I am trying to write some online documentation “for dummies” (people that are not very familiar with JSON and JS commands). If anybody is interested, this is the address:
homeautomationfordummies.wordpress.com

Cron Snapshot from Home Automation UI:
Image
http://imageshack.com/i/ipvSzRECj


Thanks very much in advance

Re: Cron module in Home Automation

Posted: 07 Feb 2015 22:23
by n0ahg
You should be using the ScheduledScene module. The Cron module provides the internal schedule functionality used by other modules such as ScheduledScene, in fact it's description is 'Scheduler used by other modules'

Re: Cron module in Home Automation

Posted: 12 Feb 2015 00:06
by ha-dummy
Thank you very much.
Now the point is that the ScheduledScene activates a Scene. There is no Scene for thermostats, then I guess that I should follow this process:
1 - create a Dummy Device
2 - create a Scene for the Dummy Device
3 - create a ScheduledScene for the Scene
4 - use Cron for the ScheduledScene
Then, considering that the scene can be a light-scene (binary switch), I can use it to trigger the thermostat through a JS code (not through Logical Rules since the thermostat is not recognized by them).
At this point I am wondering if it is worth doing that or if it is better to go straight to JS.

Re: Cron module in Home Automation

Posted: 12 Feb 2015 00:25
by pz1
With CodeDevice I did create device of type toggleButton (which in itself is treated as a Scene) The device holds a Javascript code that sets the Z-Wave thermostatic device. See the example Recipe for StellaZ radiator thermostatic valve.

Re: Cron module in Home Automation

Posted: 01 Mar 2015 00:19
by ha-dummy
Many thanks. Your method is really good to perform a CRON operation.
For those who want to implement it on Razberry + Danfoss LC (living-connect) step 1 has to be modified in the following way (I am quoting your description):
"-Preferences-Modules-Devices-CodeDevice. Give it a meaningful title. For example KitchenComfort. Go to the next step in the creation and select toggleButton. As for the code, enter the following one line code:"

Code: Select all

Code: Select all
zway.devices[N].instances[0].commandClasses[67].Set(1,T)

Where,
N: device number
T: temperature in Celsius degrees

Re: Cron module in Home Automation

Posted: 01 Mar 2015 01:30
by pz1
Good to hear the recipe has helped you.