Search found 5 matches
- Sunday 03 December 2023 9:04
- Forum: Zigbee
- Topic: Tuya temp sensor not able to parse negavtive temperatures
- Replies: 8
- Views: 1076
Re: Tuya temp sensor not able to parse negavtive temperatures
I have copied the code example and can confirm that it works correctly. Thx.
- Thursday 30 November 2023 15:37
- Forum: Zigbee
- Topic: Tuya temp sensor not able to parse negavtive temperatures
- Replies: 8
- Views: 1076
Re: Tuya temp sensor not able to parse negavtive temperatures
With the following change i've made it working, (in tuya.py) (introduced a helper function hex_to_signed)
Don't know if this is the correct place. :-)
def hex_to_signed(source):
"""Convert a string hex value to a signed hexidecimal value.
This assumes that source is the proper length, and the ...
Don't know if this is the correct place. :-)
def hex_to_signed(source):
"""Convert a string hex value to a signed hexidecimal value.
This assumes that source is the proper length, and the ...
- Thursday 30 November 2023 15:20
- Forum: Zigbee
- Topic: Tuya temp sensor not able to parse negavtive temperatures
- Replies: 8
- Views: 1076
Re: Tuya temp sensor not able to parse negavtive temperatures
I am indeed referring to the Zigbee for Domoticz plugin
The version is Plugin: 7 .1 .005 [2 .148]
Model: "TS0601-temphumi"
I'm not an python expert, but currently looking at (int(data, 16) in tuya .py line 1271 and 1272. Is this code handling signed values correctly in python ?
The version is Plugin: 7 .1 .005 [2 .148]
Model: "TS0601-temphumi"
I'm not an python expert, but currently looking at (int(data, 16) in tuya .py line 1271 and 1272. Is this code handling signed values correctly in python ?
- Thursday 30 November 2023 14:21
- Forum: Zigbee
- Topic: Tuya temp sensor not able to parse negavtive temperatures
- Replies: 8
- Views: 1076
Tuya temp sensor not able to parse negavtive temperatures
Now winter is coming, my outside tuya temp. sensor (Model: "TS0601-temphumi") is giving errors on negative temperatures.
It seems that the temp coming from the sensor is a signed value, for example -18 .8 C is logged as 0xffffff44, but in domoticz an error is logged:
2023-11-30 14:04:42 .726 ...
It seems that the temp coming from the sensor is a signed value, for example -18 .8 C is logged as 0xffffff44, but in domoticz an error is logged:
2023-11-30 14:04:42 .726 ...
- Wednesday 04 October 2023 11:37
- Forum: Utility
- Topic: Growatt-inverter.php does not work anymore
- Replies: 21
- Views: 6560
For who is interested:
I have made the switch now to the grott implementation. (on git hub) That worked directly without problems.
But I didn't want to use mqtt, so i made a simple little extension that only updates my energy counters in domoticz. (that is all i need)
The example extension for this ...
I have made the switch now to the grott implementation. (on git hub) That worked directly without problems.
But I didn't want to use mqtt, so i made a simple little extension that only updates my energy counters in domoticz. (that is all i need)
The example extension for this ...