I use the automation below to update or refresh a bunch of Sonoff TH temp/humidity sensors.
I keep adding more sensors and would like to not have to add the sensor entity to the automation each time (mostly because I forget to do it).
Is there an auto-entity or wildcard kind of way to make an automation to refresh all the Sonoff sensors?
alias: Sonoff Refresh All Sensors
description: ""
trigger:
- platform: time_pattern
minutes: /1
hours: "*"
action:
- service: homeassistant.update_entity
target:
entity_id:
- switch.sonoff_1001392b9f
- switch.sonoff_1001829e6f
- switch.sonoff_1001392bce
- switch.sonoff_1001392bd9
- switch.sonoff_10013933f8
- switch.sonoff_1001393418
- switch.sonoff_100139392c
- switch.sonoff_100139390d
- switch.sonoff_10013932b1
- switch.sonoff_1001829e6f
- switch.sonoff_1001829f54
- switch.sonoff_1001829f81
- switch.sonoff_1001829fce
- switch.sonoff_1001829fd2
- switch.sonoff_100182a1cc
- switch.sonoff_1001dabe7c
- switch.sonoff_1001dabf2f
- switch.sonoff_1001dabf37
- switch.sonoff_1001dabec9
- switch.sonoff_1001dac0ed
- sensor.125_1st_floor_temperature
- sensor.125_2nd_floor_temperature
- sensor.1st_floor_room_temperature
- sensor.2nd_floor_east_room_temperature
- sensor.2nd_floor_west_room_temperature
- sensor.371_1st_floor_temperature
- sensor.371_2nd_floor_ecobee_smartsensor_temperature
- sensor.371_2nd_floor_temperature
- sensor.371_bedroom_temperature
- sensor.371_hydronic_temperature
- sensor.371_large_bedroom_temperature
- sensor.3rd_floor_room_temperature
- sensor.630_temperature
- sensor.76_temperature
- sensor.76_thr316_1_water_temperature
- sensor.carmine_temperature
- sensor.hoophouse_shelly_uni_tasmota_1_am2301_temperature
- sensor.shop_temperature
- sensor.sonoff_1001392b9f_temperature
- sensor.sonoff_1001392bce_temperature
- sensor.sonoff_1001392bd9_temperature
- sensor.sonoff_10013932b1_temperature
- sensor.sonoff_10013933f8_temperature
- sensor.sonoff_1001393418_temperature
- sensor.sonoff_100139390d_temperature
- sensor.sonoff_100139392c_temperature
- sensor.sonoff_1001829f54_temperature
- sensor.sonoff_1001829f81_temperature
- sensor.sonoff_1001829fce_temperature
- sensor.sonoff_100182a1cc_temperature
- sensor.sonoff_1001dabe7c_temperature
- sensor.sonoff_1001dabf2f_temperature
- sensor.sonoff_1001dac0ed_temperature
- sensor.th316_125_temperature
- sensor.th316_76_temperature
- sensor.thr316_3_temperature
- sensor.well_ecobee_temperature
- sensor.sonoff_1001dbcdc2_humidity
- sensor.sonoff_1001dbcdc2_temperature
data: {}
mode: single