Code Monkey home page Code Monkey logo

Comments (6)

eavanvalkenburg avatar eavanvalkenburg commented on August 30, 2024 1

With the setup above, you would not see sensors until a message is sent from your alarm system to HA, I'll dubblecheck that behaviour to make sure.

from sia.

Tuschz avatar Tuschz commented on August 30, 2024

So it is trying to create a sensor that is already there. in this part

async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Implementation of platform setup from HA."""
devices = [
device
for hub in hass.data[DOMAIN].values()
for device in hub._states.values()
if isinstance(device, SIASensor)
]
_LOGGER.debug("SIASensor: setup: devices: " + str(devices))
async_add_entities(devices)

Perhaps incorporate
def get(self, entity_id: str) -> Optional[State]:
"""Retrieve state of entity_id or None if not found.
Async friendly.
"""
return self._states.get(entity_id.lower())

from sia.

olylak avatar olylak commented on August 30, 2024

Having the same issue. Any updates on that?

2020-01-06 13:50:33 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sia which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you do experience issues with Home Assistant.
2020-01-06 13:50:46 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 399, in _async_add_entity
raise HomeAssistantError(msg)
homeassistant.exceptions.HomeAssistantError: Entity id already exists: sensor.ajax_last_heartbeat

from sia.

eavanvalkenburg avatar eavanvalkenburg commented on August 30, 2024

Hi @olylak and @Tuschz, I have the same myself but haven't had time to address it, hopefully I'll have some time this week to tackle this!

from sia.

MrGMan133 avatar MrGMan133 commented on August 30, 2024

I have the same problem, tried changing the name, however, that did not resolve the issue. Also downgraded to V0.2.2 did not solve it. Home assistant does give a response to sensor.ajax_last_heartbeat, however the alarm_control_panel does not show up.

from sia.

eavanvalkenburg avatar eavanvalkenburg commented on August 30, 2024

@MrGMan133 I checked and for me adding the alarm control panel dynamically works, so with a setup without zones and sensors, after the first change of state (arming the alarm and then disarming it does show up, but I did notice that the behaviour around the sensor name was different, which I can't really figure out the reason for, for me the dynamically added one was different and I had to go into the states page in developer tools to see it. I don't have moisture and smoke sensors so can't test those.

from sia.

Related Issues (20)

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.