# Node-red-contrib-tplink : was anybody able to set HS220 (dimmer) brightness

**URL:** <https://discourse.nodered.org/t/node-red-contrib-tplink-was-anybody-able-to-set-hs220-dimmer-brightness/72372>\
**Category:** General\
**Created:** [18 December 2022 00:32 UTC](https://discourse.nodered.org/t/node-red-contrib-tplink-was-anybody-able-to-set-hs220-dimmer-brightness/72372 "2022-12-18T00:32:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alfort57](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alfort57/32/65161_2.png) [@alfort57](https://discourse.nodered.org/u/alfort57)\
**Post date:** [18 December 2022 00:32 UTC](https://discourse.nodered.org/t/node-red-contrib-tplink-was-anybody-able-to-set-hs220-dimmer-brightness/72372/1 "2022-12-18T00:32:28Z")

</div>

I am able to turn on and off my TP-link HS-220 but so far I am unable to change brightness using the control parameter.  
There are no errors on the output message from the tplink node. The relay status is correctly reported but the brightness parameter never change.  
If I change the brightness using my phone app the tp-link node is reporting the new brightness value.

Is there some flow examples that can set the brightness ?

here is my basic example:

```auto
[{"id":"57c7586e.ec16a8","type":"tab","label":"SalleTele","disabled":false,"info":"Controle des TP-Link"},{"id":"3d8c8946.64fb36","type":"kasa","z":"57c7586e.ec16a8","name":"télé divan - HS220(US)","device":"192.168.1.79","interval":60000,"eventInterval":15000,"payload":"getInfo","payloadType":"info","debug":false,"x":508.5,"y":186,"wires":[["5eb4f24e.9532ec"]]},{"id":"5eb4f24e.9532ec","type":"debug","z":"57c7586e.ec16a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":701.5,"y":153,"wires":[]},{"id":"94035a67.a39c28","type":"inject","z":"57c7586e.ec16a8","name":"Commande On","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"on","payloadType":"str","x":130.5,"y":130,"wires":[["17b1f26a.a0584e"]]},{"id":"984d9fea.a6046","type":"inject","z":"57c7586e.ec16a8","name":"Commande Off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"off","payloadType":"str","x":138,"y":173,"wires":[["3d8c8946.64fb36"]]},{"id":"17b1f26a.a0584e","type":"change","z":"57c7586e.ec16a8","name":"50%","rules":[{"t":"set","p":"brightness","pt":"msg","to":"50","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":298.5,"y":127,"wires":[["3d8c8946.64fb36","5e0f0062.eaa6b"]]},{"id":"df328161.916d3","type":"inject","z":"57c7586e.ec16a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"getQuickInfo","payloadType":"str","x":133.5,"y":214,"wires":[["3d8c8946.64fb36"]]},{"id":"5e0f0062.eaa6b","type":"debug","z":"57c7586e.ec16a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":429.5,"y":77,"wires":[]}]

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 February 2023 00:33 UTC](https://discourse.nodered.org/t/node-red-contrib-tplink-was-anybody-able-to-set-hs220-dimmer-brightness/72372/2 "2023-02-16T00:33:11Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
