Fix incorrect method call for led_mode in air quality sensor scripts
This commit is contained in:
@@ -217,7 +217,7 @@
|
||||
data:
|
||||
target:
|
||||
- media_player.living_room
|
||||
- media_player.dining_room
|
||||
- media_player.dinning_room
|
||||
message: Jordyn - ten minutes left until it's time to put away screens and get a bedtime snack.
|
||||
mode: single
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ script:
|
||||
|
||||
std::string quality = id(iaq_reading).state;
|
||||
float lux = id(ambient_light).state;
|
||||
std::string mode = id(led_mode).state;
|
||||
std::string mode = id(led_mode).current_option();
|
||||
|
||||
float brightness = 0.15;
|
||||
float r = 0.0, g = 0.0, b = 0.0;
|
||||
@@ -148,7 +148,7 @@ script:
|
||||
}
|
||||
|
||||
std::string quality = id(iaq_reading).state;
|
||||
std::string mode = id(led_mode).state;
|
||||
std::string mode = id(led_mode).current_option();
|
||||
float lux = id(ambient_light).state;
|
||||
|
||||
float r = 0.0, g = 0.0, b = 0.0;
|
||||
|
||||
@@ -99,7 +99,7 @@ script:
|
||||
|
||||
std::string quality = id(iaq_reading).state;
|
||||
float lux = id(ambient_light).state;
|
||||
std::string mode = id(led_mode).state;
|
||||
std::string mode = id(led_mode).current_option();
|
||||
|
||||
float brightness = 0.15;
|
||||
float r = 0.0, g = 0.0, b = 0.0;
|
||||
@@ -154,7 +154,7 @@ script:
|
||||
}
|
||||
|
||||
std::string quality = id(iaq_reading).state;
|
||||
std::string mode = id(led_mode).state;
|
||||
std::string mode = id(led_mode).current_option();
|
||||
float lux = id(ambient_light).state;
|
||||
|
||||
float r = 0.0, g = 0.0, b = 0.0;
|
||||
|
||||
@@ -99,7 +99,7 @@ script:
|
||||
|
||||
std::string quality = id(iaq_reading).state;
|
||||
float lux = id(ambient_light).state;
|
||||
std::string mode = id(led_mode).state;
|
||||
std::string mode = id(led_mode).current_option();
|
||||
|
||||
float brightness = 0.15;
|
||||
float r = 0.0, g = 0.0, b = 0.0;
|
||||
@@ -154,7 +154,7 @@ script:
|
||||
}
|
||||
|
||||
std::string quality = id(iaq_reading).state;
|
||||
std::string mode = id(led_mode).state;
|
||||
std::string mode = id(led_mode).current_option();
|
||||
float lux = id(ambient_light).state;
|
||||
|
||||
float r = 0.0, g = 0.0, b = 0.0;
|
||||
|
||||
Reference in New Issue
Block a user