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

Added states for Deebot N79; including auto, spot, and edge. #206

Merged
merged 6 commits into from
May 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added several corrections to extra states for Deebot N79.
clayauld committed Apr 24, 2021
commit b39905f92984f6ade867b76cf3c5c0fc866bdcdd
9 changes: 7 additions & 2 deletions src/styles.js
100644 → 100755
Original file line number Diff line number Diff line change
@@ -110,8 +110,12 @@ export default css`
margin: 30px auto 20px auto;
}

.vacuum.on,
.vacuum.cleaning,
.vacuum.on {
.vacuum.auto,
.vacuum.spot,
.vacuum.edge,
.vacuum.single_room {
animation: cleaning 5s linear infinite;
}

@@ -123,7 +127,8 @@ export default css`
opacity: 100%;
}

.vacuum.docked {
.vacuum.docked,
.vacuum.idle {
clayauld marked this conversation as resolved.
Show resolved Hide resolved
opacity: 50%;
}

17 changes: 13 additions & 4 deletions src/translations/en.json
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
{
"status": {
"cleaning": "Cleaning",
"auto": "Automatic Cleaning",
"spot": "Spot Cleaning",
"edge": "Edge Cleaning",
"single_room": "Single Room Cleaning",
"paused": "Paused",
"idle": "Idle",
"stop": "Stopped",
"charging": "Charging",
"returning home": "Returning home",
"docked": "Docked"
"returning home": "Returning Home",
"returning": "Returning Home",
"docked": "Docked",
"unknown": "Unknown"
},
"source": {
"gentle": "Gentle",
"silent": "Silent",
"standard": "Standard",
"medium": "Medium",
"turbo": "Turbo"
"turbo": "Turbo",
"normal": "Normal",
"high": "High"
},
"common": {
"name": "Vacuum Card",
@@ -22,7 +31,7 @@
"pause": "Pause",
"stop": "Stop",
"return_to_base": "Dock",
"locate": "Locate vacuum",
"locate": "Locate Vacuum",
"not_available": "Vacuum is not available"
},
"error": {
1 change: 1 addition & 0 deletions src/vacuum-card.js
Original file line number Diff line number Diff line change
@@ -321,6 +321,7 @@ class VacuumCard extends LitElement {
case 'auto':
case 'spot':
case 'edge':
case 'single_room':
case 'cleaning': {
return html`
<div class="toolbar">