Comments (8)
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.
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"
All entities now have this offset +1
from bepacom-bacnet-ip-integration.
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.
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.
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.
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.
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.
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)
- Need more detailed instructions HOT 4
- TypeError: 'NoneType' object is not subscriptable HOT 8
- Unable to add new devices HOT 2
- ERROR: Nack error reading device props: device,93300: unrecognized-service HOT 21
- Error setting up entry BACnet Interface for bacnet_interface HOT 75
- Replace domain of the integration so it can be added to brands repository
- Entities to Bacnet Objects HOT 5
- Values are not getting updated in HomeAssistant HOT 96
- Configuration HOT 126
- Integration & Add-On are not restoring the operational state after a HA restart HOT 4
- Two different types of decimal separators in my BACnet Integration HOT 3
- request to add units HOT 9
- Can't get integration to work HOT 4
- Size of home assistant backup HOT 8
- adding points in the devices HOT 5
- HA Bacnet update killed communications HOT 3
- Priority Arrays and Relinquish Default HOT 12
- /run/s6/basedir/scripts/rc.init: s6-rc failed to properly bring all the services up! HOT 1
- error writing a boolean point HOT 4
- Button Add-On Page on the IP Interface results in an error message HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bepacom-bacnet-ip-integration.