ESPHOME - Change controling from Raspberry to NODEMCU

Hello,

today I controll my FAN via my Raspberry I2 like in screenshot. Now, I would change the setup to a NodeMCU because I will shutdown my Raspberry. But I’m a bit lost… It is possible? How?

Unless you can tell us exactly how it is working now no one can help.

Sorry.

HA is installed on the Raspberry with which I also control the fan control.

In HA I use a “shell command” e.g. sudo i2cset -y 1 4 1 {{states.input_number.motor_solar.state | int}}’

states.input_number.motor_solar.state gives a value from 0-100 → Speed of the motor

Now, I want to use a NODEMCU for the control.

I understand better now. If there is not an esphome component for your motor, you should be able to use this. Custom I²C Device — ESPHome