Giter Club home page Giter Club logo

kansas_gas_home_assistant's Introduction

This integration is currently not working due to security improvments from KS Gas

Kansas Gas Sensor For Home Assistant

sensor:
  - platform: ks_gas_sensor
    username: !secret ks_gas_username
    password: !secret ks_gas_password
    account: 12345678 (optional)	

Supported Sensors:

  • Status
  • Credit Rating
  • Consumption
  • Address
  • Last Payment Date
  • Last Payment
  • Ammount Due
  • Due Date
  • Past Due

kansas_gas_home_assistant's People

Contributors

thebradleysanders avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

nkwood

kansas_gas_home_assistant's Issues

Component stopped working

Had been working great, then maybe 10 days ago I started seeing this upon restart of HA:

 2020-12-08 09:02:58 ERROR (SyncWorker_13) [custom_components.ks_gas_sensor.sensor] list index out of range

 2020-12-08 09:02:58 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform ks_gas_sensor

 Traceback (most recent call last):
 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities await asyncio.gather(*tasks)

 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity await entity.add_to_platform_finish()

 File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish self.async_write_ha_state()
 File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state self._async_write_ha_state()
 File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state sstate = self.state
 File "/config/custom_components/ks_gas_sensor/sensor.py", line 108, in state return self._state

 AttributeError: 'ks_gas_sensor' object has no attribute '_state'

 2020-12-08 09:02:58 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up ks_gas_sensor platform for sensor
 Traceback (most recent call last):
 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 207, in _async_setup_platform await asyncio.gather(*pending)

 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 316, in async_add_entities await asyncio.gather(*tasks)
 File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in _async_add_entity await entity.add_to_platform_finish()
 File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 531, in add_to_platform_finish
 self.async_write_ha_state()
 File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 296, in async_write_ha_state
 self._async_write_ha_state()
 File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 320, in _async_write_ha_state
 sstate = self.state
 File "/config/custom_components/ks_gas_sensor/sensor.py", line 108, in state
 return self._state
 AttributeError: 'ks_gas_sensor' object has no attribute '_state'

 2020-12-08 09:02:59 ERROR (SyncWorker_23) [custom_components.ks_gas_sensor.sensor] list index out of range

 2020-12-08 09:03:00 ERROR (SyncWorker_13) [custom_components.ks_gas_sensor.sensor] list index out of range

 2020-12-08 09:03:01 ERROR (SyncWorker_1) [custom_components.ks_gas_sensor.sensor] list index out of range

 2020-12-08 09:03:02 ERROR (SyncWorker_18) [custom_components.ks_gas_sensor.sensor] list index out of range

 2020-12-08 09:03:02 ERROR (SyncWorker_4) [custom_components.ks_gas_sensor.sensor] list index out of range

I tried changing logging level to debug but didn't seem to change log output. Glad to help debug if you're still open to working on this.

Thanks!

Error logging in

I just noticed that the component is not able to login successfully. To be honest, I don't know how long it's been failing, as I haven't been paying attention to the sensor values. But now I would like to include the consumption reported into the HA Energy dashboard, so would like to get this working.

I'm still able to login interactively to the Kansas Gas web and app with the credentials I'm providing the component. Has the API changed? Any other information I can provide to help troubleshoot? Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.