Open tehnic1service opened 7 months ago
Preconditions:
Defects description:
https://github.com/rianadon/timer-bar-card/assets/122440223/00ca0ae6-2897-4375-8c21-727c6f6f302a
When the timer-bar is not working, the script works as expected:
The only way to make the time bar appear, is to trigger the timer twice in the defined interval
Card configuration
type: custom:timer-bar-card entity: switch.comanda_electrovalve_aspersoare_aspersoare_spate duration: script: script.temporizator_spate name: Mushroom style invert: true bar_direction: rtl bar_width: 60% mushroom: layout: horizontal color: green hold_action: action: toggle sync_issues: ignore debug: true
Automation configuration
alias: Temporizator gazon spate description: "" trigger: - platform: state entity_id: - switch.comanda_electrovalve_aspersoare_aspersoare_spate from: "off" to: "on" for: hours: 0 minutes: 0 seconds: 0 condition: [] action: - service: script.toggle data: {} target: entity_id: script.temporizator_spate mode: single
Script configuration
alias: Temporizator spate sequence: - delay: hours: 0 minutes: 0 seconds: 10 milliseconds: 0 - service: switch.turn_off data: {} target: entity_id: switch.comanda_electrovalve_aspersoare_aspersoare_spate mode: single
Debug information This behaviour happens only when the action triggers an entity but the duration is taken form a script.
A working example:
Same script, same automation, triggering the script
type: custom:timer-bar-card entity: script.temporizator_spate duration: script: script.temporizator_spate name: Mushroom style invert: true bar_direction: rtl bar_width: 60% mushroom: layout: horizontal color: green hold_action: action: toggle sync_issues: ignore debug: true
The downside of this option is that if I want to interrupt the sequence from the timer, only the timer on the card stops, but the script still runs for the remaining time.
Preconditions:
Defects description:
https://github.com/rianadon/timer-bar-card/assets/122440223/00ca0ae6-2897-4375-8c21-727c6f6f302a
When the timer-bar is not working, the script works as expected:
The only way to make the time bar appear, is to trigger the timer twice in the defined interval
Card configuration
Automation configuration
Script configuration
Debug information This behaviour happens only when the action triggers an entity but the duration is taken form a script.
A working example:
Same script, same automation, triggering the script
The downside of this option is that if I want to interrupt the sequence from the timer, only the timer on the card stops, but the script still runs for the remaining time.