[miio] add channel for is_locating (#10036)
close: #10033 Signed-off-by: Marcel Verpaalen <marcel@verpaalen.com>pull/10044/head
parent
056e4c4103
commit
6f59b178b8
|
@ -218,6 +218,7 @@ Number statusFanPow "Fan Power [%1.0f%%]" <signal> (gVacStat) {channel="mi
|
|||
Number statusClean "In Cleaning Status [%1.0f]" <switch> (gVacStat) {channel="miio:vacuum:034F0E45:status#in_cleaning" }
|
||||
Switch statusDND "DND Activated" (gVacStat) {channel="miio:vacuum:034F0E45:status#dnd_enabled" }
|
||||
Number statusStatus "Status [%1.0f]" <status> (gVacStat) {channel="miio:vacuum:034F0E45:status#state"}
|
||||
Switch isLocating "Locating" (gVacStat) {channel="miio:vacuum:034F0E45:status#is_locating" }
|
||||
|
||||
Number consumableMain "Main Brush [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#main_brush_time"}
|
||||
Number consumableSide "Side Brush [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#side_brush_time"}
|
||||
|
@ -254,6 +255,7 @@ Additionally depending on the capabilities of your robot vacuum other channels m
|
|||
| Number | status#water_box_mode | Water Box Mode |
|
||||
| Switch | status#water_box_carriage_status | Water Box Carriage Status |
|
||||
| Switch | status#mop_forbidden_enable | Mop Forbidden |
|
||||
| Switch | status#is_locating | Robot is locating |
|
||||
| Number | actions#segment | Room Clean (enter room #) |
|
||||
|
||||
|
||||
|
|
|
@ -4437,6 +4437,7 @@ Number statusFanPow "Fan Power [%1.0f%%]" <signal> (gVacStat) {channel="mi
|
|||
Number statusClean "In Cleaning Status [%1.0f]" <switch> (gVacStat) {channel="miio:vacuum:034F0E45:status#in_cleaning" }
|
||||
Switch statusDND "DND Activated" (gVacStat) {channel="miio:vacuum:034F0E45:status#dnd_enabled" }
|
||||
Number statusStatus "Status [%1.0f]" <status> (gVacStat) {channel="miio:vacuum:034F0E45:status#state"}
|
||||
Switch isLocating "Locating" (gVacStat) {channel="miio:vacuum:034F0E45:status#is_locating" }
|
||||
|
||||
Number consumableMain "Main Brush [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#main_brush_time"}
|
||||
Number consumableSide "Side Brush [%1.0f]" (gVacCons) {channel="miio:vacuum:034F0E45:consumables#side_brush_time"}
|
||||
|
@ -4473,6 +4474,7 @@ Additionally depending on the capabilities of your robot vacuum other channels m
|
|||
| Number | status#water_box_mode | Water Box Mode |
|
||||
| Switch | status#water_box_carriage_status | Water Box Carriage Status |
|
||||
| Switch | status#mop_forbidden_enable | Mop Forbidden |
|
||||
| Switch | status#is_locating | Robot is locating |
|
||||
| Number | actions#segment | Room Clean (enter room #) |
|
||||
|
||||
|
||||
|
|
|
@ -344,6 +344,9 @@ public class MiIoVacuumHandler extends MiIoAbstractHandler {
|
|||
if (deviceCapabilities.containsKey(RobotCababilities.MOP_FORBIDDEN)) {
|
||||
safeUpdateState(RobotCababilities.MOP_FORBIDDEN.getChannel(), statusInfo.getMopForbiddenEnable());
|
||||
}
|
||||
if (deviceCapabilities.containsKey(RobotCababilities.LOCATING)) {
|
||||
safeUpdateState(RobotCababilities.LOCATING.getChannel(), statusInfo.getIsLocating());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ public enum RobotCababilities {
|
|||
WATERBOX_CARRIAGE("water_box_carriage_status", "status#water_box_carriage_status",
|
||||
"miio:water_box_carriage_status"),
|
||||
MOP_FORBIDDEN("mop_forbidden_enable", "status#mop_forbidden_enable", "miio:mop_forbidden_enable"),
|
||||
LOCATING("is_locating", "status#is_locating", "miio:is_locating"),
|
||||
SEGMENT_CLEAN("", "actions#segment", "miio:segment");
|
||||
|
||||
private final String statusFieldName;
|
||||
|
|
|
@ -179,6 +179,11 @@
|
|||
<label>Mop Forbidden</label>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
<channel-type id="is_locating">
|
||||
<item-type>Switch</item-type>
|
||||
<label>Robot Locating</label>
|
||||
<state readOnly="true"/>
|
||||
</channel-type>
|
||||
|
||||
<!-- Consumables channels -->
|
||||
<channel-type id="main_brush_percent">
|
||||
|
|
Loading…
Reference in New Issue