<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Dimming X10 modules]]></title><description><![CDATA[<p dir="auto">I finally got back to trying this. Found that you send an "on" command, following by "dim" commands. Each "dim" command dims the lights by 10%.<br />
e.g.<br />
if "%1"=="dim" curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22K4%25%20on%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"K4% on%"</a><br />
if "%1"=="dim" curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22K4%25%20dim%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"K4% dim%"</a><br />
if "%1"=="dim" curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22K4%25%20dim%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"K4% dim%"</a><br />
if "%1"=="dim" curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22K4%25%20dim%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"K4% dim%"</a><br />
to dim to 70%.<br />
This works clicking the dim button on your site:<br />
"Ceiling light script ran with param dim" Thu 02/06/2025 13:08:43.20<br />
I had Alexa discover devices to pick up the new parameter, but when I give the command "turn ceiling lights dim" I get this in logging:<br />
"Ceiling light script ran with param undefined" Thu 02/06/2025 13:09:23.64<br />
Apparently your TRIGGERcmd Home Automation skill doesn't pass anything but on/off. Be great if this was changed,<br />
Thanks,<br />
Ken</p>
]]></description><link>https://www.triggercmd.com/forum/topic/3214/dimming-x10-modules</link><generator>RSS for Node</generator><lastBuildDate>Sun, 11 Oct 2026 17:24:57 GMT</lastBuildDate><atom:link href="https://www.triggercmd.com/forum/topic/3214.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 06 Feb 2025 19:20:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Dimming X10 modules on Sat, 15 Feb 2025 19:08:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/russ" aria-label="Profile: Russ">@<bdi>Russ</bdi></a> Thanks for getting me started.<br />
Also meant to post commands must be URL encoded even though it isn't a URL.<br />
Verbal command would be something like "Alexa, turn Loft Lights 40 [percent]</p>
]]></description><link>https://www.triggercmd.com/forum/post/8492</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8492</guid><dc:creator><![CDATA[karnold69]]></dc:creator><pubDate>Sat, 15 Feb 2025 19:08:06 GMT</pubDate></item><item><title><![CDATA[Reply to Dimming X10 modules on Sat, 15 Feb 2025 17:01:12 GMT]]></title><description><![CDATA[<p dir="auto">Nice <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/karnold69" aria-label="Profile: karnold69">@<bdi>karnold69</bdi></a> !  Thanks for sharing your working script.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8491</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8491</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sat, 15 Feb 2025 17:01:12 GMT</pubDate></item><item><title><![CDATA[Reply to Dimming X10 modules on Sat, 15 Feb 2025 16:25:51 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/russ" aria-label="Profile: Russ">@<bdi>Russ</bdi></a> Sorry, gave you bad intel. The DIM command requires a percentage parameter. To complicate things more, when the PLM receives DIM 60, it changes it to DIM 63.<br />
e.g. from log<br />
Transmit J Dim 60(Loft Lights)<br />
Receive	J Dim 63(Loft Lights)<br />
X10 Commander sends both, dimming it twice.  The Active Home software shows it dimmed to 13%. It's not good at math!<br />
Also, a light has to be on to accept DIM/BRIGHT commands.<br />
I documented everything in the bat file so others can use it. I'm using an X10 CM15a USB PLM with X10 Commander and Active Home Pro software.<br />
After extensive trial an error, here's the resulting batch file that works:<br />
batch<br />
@echo off<br />
if "%1"=="on" curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22J7%25%20bright%25%20100%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"J7% bright% 100%"</a><br />
if "%1"=="on" exit \b<br />
if "%1"=="off" curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22J7%25%20off%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"J7% off%"</a><br />
if "%1"=="off" exit \b</p>
<p dir="auto">set "level=%1"<br />
:: Ensure the input is a valid percentage (10, 20, ..., 90)<br />
if "%level%"=="10" goto valid<br />
if "%level%"=="20" goto valid<br />
if "%level%"=="30" goto valid<br />
if "%level%"=="40" goto valid<br />
if "%level%"=="50" goto valid<br />
if "%level%"=="60" goto valid<br />
if "%level%"=="70" goto valid<br />
if "%level%"=="80" goto valid<br />
if "%level%"=="90" goto valid</p>
<p dir="auto">echo "Invalid dim level. Please enter 10, 20, 30, ..., 90." %date% %time% &gt;&gt; c:\scripts\x10_log.txt<br />
exit /b</p>
<p dir="auto">:valid<br />
:: change input value to legitimate values. (10% is valid as 10%)<br />
if "%level%"=="20" set level="21"<br />
if "%level%"=="30" set level="31"<br />
if "%level%"=="40" set level="42"<br />
if "%level%"=="50" set level="52"<br />
if "%level%"=="60" set level="63"<br />
if "%level%"=="70" set level="73"<br />
if "%level%"=="80" set level="84"<br />
if "%level%"=="90" set level="94"<br />
:: light must be on to accept DIM/BRIGHT commands<br />
curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22J7%25%20on%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"J7% on%"</a><br />
:: set a delay so my phase coupler/repeater in my breaker box has time to repeat command before receiving another<br />
ping -n 4 localhost &gt;nul<br />
:: bring light to full brightness. If light was previously dimmed, it will dim it more.<br />
curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22J7%25%20bright%25%20100%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"J7% bright% 100%"</a><br />
ping -n 4 localhost &gt;nul<br />
curl <a href="http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%25%22J7%25%20dim%25%20%25level%25%25%22" rel="nofollow ugc">http://127.0.0.1:8086/?x10command=DEVICE~sendplc~%"J7% dim% %level%%"</a></p>
<p dir="auto">::echo "Dimmed to %level%" %date% %time% &gt;&gt; c:\scripts\x10_log.txt</p>
]]></description><link>https://www.triggercmd.com/forum/post/8490</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8490</guid><dc:creator><![CDATA[karnold69]]></dc:creator><pubDate>Sat, 15 Feb 2025 16:25:51 GMT</pubDate></item><item><title><![CDATA[Reply to Dimming X10 modules on Sun, 09 Feb 2025 21:34:21 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/karnold69" aria-label="Profile: karnold69">@<bdi>karnold69</bdi></a> sorry, I didn't read your first post well enough.  Now I understand you want to be able to dim your X10 bulbs with a Windows batch file using Alexa.  Please try this script:</p>
<p dir="auto">Be aware though, you can't dim smart bulbs or send a percentage to a triggercmd acommand by saying to Alexa, "Alexa, dim bulb X".  You have to say "Alexa, dim bulb X to 20 percent", or something like that (where X is the bulb name or voice name for your triggercmd command.</p>
<p dir="auto">I used ChatGPT to create this script, and tested it.  I think it could work for you.</p>
<p dir="auto"><a href="https://chatgpt.com/share/67a91dfc-f4a4-8004-bfd5-09f488830d9e" rel="nofollow ugc">https://chatgpt.com/share/67a91dfc-f4a4-8004-bfd5-09f488830d9e</a></p>
<p dir="auto">Here’s a revised version of your script that allows you to specify a percentage instead of the word "dim." It ensures the dim level is one of the allowed values (10, 20, 30, etc.) and calculates the number of dim commands needed accordingly.</p>
<p dir="auto">script.bat:</p>
<pre><code>batch
@echo off
set "level=%1"

