Added Time Remaining and Time Elapsed sensors for octoprint (#8581)

Add an optional extended description…
pull/8586/head
William Scanlon 2017-07-21 03:40:07 -04:00 committed by Pascal Vizeli
parent e63a96cf53
commit 4f8d2ec317
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ SENSOR_TYPES = {
'Temperatures': ['printer', 'temperature', '*', TEMP_CELSIUS], 'Temperatures': ['printer', 'temperature', '*', TEMP_CELSIUS],
'Current State': ['printer', 'state', 'text', None], 'Current State': ['printer', 'state', 'text', None],
'Job Percentage': ['job', 'progress', 'completion', '%'], 'Job Percentage': ['job', 'progress', 'completion', '%'],
'Time Remaining': ['job', 'progress', 'printTimeLeft', 'seconds'],
'Time Elapsed': ['job', 'progress', 'printTime', 'seconds'],
} }
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({