Comments (5)
This is triggered by this check: if raw_data[-4:] == b"\x41\x00\x00\x00" (there's a mistake in the comment, please ignore that part)
This actually checks for the last 4 bytes to be \x41\x00\x00\x00
while you have \x4f\x00\x00\x00
in your data. It's possible that this is the only issue and the protocol looks the same (I was only able to test this on my own model and https://gitlab.com/baze/amphiro_oras_bluetooth_shower_hub/-/tree/main/Protocol_description seems to describe the same default).
You could change that single file in your installation and edit that single line and see what happens (or you remove that check completely). Let me know if this works, in which case I'll update the integration.
from hass-amphiro-ble.
I modified models.py to check last 3 bytes and now it works for me.
In homeassistant log I now get this kind of warning:
2023-02-21 09:12:05.562 WARNING (MainThread) [homeassistant.components.sensor] Entity sensor.dhs_a949_power (<class 'custom_components.amphiro_ble.sensor.AmphiroBluetoothSensorEntity'>) is using state class 'total' which is impossible considering device class ('power') it is using; expected None or one of 'measurement'; Please update your configuration if your entity is manually configured, otherwise report it to the custom integration author.
Which ofcourse is another thing. Atleast the integration works now.
from hass-amphiro-ble.
This sounds like it's related to #2. I'll look this once I have time.
from hass-amphiro-ble.
Thanks for the integration! I had exactly the same issue but modifying models.py to check last 3 bytes works also for me. I didn't get any further errors in the logs.
from hass-amphiro-ble.
Should be fixed with c4d3551 let me know if you still encounter any issues
from hass-amphiro-ble.
Related Issues (5)
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 hass-amphiro-ble.