Temperature Sensor Setup and Cyclic Sending Solution

I recently set up a temperature sensor using the OpenWeatherMap binding to send data to my KNX bus. Initially, I faced an issue where the temperature was only sent once, even if it remained the same. This caused my KNX wall display to show incorrect values after a short period of inactivity. I wanted to find a solution to ensure the temperature data was sent cyclically to keep my display updated and avoid timeouts.

After some research, I discovered that modifying the rule to include a cron trigger was the key. By setting the rule to execute every minute, I ensured that the temperature value was refreshed consistently. Here’s the rule I ended up using:

java
rule “Temperature Update”
when
Time cron “0 * * * * ?” // Executes every minute
then
val Number currentTemp = LocalWeatherAndForecast_Current_OutdoorTemperature.state
tempBuiten.sendCommand(currentTemp)
end

This adjustment made a significant difference. The KNX display now receives updated temperature values every minute, preventing the timeout issue and ensuring accurate readings. I also made sure to disable the autoupdate feature in the item configuration to avoid conflicts with the rule.

For anyone else facing similar issues, I recommend checking your rule triggers and ensuring that your sensors are configured to send updates at regular intervals. It’s a simple fix that can make a big difference in the reliability of your smart home setup!

If you have any questions or need further assistance, feel free to reach out. Happy automating! :rocket: