So I have been deliberating if to post this up here for a while for a number of reasons
Not sure how many people have committed to Insteon as I have
It may be controversial in which case a MOD can remove this post
After deciding to move to Home Assistant from OpenHab I was extremely disappointed to find out that the Insteon component required me to get an API code from Insteon. It has been weeks and nothing to date. OpenHab on the other hand has 100% out of the box support, no API code required.
So what I did was setup my Insteon devices on OpenHab and utilize the REST API to control it. The good thing is the component is no different from any dimmer component in HA. Dimming works perfectly.
If someone knows how I can attach the component let me know.
oops misspelled the directory name. I am now getting this error when trying to use it for a switch.
6-07-17 18:10:27 homeassistant.components.light: Error while setting up platform insteondimmeroh
Traceback (most recent call last):
File “/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 98, in _setup_platform
discovery_info)
File “/root/.homeassistant/custom_components/light/insteondimmeroh.py”, line 39, in setup_platform
config.get(‘brightness’, DEFAULT_BRIGHTNESS))])
File “/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 155, in add_entities
if self.component.add_entity(entity, self):
File “/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py”, line 125, in add_entity
entity.update_ha_state()
File “/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity.py”, line 165, in update_ha_state
state = STATE_UNKNOWN if self.state is None else str(self.state)
File “/usr/local/lib/python3.4/site-packages/homeassistant/helpers/entity.py”, line 237, in state
return STATE_ON if self.is_on else STATE_OFF
File “/root/.homeassistant/custom_components/light/insteondimmeroh.py”, line 72, in is_on
if int(float(request.text)) > 0:
ValueError: could not convert string to float: ‘ON’
OK I just switched these from Dimmers to Sliders on the sitemap and they show up now but are getting Cannot retrieve item kitchenunder2 for widget org.openhab.model.sitemap.Slider
I had written another component for that that I have included below. You mileage may vary with that one. You need to make sure you setup your items file correctly! You had the wrong identifier for the dimmer in your items file. Make sure you have the correct number for the switch.
Yeah I noticed the wrong identifier this morning. I changed it and it got rid of the errors but the sitemap never would show them right. I think grouping them was the way to go. I will work on these and see what I can get working the dimmers are both functioning now.