๐Ÿšช Closet, Pantry, and Cupboard Lighting

@Will-com4

Thanks for your YAML. I have tested it here and it works perfectly.

Blacky :grinning:

Well thatโ€™s disappointing. I wonder what the issue is on my end.

@Will-com4

Maybe look at the logbook to see what turned it OFF.

Blacky :grinning:

Hey @Blacky Iโ€™m getting this in Watchman in the automation.

 light.data                     | missing | blueprints/automation/Blackshome/closet-pantry-cupboard-ligh |
|                                |         | ting.yaml:588,590,592,594,596,597,599,615,617,619,621,623,62 |
|                                |         | 5,626 

Which refers to multiple lines but here are a couple of mine

 %}\n  {% set light.data = dict(light.data, **{ 'transition': light_transition_on
    }) %}\n{% endif %} {% if 'use_brightness' in include_light_control %}\n  {% set
    light.data = dict(light.data, **{ 'brightness_pct': light_brightness }) %}\n{%
    endif %} {% if include_light_colour_control == 'use_colour_temperature' %}\n  {%
    set light.data = dict(light.data, **{ 'color_temp_kelvin': light_colour_temperature

@CamCorp
Could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on โ€œ</>โ€ and paste code in there.

Blacky :grinning:

To long to paste here so put it here Closet, Pantry, and Cupboard Lighting - Pastebin.com

Thanks!!

@CamCorp

Thanks for the link but that is the code I have written. I have that already.

To do this:

  1. Open your automation.
  2. Click the three dots (โ‹ฎ) in the top right corner.
  3. Select Edit in YAML.
  4. Copy the entire YAML code.
  5. Return to the forum and, in your reply, click the </> button in the toolbar.
  6. Paste your YAML inside the code block.

This ensures the formatting stays correct and makes it easier to analyze.

Blacky :grinning:

@Blacky oops sorry

alias: Door - Pantry
description: ""
use_blueprint:
  path: Blackshome/closet-pantry-cupboard-lighting.yaml
  input:
    trigger_entity:
      - binary_sensor.sensor_door_2_pantry
    light_switch:
      entity_id: light.switch_pots_2_pantry
    timer:
      hours: 0
      minutes: 15
      seconds: 0
    include_timer: enable_timer

@CamCorp

Thanks, your not using any light control options and the code is just checking your selections. I not sure why watchman would be doing this but you automation should work.

Blacky :grinning:

@Blacky

Thanks, yes everything works fine. Was just cleaning up my watchman, that is my only error now. If there is nothing I can do another it and it doesnt mean an issue then I can ignore.

@CamCorp

Yeah, it is not a bug. Thanks for reaching out anyway, I appreciate it.

Blacky :grinning: