<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Script turns fan on, but equivalent script doesn't turn fan off in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-turns-fan-on-but-equivalent-script-doesn-t-turn-fan-off/m-p/752868#M58973</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a Yolink humidity sensor and a Shelly smart fan. I have used this script successfully to turn the fan on when the humidity in the bathroom goes over a certain percent:&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Turn on fan when humidity is high&lt;BR /&gt;description: When the humidity in the bathroom is over 65% turn the fan on&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.state.HumiditySetting&lt;BR /&gt;device: Temp Humidity Sensor - Bathroom&lt;BR /&gt;state: humidityAmbientPercent&lt;BR /&gt;greaterThan: 65&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices:&lt;BR /&gt;- Fan - Bathroom&lt;BR /&gt;on: true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this script to turn the fan off once the humidity falls below a certain percent. However, it won't work.&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Turn off fan when humidity is low&lt;BR /&gt;description: When the humidity in the bathroom is over 65% turn the fan on&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.state.HumiditySetting&lt;BR /&gt;device: Temp Humidity Sensor - Bathroom&lt;BR /&gt;state: humidityAmbientPercent&lt;BR /&gt;lessThan: 60&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices:&lt;BR /&gt;- Fan - Bathroom&lt;BR /&gt;on: false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any idea why this might be or any suggestions why one works but the other doesn't, I would be very grateful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
    <pubDate>Thu, 09 Oct 2025 03:34:26 GMT</pubDate>
    <dc:creator>aryanne</dc:creator>
    <dc:date>2025-10-09T03:34:26Z</dc:date>
    <item>
      <title>Script turns fan on, but equivalent script doesn't turn fan off</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Script-turns-fan-on-but-equivalent-script-doesn-t-turn-fan-off/m-p/752868#M58973</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a Yolink humidity sensor and a Shelly smart fan. I have used this script successfully to turn the fan on when the humidity in the bathroom goes over a certain percent:&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Turn on fan when humidity is high&lt;BR /&gt;description: When the humidity in the bathroom is over 65% turn the fan on&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.state.HumiditySetting&lt;BR /&gt;device: Temp Humidity Sensor - Bathroom&lt;BR /&gt;state: humidityAmbientPercent&lt;BR /&gt;greaterThan: 65&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices:&lt;BR /&gt;- Fan - Bathroom&lt;BR /&gt;on: true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this script to turn the fan off once the humidity falls below a certain percent. However, it won't work.&lt;/P&gt;&lt;P&gt;metadata:&lt;BR /&gt;name: Turn off fan when humidity is low&lt;BR /&gt;description: When the humidity in the bathroom is over 65% turn the fan on&lt;BR /&gt;automations:&lt;BR /&gt;- starters:&lt;BR /&gt;- type: device.state.HumiditySetting&lt;BR /&gt;device: Temp Humidity Sensor - Bathroom&lt;BR /&gt;state: humidityAmbientPercent&lt;BR /&gt;lessThan: 60&lt;BR /&gt;actions:&lt;BR /&gt;- type: device.command.OnOff&lt;BR /&gt;devices:&lt;BR /&gt;- Fan - Bathroom&lt;BR /&gt;on: false&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone has any idea why this might be or any suggestions why one works but the other doesn't, I would be very grateful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2025 03:34:26 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Script-turns-fan-on-but-equivalent-script-doesn-t-turn-fan-off/m-p/752868#M58973</guid>
      <dc:creator>aryanne</dc:creator>
      <dc:date>2025-10-09T03:34:26Z</dc:date>
    </item>
  </channel>
</rss>

