What is the best way to update a sensor every 30 seconds?

Hello,

i need a sensor dummy or a automation thats update my dummy sensor every 30 seconds.
its not important what stands in the sensor i only need this for trigger another card.

thank you

you could create an automation that uses a time_pattern trigger set for 30 seconds and call the update_entity service on your dummy sensor.

2 Likes

i changed from a dummy sensor to a dummy light, because there were problems with the sensor. now it works. Thank YOU

 alias: Refresh des dummy sensors - dummy_refresh_plexmedia
description: ''
trigger:
  - minutes: /1
    platform: time_pattern
condition: []
action:
  - service: light.toggle
    data: {}
    target:
      entity_id: light.dummy_light_plexmedia
mode: single
1 Like