2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +00:00

74_GardenaSmartDevice: fix watering_computer state

git-svn-id: https://svn.fhem.de/fhem/trunk@21808 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
LeonGaultier 2020-04-29 13:19:30 +00:00
parent edb1d592a3
commit 1c1fd35f5a
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,6 @@
# Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # 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. # Do not insert empty lines here, update check depends on it.
- bugfix: 74_GardenaSmartDevice: fix watering_computer state
- feature: 77_UWZ: add disableForIntervals, fix searchAreaID Fn and bugfix - feature: 77_UWZ: add disableForIntervals, fix searchAreaID Fn and bugfix
- feature: 98_RandomTimer: Add disabledForIntervals attribute - feature: 98_RandomTimer: Add disabledForIntervals attribute
and active/inactive setters and active/inactive setters

View File

@ -606,9 +606,10 @@ sub WriteReadings {
readingsBulkUpdate( readingsBulkUpdate(
$hash, 'state', $hash, 'state',
( (
ReadingsVal( $name, 'watering-watering_timer_1_state', 'idle' ) eq 'idle' (ReadingsVal( $name, 'watering-watering_timer_1_state', 'open' ) eq 'open'
? RigReadingsValue( $hash, 'closed' ) || ReadingsVal( $name, 'watering-watering_timer_1_state', 'offen' ) eq 'offen')
: RigReadingsValue( $hash, 'open' ) ? RigReadingsValue( $hash, 'open' )
: RigReadingsValue( $hash, 'closed' )
) )
) if ( AttrVal( $name, 'model', 'unknown' ) eq 'watering_computer' ); ) if ( AttrVal( $name, 'model', 'unknown' ) eq 'watering_computer' );
@ -1207,7 +1208,7 @@ sub SetPredefinedStartPoints {
], ],
"release_status": "stable", "release_status": "stable",
"license": "GPL_2", "license": "GPL_2",
"version": "v2.0.0", "version": "v2.0.1",
"author": [ "author": [
"Marko Oldenburg <leongaultier@gmail.com>" "Marko Oldenburg <leongaultier@gmail.com>"
], ],