jason0x43 / hacs-hubitat Goto Github PK
View Code? Open in Web Editor NEWA Hubitat integration for Home Assistant
License: MIT License
A Hubitat integration for Home Assistant
License: MIT License
Exception: HacsException
Message: GitHub returned 404 for https://api.github.com/repos/jason0x43/hacs-hubitat.git
Could not add this repository, make sure it is compliant with HACS.
Add a flag to thermostats that indicates whether the current set point was set via HA or somewhere else. Ideally this would come from Hubitat, but at least for Nests this isn't the case (there's no indication of whether the temperature was adjusted through Hubitat or externally).
Locks with code encrypted enabled return an opaque string for the lockCodes
attribute rather than a JSON value.
{
name: "lockCodes",
currentValue: "EwLalCd...8=",
dataType: "JSON_OBJECT"
}
This will cause the integration to throw an exception when HA tries to retrieve the lock state.
See:
These are actually just another type of binary sensor.
hubitat_event
events should include some form of hub identifier so a user can tell which hub they relate to. This is especially important if different hubs have devices with the same device IDs.
Your plug-in was the main reason why I brought a HE so many thanks for your efforts, your a star!!!
I disable certain entities that I do not use but when I restart HA I get this error.
Entity sensor.office_blind_temperature is incorrectly being triggered for updates while it is disabled. This is a bug in the hubitat integration.
5:38 PM KeyError: 'f9b16c1a546a437ab8661cc097234db3'
5:38 PM evt = to_event_dict(event)
5:38 PM File "/home/webstas/.homeassistant/custom_components/hubitat/device.py", line 351, in get_hub
5:38 PM CONF_TEMPERATURE_UNIT: self.temperature_unit,
5:38 PM File "/home/webstas/.homeassistant/custom_components/hubitat/device.py", line 179, in async_update_options
5:38 PM Traceback (most recent call last):
5:38 PM 2020-05-14 17:38:57 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Currently, the integration maintains a last_code_name
attribute on lock entities, mirroring the behavior of Hubitat. The attribute is updated whenever a new code is used to unlock the lock, and otherwise stays unchanged. This makes lock state updates misleading since they don't reliably indicate whether a code was used to unlock a lock.
Instead, the integration should reset the last_code_name
attribute each time a lock is unlocked (or potentially each time it changes state). If a lock was unlocked with a code, its new state will be "unlocked" and its last_code_name
property will be set to the code. If a lock was unlocked without a code, its state will be "unlocked" and last_code_name
will be empty.
hi,
All my dimmers in hubitat are seen as switches in home assistant I have several models of the same brand "innovelli" but the drivers are installed in hubitat
Thanks
See https://community.home-assistant.io/t/custom-component-hubitat/166750/464
Message malformed: required key not provided @ data['subtype']
See this comment in the forums:
Noticed Hubitat entities intermittently get duplicated after reboot where old ones become unavailable.
The code in sensor.py
that creates event emitters will fail with more than one emitter due to a misuse of list.append
.
See #7 (comment)
For simple switches and dimmers, there's no definitive way to tell if the device represents a light or something else (simple power switch, fan level switch, etc.). The plugin makes a guess for ambiguous devices based on the device name. If it has something light-related, the integration treats it as a light. This works well enough, but it should consider more light-related words, like "sconce", "luminaire", "bulb", etc.
Hi, is it possible for you to forward zwave scene related things to home assistant? For example, a double tap on an inovelli light switch. Although, playing around with hubitat, it seems the drivers convert the zwave scene events into button presses similar to this. Do those automatically get forwarded?
These are things that can open and close, like garage doors and window blinds.
See:
HA 0.109 changed the location for translations from .translations
to translations
. This needs to be updated, or strings will stop loading at some point.
When HE reports values in centigrade they are being treated as fahrenheit and so converted again by HA to centigrade when displayed in HA (using centigrade values)
55 centigrade ..>>.. 12 centigrade.
Hi,
Every time I restart home assistant on v0.5.1, all my entities from Hubiutat are duplicated with _2 at the end, and all the previous entities are not longer valid.
I have to manually remove the invalid entities and rename them so they reappear in home assistant views.
If I reboot home assistat, it happens again.
I've rolled back to v0.5, and the issue has gone away.
Hoping the following can be added:
lock
cover
presence
In versions 0.5.x, the Hampton Bay Ceiling Fan creates two entities in one device, but both get the same Unique_Id value. Because of this, the fan entity is unavailable -- everything pointing to fan.* returns the light.* entity.
Not a huge issue for me but I have been testing different kind of devices I have in my box of junk. One of the items is an Iris Button. Hubitat uses a built-in driver (Iris Button Controller). The Battery and Temp sensor are there in HA. When I try to create an automation, none of the button event emitters are displayed:
Here is the error in log:
2020-02-21 07:29:09 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.140344189711824] Error handling message: Unknown error
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/decorators.py", line 20, in _handle_async_response
await func(hass, connection, msg)
File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 214, in websocket_device_automation_list_triggers
triggers = await _async_get_device_automations(hass, "trigger", device_id)
File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 133, in _async_get_device_automations
for domain in domains
File "/usr/src/homeassistant/homeassistant/components/device_automation/__init__.py", line 107, in _async_get_device_automations_from_domain
return await getattr(platform, function_name)(hass, device_id)
File "/config/custom_components/hubitat/device_trigger.py", line 120, in async_get_triggers
num_buttons = int(device.attributes[ATTR_NUM_BUTTONS].value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
I was able to manually create an automation and it works:
- id: '1582167576045'
alias: test
description: ''
trigger:
- device_id: 2772a3820de94966a0cde1f3809fe5f2
domain: hubitat
platform: device
subtype: '1'
type: pushed
condition: []
action:
- entity_id: light.office
service: light.toggle
HE Log when button is pressed:
app:5132020-02-21 07:35:29.675 am debugdevice event: {"name":"pushed","value":"1","displayName":"Iris Button","deviceId":"257","descriptionText":"Iris Button button 1 was pushed","unit":null,"data":null}
app:5132020-02-21 07:35:26.870 am debugdevice event: {"name":"pushed","value":"1","displayName":"Iris Button","deviceId":"257","descriptionText":"Iris Button button 1 was pushed","unit":null,"data":null}
HA Log when button is pressed:
2020-02-21 07:35:26 DEBUG (MainThread) [custom_components.hubitat.device] emitted event <Event device_id="257" device_name="Iris Button" attribute="pushed" value="1" description="Iris Button button 1 was pushed">
2020-02-21 07:35:29 DEBUG (MainThread) [custom_components.hubitat.device] emitted event <Event device_id="257" device_name="Iris Button" attribute="pushed" value="1" description="Iris Button button 1 was pushed">
Like I said before. Not a huge issue as I'm probably not going to use this button but wanted to bring it to your attention in case other report a similar issues with the same or other devices.
Not seeing any functional issues, but my two cover (Garage Door, Gate) trigger this every time I restart HA.
Error doing job: Task exception was never retrieved Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 415, in _async_add_entity raise HomeAssistantError(msg) homeassistant.exceptions.HomeAssistantError: Entity id already exists: cover.garage_door. Platform hubitat does not generate unique IDs
Here's each devices capabilities
[{"capabilities":["Switch",{"attributes":[{"name":"switch","currentValue":"off","dataType":"ENUM","values":["on","off"]}]},"ContactSensor",{"attributes":[{"name":"contact","currentValue":"closed","dataType":"ENUM","values":["closed","open"]}]},"Polling","Configuration","Refresh","Momentary","Sensor","Actuator","RelaySwitch",{"attributes":[{"name":"switch","currentValue":"off","dataType":"ENUM","values":["on","off"]}]},"DoorControl",{"attributes":[{"name":"door","currentValue":"closed","dataType":"ENUM","values":["unknown","closed","open","closing","opening"]}]},"GarageDoorControl",{"attributes":[{"name":"door","currentValue":"closed","dataType":"ENUM","values":["unknown","closed","open","closing","opening"]}]},"HealthCheck",{"attributes":[{"name":"checkInterval","currentValue":null,"dataType":"NUMBER","values":null}]}]}]
[{"capabilities":["ContactSensor",{"attributes":[{"name":"contact","currentValue":"open","dataType":"ENUM","values":["closed","open"]}]},"Sensor","Actuator","DoorControl",{"attributes":[{"name":"door","currentValue":"open","dataType":"ENUM","values":["unknown","open","closing","closed","opening"]}]},"GarageDoorControl",{"attributes":[{"name":"door","currentValue":"open","dataType":"ENUM","values":["unknown","open","closing","closed","opening"]}]}]}]
Add an options flow so that certain component options, such as the even listener address, can be changed after the component has been installed.
Ok, so MAC addresses aren't great for IDs either, because Python doesn't have a 100% reliable way to obtain a MAC. Instead, use the Maker API access token, or a hash of it, as the basis for the unique ID.
It appears that the 2.2.0 platform update for Hubitat now exposes Physical vs Digital presses for events to MakerAPI. For automation purposes it would be cool to see this added in for further fine tuning.
Maker API: Add evt.type for events (physical/digital)
Hello,
I really appreciate yout work. However, I am not able to add Hubitat currently. It keeps showing "Unexpected Error" when I was trying to input Hub IP, App ID and token.
When I was checking log, it showed this:
Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/hubitat/config_flow.py", line 71, in async_step_user
info = await validate_input(user_input)
File "/config/custom_components/hubitat/config_flow.py", line 43, in validate_input
hub = Hub(data[CONF_HOST], data[CONF_APP_ID], data[CONF_ACCESS_TOKEN])
File "/config/custom_components/hubitat/device.py", line 55, in __init__
if not CONF_HOST in entry.data:
AttributeError: 'str' object has no attribute 'data'
Could you tell me what I should do? Thank you
I get the following error message in the HA logs after trying to setup the integration the first time.
Unexpected exception
Traceback (most recent call last):
File "/config/custom_components/hubitat/config_flow.py", line 70, in async_step_user
info = await validate_input(user_input)
File "/config/custom_components/hubitat/config_flow.py", line 48, in validate_input
"id": hub.id,
AttributeError: 'Hub' object has no attribute 'id'
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.
See:
Update switch.py
to not create distinct switches for devices supporting FanControl.
If you upgrade then the integration will break due to this:
https://developers.home-assistant.io/blog/2020/05/14/entity-class-names/
I would like to access the Hubitat Safety monitor controls from Home Assistant.
Is it possible to be able to control arm/disarm, alarm status, cancel alarms, and Home Assistant notification for when it's triggered?
Current the integration supports up to 8 push buttons on a single device. Support more (at least 12).
Sample capabilities:
{
"id": "323",
"name": "Orbit Sprinkler Controller Station Component",
"label": "Station 01 - Front Side",
"attributes": [
{
"name": "valve",
"currentValue": "closed",
"dataType": "ENUM",
"values": [
"open",
"closed"
]
}
],
"capabilities": [
"Refresh",
"Valve",
{
"attributes": [
{
"name": "valve",
"dataType": null
}
]
}
],
"commands": [
"close",
"open",
"open",
"refresh"
]
}
I've started getting these error messages.
2020-04-29 19:03:18 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 80
2020-04-29 19:03:18 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 81
2020-04-29 19:03:18 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 82
2020-04-29 19:04:36 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 82
2020-04-29 19:04:37 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 81
2020-04-29 19:04:37 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 80
2020-04-29 19:04:37 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 80
2020-04-29 19:04:37 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 80
2020-04-29 19:04:37 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 80
2020-04-29 19:04:37 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 80
2020-04-29 19:04:38 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 80
2020-04-29 19:04:38 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 80
2020-04-29 19:04:38 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 82
2020-04-29 19:04:38 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 82
2020-04-29 19:04:38 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 82
2020-04-29 19:04:38 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 82
2020-04-29 19:04:38 WARNING (MainThread) [hubitatmaker.hub] Tried to update unknown device 82
These are speakers which I've added to my HE but not exposed in the maker api for my HASS install
Hi, have you tested this with RGB zwave lights? I'm seeing some weirdness. For example, if I turn on the bulb from HA, then I try and set the color, this happens in the HA log. If I mess around too long, the light seems to become unresponsive. Any ideas?
2020-04-18 16:40:29 DEBUG (MainThread) [custom_components.hubitat.light] Turning on Dining Room Outdoor Light Bulb with {}
2020-04-18 16:40:30 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'switch', 'value': 'on', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb was turned on', 'unit': None, 'data': None}
2020-04-18 16:40:30 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': '%', 'data': None}
2020-04-18 16:40:41 DEBUG (MainThread) [custom_components.hubitat.light] Turning on Dining Room Outdoor Light Bulb with {'hs_color': (345.0, 100.0)}
2020-04-18 16:40:42 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorMode', 'value': 'RGB', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color mode is RGB', 'unit': None, 'data': None}
2020-04-18 16:40:43 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorMode', 'value': 'RGB', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color mode is RGB', 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '36', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '86', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#24ff4d', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Green', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Green', 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#24ff4d', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '86', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '36', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:00 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Green', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Green', 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#24ff4d', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '86', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '36', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#24ff4d', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '36', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '86', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Green', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Green', 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Green', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Green', 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '86', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#24ff4d', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Green', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Green', 'unit': None, 'data': None}
2020-04-18 16:41:01 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '36', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:07 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Spring', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Spring', 'unit': None, 'data': None}
2020-04-18 16:41:07 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#00ff4d', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:07 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:07 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '38', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:07 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:11 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#00ff4d', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:11 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '38', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:11 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Spring', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Spring', 'unit': None, 'data': None}
2020-04-18 16:41:11 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:11 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:19 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#00ff75', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:19 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Spring', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Spring', 'unit': None, 'data': None}
2020-04-18 16:41:19 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '41', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:19 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:19 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '41', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Spring', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Spring', 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#00ff75', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '41', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Spring', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Spring', 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#00ff75', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:25 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#00ff75', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:26 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:26 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Spring', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Spring', 'unit': None, 'data': None}
2020-04-18 16:41:26 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:26 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '41', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:31 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#00ff75', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '41', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Spring', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Spring', 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'color', 'value': '#00ff75', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'saturation', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'colorName', 'value': 'Spring', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': 'Dining Room Outdoor Light Bulb color is Spring', 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'level', 'value': '100', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
2020-04-18 16:41:32 DEBUG (MainThread) [hubitatmaker.hub] Received event: {'name': 'hue', 'value': '41', 'displayName': 'Dining Room Outdoor Light Bulb', 'deviceId': '233', 'descriptionText': None, 'unit': None, 'data': None}
dev:2332020-04-18 04:41:32.229 pm debugcolors: [0, 255, 117]
dev:2332020-04-18 04:41:32.175 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:117)
dev:2332020-04-18 04:41:32.125 pm debugparse:zw device: 10, command: 3304, payload: 04 75 , isMulticast: false
dev:2332020-04-18 04:41:32.035 pm debugcolors: [0, 255, 117]
dev:2332020-04-18 04:41:32.024 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:117)
dev:2332020-04-18 04:41:32.020 pm debugparse:zw device: 10, command: 3304, payload: 04 75 , isMulticast: false
dev:2332020-04-18 04:41:25.180 pm debugcolors: [0, 255, 117]
dev:2332020-04-18 04:41:25.157 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:117)
dev:2332020-04-18 04:41:25.147 pm debugparse:zw device: 10, command: 3304, payload: 04 75 , isMulticast: false
dev:2332020-04-18 04:41:24.975 pm debugcolors: [0, 255, 117]
dev:2332020-04-18 04:41:24.963 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:117)
dev:2332020-04-18 04:41:24.959 pm debugparse:zw device: 10, command: 3304, payload: 04 75 , isMulticast: false
dev:2332020-04-18 04:41:24.775 pm debugcolors: [0, 255, 117]
dev:2332020-04-18 04:41:24.763 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:117)
dev:2332020-04-18 04:41:24.757 pm debugparse:zw device: 10, command: 3304, payload: 04 75 , isMulticast: false
dev:2332020-04-18 04:41:19.512 pm debugcolors: [0, 255, 117]
dev:2332020-04-18 04:41:19.501 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:117)
dev:2332020-04-18 04:41:19.498 pm debugparse:zw device: 10, command: 3304, payload: 04 75 , isMulticast: false
dev:2332020-04-18 04:41:11.504 pm debugcolors: [0, 255, 77]
dev:2332020-04-18 04:41:11.492 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:red, colorComponentId:2, value:0)
dev:2332020-04-18 04:41:11.488 pm debugparse:zw device: 10, command: 3304, payload: 02 00 , isMulticast: false
dev:2332020-04-18 04:41:07.160 pm debugcolors: [0, 255, 77]
dev:2332020-04-18 04:41:07.142 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:red, colorComponentId:2, value:0)
dev:2332020-04-18 04:41:07.138 pm debugparse:zw device: 10, command: 3304, payload: 02 00 , isMulticast: false
dev:2332020-04-18 04:41:01.537 pm debugcolors: [36, 255, 77]
dev:2332020-04-18 04:41:01.521 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:coldWhite, colorComponentId:1, value:0)
dev:2332020-04-18 04:41:01.518 pm debugparse:zw device: 10, command: 3304, payload: 01 00 , isMulticast: false
dev:2332020-04-18 04:41:00.927 pm debugcolors: [36, 255, 77]
dev:2332020-04-18 04:41:00.874 pm debugcolors: [36, 255, 77]
dev:2332020-04-18 04:41:00.795 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:77)
dev:2332020-04-18 04:41:00.776 pm debugparse:zw device: 10, command: 3304, payload: 04 4D , isMulticast: false
dev:2332020-04-18 04:41:00.773 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:77)
dev:2332020-04-18 04:41:00.765 pm debugparse:zw device: 10, command: 3304, payload: 04 4D , isMulticast: false
dev:2332020-04-18 04:41:00.618 pm debugcolors: [36, 255, 77]
dev:2332020-04-18 04:41:00.605 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:77)
dev:2332020-04-18 04:41:00.601 pm debugparse:zw device: 10, command: 3304, payload: 04 4D , isMulticast: false
dev:2332020-04-18 04:41:00.186 pm debugcolors: [36, 255, 77]
dev:2332020-04-18 04:41:00.171 pm debuggot SwitchColorReport: SwitchColorReport(colorComponent:blue, colorComponentId:4, value:77)
dev:2332020-04-18 04:41:00.133 pm debugparse:zw device: 10, command: 3304, payload: 04 4D , isMulticast: false
dev:2332020-04-18 04:40:43.083 pm debugr:0, g: 255, b: 117
dev:2332020-04-18 04:40:43.080 pm debugsetColor([saturation:100.0, hue:41, level:100])
dev:2332020-04-18 04:40:43.062 pm debugsetSaturation(100.0)
dev:2332020-04-18 04:40:42.572 pm debugr:255, g: 0, b: 77
dev:2332020-04-18 04:40:42.538 pm debugsetColor([hue:95, saturation:100, level:100])
dev:2332020-04-18 04:40:42.527 pm debugsetHue(95)
dev:2332020-04-18 04:40:31.078 pm debugSwitchMultilevelReport(value:99)
dev:2332020-04-18 04:40:31.051 pm debugparse:zw device: 10, command: 2603, payload: 63 , isMulticast: false
I have two different button controllers in my setup, Xiaomi and Aeon. The Xiaomi works great in HA and shows all buttons plus battery state. I also have an Aeon Minimote that is not seen or added to HA
I’ve added it’s capabilities below Incase that helps. I notice it isn’t a “sensor” but it also doesn’t report battery life so not sure I expect to see that.
I’m running your latest build and don’t see any error logs.
[{"capabilities":["Configuration","Actuator","HoldableButton",{"attributes":[{"name":"held","currentValue":"1","dataType":"NUMBER","values":null}]},"PushableButton",{"attributes":[{"name":"numberOfButtons","currentValue":"4","dataType":"NUMBER","values":null},{"name":"pushed","currentValue":"2","dataType":"NUMBER","values":null}]}]}]
Fan entities don't currently report supported features. They should.
Add support for pushbuttons. These will work using Home Assistant's device triggers.
Hi again. I've just added an Inovelli dimmer switch to hubitat and shared it with HA.
With a manually fixed POST setting from #1 - I can turn on/off the zooz plug, but it does not work with the inovelli dimmer.
Here is the log from HA
2020-02-08 13:32:00 DEBUG (MainThread) [custom_components.hubitat.light] Turning on Living Room Rear Door Light Switch with {}
2020-02-08 13:32:00 INFO (MainThread) [custom_components.hubitat.device] Sent on to 71
2020-02-08 13:32:01 DEBUG (MainThread) [homeassistant.components.webhook] Handling webhook POST payload for 192.168.2.125::65
2020-02-08 13:32:01 DEBUG (MainThread) [custom_components.hubitat] received event from <Hub host=192.168.2.125 app_id=65>
Here is the log from Hubitat (2 presses)
dev:712020-02-08 01:32:38.663 pm infoLiving Room Rear Door Light Switch is on [digital]
dev:712020-02-08 01:32:29.474 pm infoLiving Room Rear Door Light Switch is on [digital]
Thoughts?
See:
I'm not 100% sure how a security keypad will map to Home Assistant, but alarm_control_panel and manual look like good bets.
I also don't have a security keypad, so this one is going require some testing assistance to get right.
In some cases, users aren't seeing device updates even though everything seems to have been installed and setup properly. In at least one case, the problem turned out to be because of the address the component is using to receive Hubitat events. Right now the component sets up a Home Assistants webhook to receive Hubitat events. Many users may have their Home Assistant instances setup to serve over the internet, and having Hubitat send events to an external address may not be desirable (and at least sometimes doesn't work).
The hubitatmaker package is being updated in jason0x43/hubitatmaker#1 to run its own internal server by default. This component should be updated to use the new version, and should allow the user to specify what address should be used for the server (e.g., if your HA instance is running at 10.0.1.50 in your home network, that's what you'd tell this component to listen on, and that's what this component would tell Hubitat to post events to).
Occasionally Home Assistant will emit an error about hubitat
not supporting device automation triggers during startup:
2020-03-19 08:17:56 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: Integration 'hubitat' does not support device automation triggers (See /config/configuration.yaml, line 10).
Restarting HA resolves the issue.
Emitted events currently contain the Hubitat device ID, attribute, and value:
{
"data": {
"device_id": 180,
"attribute": "pushed",
"value": 1
}
}
Add the device label, and potentially a description (both of which are available in the raw Hubitat event) to the HA event.
Hi, I have a zooz Double plug setup in hubitat. There is a top level device and 2 child devices (one for each specific outlet). I've shared the top level device with HA. It shows up fine but when I press the switch to turn it on, the device turns on but the status in HA doesn't reflect that it's on. Thus, I can't turn it off.
How can I help debug this?
Thanks!
See:
Home Assistant doesn't have a dedicated "siren" platform. Deconz implements basic siren control through a switch. Hubitat's siren type supports both a siren and a strobe. Perhaps we can break it up into switch and light entities, or simply into two switch entities.
Looks like we can add a repository.json
with certain key/value pairs and gain support through the custom Add-On store feature.
EDIT: gave it a quick go, but looks like it's looking for more. i'll add more later to see about getting working for HASS.io addon store usage.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.