Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cielo control unreliable within automation #58

Open
andypnz opened this issue Apr 30, 2024 · 8 comments
Open

Cielo control unreliable within automation #58

andypnz opened this issue Apr 30, 2024 · 8 comments
Assignees

Comments

@andypnz
Copy link

andypnz commented Apr 30, 2024

@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
Copy link
Owner

The cielo command execute the same code of the ui button

@andypnz
Copy link
Author

andypnz commented May 12, 2024

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
Copy link

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
Copy link
Owner

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
Copy link
Author

andypnz commented May 13, 2024

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:

  • platform: time
    at: "23:00:00"
    condition:
  • condition: and
    conditions:
    • condition: state
      entity_id: switch.heat_pump_power
      state: "on"
    • type: is_temperature
      condition: device
      device_id: b4049f004387b4ef17e5bdxxxxxxxxxx
      entity_id: 64fafd3df23808984530bcxxxxxxxxxxx
      domain: sensor
      above: 16
      action:
  • service: climate.set_hvac_mode
    target:
    device_id:
    - b4049f004387b4ef17exxxxxxxxxx
    data:
    hvac_mode: heat
    enabled: false
  • delay:
    hours: 0
    minutes: 0
    seconds: 10
    milliseconds: 0
    enabled: false
  • service: number.set_value
    data:
    value: "16"
    target:
    device_id: b4049f004387b4ef17xxxxxxxxxxxx
    enabled: false
  • service: script.set_heat_pump_to_heat_16_degrees
    metadata: {}
    data: {}
  • service: notify.mobile_app_arp_iphone
    data:
    message: Heat pump was left turned up! Heat pump now set to 16
    title: Heat Pump
    mode: single
    `

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

  • service: climate.turn_on
    metadata: {}
    data: {}
    target:
    device_id: b4049f004387b4ef17xxxxxxxxxxx
  • delay:
    hours: 0
    minutes: 0
    seconds: 10
    milliseconds: 0
  • service: climate.set_hvac_mode
    metadata: {}
    data:
    hvac_mode: heat
    target:
    device_id: b4049f004387b4ef17xxxxxxxxxxxxx
    enabled: true
  • delay:
    hours: 0
    minutes: 0
    seconds: 10
    milliseconds: 0
  • service: number.set_value
    target:
    entity_id: number.heat_pump_target_temperature
    data:
    value: "16"
    mode: single
    icon: mdi:heat-wave
    `

@bodyscape
Copy link
Owner

@andypnz do you still have problems?

@andypnz
Copy link
Author

andypnz commented Jun 24, 2024

@bodyscape Yes, issue persists…
Within the automation I have a delay, then command
Then actually repeat the sequence - doing this, it works 95% of the time
Other bits of the automation work - it seems to only be the Cielo part that sometimes does not… no error, etc….

@bodyscape
Copy link
Owner

bodyscape commented Jul 24, 2024

@andypnz honestly i have no idea what's going on your side... everything work 100% of the time... try version 1.7.7 maybe....

@bodyscape bodyscape self-assigned this Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants