Need app to just turn the AC off at 10?

thermostat

(Alan Holden) #1

I’ve been searching, and trying to do workarounds with the Thermostat apps I’ve found - but it seems like what I really need is so simple I should learn to program one myself.

We have a LG mini split system with units around the house. I’ve been using ZXT-120 Thermostats to control the temp settings, but hardly any app I’ve found will change the unit’s MODE to OFF (that’s the unit’s mode: heat/cool/dry/auto/off - not one of the ST modes like away/night/etc), unless you open a contact somewhere.

I just want an app that will send “mode=off” to one unit at a specific time or mode change event. The Thermostat Mode Director and the derivatives all come close - but TMD seems buggy and fires outside the ST modes set for it.

I’ve been writing web apps and api’s in cfml and javascript for years, but could use a quick course in groovy or ST app basics. Even a bare shell of what I’m looking for will help. If someone’s already done this one, my apologies for not finding it yet ;-]

Thanks.


(Yves Racine) #2

(Alan Holden) #3

Thanks, I guess!
It looks like you’re selling around 13 different app things on your store page. It would be nice to know which one will address my original post.
If it’s “TstatZones”, do you have a screenshot or something to confirm it does what I’m specifically asking for? Or maybe a human sentence or two? A non-refundable payment seems like a risky way for me to find out myself.


(Tony Fleisher) #4

I would recommend looking at webCoRE


(Yves Racine) #5

Hi, the smartapp has been used for more than 3 years by many contributors, just look at the testimonials under the thread.

If you click on the post, there are some screenshots included in the post above, and there are more screenshots at the ST community wiki:

http://thingsthataresmart.wiki/index.php?title=ScheduleTstatZones#Look_.26_Feel

And, all the use cases supported are described in details under the configuration section:

http://thingsthataresmart.wiki/index.php?title=ScheduleTstatZones#Configuration.

In your case, you should look into the use cases #10,15, 16,17 and 19.

BTW, if you have many units around in your house, you can use one master unit (ex. the LG mini split) and all the other slave units will be synchronized with its setpoints. With the virtual zone device that you can instantiate under ST, you can easily set a temp delta for each zone vs. the main thermostat’s setpoints (cooling/heating).

The smartapp uses the concepts of zones/rooms/schedules to control all the units (using the room/zone thermostat in each room). If an unit is outside the scheduled zones, then the smartapp can turn it off till its associated zone becomes active in your schedule.

There is more than 4K lines of code in the smartapp as it supports many features.

You can’t reproduce this kind of logic in webCore or any rule engine as those are only good for simple custom logic.

P.S. I’ve also included some special logic for the Remote ZXT-120 (custom DTH) in order to control the fan speed based on the temp differential inside the zoned rooms. I posted some infos about ScheduleTstatZones smartapp in the Remotec ZXT-120 thread about a year ago…

Regards.


(Mark) #6

The Zxt-120 has a switch capability, can’t you just create a simple automation in smart lighting so that at 10am (or 10pm) every day, an off command is sent to the “switch?”

I believe that will change the thermostat mode to off. Tagging @Ron, who has the most comprehensive community device handler for this thing.

I would imagine @yvesracine’s smartapps could do what OP is asking for, and no doubt many other things (never used any of them, myself).

But webcore could do this as well. And it’s free.


(Yves Racine) #7

Webcore is free indeed, but if you add your time to learn Webcore (it’s not that simple to learn), then to code and test your custom logic (which would need to be changed every time you want to add a new schedule or a new setpoint), then it becomes an investment in money (as your time is money)… And, you still don’t have any virtual zone devices for easier control under ST…

That’s why I ask for a small contribution for my time in developing my products which have thoroughly been tested before each release.

If you read the ST community wiki, you’ll see that my zoning smartapp can do a lot of use cases for the Remotec ZXT-120 for a contribution which is less than a few cups of coffee…

Regards.


(Mark) #8

The logic the OP is looking for appears to be “turn off at 10 every day” (he didn’t mention am or pm).

I’m not knocking your code, I’m just saying it doesn’t appear to be necessary for this purpose.


(Yves Racine) #9

And I’m telling the OP that my smartapp can do it and more… Just to be aware of this powerful option for its remotec ZXT-120…

And, I’m sure that your statement is not against my code as you’ve never used it… People who haven’t used my code cannot really talk against it as they don’t know what it can provide in terms of use cases and options to them…


(Mark) #10

Dude I really don’t know why everything with you has to turn into an argument about people who use your code vs. don’t use your code.

I hope the OP has gotten some ideas that will help him.

Peace out.


(Alan Holden) #11

Thanks for the ideas and enthusiasm. I look forward to reading more.

@marktheknife, when I look at switch apps like Smart Lights, the tstat does not show up as an option, so it doesn’t consider itself to be a switch at this point. I may be able to cobble something together from existing code I find, or glance at webCoRE per @TonyFleisher’s suggestion.