:: Ensure the input is a valid percentage (10, 20, ..., 90)
if "%level%"=="10" goto valid
if "%level%"=="20" goto valid
if "%level%"=="30" goto valid
if "%level%"=="40" goto valid
if "%level%"=="50" goto valid
if "%level%"=="60" goto valid
if "%level%"=="70" goto valid
if "%level%"=="80" goto valid
if "%level%"=="90" goto valid

echo Invalid dim level. Please enter 10, 20, 30, ..., 90.
exit /b

:valid
:: Turn on the light (assumes it starts at 100)
curl http://127.0.0.1:8086/?x10command=DEVICE~sendplc~"K4 on"

:: Calculate the number of dim commands (each step reduces by 10%)
set /a "steps=(100 - %level%) / 10"

:: Send the dim commands
for /l %%i in (1,1,%steps%) do (
    curl http://127.0.0.1:8086/?x10command=DEVICE~sendplc~"K4 dim"
)

echo Dimmed to %level%%</code></pre>
]]></description><link>https://www.triggercmd.com/forum/post/8487</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8487</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Sun, 09 Feb 2025 21:34:21 GMT</pubDate></item><item><title><![CDATA[Reply to Dimming X10 modules on Sun, 09 Feb 2025 20:27:41 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/russ" aria-label="Profile: Russ">@<bdi>Russ</bdi></a><br />
That doesn't work with X10. It needs to receive an "on" command followed by X number of "dim" commands as in the example I posted.. I did try Alexa, ceiling lights 60 percent and logging showed it passed a 60 parameter. When I used the "dim" parameter it logs as "parameter undefined." Although it works clicking the "dim" button on your site.</p>
]]></description><link>https://www.triggercmd.com/forum/post/8486</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8486</guid><dc:creator><![CDATA[karnold69]]></dc:creator><pubDate>Sun, 09 Feb 2025 20:27:41 GMT</pubDate></item><item><title><![CDATA[Reply to Dimming X10 modules on Fri, 07 Feb 2025 01:53:06 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/karnold69" aria-label="Profile: karnold69">@<bdi>karnold69</bdi></a>, you can send a dim level from 0 to 100 percent.</p>
<p dir="auto">For example, I have a command called "logger" with parameters enabled.  I just said, "Alexa, logger 10 percent" and it ran my command with <strong>10</strong> as the parameter.</p>
<p dir="auto">Here's the Runs list entry:</p>
<p dir="auto"><img src="/forum/assets/uploads/files/1738893087700-71cb9d4f-ab7e-43f6-83b6-c22156d63b24-image.png" alt="71cb9d4f-ab7e-43f6-83b6-c22156d63b24-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://www.triggercmd.com/forum/post/8477</link><guid isPermaLink="true">https://www.triggercmd.com/forum/post/8477</guid><dc:creator><![CDATA[Russ]]></dc:creator><pubDate>Fri, 07 Feb 2025 01:53:06 GMT</pubDate></item></channel></rss>