Logger: homeassistant.config
Source: config.py:415
First occurred: 11:01:17 (1 occurrences)
Last logged: 11:01:17
Invalid config for [automation]: must be a value between 0 and 59 for dictionary value @ data[‘minutes’]. Got None. (See /config/configuration.yaml, line 28).
- id: '1608068903614'
alias: '[Light Auto Off With No Motion] [Landing] Off after X minutes without motion'
description: ''
trigger:
- platform: state
entity_id: binary_sensor.landing_motion_sensor_motion
to: 'off'
for: 00:0{{ states('input_number.lights_automation_lights_off_after') |int}}:00
condition:
- condition: state
entity_id: input_boolean.lights_automation_master_lights_off_after_x_minutes
state: 'on'
- condition: state
entity_id: light.landing
state: 'on'
action:
- type: turn_off
device_id: 435f7a3d12fe11eb947f1b4c72e93e25
entity_id: light.landing
domain: light
mode: single
input_boolean.lights_automation_master_lights_off_after_x_minutes
I can turn this on/off to stop all the automations
input_number.lights_automation_lights_off_after
Can only be set 1 to 9 minutes
I’m unsure what you mean by this?
“When using your idea you can’t use the minutes: part. Only use the for: part.”
I don’t think you need the |float - this is just used for decimal numbers.
The issue you have when creating a slider, is that the numbers 1-9 are only single digit…
As you can see below, I had to compensate for this
Sorry to revive this old thread, but I’m trying to setup an automation to pull the minute duration from a slider helper and I keep getting the error message “Message malformed: expected float for dictionary value @ data[‘for’][‘minutes’]”. The slider is setup for 10 to 59 and my code is below. Any idea why this command isn’t working for the minutes variable? When I enter it, I get a popup with the correct setting, so it’s reading the variable from the slider.