I need help with below script syntax of home assistant software. I tried (my scripts are on comment box) but stuck on the condition. I need a trigger, condition, and action) for On and Off. .
Scenario ---- ""it should turn On the AC climate.stuen with the following setting —hvac_modes:cool ,temperature: 22 ,fan_mode: 5, swing_mode: 2, vane_horizontal: 1,left vane_vertical: 2 2 — turn off
i am not seeking help from home assistant . I am not seeking customer care. I am looking for support to my need. I draw something and shared here. those who are helpful minded and can support me willingly . But those who do not understand and copying , pasting rules here will receive a big thank you from me . but situation is same , i need help from experts. Thanks a lot for your time in my post.
However, when many people read the title, and then read the body, they’ll ignore the post because it looks like you’re just using the title to get attention.
Without marking up your code as code, nobody can tell what the problems may be. It’s literally unreadable.
Please read this before making another post, especially section 11.
Format it properly
Spacing is critical in YAML, and if you just throw the code on the page then it’ll look ugly and nobody will know if the problem is because of spacing. We need you to use code blocks and appropriate markup.
For example, this is easy to read and it is obvious if the spacing is correct:
# Turn off lights when everybody leaves the house
- alias: 'Rule 2 - Away Mode'
trigger:
platform: state
entity_id: group.all_devices
to: 'not_home'
action:
service: light.turn_off
entity_id: group.all_lights
This however, not so much:
Turn off lights when everybody leaves the house
alias: ‘Rule 2 - Away Mode’
trigger:
platform: state
entity_id: group.all_devices
to: ‘not_home’
action:
service: light.turn_off
entity_id: group.all_lights
Full details are in that link , but in brief you wrap your block in three backticks (```), like this:
# Turn off lights when everybody leaves the house
- alias: 'Rule 2 - Away Mode'
trigger:
platform: state
entity_id: group.all_devices
to: 'not_home'
action:
service: light.turn_off
entity_id: group.all_lights
You have been shown how to post your logs and directed to the instructions at least 3 times. You ignore us each time. You are frustrating beyond belief.
I reiterate that is is hard to help when you haven’t formatted your code properly, but all entity id’s are lower case in home assistant, so there are multiple errors of that nature in your code.
thank you . i will correct it. this is still draft version.
“it should turn On the AC climate.stuen with the following setting —hvac_modes:cool ,temperature: 22 ,fan_mode: 5, swing_mode: 2, vane_horizontal: 1,left vane_vertical: 2 2 — turn off”--------------i have to add this requirements in my script. but i am not understanding how to these conditions correctly.