Hallo zusammen,
I have a Problem with this Code:
- platform: template
sensors:
playstation_zeit_tag:
value_template: "{{states('sensor.playstation_zeit_tag2')}}"
icon_template: >
{% if is_state('binary_sensor.roes_pc_buro_wireless_connected', 'on') %}
mdi:laptop
{% else %}
mdi:laptop-off
{% endif %}
- platform: history_stats
name: playstation_zeit_tag2
entity_id: binary_sensor.roes_playstation_connected
state: "on"
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
It’s about having a switch to disconnect the internet connection.
To see if a separation is also appropriate due to too much Internet, I would like to have the Internet time displayed for the current day.
The Internet time should then be displayed in the switch, the icon should show me whether the device is still connected and the switch should disconnect the Internet connection.
Everything works so far, except that I am not shown the internal time of the current day but the complete time.
Does anyone find the problem?
Grüße
Lars