Coder Social home page Coder Social logo

NVR IO ports no channelID about pyhik HOT 9 CLOSED

mezz64 avatar mezz64 commented on September 26, 2024
NVR IO ports no channelID

from pyhik.

Comments (9)

prunes-git avatar prunes-git commented on September 26, 2024

I have now tested this with the basic_usage.py script.
Here is some an xml message for your viewing pleasure

--boundary
Content-Type: application/xml; charset="UTF-8"
Content-Length: 460

<EventNotificationAlert version="1.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
<ipAddress>192.168.2.6</ipAddress>
<portNo>80</portNo>
<protocol>HTTP</protocol>
<macAddress>c4:2f:90:95:30:17</macAddress>
<dateTime>2019-09-25T17:45:57+10:00</dateTime>
<activePostCount>2</activePostCount>
<eventType>IO</eventType>
<eventState>active</eventState>
<eventDescription>IO alarm</eventDescription>
<inputIOPortID>16</inputIOPortID>
</EventNotificationAlert>
--boundary

My python and git knowledge are fairly limited, I'm currently trying to figure it all out to give you a pull request.

from pyhik.

prunes-git avatar prunes-git commented on September 26, 2024

I also noticed previous issues raised relating to this, and it appears it was implemented for the discovery but not for the alertStream parsing.

from pyhik.

mezz64 avatar mezz64 commented on September 26, 2024

Thanks for the report. I'm a little tied up with other things right now, but will try to take a look soon.

from pyhik.

prunes-git avatar prunes-git commented on September 26, 2024

I have now put a custom component into home assistant which is a copy of the hikvision one which is importing my modified pyhik and it appears to have inputs working correctly.

from pyhik.

mezz64 avatar mezz64 commented on September 26, 2024

Please grab the updated hikvision.py from the new id_fix branch (https://github.com/mezz64/pyHik/tree/id_fix) and test it please. This should fix your issue and make it easier to add other fields in the future.

If it works for you i'll merge to master and release a new version.

from pyhik.

prunes-git avatar prunes-git commented on September 26, 2024

Will do in a couple of days as I'm away for work.

from pyhik.

prunes-git avatar prunes-git commented on September 26, 2024

I have put the new hikvision.py in and it appears to be working as expected.

from pyhik.

mezz64 avatar mezz64 commented on September 26, 2024

Thanks for the update. I'll try to get this moving this week.

from pyhik.

mezz64 avatar mezz64 commented on September 26, 2024

Released 0.2.4 with this fix to pypi and submitted a PR to bump the version in HASS.

from pyhik.

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.