# Use Wildcard for multiple state attributes in trigger-state node

**URL:** <https://discourse.nodered.org/t/use-wildcard-for-multiple-state-attributes-in-trigger-state-node/44540>\
**Category:** General\
**Created:** [22 April 2021 12:37 UTC](https://discourse.nodered.org/t/use-wildcard-for-multiple-state-attributes-in-trigger-state-node/44540 "2021-04-22T12:37:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peetipablo](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@peetipablo](https://discourse.nodered.org/u/peetipablo)\
**Post date:** [22 April 2021 12:37 UTC](https://discourse.nodered.org/t/use-wildcard-for-multiple-state-attributes-in-trigger-state-node/44540/1 "2021-04-22T12:37:31Z")

</div>

I have a flow that, between the hours of 6PM and 12AM, will check forecast precipitation conditions and alert me if any hour is within 'rainy' or 'snowy' conditions. I use this as a reminder to make sure our patio furniture is covered.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/12c23a26f5da9b4d06ce44ab8eccfa2efa40755b.png)

This information is provided by home assistant in a json format. It works, but I'd like to try and clean up the flow if possible.

Each of the trigger-state nodes is looking at a different hour in the forecast. Is there any way to use a wildcard in the condition section, so that I don't need to have 10 different nodes?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/19004ea624f7f40122ebfe8663a25bf3a778c251.png)

Thank you in advance!

---

<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:** [21 June 2021 12:37 UTC](https://discourse.nodered.org/t/use-wildcard-for-multiple-state-attributes-in-trigger-state-node/44540/2 "2021-06-21T12:37:47Z")

</div>

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