Testing out the new SmartThings Integration.
I have it working with some of my devices showing up in HA, but
I have a couple of devices not showing up :
Aeotec Smart Switch 6
Using Device Handler jbisson : Aeon Labs Smart Switch 6 Gen5
It list the capabilities as:
Actuator, Color Control, Configuration, Energy Meter,
Polling, Power Meter, Refresh, Sensor, Switch, Switch Level.
AeotecWallmote Quad
Using Device Handler erocm123 : Aeon WallMote
It list the capabilities as:
Actuator, Battery, Button, Configuration, Health Check, Holdable Button, Sensor
It would seem they have the capabilities necessary to be detected.
The only error I get in the logs:
Traceback (most recent call last):
File ā/opt/homeassistant/homeassistant_venv_3.6/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.pyā, line 248, in _async_add_entity
await entity.async_device_update(warning=False)
File ā/opt/homeassistant/homeassistant_venv_3.6/lib/python3.6/site-packages/homeassistant/helpers/entity.pyā, line 347, in async_device_update
await self.async_update()
File ā/opt/homeassistant/homeassistant_venv_3.6/lib/python3.6/site-packages/homeassistant/components/smartthings/light.pyā, line 147, in async_update
convert_scale(self._device.status.hue, 100, 360),
File ā/opt/homeassistant/homeassistant_venv_3.6/lib/python3.6/site-packages/pysmartthings/device.pyā, line 283, in hue
return float(self._attributes.get(Attribute.hue, 0))
TypeError: float() argument must be a string or a number, not āNoneTypeā
Iām not sure about this log as I do not have Hue lights.
Any suggestions?
Unfortunately, the data payload which some handlers use to pass buttonNumber is not pushed through the new cloud API webhook, so itās not available to us in HASS.
An alternative that does work is to have the Device Handler create child devices for each button, then have them raise the events (sendEvent/createEvent). This changes component_id in the payload from main to the name of the button, allowing you to know which button was pressed.
Thanks for the hint @wmaker@andrewsayre .
Can you advise me which entity is triggering the event āsmartthngs.buttonā? How did you make your āKitchen Wallmoteā?
Two entities are registered in config/.storage/core.entity_registry file as below after integrating smartthings to home assistant.
The āKitchen Wallmoteā is name I use for the quad wallmote I setup in Smartthings and this name automagically shows up in the HA UI->Configuration->Integration SmartThings. If you go looking for the wallmote in HAās ādev-stateā, you wonāt find it (other than maybe a sensor for the wallmote batteryā¦in my case its sensor.kitchen_wallmote_battery).
The HA SmartThings Integration is publishing the button action as event on the āevent busā, and the automation is monitoring the event bus and looking for a match based on event_type, event_data information.
Looking at your entity registry (for the battery), I think you have named your device ābuttonā and so the event_data.name should probably be ābuttonā and not ābutton1ā.
To know for sure what event data to match on, I turned debugging on in my logger for the smartthings integration to capture events showing up.
You can also go to the events developer tool and temporarily turn on listening for the smartthings.button event to get the data passed on the bus each time the button is pressed.
Have read and re-read this thread 4 times, and still canāt figure out exact steps in automation to apply in order to get this to work. I have a similar issue, where I have a zwave Iris button thatās connected to smartthings, and Iāve been able to see the event in the dev-info log
But Iām unsure what values to put in the automation āTrigger Typeā, āEvent Typeā, and āEvent Dataā fields in order to correctly trigger/fire this automation.
Iāve just integrated my SmartThings Hub, I do not use a stand alone Z-Wave transceiver.
Trying to get the Aeotech Quadmote setup to control scenes that include blinds and lights, but I simply canāt find where you guys are saving these files.
Thereās tons of information here all of which Iām sure is really useful; Iāve read this thread over and over and over.
Everyone is referring to placing code in certain places but nowhere do I see where you place any of this code.
I understand states and entities and how to trigger them, I do not understand how to get a push button to register so I can see those states and trigger my entities.
Iām obviously a complete beginner here so realise Iām clueless, where do I even start. Iāve searched through the internet for hours on end and canāt find anything to help me.
If you want to find what the button is doing and get the information from it:
Go to Developer Tools > Events, scroll down to āListen to Eventsā enter smartthings.button in the field then hit āstart listeningā and press the button of your choice.
Grouping lights can be done like this in the configuration.yaml, youāll need to restart the server for it to work, hereās the code for grouping
To find the entity names go to Developer Tools > Services
You can see them all in the drop down list under entities, the Services drop down will also show all the ways to call these entities.