question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing mapping for state "going to target"

See original GitHub issue

Hey guys,

I’m currently in the process of automating my vacuum and stumbled upon a problem with the states of the vacuum. Looking at https://github.com/Hypfer/Valetudo/blob/master/lib/MqttClient.js for the state definitons, go_to_target currently maps to cleaning. It would be really great if at least go_to_target could be changed to have it’s own state in HA. I searched for target in the issues here and in the telegram group, but couldn’t find anything related to my issue.

`const HA_STATES = { CLEANING: “cleaning”, PAUSED: “paused”, IDLE: “idle”, RETURNING: “returning”, DOCKED: “docked”, ERROR: “error”, ZONE_CLEANUP: “cleaning” };

// Codes as per Status.js const HA_STATE_MAPPINGS = { “CHARGER_DISCONNECTED”: HA_STATES.IDLE, “IDLE”: HA_STATES.IDLE, “CLEANING”: HA_STATES.CLEANING, “MANUAL_MODE”: HA_STATES.CLEANING, “SPOT_CLEANING”: HA_STATES.CLEANING, “GOING_TO_TARGET”: HA_STATES.CLEANING, “ZONED_CLEANING”: HA_STATES.ZONE_CLEANUP, “RETURNING_HOME”: HA_STATES.RETURNING, “DOCKING”: HA_STATES.RETURNING, “CHARGING”: HA_STATES.DOCKED, “CHARGING_PROBLEM”: HA_STATES.ERROR, “ERROR”: HA_STATES.ERROR, “PAUSED”: HA_STATES.PAUSED, };`

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Hypfercommented, Jun 1, 2020

I guess it just wasn’t something existing at the time where the component was created

1reaction
Hypfercommented, May 31, 2020

Problem is that HA doesn’t support such thing.

See: https://www.home-assistant.io/integrations/vacuum.mqtt/#state-mqtt-protocol

State has to be one of vacuum states supported by Home Assistant:

  • cleaning,
  • docked,
  • paused,
  • idle,
  • returning,
  • error.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing target fields in Transform Map - ServiceNow Community
Hello, I'm trying to use Mapping Assist in the Transform Map step to map source fields from an Excel file onto target fields...
Read more >
DIXF - How to manually add a missing mapping to the ...
DIXF – How to manually add a missing mapping to the DMFASSETENTITY entity ... I can Get staging data and then Copy data...
Read more >
A Map For The Missing - By Belinda Huijuan Tang (hardcover)
Read reviews and buy A Map for the Missing - by Belinda Huijuan Tang (Hardcover) at Target. Choose from Same Day Delivery, Drive...
Read more >
Why do I get an error about a missing target data map file ...
I am trying to run my application using XCP-based external mode. However, I see the following error message about a non-existing "model_targ_data_map" file ......
Read more >
Chapter 8. Mapping integration data to fields for the next ...
In the data mapper, to identify apartment, zip+4, and country as missing, you add padding fields at indexes 3, 7, and 8. See...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found