This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Homekit app
Hi,

i can't control my umidity sensors because home kit wants "scale" datatypes instead my sensors want "byte floating", how could i resolve the issue?? TNX in advance

Attached Files
.pdf   BX-TE_TU-Manuale-Tecnico.pdf (Size: 2.16 MB / Downloads: 4)
Reply
(07.07.2024, 09:09)arturfra Wrote: Hi,

i can't control my umidity sensors because home kit wants "scale" datatypes instead my sensors want "byte floating", how could i resolve the issue?? TNX in advance

Hi,
You need to create an event script for conversion using a virtual object.
Reply
(07.07.2024, 10:45)CristianAgata Wrote:
(07.07.2024, 09:09)arturfra Wrote: Hi,

i can't control my umidity sensors because home kit wants "scale" datatypes instead my sensors want "byte floating", how could i resolve the issue?? TNX in advance

Hi,
You need to create an event script for conversion using a virtual object.

tnx for reply, could you post an example ??
Reply
(07.07.2024, 11:05)arturfra Wrote:
(07.07.2024, 10:45)CristianAgata Wrote:
(07.07.2024, 09:09)arturfra Wrote: Hi,

i can't control my umidity sensors because home kit wants "scale" datatypes instead my sensors want "byte floating", how could i resolve the issue?? TNX in advance

Hi,
You need to create an event script for conversion using a virtual object.

tnx for reply, could you post an example ??

Try something like this:
Consider 1/1/1 the umidity value and 32/0/0 the virtual object for home kit
Event script on 1/1/1
Value = event.getvalue()
grp.update('32/0/0',(math.modf(Value)),dt.scale)
Reply
(07.07.2024, 11:57)CristianAgata Wrote:
(07.07.2024, 11:05)arturfra Wrote:
(07.07.2024, 10:45)CristianAgata Wrote:
(07.07.2024, 09:09)arturfra Wrote: Hi,

i can't control my umidity sensors because home kit wants "scale" datatypes instead my sensors want "byte floating", how could i resolve the issue?? TNX in advance

Hi,
You need to create an event script for conversion using a virtual object.

tnx for reply, could you post an example ??

Try something like this:
Consider 1/1/1 the umidity value and 32/0/0 the virtual object for home kit
Event script on 1/1/1
Value = event.getvalue()
grp.update('32/0/0',(math.modf(Value)),dt.scale)

tnx indeed ! It works...

for reading the values OK but now i've to write the desidered humidity value and i've to convert from scale to floating byte, the opposite.. how i should go forward ? Tnx

i solved:

Value = event.getvalue()
grp.update('2/0/9',(math.modf(Value)),dt.float16)
Reply
After pairing Homekit-app with Apple Homekit, Apple Homekit writes that this bridge is not certified to use with Apple Homekit. Not that it matter - it works perfectly well. Just curious if this is a bug in my setup or it's the way it supposed to be.
Reply
It it supposed to be like this, we are not planning to go trough certification.
------------------------------
Ctrl+F5
Reply
What´s in the new update 20241009?
Reply
Some minor internal changes. No functional changes.
Reply


Forum Jump: