# Aide sur mushroom-light-card (gestion Fan raspberry)

**URL:** <https://forum.hacf.fr/t/aide-sur-mushroom-light-card-gestion-fan-raspberry/23814>\
**Category:** Entraide Home Assistant\
**Created:** [Mai 11, 2023, 6:59 UTC](https://forum.hacf.fr/t/aide-sur-mushroom-light-card-gestion-fan-raspberry/23814 "2023-05-11T18:59:19Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Pulpy-Luke](https://forum.hacf.fr/user_avatar/forum.hacf.fr/pulpy-luke/32/137426_2.png) [@Pulpy-Luke](https://forum.hacf.fr/u/Pulpy-Luke)\
**Post date:** [Mai 11, 2023, 8:42 UTC](https://forum.hacf.fr/t/aide-sur-mushroom-light-card-gestion-fan-raspberry/23814/9 "2023-05-11T20:42:21Z")

</div>

Bon après c'est ton script qui force le type light ...

> [@Controle de la vitesse du ventilateur avec GPIO sur RPi4](https://forum.hacf.fr/t/controle-de-la-vitesse-du-ventilateur-avec-gpio-sur-rpi4/18554/3):
>
> 6/On créer un ficher texte et colle ce code:
> 
> ```auto
> fan_speed = data.get("fan_speed")
> service_data = {"entity_id": "light.rpi_cooling_fan", "brightness": fan_speed}
> hass.services.call("light", "turn_on", service_data)
> 
> ```

---

_[View the full topic](https://forum.hacf.fr/t/aide-sur-mushroom-light-card-gestion-fan-raspberry/23814)._
