I get this error in the logs:
I have four history stats sensors:
- platform: history_stats
name: "Porttelefon count"
entity_id: switch.porttelefon
state: "on"
type: count
start: "{{ [now().replace(minute=now().minute-1), 0] | max }}"
end: "{{ now() }}"
- platform: history_stats
name: gamla_plattan_tid
entity_id: sensor.gamla_plattan_on
state: true
type: time
start: '{{ now().replace(hour=0, minute=0, second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: nya_plattan_tid
entity_id: sensor.nya_plattan_on
state: true
type: time
start: '{{ now().replace(hour=0, minute=0, second=0) }}'
end: '{{ now() }}'
- platform: history_stats
name: Andreas phone on
entity_id: binary_sensor.andreas_interactive
state: 'on'
type: time
start: '{{ now().replace(hour=0, minute=0, second=0) }}'
end: '{{ now() }}'
Three of them are only used for viewing, one is used in an automation:
- id: '1634041185587'
alias: Porttelefon SW switch off
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.porttelefon_count
above: '12'
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.porttelefon_sw_block
- service: notify.mobile_app_andreas
data:
message: Porttelefonen är blockerad nu på grund av för många aktiveringar
title: Kolla porttelefonen
data:
ttl: 0
priority: high
mode: single
What is the error about? I don’t have any int or datetime anywhere.