#I'm new in Home Automation.

1 messages · Page 1 of 1 (latest)

unique lark
brazen cairn
#

Are you french ? I'am.
Let me check your steps

brazen cairn
#

For the step 1 :
I have set in the configuration.yml : (and quick restart)
input_datetime: both_date_and_time: name: Input with both date and time has_date: true has_time: true only_date: name: Input with only date has_date: true has_time: false only_time: name: Input with only time has_date: false has_time: true

unique lark
#

You'd (clearly) want the only_time one

#

You can also create that under Helpers in the UI

brazen cairn
#

For the step 2 :
I have create the helpers time of step 1 and i haved defined the time.

#

In my button, i called the service "set_time" and i use entity "helpers"

unique lark
#

The entity would be input_datetime.only_time

brazen cairn
#

For now, i used my lightgning for test and example

brazen cairn
#

in my entity :/

unique lark
#

Then ... you still need to create the entity

#

Just do it in the UI

brazen cairn
#

Yes, it's here i'm noob.. because i don't find the button "create entity", i go in the menu "Device & service" and i don't find create entity

unique lark
#

Helpers

brazen cairn
#

It's ok, i have the entity

#

only_time

unique lark
#

That's not the entity

#

An entity always has two parts, separated by .

brazen cairn
#

yes sorry i have input_datetime.only_time

#

So in my button, i have called in tap action : "Call service" > Service : "Input datetime: Set" > entity : input_datetime.only_time

#

it's good ?

unique lark
#

And you need to tell it what to set it to

brazen cairn
#

Always in the button ?

unique lark
#

Yes

#

If you want more then you need to have the button call a script and then the script can get fancy

brazen cairn
#

Ok but i have just "The target time" so for only one hours

#

and i want for 2 choice 01:00 PM or 01:00AM

unique lark
#

Then a script with an if using a time condition

#

Between 01:00 and 12:59 set the time to 13:00, else set the time to 01:00

brazen cairn
#

Sorry, It doesn't make sense to me :/
Why between ? because i want just to start when i tap in the button for 01:00PM or 01:00AM, just. A condition is never equal ?

unique lark
#

Then explain when you want it to be set to 01:00 and when 13:00

brazen cairn
#

Ok if you have time, can you show me in my homelab pls ? with teamviewer or other ?

unique lark
#

No

brazen cairn
#

Re tinkerer

#

I have set that :

#
Menu automation : 
Triggers : light turned off
Conditions : Confirm the time is after 1:55 PM and before 1:59 PM
Actions : Call a service 'Light: Turn on' on light

Button cards :
tap action : call service
Service : Input datetime: Set
Choose entity : input_datetime.only_time

Menu Helpers : 
Input with only time : set to 1:56PM
#

And light not turn on

#

It's an example of configuration for my dishwashers, i try on this light before

unique lark
#

Look in automations.yaml and share the YAML from there

brazen cairn
#
- id: '1703121967606'
  alias: test
  description: ''
  trigger:
  - platform: device
    type: turned_off
    device_id: 7090e8a0fe3e5b0b9ef18786a79b2312
    entity_id: 96758598c70132079d2032340869664c
    domain: light
  condition:
  - condition: time
    after: '13:55:00'
    before: '13:59:00'
    weekday:
    - sun
    - mon
    - tue
    - wed
    - thu
    - fri
    - sat
  action:
  - service: light.turn_on
    target:
      entity_id:
      - light.yeelight_color4_0x1779acd9
      device_id: []
      area_id: []
    data: {}
  mode: single

#

This is the automation.yaml

unique lark
#

And what does the trace show?

brazen cairn
#

Trace :

Triggered by the state of light.yeelight_color4_0x1779acd9 at December 21, 2023 at 1:59:37 PM
Test Confirm the time is after 1:55 PM and before 1:59 PM
Stopped because a condition failed at December 21, 2023 at 1:59:37 PM (runtime: 0.00 seconds)
#

Is not really easy for the simple automation :/

#

Ok, i go to this channel for more help

brazen cairn
#

thanks a lot, you can close this channel 😉

fair river
#

Hi, i new here, and i just read there some French HA here ?

unique lark
#

This server is English only