The TP-Link Tapo L510e dimmable light-bulb can be made to work with node-red by installing the node-red-contrib-tapo-new-api
package from the node-red palette menu.
Here is an example flow overview that covers the entire usage of the Tapo dimmable light-bulb:
where:
Lights
node is a node that uses node-red-contrib-alexa-smart-home
and Amazon Alexa in order to operate the bulb conveniently,Lights
node and separates between "brightness", "on" and "off",node-red-contrib-tapo-new-api
node named actions
that is configured to log-in and use the Tapo service to control the bulbHere is the importable Node-Red flow:
[{"id":"4870778accbdf06b","type":"tab","label":"Smart Lights","disabled":false,"info":"","env":[]},{"id":"7fb926f083b98e7f","type":"debug","z":"4870778accbdf06b","name":"debug 3","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":600,"y":180,"wires":[]},{"id":"efcfd93b0674be30","type":"tapo_new_actions","z":"4870778accbdf06b","name":"","deviceIp":"L510.lan","deviceAlias":"Smart Bulb T1","deviceIpRange":"192.168.1.0/16","searchMode":"ip","command":"toggle","version":"3","x":600,"y":260,"wires":[["7fb926f083b98e7f"]]},{"id":"fb313b135b7c910e","type":"switch","z":"4870778accbdf06b","name":"","property":"command","propertyType":"msg","rules":[{"t":"eq","v":"SetBrightness","vt":"str"},{"t":"eq","v":"TurnOn","vt":"str"},{"t":"eq","v":"TurnOff","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":4,"x":170,"y":260,"wires":[["40bde11e6110d853"],["14dea239b642c771"],["e776144a328535eb"],[]]},{"id":"40bde11e6110d853","type":"change","z":"4870778accbdf06b","name":"brightness","rules":[{"t":"set","p":"config.command","pt":"msg","to":"brightness","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":200,"wires":[["efcfd93b0674be30"]]},{"id":"14dea239b642c771","type":"change","z":"4870778accbdf06b","name":"on","rules":[{"t":"set","p":"config.command","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":260,"wires":[["efcfd93b0674be30"]]},{"id":"e776144a328535eb","type":"change","z":"4870778accbdf06b","name":"off","rules":[{"t":"set","p":"config.command","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":370,"y":320,"wires":[["efcfd93b0674be30"]]},{"id":"04fdc01b578d41ec","type":"alexa-smart-home-v3","z":"4870778accbdf06b","conf":"646e7cbc924ee6e0","device":"61024","acknowledge":true,"name":"Lights","topic":"","x":170,"y":160,"wires":[["fb313b135b7c910e"]]},{"id":"646e7cbc924ee6e0","type":"alexa-smart-home-v3-conf","username":"","mqttserver":"mq-red.cb-net.co.uk","webapiurl":"red.cb-net.co.uk","contextName":"memory"}]