Giter VIP home page Giter VIP logo

Comments (8)

Bepacom-Raalte avatar Bepacom-Raalte commented on August 11, 2024

Is it the same with all multistates?

If so, go to the const.py file in the integration folder within custom_components.
In here, change STATETEXT_OFFSET = 1 to STATETEXT_OFFSET = 0.
Then restart the integration or Home Assistant.

Hopefully it should be alright then! Let me know the results please.

from bepacom-bacnet-ip-integration.

selfstream avatar selfstream commented on August 11, 2024

Thank you very much - that helps and i can control it right - the right presentValue is sent.

But now i see the wrong status in all select entities.
Wenn i click on the first option "Off" i see the next option "Manual on, reduced speed"
screen
All entities now have this offset +1

from bepacom-bacnet-ip-integration.

Bepacom-Raalte avatar Bepacom-Raalte commented on August 11, 2024

Allright, so I think I see the problem. You can set the offset back to 1, and then I need you to change a little bit in the code.
Please navigate to the select.py file and edit the following part:

@property def current_option(self) -> str: return ( self.coordinator.data.devices[self.deviceid] .objects[self.objectid] .stateText[ self.coordinator.data.devices[self.deviceid] .objects[self.objectid] .presentValue - STATETEXT_OFFSET #JCO ] )

And remove the - STATETEXT_OFFSET #JCO part.
I think this should solve the issues. If it works, I'll push an update for you.

from bepacom-bacnet-ip-integration.

selfstream avatar selfstream commented on August 11, 2024

I have played around with the offsets and now it works for me:

in the const.py file i have:

STATETEXT_OFFSET = 0
STATETEXT_OFFSET1 = 1

and the new variable STATETEXT_OFFSET1 i used in the select.py file

@property def current_option(self) -> str: return ( self.coordinator.data.devices[self.deviceid] .objects[self.objectid] .stateText[ self.coordinator.data.devices[self.deviceid] .objects[self.objectid] .presentValue - STATETEXT_OFFSET1] )

Thank you for your help and your great work!

from bepacom-bacnet-ip-integration.

Bepacom-Raalte avatar Bepacom-Raalte commented on August 11, 2024

Glad it works now! Just a quick question, was it only an issue with Multi State Value objects? or also Multi State Outputs?

from bepacom-bacnet-ip-integration.

selfstream avatar selfstream commented on August 11, 2024

I think in my case Multi States Outputs are integrated as Multi States Value Objekts, too. But i have to test it.

from bepacom-bacnet-ip-integration.

Bepacom-Raalte avatar Bepacom-Raalte commented on August 11, 2024

If you don't mind, could you test the new version and verify if it works for you as well?

from bepacom-bacnet-ip-integration.

selfstream avatar selfstream commented on August 11, 2024

Thank you for the new version!
I have tested it and it works good for me!

just as a reference for you:
As I have already written, for me all multi-state outputs are also multi-state values. If I try to change these, I first have to restart the add-on otherwise I can't control anything anymore.

from bepacom-bacnet-ip-integration.

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.