Enable Bosch washing machine (Home Connect) when power is generated

Hello,

I would like to know if it’s possible to create an automation for the following scenario:

  • My Bosch WDU8H540NL washing machine is
    • Power = on
    • Remote Controle = on
    • Program Active = off
  • My HomeWizard P1 meter current power meter is negative (Power is generated by my solar panels)

I’ve already added the Home Connect and Home Wizard integrations into Home Assistant, but I don’t know how to create the automation for this scenario.

Hey, what entities do you have from your washing machine?
A switch or a button to start the program?

Hello @JohnFLoki ! I’ve got the following entities:

  • Child lock
  • Door
  • Duration
  • Local control
  • Operation state
  • Program finish time
  • Program progress
  • Remote control
  • Remote start
  • Wasmachine/droger combi Door
  • Wasmachine/droger combi Power
  • Wasmachine/droger combi Program Dryer Cotton
  • Wasmachine/droger combi Program Dryer Mix
  • Wasmachine/droger combi Program Dryer Towels
  • Wasmachine/droger combi Program Program 60
  • Wasmachine/droger combi Program Program Cotton
  • Wasmachine/droger combi Program Program EasyCare
  • Wasmachine/droger combi Program Program Eco4060
  • Wasmachine/droger combi Program Program Mix
  • Wasmachine/droger combi Program Program MyDryingTime
  • Wasmachine/droger combi Program Washer Cotton
  • Wasmachine/droger combi Program Washer DelicatesSilk
  • Wasmachine/droger combi Program Washer DrumClean
  • Wasmachine/droger combi Program Washer EasyCare
  • Wasmachine/droger combi Program Washer Mix
  • Wasmachine/droger combi Program Washer MyTime
  • Wasmachine/droger combi Program Washer Sensitive
  • Wasmachine/droger combi Program Washer ShirtsBlouses
  • Wasmachine/droger combi Program Washer SportFitness
  • Wasmachine/droger combi Program Washer Towels
  • Wasmachine/droger combi Program Washer Wool

I use a touch button on a display to start the program.

If the “Remote start” is a button or switch you can.
For the automation you need to set a numeric state trigger in the WHEN or TRIGGER section. For the below mode you put in the negative number you want to have and for safety you can set the “for” at 2 minutes or smth so that the refresh rate of the meter fits.
For the other conditions I am not sure if the remote start would have an effect if pressed but you can still add them. Go to the Then Do section, add building block, if-then, for the if search for state and there you set the entities and states you need and for the then either button or switch depending on the Remote start type.

Hope that pseudo code helps for your automation. If you need code I can send that too but I think you can understand automations better if you dont just copy and paste.

@JohnFLoki do you mean something like this?

Well, kinda. For the If: I haven’t used the device option, instead I use state, but you can check if it works as expected with the three dots menu and Test.
For the Then: Resume resumes a paused program. You probably want to use start_program ← there is an explanation how to use it.
Then it should work like you want to. Well done!

@JohnFLoki do you maybe know if it’s possible to just ‘start’ the machine with the current selected program. My idea is that I fill the machine, turn it on, select a program and than enable ‘remote control’.

Ok send me a screenshot of the entities you get from the washing machine so I can see which type they have.

@JohnFLoki is this what you mean:

So you dont have an easy start button. You either need to make a code block to get the selected program, which you then add to the start_program call
or you start the machine, pause it and then resume when you have enough export power.