Yet Another Flux Integration

https://justgetflux.com/

This is an old program (5+ years old) but I haven’t found anything that works better with the ability to change screen color and publish the data to the web at the same time.

You can get it integrated into HomeAssistant follow the config below.

Configure the program to post to http://<ha_ip_address/fqdn>:8123/api/webhook/flux

Put the below script into automation.yaml

- id: flux_handler
  alias: Flux Handler
  trigger:
    - platform: webhook
      webhook_id: flux
      allowed_methods:
        - POST
      local_only: true
  condition: []
  action:
    - service: input_number.set_value
      entity_id: input_number.flux_colortemp
      data_template:
        value: "{{ trigger.query.ct }}"
    - service: input_number.set_value
      entity_id: input_number.flux_brightness
      data:
        value: >
          {%- set bri = float(trigger.query.bri) * float(20) %}
          {% if bri < 3  %}
            3
          {% else %}
          {{ bri }}
          {% endif %}
    - service: input_text.set_value
      entity_id: input_text.flux_timestamp
      data_template:
        value: '{{ now().strftime("%Y%m%d_%H%M%S") }}'

add the input_number and input_text fields into the appropriate locations as well

write something to automate changing your lights’ color temperature and brightness to match what Flux has posted and… done!

1 Like