How to create device for IR controlled robot vacuum?

Hello,

In case this topic is too similar and has the same answer as my previous one I am sorry to clutter the forum.

So I have this dumb robot vacuum that can be controlled via an IR remote. And I have learned its commands as switches with a Broadlink IR sender.

Now I am struggling to make a vacuum device that would include all the learned commands and will be exposed to Google Assistant. The end goal is to be able to command the robot via voice: start/stop robot, return to base, etc.

Thanks for all the help!

Wemos D1 Mini on ESPHome. Your welcome :slight_smile:

remote_transmitter:
pin:
number: D6
inverted: True
carrier_duty_percent: 50%

switch:

  • platform: template
    name: “Start Roberta”
    turn_on_action:

    • remote_transmitter.transmit_raw:
      code: [8944, -4454, 601, -544, 574, -543, 573, -545, 572, -545, 572, -546, 572, -544, 572, -1684, 599, -539, 578, -1683, 599, -545, 596, -1686, 573, -544, 571, -1686, 598, -544, 573, -1709, 573, -545, 596, -521, 573, -544, 573, -1709, 583, -535, 579, -538, 596, -522, 572, -1710, 573, -544, 573, -1709, 573, -1685, 598, -544, 589, -1694, 573, -1685, 597, -1709, 574, -545, 595, -1687, 573 ]
      carrier_frequency: 38kHz
      turn_off_action:
    • remote_transmitter.transmit_raw:
      code: [8944, -4454, 601, -544, 574, -543, 573, -545, 572, -545, 572, -546, 572, -544, 572, -1684, 599, -539, 578, -1683, 599, -545, 596, -1686, 573, -544, 571, -1686, 598, -544, 573, -1709, 573, -545, 596, -521, 573, -544, 573, -1709, 583, -535, 579, -538, 596, -522, 572, -1710, 573, -544, 573, -1709, 573, -1685, 598, -544, 589, -1694, 573, -1685, 597, -1709, 574, -545, 595, -1687, 573 ]
      carrier_frequency: 38kHz
  • platform: template
    name: “Return home”
    turn_on_action:

    • remote_transmitter.transmit_raw:
      code: [8968, -4431, 623, -521, 597, -519, 572, -546, 595, -521, 573, -543, 596, -521, 572, -1709, 596, -522, 597, -1684, 597, -496, 596, -1709, 600, -518, 598, -1660, 621, -495, 622, -1686, 595, -521, 596, -1687, 598, -519, 597, -520, 572, -545, 597, -1662, 620, -521, 596, -521, 597, -520, 572, -518, 623, -1686, 598, -1684, 598, -1660, 621, -495, 598, -1684, 598, -1710, 596, -1685, 574 ]
      carrier_frequency: 38kHz

    turn_off_action:

    • remote_transmitter.transmit_raw:
      code: [8968, -4431, 623, -521, 597, -519, 572, -546, 595, -521, 573, -543, 596, -521, 572, -1709, 596, -522, 597, -1684, 597, -496, 596, -1709, 600, -518, 598, -1660, 621, -495, 622, -1686, 595, -521, 596, -1687, 598, -519, 597, -520, 572, -545, 597, -1662, 620, -521, 596, -521, 597, -520, 572, -518, 623, -1686, 598, -1684, 598, -1660, 621, -495, 598, -1684, 598, -1710, 596, -1685, 574 ]
      carrier_frequency: 38kHz

Thanks for the effort @ChipMIK. I am not sure I have made myself perfectly clear. I already have the switches defined like this:

- platform: broadlink
  mac: 'B4:43:0D:CA:BC:9B'
  switches:
    - name: "Auto"
      command_on: "JgAyAWFiERAQMBMuEw8PMBQNDxEQEg8QEBEQEQ8QETATLhMuDxEQEg4SDxIPMBIQDzETDg8SDhIOEg8xDzIQERAwEw4QEQ8xEy4QMQ8yEi4RMBMuEy4TLhMODzERMBMuEy0UDg4yEAACh2FiEREOMhMtFA0TLhMODhMOEQ8SEBEOEREQEy0ULRMuDxMPEBIPDxIPMRMOEi4TDg4TDhIPEBQtEy4SEA4xEw4QEQ8xEy4TLg8yDzERMBMuEy4TLg8REDETLhMuEy0TDg8yEAACh2FiEw4QMRMtEw8OMhMNDxMPEBAQEw4QEQ4SDzEQMRMuEw4QEQ4RDxMOMg8RDzIQEBASDxATDg8xEy4PEg8xEw8PEQ4yEy4TLg8xEDETLhMuEy4TLhAQDzITLhMtFC0SDw8yEAANBQAAAAAAAA=="
#    startstop:
    - name: "Start-Stop"
      command_on: "JgAyAWFiEQ8QMRIvEg4QMRIPEQ8PEhIOEy4QEBMOETASLhIvETAQEBEQEBASLxIPDzISDg8REBEPERAxDzIPERAxDxIPMRAxES8RMQ8yEDERMBAwETARMA8yDzIPMhEvEi8SLxMvDgACiWFiEw4PMRMuEw4PMQ8SDxIOERQNDzITDg8SDjEQMQ8yEy4PEg8SDhIOMhMPDjEQEg4SDhMOEg4yEy4QEQ4yDxETLhIvEy4TLhMuEy0ULQ8yDzIPMhMuEy0RMBMuEy4TLhMuEwAChGVeEhAOMhMuEw4SLhMODhMOEg4SDzEQERMODjITLhMuDzITDQ8SDxIOMg8REi8TDg8SDhIOEg8xEDETDxItFA4SLhMuDzEULRMuEy4TLhMuDzEULRAxDzIPMhMuEy4TLRAxEgANBQAAAAAAAA=="
#    returnhome:
    - name: "Return Home"
      command_on: "JgAyAWVfEw4OMhMuEw4OMhEPEBEPEQ8yEy4TLhMODjITLhMuDzIPEQ8TDhIOMhMODjITDw4SDhIPEg4yEy4TDg4yDxIOMhMuEy4TLhMtFC0TLg8yDzIPMg8SDhMOMRQtEy4PMhMuDwACiWBjEw4SLhMuEw4OMg8SDxIOEg8xEy4TLhIPDjITLg8yEy4TDg4TDhESLxIPDjITDg8SDhIOEw4yEi4SEA4yEw4SLg8yEy4PMRQtEy4TLg8yDzIPMg8RDxEQMRMuEy4PMhIvDwACiGFiFA4OMhMuEw0PMhMODhIPEg4yEy4TLg8REy4TLhMtFC0TDg8SDhMOMRARDzITDg4TDhIRDhAxEy4PEg8xEBIOMg8xFC0TLhMuDzIPMhMuDzETLhMPDhIOMhMuDzITLRQtEwANBQAAAAAAAA=="

I was thinking that from here I could define an entity of vacuum type with some corresponding actions.
Problem is I cannot find many examples of Vacuum and MQTT Vacuum doesn’t seem to match my case too much.

Sorry for maybe missing some stuff, but I only have about a week of experience with Home Assistant.

Thanks

Doesnt the listed options for “Vacuum” work for you? If not, unfortunately im lost then :slight_smile:

Bet you have searched already on YT too :slight_smile: -( : https://www.youtube.com/results?search_query=vacuum+home+assistant

I believe the right answer should be Template Vacuum - Home Assistant

1 Like