Automaticly set dimmer

Tags: #<Tag:0x00007f7802231cd0>

How do I set my dimmer to come on at 50% automatically at 8pm.
The dimmer is only an entity not a device, so I can’t do much with it except turn it on or off. (it took me ages to discover that was only via using the Action>Call Service - why not have entities available???)
I can’t build a scene as you can only use devices not entities.
Or If I could turn my entities into devices, life would be easier
I can manually use the dimmer from the Home view

trigger:
  platform: time
  at: '20:00:00'
action:
  service: light.turn_on
  data:
    entity_id: light.your_light_here ### <- change this ###
    brightness_pct: 50

See the examples at the bottom of this page:

Thanks. That works.

No problems. Please mark it solved (button at the bottom of the post that helped).

Node-red also works…

I use:

  • a big-timer (using sunrise +/- 1 hour).
  • a function to set payload to 25% dimmer
  • call the service set the payload

    [{"id":"d3d505b0.a917b8","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"489f1674.0cae28","type":"api-call-service","z":"d3d505b0.a917b8","name":"light.kitchen","server":"37d68302.2aabcc","version":1,"debugenabled":false,"service_domain":"","service":"","entityId":"light.kitchen","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":770,"y":200,"wires":[[]]},{"id":"1a2b0d8.afa30f3","type":"bigtimer","z":"d3d505b0.a917b8","outtopic":"morning","outpayload1":"turn_on","outpayload2":"turn_off","name":"Weekdays SunRise +- 01hr","comment":"","lat":"54.831092","lon":"22.335460","starttime":"5003","endtime":"5003","starttime2":0,"endtime2":0,"startoff":"-60","endoff":"+60","startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"off","timeout":1440,"sun":false,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":false,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":"","month7":"","day8":"","month8":"","day9":"","month9":"","day10":"","month10":"","day11":"","month11":"","day12":"","month12":"","d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"repeat":false,"atstart":false,"odd":false,"even":false,"x":260,"y":200,"wires":[["293d283d.87d5c8"],[],[]]},{"id":"293d283d.87d5c8","type":"function","z":"d3d505b0.a917b8","name":"set message","func":"if ( msg.payload == \"turn_on\" )\n{\n msg.payload = {\n domain: \"light\",\n service: msg.payload,\n data: {\n entity_id: \"light.kitchen\",\n \"brightness_pct\": 25\n }\n };\n}\nelse\n{\n msg.payload = {\n domain: \"light\",\n service: msg.payload,\n data: {\n entity_id: \"light.kitchen\"\n }\n };\n}\n\n\nreturn msg;\n","outputs":1,"noerr":0,"x":550,"y":200,"wires":[["489f1674.0cae28"]]},{"id":"37d68302.2aabcc","type":"server","z":"","name":"Home Assistant"}]

Sorry that makes no sense at all to me.
Tom_I 's reply worked