mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Added Time Remaining and Time Elapsed sensors for octoprint (#8581)
Add an optional extended description…
This commit is contained in:
committed by
Pascal Vizeli
parent
e63a96cf53
commit
4f8d2ec317
@@ -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({
|
||||||
|
Reference in New Issue
Block a user