bodyscape / cielo_home

Integration with Cielo Home
Apache License 2.0
40 stars 10 forks source link

Cielo control unreliable within automation #58

Open andypnz opened 1 month ago

andypnz commented 1 month ago

@bodyscape I have been using your custom integration for a while now - it is truly great!

One issue I wonder if you can help with? I have noticed when I include Cielo commands in automations they often do not work. Using the Cielo controls in a dashboard always works. Using Cielo commands in a script works if the script is run from the dashboard, but often they don’t work if the script is called from within an automation. The automations clearly run (lights on, etc) but the Cielo calls don't make any changes on the Cielo device.

Any thoughts / trouble shooting?

bodyscape commented 3 weeks ago

The cielo command execute the same code of the ui button

andypnz commented 2 weeks ago

I would expect the same… however I get 100% reliability sending commands within the HA UI, but maybe 50% reliability when a command is within an automation. I will try changing my automations (perhaps to only issue one heat pump command per automation) to see if that makes any difference….

jduff001 commented 2 weeks ago

maybe this will help. I notice about a two second delay for the cloud to respond. So try sending just one command and then a wait delay... then the next command

bodyscape commented 2 weeks ago

That's a good idea, put a little delay between the call. Fast back to back call can cause problems, i'll check on it.

andypnz commented 2 weeks ago

Recently UI commands also stopped working for a few days - started working again after yesterdays update to 1.7.6 (coincidence?).

Here is an example of an automation that does not turn down the heat pump. I do receive the notification to my phone - so overall, it is 'working', just not the Cielo Home part.... No errors on Trace.

Here I am calling a script to set the temp. The script works fine from the UI, but not within the automation. Does not work calling the temp change directly either (I was testing using the script in case it worked).

`alias: "Heatpump: Left turned up at 2300hrs!" description: "" trigger:

`alias: Set heat Pump to Heat, 16 Degrees sequence: