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} //{"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 = { const actions = {
activateStrychHeating: (state: State, inputs: Record<string, string>) => { activateStrychHeating: (state: State) => {
call_service( void call_service(
"automation", "automation",
"trigger", "trigger",
"automation.force_heating_at_20c_in_strych_for_1h" "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(); const date = new Date();
return ( return (
@ -72,7 +72,11 @@ export default new (class DashboardPage extends StatefulPage<State, typeof actio
<td> <td>
<strong> <strong>
{arrow("sensor.balkon_temperature_derivative")} {arrow("sensor.balkon_temperature_derivative")}
{with_unit(get_state("input_number.balkon_average"))} {with_unit(
get_state(
"sensor.better_balkon_average_temperature"
)
)}
</strong> </strong>
</td> </td>
</tr> </tr>

Loading…
Cancel
Save