Hello,
In accordance with the "Time-/position Settings" I have:
Sunrise: 6:07
Sunset: 19:10
I decided that it will use astronomical clock to switch a on / off light in the garden.
Unfortunately, the light switch on when it's still light.
How can I do by script, to have the function like : Sunset + 2h or Sunrise - 2h
Thanks in advance for reply.
Regards
Janusz L.
Time-/ position settings
Moderator: Co-Administratoren
- Roland M.
- Beiträge: 9804
- Registriert: 08.12.2012, 15:53
- System: CCU
- Wohnort: Graz, Österreich
- Hat sich bedankt: 252 Mal
- Danksagung erhalten: 1381 Mal
Re: Time-/ position settings
Hello Janusz and wellcome here!
So I would solve this request like this:
I don't know your German skills, but here is a good description to specify the time of the day more detailed:
http://www.homematic-inside.de/tecbase/ ... nterteilen
Roland
A screenshot would be very helpful...lesnijan hat geschrieben:I decided that it will use astronomical clock to switch a on / off light in the garden.
Unfortunately, the light switch on when it's still light.
So I would solve this request like this:
Code: Alles auswählen
IF time control (Astro function day)
THEN light_xy immediatly switching status: on
ELSE light_xy immediatly switching status: off
This isn't easy, especially the "minus thing"How can I do by script, to have the function like : Sunset + 2h or Sunrise - 2h
I don't know your German skills, but here is a good description to specify the time of the day more detailed:
http://www.homematic-inside.de/tecbase/ ... nterteilen
Roland
Zur leichteren Hilfestellung bitte unbedingt beachten:
-----------------------------------------------------------------------
1. CCU2 mit ~100 Geräten (in Umstellung auf RaspberryMatic-OVA auf Proxmox-Server)
2. CCU2 per VPN mit ~50 Geräten (geplant: RaspberryMatic auf Charly)
3. CCU2 per VPN mit ~40 Geräten (geplant: RaspberryMatic auf CCU3)
CCU1, Test-CCU2, Raspi 1 mit kleinem Funkmodul, RaspberryMatic als VM unter Proxmox, Access Point,...
- Bezeichnung (HM-... bzw. HmIP-...) der betroffenen Geräte angeben (nicht Artikelnummer)
- Kurzbeschreibung des Soll-Zustandes (Was soll erreicht werden?)
- Kurzbeschreibung des Ist-Zustandes (Was funktioniert nicht?)
- Fehlermeldungen genau abschreiben, besser noch...
- Screenshots von Programmen, Geräteeinstellungen und Fehlermeldungen (direkt als jpg/png) einstellen!
-----------------------------------------------------------------------
1. CCU2 mit ~100 Geräten (in Umstellung auf RaspberryMatic-OVA auf Proxmox-Server)
2. CCU2 per VPN mit ~50 Geräten (geplant: RaspberryMatic auf Charly)
3. CCU2 per VPN mit ~40 Geräten (geplant: RaspberryMatic auf CCU3)
CCU1, Test-CCU2, Raspi 1 mit kleinem Funkmodul, RaspberryMatic als VM unter Proxmox, Access Point,...
Re: Time-/ position settings
Thank you very much for your help
Unfortunately, I do not know German, but I hope I can handle it.
By the way,
I have to learn to write the scripts.
In which language is it written or where I can find the manual to lern it.
Thank you very much.
Regards,
Janusz L.
Unfortunately, I do not know German, but I hope I can handle it.
By the way,
I have to learn to write the scripts.
In which language is it written or where I can find the manual to lern it.
Thank you very much.
Regards,
Janusz L.
- Roland M.
- Beiträge: 9804
- Registriert: 08.12.2012, 15:53
- System: CCU
- Wohnort: Graz, Österreich
- Hat sich bedankt: 252 Mal
- Danksagung erhalten: 1381 Mal
Re: Time-/ position settings
Hi,
A 4 part documentation you can find at http://www.eq-3.de/downloads.html (search for "Script" in "Ihr Suchbegriff"), but again, it's in German...
Roland
It's a C style programming language with a rather little functional range.lesnijan hat geschrieben:I have to learn to write the scripts.
In which language is it written or where I can find the manual to lern it.
A 4 part documentation you can find at http://www.eq-3.de/downloads.html (search for "Script" in "Ihr Suchbegriff"), but again, it's in German...
Roland
Zur leichteren Hilfestellung bitte unbedingt beachten:
-----------------------------------------------------------------------
1. CCU2 mit ~100 Geräten (in Umstellung auf RaspberryMatic-OVA auf Proxmox-Server)
2. CCU2 per VPN mit ~50 Geräten (geplant: RaspberryMatic auf Charly)
3. CCU2 per VPN mit ~40 Geräten (geplant: RaspberryMatic auf CCU3)
CCU1, Test-CCU2, Raspi 1 mit kleinem Funkmodul, RaspberryMatic als VM unter Proxmox, Access Point,...
- Bezeichnung (HM-... bzw. HmIP-...) der betroffenen Geräte angeben (nicht Artikelnummer)
- Kurzbeschreibung des Soll-Zustandes (Was soll erreicht werden?)
- Kurzbeschreibung des Ist-Zustandes (Was funktioniert nicht?)
- Fehlermeldungen genau abschreiben, besser noch...
- Screenshots von Programmen, Geräteeinstellungen und Fehlermeldungen (direkt als jpg/png) einstellen!
-----------------------------------------------------------------------
1. CCU2 mit ~100 Geräten (in Umstellung auf RaspberryMatic-OVA auf Proxmox-Server)
2. CCU2 per VPN mit ~50 Geräten (geplant: RaspberryMatic auf Charly)
3. CCU2 per VPN mit ~40 Geräten (geplant: RaspberryMatic auf CCU3)
CCU1, Test-CCU2, Raspi 1 mit kleinem Funkmodul, RaspberryMatic als VM unter Proxmox, Access Point,...
Re: Time-/ position settings
Thank you for help.
Regards
Janusz L.
Regards
Janusz L.
Roland M. hat geschrieben:Hi,
It's a C style programming language with a rather little functional range.lesnijan hat geschrieben:I have to learn to write the scripts.
In which language is it written or where I can find the manual to lern it.
A 4 part documentation you can find at http://www.eq-3.de/downloads.html (search for "Script" in "Ihr Suchbegriff"), but again, it's in German...
Roland
Re: Time-/ position settings
I have the function like:
real c_time = (0.01 * system.Date("%M").ToInteger()) + system.Date("%H").ToInteger();
real c_daysbeginning = (0.01 * system.SunriseTime("%M").ToInteger()) + system.SunriseTime("%H").ToInteger();
real c_dayend = (0.01 * system.SunsetTime("%M").ToInteger()) + system.SunsetTime("%H").ToInteger();
integer v_daytime = 0; ! night
if (c_time < c_dayend + 2) {
v_daytime = 3; ! evening
}
if (c_time < c_dayend) {
v_daytime = 2; ! afternoon
}
if (c_time < c_daysbeginning) {
v_daytime = 1; ! dawn
}
if (c_time < c_daysbeginning - 2) {
v_daytime = 0; ! night
}
dom.GetObject("Daytime").State(v_daytime);
How can I use the function to switch the light on when is night?
real c_time = (0.01 * system.Date("%M").ToInteger()) + system.Date("%H").ToInteger();
real c_daysbeginning = (0.01 * system.SunriseTime("%M").ToInteger()) + system.SunriseTime("%H").ToInteger();
real c_dayend = (0.01 * system.SunsetTime("%M").ToInteger()) + system.SunsetTime("%H").ToInteger();
integer v_daytime = 0; ! night
if (c_time < c_dayend + 2) {
v_daytime = 3; ! evening
}
if (c_time < c_dayend) {
v_daytime = 2; ! afternoon
}
if (c_time < c_daysbeginning) {
v_daytime = 1; ! dawn
}
if (c_time < c_daysbeginning - 2) {
v_daytime = 0; ! night
}
dom.GetObject("Daytime").State(v_daytime);
How can I use the function to switch the light on when is night?