<?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 Google script editor with philips hue - condition not working in Home Automation</title>
    <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-script-editor-with-philips-hue-condition-not-working/m-p/614508#M46185</link>
    <description>&lt;P&gt;Hello Nest Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really love the script editor, but I recently encountered an issue where a Condition is not working with Philips hue lights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to setup an automation to change my lights at a certain time, with the action depending on wether the lights are on or off.&lt;/P&gt;&lt;P&gt;For this I am using the newest Philips Hue Color Bulbs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But after further testing it seemed to me as if the Condition "device.state.OnOff" "is:on" is always "true", no matter if the light is on or off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a test script for further insight, which should always turn the light red, with the condition that "device.state.OnOff" "is:on" is "true"; and should always turn the light blue, with the condition that "device.state.OnOff" "is:on" is "false.&lt;BR /&gt;The light always ended up red, even if it was off before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tested the same with the "device.state.Brightness" Condition, where it always seemed, that the brightness is set to 100% for the condition, no matter what the brightness actually was.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figure the condition should be working properly since it is used in "official" example scripts:&lt;/P&gt;&lt;DIV&gt;developers center --&amp;gt; example scripted automations --&amp;gt; synhronize two lights&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Is this a common or even known issue?&lt;BR /&gt;&lt;BR /&gt;I would very much appreciate if someone could share more knowledge on this or maybe just try it themselves.&lt;/P&gt;&lt;P&gt;Also ideas to fix this or good work arounds would be perfect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and a good day to everyone!&lt;/P&gt;&lt;P&gt;Slight&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 11:57:50 GMT</pubDate>
    <dc:creator>slight7</dc:creator>
    <dc:date>2024-04-19T11:57:50Z</dc:date>
    <item>
      <title>Google script editor with philips hue - condition not working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-script-editor-with-philips-hue-condition-not-working/m-p/614508#M46185</link>
      <description>&lt;P&gt;Hello Nest Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really love the script editor, but I recently encountered an issue where a Condition is not working with Philips hue lights.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to setup an automation to change my lights at a certain time, with the action depending on wether the lights are on or off.&lt;/P&gt;&lt;P&gt;For this I am using the newest Philips Hue Color Bulbs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But after further testing it seemed to me as if the Condition "device.state.OnOff" "is:on" is always "true", no matter if the light is on or off.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a test script for further insight, which should always turn the light red, with the condition that "device.state.OnOff" "is:on" is "true"; and should always turn the light blue, with the condition that "device.state.OnOff" "is:on" is "false.&lt;BR /&gt;The light always ended up red, even if it was off before.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I tested the same with the "device.state.Brightness" Condition, where it always seemed, that the brightness is set to 100% for the condition, no matter what the brightness actually was.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figure the condition should be working properly since it is used in "official" example scripts:&lt;/P&gt;&lt;DIV&gt;developers center --&amp;gt; example scripted automations --&amp;gt; synhronize two lights&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;Is this a common or even known issue?&lt;BR /&gt;&lt;BR /&gt;I would very much appreciate if someone could share more knowledge on this or maybe just try it themselves.&lt;/P&gt;&lt;P&gt;Also ideas to fix this or good work arounds would be perfect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance and a good day to everyone!&lt;/P&gt;&lt;P&gt;Slight&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 11:57:50 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-script-editor-with-philips-hue-condition-not-working/m-p/614508#M46185</guid>
      <dc:creator>slight7</dc:creator>
      <dc:date>2024-04-19T11:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Google script editor with philips hue - condition not working</title>
      <link>https://www.googlenestcommunity.com/t5/Home-Automation/Google-script-editor-with-philips-hue-condition-not-working/m-p/616409#M46366</link>
      <description>&lt;P&gt;As of a few days ago, it seems to be fixed. Maybe I did something wrong in all my testing, but the exact same thing now works about 95% of the time.&lt;/P&gt;&lt;P&gt;Assuming it actually got fixed, thanks for the support!&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2024 18:26:52 GMT</pubDate>
      <guid>https://www.googlenestcommunity.com/t5/Home-Automation/Google-script-editor-with-philips-hue-condition-not-working/m-p/616409#M46366</guid>
      <dc:creator>slight7</dc:creator>
      <dc:date>2024-04-27T18:26:52Z</dc:date>
    </item>
  </channel>
</rss>

