change watering_computer state

This commit is contained in:
Marko Oldenburg 2020-04-29 14:00:35 +02:00
parent 374745adb7
commit 54482ace58

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>"
], ],