|
@@ -66,7 +66,7 @@ class QLearningCommandBuilder:
|
|
|
speed = self.predict_speed(input_value)
|
|
|
if np.isnan(current_temperature) or np.isnan(pre_temperature):
|
|
|
speed = 2
|
|
|
-
|
|
|
+
|
|
|
if speed == 0:
|
|
|
on_off = 0
|
|
|
water_on_off = 0
|
|
@@ -82,11 +82,11 @@ class QLearningCommandBuilder:
|
|
|
season = 0
|
|
|
|
|
|
command = {
|
|
|
- 'on_off': on_off,
|
|
|
- 'season': season,
|
|
|
+ 'onOff': on_off,
|
|
|
+ 'mode': season,
|
|
|
'speed': int(speed),
|
|
|
- 'temperature_set': actual_target,
|
|
|
- 'water_on_off': water_on_off
|
|
|
+ 'temperature': actual_target,
|
|
|
+ 'water': water_on_off
|
|
|
}
|
|
|
return command
|
|
|
|