Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Home Assistant extensive support #83

Merged
merged 21 commits into from
Aug 22, 2024
Merged

Home Assistant extensive support #83

merged 21 commits into from
Aug 22, 2024

Conversation

gamba69
Copy link
Contributor

@gamba69 gamba69 commented Aug 20, 2024

  • Device detected as two different lights, main and back
  • Supported on/off, brightness, effects (main and back), color (back)
  • Main light clock faces may be named, see clockfaces.txt on SPIFFS
  • Supported 12/24 hours and blank zeroes settings switches
  • Supported effect's speed change for backlight
  • All options are discoverable via Home Assistant MQTT

@eku
Copy link

eku commented Aug 21, 2024

Nice. Please describe all MQTT topics with their function and parameters for users of other HA systems.

@gamba69
Copy link
Contributor Author

gamba69 commented Aug 21, 2024

Nice. Please describe all MQTT topics with their function and parameters for users of other HA systems.

A full description would take a lot of time and would be a very long story...
In short:
Interaction with Home Assistant occurs according to the MQTT integration documentation:
https://www.home-assistant.io/integrations/light.mqtt/
https://www.home-assistant.io/integrations/switch.mqtt/
https://www.home-assistant.io/integrations/number.mqtt/
https://www.home-assistant.io/integrations/mqtt/#mqtt-discovery
It is preferable (but not mandatory) to use MQTT Discovery (#define MQTT_HOME_ASSISTANT_DISCOVERY), in which case the device and all entities will be found by the MQTT integration without user intervention. Otherwise, all settings will need to be done manually.
#define MQTT_CLIENT is used as a unique device name (i.e. it should be different if you have several IPS clocks) and is the "root" part of the topic for all entities that will be interacted with via MQTT. Further analysis is easier to perform using, for example, "MQTT Explorer", a common add-on for users who prefer manual configuration.

@aly-fly aly-fly merged commit 14f935c into SmittyHalibut:main Aug 22, 2024
2 checks passed
@aly-fly
Copy link
Collaborator

aly-fly commented Aug 22, 2024

Looks good to me. Thanks for the contributions. Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants