HenMus
(Hen Mus)
1
For heating control I use sitemap for setting temp and time.
Input item=WarmtepompDagTijd label="WP dagtijd [%1$tH:%1$tM]" inputHint="time" here
In DSL I use
Time is WarmtepompDagTijd timeOnly
Is there a equivalent for in JS. The below seems to work random
triggers.DateTimeTrigger(conf.schema.tijden.dag)
or to compare it
triggers.DateTimeTrigger(WarmtepompDagTijd),
Currently I changed it to GenericCronTrigger
triggers.GenericCronTrigger(tijdItemNaarCron(conf.schema.tijden.dag))
Is that the right way?
weymann
(Bernd Weymann)
2
Where is this rule stored?
Do you have a js file in automation/scripts?
I’m asking because the syntax of your example looks awkward for a javascript rule. See file based example from documentation.
Following the above rule declaration your trigger shall look like this:
It’s also documented very well!
triggers: [triggers.DateTimeTrigger("WarmtepompDagTijd",timeOnly=true)],
HenMus
(Hen Mus)
3
Thanks Bernd, I went back to my original version and added timeOnly and assume it will work. Thanks!
Yes I have a js file for managing the temperature but in stored is automation/js
1 Like
weymann
(Bernd Weymann)
4
Don’t forget the quotation marks for the item!
They are missing in your top example.