@yvesracine, thanks for the additional info & screenshots on your app. I’m not adverse to employing a nuclear powered blowtorch in order to light this simple match (how’s that for a metaphor?).
I’m looking through the wiki pages now, trying to find a use case like “At this time, turn this unit to mode (off)”. This is a LG mini split install, there is no central fan unit or vented “zones”.
The price is reasonable, although “no refunds will be given” if I can’t get this part to work.
Thanks again!


(Yves Racine) #12

Hi @AlHolden Eh, it’s your call as a ST user!

Vents are optional as indicated in the prerequisites at the ST community wiki.

This specific use case below is about turning off the room/zone thermostats that are not part of the scheduled zones:

http://thingsthataresmart.wiki/index.php?title=ScheduleTstatZones#Use_Case_.2316:_I_want_to_turn_off_my_zone.2Froom_thermostats_when_they_are_not_part_of_the_running_scheduled_zone.28s.29

http://thingsthataresmart.wiki/index.php?title=ScheduleTstatZones#Prerequisites

If your HA needs grow, just be aware that there is a HA solution available which has been thorougly tested in the past 3 years…

IF you think about it, the concepts of rooms/zones/schedules are very powerful, and I’m sure that you quite don’t know yet how you will structure your zones for better climate control (which you will need to do anyway no matter what’s your final solution). The smartapp can be parameterized to accomodate your present & future requirements as you understand the needs for your home.

P.S. And, the no refund policy is understandable given the fact that you download the source code (with a copyright/license) as ST has no appStore and I had to create my own.

Regards.


(Mark) #13

Which DTH are you using for your ZXT-120s?


(Ron Talley) #14

You should really look at webCoRE. Me personally, I think it is a fairly straight forward and simple Rule Engine but can be as complex as you need it to be.

Not only will you be able to do what you are asking for free, you will more than likely use it for everything else.

Good Luck


(Ron) #15

This is a large part of my I lost interest in the SmartThings community. Every time I would ask a question the answer was “Use Webcore”. At times I would even post my question stating I don’t want to use webcore so given that how would you do x…and the reply would be “why don’t you want to use webcore”.

@AlHolden As a part of my zxt-120 code base I have a smart app that does what you wanted.
You can find it here.

It still works if you are not using the zxt-120 but some other thermostat because it just needs a thermostat capability.


(Mark) #16

That’s understandable, I know that in your case it’s because you are able to code a solution of your own and would prefer to do it that way.

For those of us that can’t develop our own code, webcore is very useful.

For @AlHolden, even smart lighting can do what you’re asking, if you’re using @Ron’s device handler. There’s another device handler out there that doesn’t use the switch capability, I believe.

Here’s a screenshot from my ST app of a smartlighting automation that will tell a zxt-120 to turn off at 10pm. The device will interpret that as a mode off command.


(Alan Holden) #17

Thanks @marktheknife - I’m using the ZXT-120 HVAC Control handler by Brian Dahlem. It was the one mentioned in Amazon reviews and questions in the product page. I think the seller even posted the github link.
Sounds like there’s a better one to install?

I’m not adverse to geeking out over at WebCore or elsewhere. I write code for a living, just under a different platform. Projects like ST seem like the next generation of hobby for me, like model railroading, but for a new generation ;-]


(Ron) #18

@AlHolden feel free to try my handler if you like.

Here is a screen shot of what you get in the UI (note the page has screen shots which are out of date)

Yes, Much like railroading it gets expensive fast also :), enjoy!


(Alan Holden) #19

Thanks a lot @Ron

I see now how the handler can make so much more difference than the apps. Yours causes the thermostat to consider itself a candidate for simple on/off switching (instead of only heat/cool/off “mode” options, which apparently are interpreted differently by manufacturers).

Unfortunate that this “big fix” also introduces a “small glitch” in my LG mini-split environment:
While Brian’s up and down setpoint arrows work with my unit, the blue thermometer slider in this one fail to produce any change, response or “ding” from the unit, even after trying all of the codes that came listed for LG in the zxt-120 box. Even Alexa will revert the setpoint if you try to change it. So there must be some difference in how setpoint changes are processed between the two handlers.

But that’s a minor issue when compared to the futility I was feeling a week ago. Thanks again!


(Ron) #20

I did this by design. I didn’t like that when I wanted to change temp from 70 to 75, 5 signals where issues 71, 72, 73, 74, 75. I just wanted 75 issued. I also didn’t like that when initially setting up my system and setting cooling to 75 and Heat to 80 the signals where sent which turned on my Mitsubishi system, when all I was doing was setting up my preferred temps so “On”, “Cool”, “Hot” would send the temps I desired when I used them. So I removed the code to send the temp when temp changes.

With my DH the process is

  1. Set temp for Cool and/or Heat. No signal is issued.
  2. Press Cool/Heat/On and both the Mode signal and Temp signal are issued.

If you don’t like this you could compare the two DH and move the code back into the set temp to issue that temp. It should be relatively easy.

Not sure what you mean by “revert”. This isn’t clear to me.