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.

Vacuum Cleaner - Tuya integration services missing

See original GitHub issue

The problem

LIECTROUX XR500 Robot Vacuum Cleaner (compatible with Tuya). Already performed all the integration with App Tuya and Tuya IoT Platform. So far all ok. I can control the robot through HA by the custom cards, but with some limitations.

The “>” (Start) or “START CLEANING” button on the Entity Card has no effect. Log: [homeassistant.components.tuya.base] Sending commands for device xxxxxxxx: [{‘code’: <DPCode.POWER_GO: ‘power_go’>, ‘value’: True}] No errors, no actions

“Pause”, “Stop”, “Locate” and “Return Home” are OK.

The only way to start the cleanup is to toggle the “Smart” option of “select.liectroux_xr500_mode” in the “Entity Card”. Log: DEBUG (SyncWorker_6) [homeassistant.components.tuya.base] Sending commands for device xxxxx: [{‘code’: <DPCode.MODE: ‘mode’>, ‘value’: ‘smart’}] Its OK. Start Smart Cleaning

I would just like to create an automation that starts cleaning at dawn (it’s an office).

What version of Home Assistant Core has the issue?

core-2021.12.9

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tuya

Link to integration documentation on our website

https://www.home-assistant.io/integrations/tuya/

Example YAML snippet

No response

Anything in the logs that might be useful for us?

DEBUG (SyncWorker_6) [homeassistant.components.tuya.base] Sending commands for device xxxxx: [{‘code’: <DPCode.MODE: ‘mode’>, ‘value’: ‘smart’}]
ITs OK

[homeassistant.components.tuya.base] Sending commands for device xxxxxxxx: [{‘code’: <DPCode.POWER_GO: ‘power_go’>, ‘value’: True}]
No errors, no actions

Additional information

No response

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
dougiteixeiracommented, Jan 26, 2022

The need to set the mode before executing the start command is unique to the device, but you can use services to set this in your automations.

Currently, you can perform this automation through the Select: Select (select.select_option) service.

service: select.select_option
data:
  option: smart
target:
  entity_id: select.liectroux_xr500_mode

As of the next version, you can use the Vacuum: Send command (vacuum.send_command) service to perform these automations.

service: vacuum.send_command
data:
  command: mode
  params: smart
target:
  device_id: 232f438ca4b84f18cc9ccd40f4e7ec9b
1reaction
cvroquecommented, Apr 11, 2022

Hello! This is a bug with the software on the vacuum itself, normally the devices will switch to the correct cleaning mode upon being started.

I created a blueprint that you can add here: Tuya - Vacuum Start Action Fix, with this blueprint applied, you can use the start action normally in the UI and the blueprint will change the mode automatically.

Hope it helps!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tuya devices/entities gone missing - Home Assistant Community
I've tried reinstalling the HA Tuya integration - installs fine, no errors, but still no devices showing. I've tried re-adding the IoT app ......
Read more >
Vacuum cleaner working in Smart Life, but not in HA - Reddit
I found that it can be integrated with Smart Life (Tuya) which I do have an HA integration configured for already, with several...
Read more >
User Guide-Tuya IoT Development Platform-Tuya Developer
This topic describes how to use the Smart Life app . Download the app. Search for Smart Life in Apple's App Store and...
Read more >
Home Assistant | Is anyone else having issues with Tuya
I have reloaded the tuya Integration and restarted HA neither have ... Any tips for a LIDAR equipped robotic vacuum cleaner with full...
Read more >
The SOLUTION To Tuya Smart Life Ruining Your Smart Home
As of the 26th May Tuya are withdrawing support for IFTTT and in the process ruining smart home integration with companies such as...
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