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

Question: Progressbar not refreshing? #22

Closed
MarcE85 opened this issue Sep 16, 2021 · 7 comments
Closed

Question: Progressbar not refreshing? #22

MarcE85 opened this issue Sep 16, 2021 · 7 comments

Comments

@MarcE85
Copy link

MarcE85 commented Sep 16, 2021

Hey,

I've got the Bar Card working bit alexa timers. But right now the bar is only refreshing if i press F5. Is this by design or did i something wrong?

type: custom:timer-bar-card
entities:
  - sensor.echo_buro_next_timer
bar_foreground: '#eee'
bar_direction: rtl
bar_background: 'var(--mdc-theme-primary, #6200ee)'
start_time:
  attribute: process_timestamp
end_time:
  attribute: prior_value
bar_width: 35%
guess_mode: true
filter: false
debug: false

Regards Marc

@rianadon
Copy link
Owner

Definitely not by design.

I don't have any ideas what might be causing this at the moment. If you set debug to true do you see anything within the debug window changing with time, or is everything frozen?

@MarcE85
Copy link
Author

MarcE85 commented Sep 27, 2021

Hey, the debug only changes if i start or stop the timer. The rest is frozen.

@xuko
Copy link

xuko commented Oct 14, 2021

trying to adapt to alexa timers too.
this timer has the time off date as entity state. when there is no timer active it has unavailable state.
Could be great to add a property to get the active_state from an atrribute too. in this case "status". or the entity state itself

left some example here of entity attributes if could help

recurrence: Never Repeat
process_timestamp: 2021-10-14T21:57:44.259225+02:00
prior_value: 2021-10-14T22:00:24+02:00
total_active: 1
total_all: 2
sorted_active: [["", {"alarmLabel": null, "alarmTime": 0, "assigner": null, "automationId": null, "createdDate": 1634240425158, "deferredAtTime": null, "deliveryType": null, "deviceName": null, "deviceSerialNumber": "", "deviceType": "", "extensibleAttribute": null, "geoLocationTriggerData": null, "id": "", "lastOccurrenceTimeInMilli": 0, "lastUpdatedDate": 0, "loopCount": null, "mrmGroupContext": null, "musicAlarmId": null, "musicEntity": null, "notificationIndex": "", "originalDate": null, "originalDurationInMillis": 1200000, "originalTime": null, "personProfile": null, "provider": null, "rRuleData": null, "recurrenceEligibility": false, "recurringPattern": null, "remainingTime": 160000.0, "reminderAppLabel": null, "reminderLabel": null, "reminderSubLabel": null, "skillInfo": null, "snoozedToTime": null, "sound": {"displayName": "Simple Timer", "folder": null, "id": "system_alerts_melodic_02", "isChildDirected": false, "numAssets": 0, "pricing": null, "providerId": "ECHO", "sampleUrl": "https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_02.mp3", "sampleVideoUrl": null}, "status": "ON", "targetPersonProfiles": null, "timeZoneId": null, "timerLabel": "Pizza", "tmwNotificationProperties": null, "triggerTime": 1634241625145, "type": "Timer", "version": "3"}]]
sorted_all: [["", {"alarmLabel": null, "alarmTime": 0, "assigner": null, "automationId": null, "createdDate": 1634239406577, "deferredAtTime": null, "deliveryType": null, "deviceName": null, "deviceSerialNumber": "", "deviceType": "", "extensibleAttribute": null, "geoLocationTriggerData": null, "id": "", "lastOccurrenceTimeInMilli": 0, "lastUpdatedDate": 0, "loopCount": null, "mrmGroupContext": null, "musicAlarmId": null, "musicEntity": null, "notificationIndex": "", "originalDate": null, "originalDurationInMillis": 900000, "originalTime": null, "personProfile": null, "provider": null, "rRuleData": null, "recurrenceEligibility": false, "recurringPattern": null, "remainingTime": 0, "reminderAppLabel": null, "reminderLabel": null, "reminderSubLabel": null, "skillInfo": null, "snoozedToTime": null, "sound": {"displayName": "Simple Timer", "folder": null, "id": "system_alerts_melodic_02", "isChildDirected": false, "numAssets": 0, "pricing": null, "providerId": "ECHO", "sampleUrl": "https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_02.mp3", "sampleVideoUrl": null}, "status": "OFF", "targetPersonProfiles": null, "timeZoneId": null, "timerLabel": null, "tmwNotificationProperties": null, "triggerTime": 1634240306566, "type": "Timer", "version": "4"}], ["", {"alarmLabel": null, "alarmTime": 0, "assigner": null, "automationId": null, "createdDate": 1634240425158, "deferredAtTime": null, "deliveryType": null, "deviceName": null, "deviceSerialNumber": "", "deviceType": "", "extensibleAttribute": null, "geoLocationTriggerData": null, "id": "", "lastOccurrenceTimeInMilli": 0, "lastUpdatedDate": 0, "loopCount": null, "mrmGroupContext": null, "musicAlarmId": null, "musicEntity": null, "notificationIndex": "", "originalDate": null, "originalDurationInMillis": 1200000, "originalTime": null, "personProfile": null, "provider": null, "rRuleData": null, "recurrenceEligibility": false, "recurringPattern": null, "remainingTime": 160000.0, "reminderAppLabel": null, "reminderLabel": null, "reminderSubLabel": null, "skillInfo": null, "snoozedToTime": null, "sound": {"displayName": "Simple Timer", "folder": null, "id": "system_alerts_melodic_02", "isChildDirected": false, "numAssets": 0, "pricing": null, "providerId": "ECHO", "sampleUrl": "https://s3.amazonaws.com/deeappservice.prod.notificationtones/system_alerts_melodic_02.mp3", "sampleVideoUrl": null}, "status": "ON", "targetPersonProfiles": null, "timeZoneId": null, "timerLabel": null, "tmwNotificationProperties": null, "triggerTime": 1634241625145, "type": "Timer", "version": "3"}]]
status: ON
dismissed: 2021-10-14T21:39:42.534676+02:00
friendly_name: Salón next Timer
icon: mdi:timer-outline
device_class: timestamp

@rianadon
Copy link
Owner

I'm waiting to find a case where guess_mode doesn't solve the problem before I add a way to set active_state from an attribute.

I see quite a few bugs in the codebase dealing with guess_mode now. I'll make a release with those fixed, then hopefully these entities will work.

@rianadon
Copy link
Owner

v1.14 fixes these bugs in guess_mode. @MarcE85 let me know if that fixes the problem for you!

And @xuko I'd suggest adding guess_mode to your config and seeing if that gives you good behavior.

@MarcE85
Copy link
Author

MarcE85 commented Oct 18, 2021

v1.14 fixes these bugs in guess_mode. @MarcE85 let me know if that fixes the problem for you!

And @xuko I'd suggest adding guess_mode to your config and seeing if that gives you good behavior.

Yes that fixed the problem! Thank you very much for your work!

@rianadon
Copy link
Owner

You're very welcome! I'm going to close this issue now that the problem is fixed.

@xuko please open a new issue if you can't get your Alexa timer working with guess_mode!

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