Use the better balkon average

master
Kuba Orlik 4 weeks ago
parent 03fca52345
commit 483af6c6b9

@ -9,8 +9,8 @@ export const actionName = "Dashboard";
//{"type":"call_service","domain":"automation","service":"trigger","service_data":{"entity_id":"automation.force_heating_at_20c_in_strych_for_1h","skip_condition":true},"id":41}
const actions = {
activateStrychHeating: (state: State, inputs: Record<string, string>) => {
call_service(
activateStrychHeating: (state: State) => {
void call_service(
"automation",
"trigger",
"automation.force_heating_at_20c_in_strych_for_1h"
@ -56,7 +56,7 @@ export default new (class DashboardPage extends StatefulPage<State, typeof actio
}
}
async render(ctx: BaseContext, state: State, inputs: Record<string, string>) {
async render() {
const date = new Date();
return (
@ -72,7 +72,11 @@ export default new (class DashboardPage extends StatefulPage<State, typeof actio
<td>
<strong>
{arrow("sensor.balkon_temperature_derivative")}
{with_unit(get_state("input_number.balkon_average"))}
{with_unit(
get_state(
"sensor.better_balkon_average_temperature"
)
)}
</strong>
</td>
</tr>

Loading…
Cancel
Save