New module - BleBox

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: New module - BleBox

Post by mastadook »

maybe it´s damaged? or something else.
I have tried the config in BleBox and Domoticz one after one, nothing helped.
Just the Arrow Buttons changed the direction, not the Percentage Bar
________________________________________________________________________
global chief of permanent lightning and strike detonator
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: New module - BleBox

Post by fantom »

Maybe this is bug in domoticz, and switch "normal" works identically as "inverted"
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: New module - BleBox

Post by mastadook »

I do the cabeling all new now, so up is up in Hardware Switch
Up is Up when using the Webpage of the BleBox.
Pointing in blebox to the last 20% of the Blinds (nearly closed, it´s workinf fine and is nearly closed.
Pointing to 0% (Open) in Domoticz it stops in the middle and remains half open, if I choose 80% it´s nearly closed. :?
Yes, Calibaration is deleted and new autocalibrated.

Is there a File or a Config where the translation can be changed?
I see when coosing %Percentages it will be translated to some steps 1-12 or something.
I hoped I can replace this Fibare Shutters, cause they making Ghostswitching with the BleBox Shutters,
but with this Problems not possible to set correct Percentages, this will also not be a Solution for me :(
________________________________________________________________________
global chief of permanent lightning and strike detonator
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: New module - BleBox

Post by fantom »

You may check what domoticz send to shutterBox (desiredPos) and actually position (currentPos) on
https://technical.blebox.eu/shutterBoxA ... utterState
Domoticz send 0 and 100 ? Or not ?
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: New module - BleBox

Post by mastadook »

So, i double and triple checked everything.

Shut down in Real and in the App, Domoticz set to Inverted, Percentage Bar Wrong, Icons correct
rolladen_3.PNG
rolladen_3.PNG (36.31 KiB) Viewed 2107 times
Shut down in Real and in the App, Domoticz set to Normal, Percentage Bar correct, Icons and Text Wrong
rolladen_4a.PNG
rolladen_4a.PNG (30.76 KiB) Viewed 2107 times
Shut down in Real and in the App, Domoticz set to back to inverted, Percentage Bar wrong Icons correct Text ?
rolladen_5.PNG
rolladen_5.PNG (34.68 KiB) Viewed 2107 times
this is, what the Get from my shutter box replied:

Code: Select all

{"shutter":{"state":4,"currentPos":{"position":0,"tilt":-1},"desiredPos":{"position":0,"tilt":-1},"favPos":{"position":50,"tilt":50},"controlType":1,"calibrationParameters":{"isCalibrated":1,"maxMoveTimeUpMs":23082,"maxMoveTimeDownMs":22417,"maxTiltTimeUpMs":1100,"maxTiltTimeDownMs":1100}}}
Thank you for your Help :)

Edit:
If I send
http://192.168.1.23/s/p/80 then I got this reply:

Code: Select all

{"shutter":{"state":0,"currentPos":{"position":0,"tilt":-1},"desiredPos":{"position":80,"tilt":-1},"favPos":{"position":50,"tilt":50}}}
in Domoticz the Percentage Bar say, no matter if I switch to Normal or Inverted - 20%
and i real it is 60% closed...

So the real Thing seems to Work more or less, but the Percentage Bar in Domoticz making Problems and did not fit the Icons and the Text

When sending 80% from Domoticz (NOT Inverted) it says:

Code: Select all

{"shutter":{"state":2,"currentPos":{"position":19,"tilt":-1},"desiredPos":{"position":19,"tilt":-1},"favPos":{"position":50,"tilt":50},"controlType":1,"calibrationParameters":{"isCalibrated":1,"maxMoveTimeUpMs":23082,"maxMoveTimeDownMs":22417,"maxTiltTimeUpMs":1100,"maxTiltTimeDownMs":1100}}}
________________________________________________________________________
global chief of permanent lightning and strike detonator
mastadook
Posts: 58
Joined: Wednesday 18 April 2018 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1
Location: Deutschland
Contact:

Re: New module - BleBox

Post by mastadook »

No more Ideas?

Is there a place with Config Files for BleBox Devices?
Maybe I can play around and change there the Translation from % to what is going to be send to the Box?

Or any other Ideas?
________________________________________________________________________
global chief of permanent lightning and strike detonator
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: New module - BleBox

Post by fantom »

I think, that this is problem in domoticz with this control.
I installed one shutterBox a few days ago. I will try check where is problem.
gmacioso
Posts: 1
Joined: Saturday 27 October 2018 19:04
Target OS: Linux
Domoticz version: BETA
Contact:

Re: New module - BleBox

Post by gmacioso »

After update to 2021.01 BleBOX module crashes Domoticz
pablo75
Posts: 3
Joined: Wednesday 03 April 2019 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New module - BleBox

Post by pablo75 »

Hello

New betarelase (13196) solve crashes due to blebox module but all blebox devises doesn't work anymore.

In log file:
2021-04-18 21:33:48.590 Error: BLEBOXY: Invalid json received!

In Hardware section all devices with unknown status. When you try to use device you received Error: BLEBOXX: unknown device (192.168.X.X)

any idea?

regards
Pablo
pablo75
Posts: 3
Joined: Wednesday 03 April 2019 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New module - BleBox

Post by pablo75 »

Hi,

Strange symptom after V2021.1 build 13196 deploy. All Blebox hardware in line IP Adreess at the end of line have special character (attached screen).
Not possible to delete them and if I tried add device once again this special character is added to IP address at the end automatically.
Blebox hardware config
Blebox hardware config
2021-04-19 10_28_55.jpg (61.04 KiB) Viewed 1870 times
Still blebox devices doesn't work. Log errors:

2021-04-19 09:27:30.857 Error: BLEBOXY: Invalid json received!
2021-04-19 09:27:39.300 Error: BLEBOXY: unknown device (192.168.11.6)

pablo
pablo75
Posts: 3
Joined: Wednesday 03 April 2019 13:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New module - BleBox

Post by pablo75 »

Hello,

Is there anyone who has migrated to V2021.1 and has a properly functioning Blebox?

thanks for the info.

Pablo
BartekKo
Posts: 2
Joined: Tuesday 11 January 2022 20:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: New module - BleBox

Post by BartekKo »

Hi,
I have a problem with adding BB modules to Domoticz V2021.1. Last two years everything was working properly but as usuall something went wrong fored me to install new Raspbian and Domoticz.
Now each attempt (manual or auto) causes crash of domoticz and system need to be reloaded.
Any idea why?
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: New module - BleBox

Post by fantom »

I'm coming back after a few years to improve this module ;)
I'll see what I can do.
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: New module - BleBox

Post by fantom »

So feel free to download the version at least
Version: 2024.4 (build 15998)

Strongly rebuilt BleBox support. There should be no duplicates, the controls should work, signal strength should be displayed, etc.

ps. I recomended remove all BleBox devices and add they again.
User avatar
waltervl
Posts: 5148
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: New module - BleBox

Post by waltervl »

fantom wrote: Wednesday 22 May 2024 7:33
ps. I recomended remove all BleBox devices and add they again.
I dont know if history data of the old devices would be stored because then I would propose another way of implementing:
  • Disable (not delete!) BleBox in Domoticz (menu Setup - hardware)
  • Create new BleBox gateway in Domoticz
  • New devices are created in BleBox and visible in menu Setup- Devices
  • If you want to keep the history logging of the old devices then you need to replace the old device with the new one if identical devices are created. Use the replace function in Edit device, see wiki Replace Devices Devices that were replaced will get the old name and old IDX, no need to change scripts.
NOTE: To see the devices of the disabled BleBox hardware gateway during replacement action go to menu Setup - Settings and disable setting "Hide disabled hardware devices". Enable it again when you are done.
NOTE: Alternatively, you can also change the type of the old disabled BleBox hardware to "Dummy" and re-enable it, then replace each dummy device with equivalent Zwave JS UI discovered device.
  • Now you can delete the old BleBox gateway in Domoticz (menu Setup - hardware). All related old devices that not were replaced will be deleted.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
homeJLB
Posts: 53
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Contact:

Re: New module - BleBox

Post by homeJLB »

because there are some warnings from this code in the AppVeyor Build,

Code: Select all

conversion from 'uint64_t' to 'int', possible loss of data
This is because the function 'm_sql.InsertDevice' return a 'uint64_t'
and the idx is declared as 'int'

Code: Select all

{
		int idx = (int)m_sql.InsertDevice(m_HwdID, 0, id, 1, deviceType.rfxType, deviceType.subType, deviceType.switchType, 0, "Unavailable", deviceName, signalQuality, 255, 0);
		_log.Debug(DEBUG_HARDWARE, "BleBox: new device Id: '%d'", idx);
		m_sql.safe_query("UPDATE DeviceStatus SET StrParam1='%d', StrParam2='%q' WHERE (ID==%d)", deviceTypeID, IPAddress.c_str(), idx);

		idx = m_sql.InsertDevice(m_HwdID, 0, id, 2, pTypeGeneralSwitch, sTypeAC, STYPE_PushOn, 0, "Unavailable", deviceName, signalQuality, 255, 0);
		m_sql.safe_query("UPDATE DeviceStatus SET StrParam1='%d', StrParam2='%q' WHERE (ID==%d)", deviceTypeID, IPAddress.c_str(), idx);

		idx = m_sql.InsertDevice(m_HwdID, 0, id, 3, pTypeGeneralSwitch, sTypeAC, STYPE_PushOn, 0, "Unavailable", deviceName, signalQuality, 255, 0);
		m_sql.safe_query("UPDATE DeviceStatus SET StrParam1='%d', StrParam2='%q' WHERE (ID==%d)", deviceTypeID, IPAddress.c_str(), idx);
	}
what is best accepted;

Code: Select all

int idx = (int)m_sql.InsertDevice(........
or

Code: Select all

int idx = static_cast<int>(m_sql.InsertDevice(........
kind regards
fantom
Posts: 269
Joined: Thursday 26 March 2015 10:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

Re: New module - BleBox

Post by fantom »

homeJLB
Posts: 53
Joined: Tuesday 16 October 2018 23:01
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Contact:

Re: New module - BleBox

Post by homeJLB »

No it is not corrected;
GizMoCuz has put in; Bad coding! Return = uint64_t, please change!

it must be for example;

Code: Select all

                uint64_t idx = m_sql.InsertDevice(m_HwdID, 0, id, 1, deviceType.rfxType, deviceType.subType, deviceType.switchType, 0, "Unavailable", deviceName, signalQuality, 255, 0);
		_log.Debug(DEBUG_HARDWARE, "BleBox: new device Id: '%" PRIu64 "'", idx);
		m_sql.safe_query("UPDATE DeviceStatus SET StrParam1='%d', StrParam2='%q' WHERE (ID==%" PRIu64 ")", deviceTypeID, IPAddress.c_str(), idx);
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest