Helper "Date and/or Time" not available

I’m trying to add a helper in home assistant but the date and/or time option is grayed out. I can add toggle, number and dropdown but not ‘date and/or time’

In my config I have added the following sensor:
sensor:

  • platform: time_date
    display_options:
    • ‘time’
    • ‘date’
    • ‘time_date’

The sensor is working but still the helper is grayed out… Anybody an idea?

Home Assistant 0.112.4

System Health

arch x86_64
chassis vm
dev false
docker true
docker_version 19.03.8
hassio true
host_os HassOS 4.11
installation_type Home Assistant OS
os_name Linux
os_version 5.4.50
python_version 3.7.7
supervisor 228
timezone Europe/Amsterdam
version 0.112.4

Either your configuration.yaml should have this :


# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:

or something like this:



#default_config:

# Individual options represented by default_config
automation: !include automations.yaml
automation manual: !include_dir_merge_list automations
cloud:
config:
frontend:
history:
input_boolean: !include input_boolean.yaml
input_datetime:
input_number: !include input_number.yaml
input_select:
input_text:
logbook:
map:
mobile_app:
person:
script: !include scripts.yaml
ssdp:
sun:
system_health:
updater:
zeroconf:
zone:

To a certain extend I have that. What parameter do you think is related to this issue?

sensor:
  - platform: time_date
    display_options:
      - 'time'
      - 'date'
      - 'date_time'
      - 'date_time_iso'
      - 'time_date'
      - 'time_utc'
      - 'beat'

It depends on which ones you need but I’d suggest : -

      - 'time'
      - 'date'
      - 'date_time'
      - 'time_date'

would cover ‘most’ situations

‘beat’ is just damn useless in my opinion (who wants a thousandth of a day ? - it was marketed by Swatch - go figure !)

I’ve the following config. Though it doesn’t solve the issue

sensor:

  • platform: yr
  • platform: time_date
    display_options:
    • ‘time’
    • ‘date’
    • ‘time_date’
    • ‘date_time’

Can you please format your code correctly (use the </> button
Have you restarted ?

will do that and restarted, multiple times. On top off that I have home assistant running on proxmox and have stopped and started the server multiple times…

The helper “Date and/or Time”

needs

or

in configuration.yaml. Or it will not be available.

thanks, the line input_datetime: solved the issue.

Jeroen and @francisp, my apologies, I thought you wanted the sensors not just the input date_time 's
To be honest the term ‘helper’ went over my head (I’ve just always entered this stuff by hand)
Anyway glad Francis was able to help !

I’ll just put this here:

no problem, i’m already glad that the community is that helpful