Help with cluttered piston, consolidate tips?


#1

1) Give a description of the problem
I’m adding IR controlled heat pumps, adding 5 of them. in hopes to control them as thermostat using some kind of thermostat smartapp, if you have any advice for thermostat smartapp that I could use, please write that down aswell :slight_smile:

2) What is the expected behaviour?
The piston does work but adding 3 more will make the piston cluttered real good, looking for suggestions / example on how to trim it down if its even possible?

3) What is happening/not happening?
working as intended

**4) Post a Green Snapshot of the piston![image|45x37]

.


#2

Does it have to be accurate to the degree? Could it be a range? (50-55 degrees)?

What IFTTT command is sent at each change? If the temperature changes a lot, you’re going to have a lot of bandwidth traffic.


#3

Hi,

The temperature doesn’t change alot, the piston above is to allow me full temperature control over the heat pump from the smartapp instead of using the remote. The plan is to add all settings for the heatpump so I can change settings from the app - that is if I can find a thermostat app that allows me to add a dumb ir heat pump.

other than that the piston doesnt get used much. The plan is to uhm have another piston set the thermostat temperature depending on the mode so I guess the it will get 4 different temperature commands per day.

Best regards


#4

image

Well, if I’m reading your commands right, you have an IFTTT command for each temperature. You could do something like

“If thermostatSetpoint changes” (which you have)

Then Send the (allrum_(Thermostat_Vardagsrum:thermostatSetpoint))

Since this would occur at every change, you should be able to get rid of all your IFs (except the ones that indicate out of range), and just have this single THEN line. I’m not sure if I’m formatting the expression correctly, though. You could type it into your piston and see what it evaluates as.


#5

thanks alot for helping out! I had abit of issues formatting the expression and getting stuff to work, I’m sure I did something wrong with the below piston…

I made a test piston but the variable doesn’t update correctly and this was the only way I could get the information from above to work.
could you help me out further?
This is only a test piston till I know its working correctly.
Thanks


#6

I found out I was missing brackets. It was late when I tried to do the piston.

(allrum_{[Thermostat : thermostatSetpoint]}) <- this evaluates to allrum_x (where x = the setpoint number)

Now I just gotta figure out why its sometimes missing to update or send ifttt commands