Considering getting a trimlight system #6
Replies: 5 comments 2 replies
-
It could be integrated with any number of Home Automation services. I just call the module while running a rule in openHAB (similar to home assistant) as it accomplishes what I want pretty well. I won't personally be making any integrations like that but the core API provided here is public and anyone can use it to do so.
It uses all local control, yes. No cloud connection is required or anything like that, as long as it can connect to the network your Trimlight is on it will work. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the quick response! Could you share a screenshot how you do it?
…On Tue, Mar 15, 2022 at 12:29 PM Ethan Dye ***@***.***> wrote:
Could this be integrated into home-assistant.io (it uses python)
It could be integrated with any number of Home Automation services. I just
call the module while running a rule in openHAB (similar to home assistant)
as it accomplishes what I want pretty well. I won't personally be making
any integrations like that but the core API provided here is public and
anyone can use it to do so.
Also does this use all local control? IE no cloud based connection
required?
It uses all local control, yes. No cloud connection is required or
anything like that, as long as it can connect to the network your Trimlight
is on it will work.
—
Reply to this email directly, view it on GitHub
<#5 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUMAOXT4PSJHFH6O64YF73DVADQI7ANCNFSM5QZURAZQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
My personal openHAB EMCAScript(JavaScript) script that is run when triggered by my local sundown looks like this: var Ephemeris = Java.type("org.openhab.core.model.script.actions.Ephemeris");
var Exec = Java.type("org.openhab.core.model.script.actions.Exec");
var logger = Java.type("org.slf4j.LoggerFactory").getLogger("org.openhab.rule." + ctx.ruleUID);
var now = new Date();
var pattern = "DEFAULT";
if (now.getMonth() == 10) {
pattern = "HALLOWEEN";
} else if (now.getMonth() == 11) {
pattern = "THANKSGIVING";
if (Ephemeris.getDaysUntil("THANKSGIVING") > Ephemeris.getDaysUntil("CHRISTMAS")) {
pattern = "CHRISTMAS";
}
} else if (now.getMonth() == 12) {
pattern = "CHRISTMAS";
}
if ((Ephemeris.getDaysUntil("NEW_YEAR") <= 1) || (Ephemeris.getDaysUntil("NEW_YEAR") >= 360)) {
pattern = "NEW_YEAR";
} else if ((Ephemeris.getDaysUntil("ST_PATRICK", "/etc/openhab/services/events.xml") <= 3) || (Ephemeris.getDaysUntil("ST_PATRICK", "/etc/openhab/services/events.xml") >= 363)) {
pattern = "ST_PATRICK";
} else if ((Ephemeris.getDaysUntil("MOTHERS_DAY", "/etc/openhab/services/events.xml") <= 3) || (Ephemeris.getDaysUntil("MOTHERS_DAY", "/etc/openhab/services/events.xml") >= 363)) {
pattern = "MOTHERS_DAY";
} else if ((Ephemeris.getDaysUntil("INDEPENDENCE_DAY") <= 3) || (Ephemeris.getDaysUntil("INDEPENDENCE_DAY") >= 363)) {
pattern = "INDEPENDENCE_DAY";
} else if ((Ephemeris.getDaysUntil("ST_VALENTINE", "/etc/openhab/services/events.xml") <= 3) || (Ephemeris.getDaysUntil("ST_VALENTINE", "/etc/openhab/services/events.xml") >= 363)) {
pattern = "ST_VALENTINE";
} else if ((Ephemeris.getDaysUntil("christian.EASTER", "/etc/openhab/services/events.xml") <= 3) || (Ephemeris.getDaysUntil("christian.EASTER", "/etc/openhab/services/events.xml") >= 363)) {
pattern = "10"; // Easter does not have a built-in name
}
logger.info("Trimlight changed to mode: manual, and pattern: " + pattern);
Exec.executeCommandLine("python3", "-m", "TrimPy", "--ip", "123.456.789.0", "--mode", "manual", "--pattern", pattern); If you use openHAB yours could look very similar, but I'm not sure what an HA rule to do this would look like. |
Beta Was this translation helpful? Give feedback.
-
This is awesome. Thank you so much. I’m curious about some things. I’m on the Trimlight Edge app. What sort of compatibility is there between Select and Edge? Does anyone know?
|
Beta Was this translation helpful? Give feedback.
-
For the most record, the most recently released Trimlight Edge API is documented via a link that can be found here: https://trimlight.com/support/does-the-edge-have-an-open-api Direct Link (as of this comment): https://39877180.fs1.hubspotusercontent-na1.net/hubfs/39877180/Manuals/Trimlight_Edge_API_Documentation%208192022.pdf |
Beta Was this translation helpful? Give feedback.
-
Could this be integrated into home-assistant.io (it uses python)
Also does this use all local control? IE no cloud based connection required?
Beta Was this translation helpful? Give feedback.
All reactions