mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-09 20:57:11 +00:00
71_YAMAHA_NP: fixed 'timerRepeat'
git-svn-id: https://svn.fhem.de/fhem/trunk@19803 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
d32154921e
commit
2298e86bdb
@ -1,5 +1,6 @@
|
||||
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide.
|
||||
# Do not insert empty lines here, update check depends on it.
|
||||
- bugfix: 71_YAMAHA_NP: fixed 'timerRepeat'
|
||||
- new: 76_SMAPortal: new module to integrate the SMA Sunny Portal
|
||||
(comes with 76_SMAPortalSPG graphic device and a
|
||||
widget for FTUI), special thanks to Wzut and Xguide !
|
||||
|
@ -210,9 +210,9 @@ sub YAMAHA_NP_Attr
|
||||
}
|
||||
elsif($attrName eq "timerRepeat")
|
||||
{
|
||||
if ($cmd eq "set" && $attrVal !~ /^(once|every)$/)
|
||||
if ($cmd eq "set" && lc($attrVal) !~ /^(once|every)$/)
|
||||
{
|
||||
return "Use 'once' or 'every'";
|
||||
return "'timerRepeat' must be 'once' or 'every'.";
|
||||
}
|
||||
}
|
||||
elsif($attrName eq "timerHour")
|
||||
@ -1553,7 +1553,7 @@ desiredListNloop:
|
||||
YAMAHA_NP_SendCmd($hash, "PUT:System,Misc,Timer,Param:"
|
||||
."<Start_Time>".sprintf("%02d", $timerHour).":".sprintf("%02d", $timerMinute)."</Start_Time>"
|
||||
."<Volume><Lvl>$timerVolume</Lvl></Volume>"
|
||||
."<Repeat>$timerRepeat</Repeat>", $what, $a[2], 0);
|
||||
."<Repeat>".ucfirst(lc($timerRepeat))."</Repeat>", $what, $a[2], 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user