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

Support Hubitat modes #42

Closed
jason0x43 opened this issue May 4, 2020 · 7 comments
Closed

Support Hubitat modes #42

jason0x43 opened this issue May 4, 2020 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@jason0x43
Copy link
Owner

Hubitat's mode can be queried and set through the Maker API. This should be available through HA.

I'm not aware of an appropriate pre-existing device type in HA. Possibly the mode could be presented via a sensor, and a service could be used to set the mode.

@jason0x43 jason0x43 added the enhancement New feature or request label May 4, 2020
@jason0x43
Copy link
Owner Author

A received event looks like:

{
  "name": "mode",
  "value": "Morning",
  "displayName": "Home",
  "deviceId": null,
  "descriptionText": "Home is now in Morning mode",
  "unit": null,
  "type": "LOCATION_MODE_CHANGE",
  "data": null
}

@jason0x43
Copy link
Owner Author

  • /modes gets all modes
  • /modes/:id sets the mode based on its ID

@MRobi1
Copy link

MRobi1 commented May 19, 2020

I'm not aware of an appropriate pre-existing device type in HA. Possibly the mode could be presented via a sensor, and a service could be used to set the mode.

Just a thought, could the mode and hsm status be put into an input-select ? For mode it would give it the same look and feel as HE. Making selection from the drop down could then send a mode change request.

@jason0x43
Copy link
Owner Author

It does seem like it fits the operational model pretty well.

Hmmm...there's an example of dynamically adding an inputs_select at startup in components/demo/__init__.py. The integration could do something similar in alarm_control_panel for HSM, and maybe just in the base integration __init__ for modes. I'll have to experiment a bit there.

@github-actions
Copy link

Stale issue message

@github-actions
Copy link

github-actions bot commented Oct 3, 2020

Stale issue message

@2exclusive
Copy link

hubitat just came out with an update 2.2.4.141 which added support to change HSM modes via maker api. would this make it easier to integrate with home assistant ?

https://community.hubitat.com/t/release-2-2-4-available/55786

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

No branches or pull requests

3 participants