How to edit your Sensor's LUX update interval¶
This guide will show you how to edit the lux updates down to 5 seconds.
Your sensor is defaulting to 60 seconds for updates to the state of the lux sensor.
This is the default for all esphome devices using lux because it uses less Wi-Fi airtime fairness and writes less to your Home Assistant Database. Suggested not to go below 5 seconds.
1. Select the ESPHome Builder in the sidebar then click "EDIT" on the device you want to change.
2. Copy this code and enter it just like shown in the next step. Make sure there are no extra spaces or any other characters it needs to look just like the example in the next step.
#LUX sensor update interval
sensor:
- platform: ltr390
id: !extend ltr_390
update_interval: 5s
3. Paste the code you copied in step 2 below your sensor's existing yaml as shown below.
4. In the top right of the same screen click "SAVE" and then "INSTALL".
5. Once you see "INFO OTA successful" you are done. Click "STOP" to exit.
6. Once that is finished your sensor should now be reporting at your new update_interval such as 5 seconds!