# Account details for TAPO control node (tapo-new-api)

**URL:** <https://discourse.nodered.org/t/account-details-for-tapo-control-node-tapo-new-api/89411>\
**Category:** General\
**Created:** [10 July 2024 21:01 UTC](https://discourse.nodered.org/t/account-details-for-tapo-control-node-tapo-new-api/89411 "2024-07-10T21:01:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrewBeasley](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AndrewBeasley](https://discourse.nodered.org/u/AndrewBeasley)\
**Post date:** [10 July 2024 21:01 UTC](https://discourse.nodered.org/t/account-details-for-tapo-control-node-tapo-new-api/89411/1 "2024-07-10T21:01:42Z")

</div>

I'm testing the _node-red-contrib-tapo-new-api_ node (to replace my Python script) and entering my email and password each time I want to add a node to the flow - this is fine but I will have a fair number of nodes over different flows and both the email and password is long (and complex in the case of the password).

Looking at the help text, it states:

> email string  
> If set this property overrides the one specified in the configuration node. It specifies the username of the Tapo account...  
> password string  
> If set this property overrides the one specified in the configuration node. It specifies the password of the Tapo account.

It would be really handy to set these values in the configuration node but I have zero idea where this 'configuration' node is as the picker only shows the 'actions' node.

I have looked at the examples (the email / passwords are blank) and there does not seem to be a way to raise an issue on GitHub so I thought I would try here.

My Node Red is out of date (v3.1.0) and I could update (fair amount of work TBH) if that fixes things.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [10 July 2024 21:57 UTC](https://discourse.nodered.org/t/account-details-for-tapo-control-node-tapo-new-api/89411/2 "2024-07-10T21:57:36Z")

</div>

> [@AndrewBeasley](#):
>
> email string  
> If set this property overrides ...

This refers to an input passed in as `msg.email`, or maybe it's `msg.config.email`

> [@AndrewBeasley](#):
>
> ... the one specified in the configuration node.

And this refers to the email and address fields in the TAPO actions node (which will be blank until you fill them in!)

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [10 July 2024 22:06 UTC](https://discourse.nodered.org/t/account-details-for-tapo-control-node-tapo-new-api/89411/3 "2024-07-10T22:06:53Z")

</div>

You could setup environment variables for the TAPO email and password.

To use these put eg `$(TAPO_EMAIL)` in the email field of the TAPO node.

---

<div class="post-metadata">

**Author:** ![AndrewBeasley](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AndrewBeasley](https://discourse.nodered.org/u/AndrewBeasley)\
**Post date:** [11 July 2024 10:23 UTC](https://discourse.nodered.org/t/account-details-for-tapo-control-node-tapo-new-api/89411/4 "2024-07-11T10:23:10Z")

</div>

Maybe its the way I'm reading it but I feel there should be a config node somewhere that sets these up 🙂 possible 'node configuration' would have been a better way of describing it in the help text?

TBH - I'll experiment with the environment options as I may end up sharing these flows and do not want my password floating around...

Could be a good chance to try the newest version as well.

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 July 2024 10:42 UTC](https://discourse.nodered.org/t/account-details-for-tapo-control-node-tapo-new-api/89411/5 "2024-07-11T10:42:22Z")

</div>

> [@AndrewBeasley](#):
>
> I feel there should be a config node somewhere that sets these up 🙂 possible 'node configuration' would have been a better way of describing it in the help text?

With some nodes, eg MQTT-in & out, dashboard widgets etc there is indeed a config node created and if you delete the node that uses it the config node gets left over unused.  
The TAPO node does not seem to behave like this though.  
Yes "node config" would be better wording.

---

<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:** [9 October 2024 10:43 UTC](https://discourse.nodered.org/t/account-details-for-tapo-control-node-tapo-new-api/89411/6 "2024-10-09T10:43:14Z")

</div>

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