[EnOcean] Help code Pressac CO2 TWP HUM

Others (MiLight, Hue, Toon etc...)
Post Reply
User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

[EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Friday 18 May 2018 20:18

Hello there,

I'm trying to add this sensor to Domoticz, and on the log file I get this when pressing learn button:

Code: Select all

2018-05-18 19:08:49.342 EnOcean: 01 (0A/07) A5 24 20 3C 80 05 03 D5 8E 00 01 FF FF FF FF 47 00
2018-05-18 19:08:49.342 EnOcean: destination: 0xffffffff RSSI: 29
2018-05-18 19:08:49.342 EnOcean: 4BS data: Sender id: 0x0503d58e Status: 00 Data: 3c
2018-05-18 19:08:49.342 EnOcean: 4BS, Variant 2 Teach-in diagram: Sender_ID: 0x0503D58E
Manufacturer: 0x3c (CLOUD_BUILDINGS_LTD)
Profile: 0x09
Type: 0x04 (GasSensor.04)
2018-05-18 19:08:49.387 EnOcean: Sender_ID 0x0503D58E already in the database
However I cannot see anything on the device list.
I tried also with a Temp/Hum only device from same supplier and that works well. Any idea how to fix this?

and then shortly after I get this:

Code: Select all

2018-05-18 19:08:55.003 EnOcean: 01 (0A/07) A5 69 43 6B 0E 05 03 D5 8E 00 01 FF FF FF FF 50 00
2018-05-18 19:08:55.003 EnOcean: destination: 0xffffffff RSSI: 20
2018-05-18 19:08:55.003 EnOcean: 4BS data: Sender id: 0x0503d58e Status: 00 Data: 6b
and a bit later:

Code: Select all

2018-05-18 19:38:05.209 EnOcean: 01 (0A/07) A5 00 82 7B 0A 05 0F 38 5E 00 01 FF FF FF FF 31 00
2018-05-18 19:38:05.209 EnOcean: destination: 0xffffffff RSSI: 51
2018-05-18 19:38:05.209 EnOcean: 4BS data: Sender id: 0x050f385e Status: 00 Data: 7b
so things are happening... why it not been added as a device?
Last edited by EdddieN on Saturday 19 May 2018 11:45, edited 2 times in total.
11101101 - www.machinon.com

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Pressac CO2 TWP HUM

Post by EdddieN » Friday 18 May 2018 20:27

Ok, I can imagine is not that popular and it is not on any compatibility list?

Is there anyone that know a bit about it, happy to try get my hands dirty to try to add it. I just don't even know where to start with it.
http://www.pressac.com/enocean-co2-sens ... d-humidity
11101101 - www.machinon.com

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Saturday 19 May 2018 11:49

Ok, I have no idea but someone coded this I guess:
https://github.com/domoticz/domoticz/bl ... anESP3.cpp

and I can see Co2 sensors here:

Code: Select all

//A5-09: Gas Sensor
	{ 0xA5, 0x09, 0x01, "CO Sensor (not in use)",																				"GasSensor.01" },
	{ 0xA5, 0x09, 0x02, "CO-Sensor 0 ppm to 1020 ppm",																			"GasSensor.02" },
	{ 0xA5, 0x09, 0x04, "CO2 Sensor",																							"GasSensor.04" },
	{ 0xA5, 0x09, 0x05, "VOC Sensor",																							"GasSensor.05" },
	{ 0xA5, 0x09, 0x06, "Radon",																								"GasSensor.06" },
	{ 0xA5, 0x09, 0x07, "Particles",	
The log fro Domoticz claims it is a GasSensor.04 which seems right (0x04)

If Domoticz is recognising it as a 04, why does it not add it to devices?
Also, the other two sensors built into the device (humidity and temperature) are no where to be seen on the log.

Any direction or pointing would be very much appreciated! I guess this code would need to be recompiled?
Last edited by EdddieN on Saturday 19 May 2018 12:20, edited 1 time in total.
11101101 - www.machinon.com

User avatar
waaren
Posts: 1079
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by waaren » Saturday 19 May 2018 12:06

What do you see if you look directly in the database ?

sqlite3 domoticz.db

.headers on
SELECT * FROM EnoceanSensors ;

and check all DeviceID in DeviceStatus table.

select * from DeviceStatus where ID in (Select distinct(DeviceID) from EnoceanSensors) ;
Last edited by waaren on Saturday 19 May 2018 12:11, edited 1 time in total.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Saturday 19 May 2018 12:11

Hello,

I see this:

Code: Select all

ID|HardwareID|DeviceID|Manufacturer|Profile|Type
1|13|018A21AF|70|2|5
2|13|0503D58E|60|9|4
3|13|050F385E|60|4|1
According to the id, it is there (58E)
11101101 - www.machinon.com

User avatar
waaren
Posts: 1079
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by waaren » Saturday 19 May 2018 12:11

EdddieN wrote:
Saturday 19 May 2018 12:11
Hello,

I see this:

Code: Select all

ID|HardwareID|DeviceID|Manufacturer|Profile|Type
1|13|018A21AF|70|2|5
2|13|0503D58E|60|9|4
3|13|050F385E|60|4|1
According to the id, it is there (58E)
and check all DeviceID in DeviceStatus table.

select * from DeviceStatus where ID in (Select distinct(DeviceID) from EnoceanSensors) ;
or (in your case)
select * from DeviceStatus where HardwareID = 13;
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Saturday 19 May 2018 12:22

I get this:

Code: Select all

sqlite> select * from DeviceStatus where HardwareID = 13;
ID|HardwareID|DeviceID|Unit|Name|Used|Type|SubType|SwitchType|Favorite|SignalLevel|BatteryLevel|nValue|sValue|LastUpdate|Order|AddjValue|AddjMulti|AddjValue2|AddjMulti2|StrParam1|StrParam2|LastLevel|Protected|CustomImage|Description|Options|Color
896|13|02D1744|0|Unknown|0|17|0|0|0|12|255|0|OFF|2018-05-17 23:21:07|903|0.0|1.0|0.0|1.0|||0|0|0|||
897|13|02D1744|1|Unknown|0|17|0|0|0|12|255|0|OFF|2018-05-17 23:21:07|904|0.0|1.0|0.0|1.0|||0|0|0|||
895|13|02D1744|2|Unknown|0|17|0|0|0|12|255|0|OFF|2018-05-17 23:21:07|902|0.0|1.0|0.0|1.0|||0|0|0|||
903|13|02D1744|3|Unknown|0|17|0|0|0|12|255|0|OFF|2018-05-17 23:21:07|910|0.0|1.0|0.0|1.0|||0|0|0|||
899|13|02D1744|4|Unknown|0|17|0|0|0|12|255|0|OFF|2018-05-17 23:21:07|906|0.0|1.0|0.0|1.0|||0|0|0|||
898|13|02D1744|10|Unknown|0|17|0|0|0|12|255|0|OFF|2018-05-17 23:21:07|905|0.0|1.0|0.0|1.0|||0|0|0|||
894|13|35361|175|Sala EnOcean|1|80|10|0|0|12|255|0|18.8|2018-05-19 11:08:39|901|0.0|1.0|0.0|1.0|||0|0|0|||
934|13|3896|0|TH EnOcean|1|82|5|0|0|12|100|0|19.0;56;1|2018-05-19 11:17:13|941|0.0|1.0|0.0|1.0|||0|0|0|||
Which matches what I can see on the device list
11101101 - www.machinon.com

User avatar
waaren
Posts: 1079
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by waaren » Saturday 19 May 2018 12:47

Looks like there are a couple of devices added but not yet active. I have no knowledge about this type of hardware / sensors but my approach would be to try and set one of these unknown devices to active and if that would not work:

stop domoticz
make a backup of your database
remove the row from Enocean table
start domoticz
learn the sensor again
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Saturday 19 May 2018 12:51

I don't now yet enough, but I got the feeling this is because there's not a model for it yet here:
https://github.com/domoticz/domoticz/bl ... anESP3.cpp (using ESP3 USB dongle)

The sensor is a combined Co2 + Humidity + Temperature, so it adds the device but does not know what to do with the sensors... but again I do not know enough (yet).

Trying now your suggestion...
11101101 - www.machinon.com

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Saturday 19 May 2018 12:58

Tried with a fresh brand new (beta) installation, same results:

Code: Select all

2018-05-19 11:54:13.060 EnOcean: 01 (0A/07) A5 24 20 3C 80 05 03 D5 8E 00 01 FF FF FF FF 30 00
2018-05-19 11:54:13.060 EnOcean: destination: 0xffffffff RSSI: 52
2018-05-19 11:54:13.060 EnOcean: 4BS data: Sender id: 0x0503d58e Status: 00 Data: 3c
2018-05-19 11:54:13.060 EnOcean: 4BS, Variant 2 Teach-in diagram: Sender_ID: 0x0503D58E
2018-05-19 11:54:13.060 Manufacturer: 0x3c (CLOUD_BUILDINGS_LTD)
2018-05-19 11:54:13.060 Profile: 0x09
2018-05-19 11:54:13.060 Type: 0x04 (GasSensor.04)
2018-05-19 11:54:13.060 EnOcean: Sender_ID 0x0503D58E inserted in the database
2018-05-19 11:54:18.731 EnOcean: 01 (0A/07) A5 6C 61 62 0E 05 03 D5 8E 00 01 FF FF FF FF 33 00
2018-05-19 11:54:18.731 EnOcean: destination: 0xffffffff RSSI: 49
2018-05-19 11:54:18.731 EnOcean: 4BS data: Sender id: 0x0503d58e Status: 00 Data: 62
2018-05-19 11:55:16.769 EnOcean: 01 (0A/07) A5 24 20 3C 80 05 03 D5 8E 00 01 FF FF FF FF 37 00
2018-05-19 11:55:16.769 EnOcean: destination: 0xffffffff RSSI: 45
2018-05-19 11:55:16.769 EnOcean: 4BS data: Sender id: 0x0503d58e Status: 00 Data: 3c
2018-05-19 11:55:16.769 EnOcean: 4BS, Variant 2 Teach-in diagram: Sender_ID: 0x0503D58E
2018-05-19 11:55:16.769 Manufacturer: 0x3c (CLOUD_BUILDINGS_LTD)
2018-05-19 11:55:16.769 Profile: 0x09
2018-05-19 11:55:16.769 Type: 0x04 (GasSensor.04)
2018-05-19 11:55:16.769 EnOcean: Sender_ID 0x0503D58E already in the database
2018-05-19 11:56:04.403 EnOcean: 01 (0A/07) A5 7C 82 67 0E 05 03 D5 8E 00 01 FF FF FF FF 3D 00
2018-05-19 11:56:04.403 EnOcean: destination: 0xffffffff RSSI: 39
2018-05-19 11:56:04.403 EnOcean: 4BS data: Sender id: 0x0503d58e Status: 00 Data: 67
and no device added, same result, I can see the de hardware but no devices on the DB.
11101101 - www.machinon.com

User avatar
waaren
Posts: 1079
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by waaren » Saturday 19 May 2018 13:06

Sorry to hear that. I guess it will be up to a developer then to add this now. Did you already add an issue on github for this ?
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Saturday 19 May 2018 13:09

I was looking at it now, but I never have used github before so quite overwhelming right now.

I just create a message here?
https://github.com/domoticz/domoticz/is ... s%3Aclosed
11101101 - www.machinon.com

User avatar
waaren
Posts: 1079
Joined: Tuesday 03 January 2017 15:18
Target OS: Raspberry Pi
Domoticz version: Beta
Location: Netherlands
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by waaren » Saturday 19 May 2018 13:16

Yes. Open a new issue there which as much relevant information as you have (including version, OS and the likes) and what you already investigated.
Succes !
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, , dzVents 2.6, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave, Amazon echo

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Saturday 19 May 2018 13:22

Thanks! done
11101101 - www.machinon.com

User avatar
EdddieN
Posts: 535
Joined: Wednesday 16 November 2016 12:31
Target OS: Raspberry Pi
Domoticz version: 4.9700
Location: Scotland
Contact:

Re: [EnOcean] Help code Pressac CO2 TWP HUM

Post by EdddieN » Tuesday 29 May 2018 21:10

Working on it and testing before resubmitting in case anyone is interested on EnOcean Co2 sensors:
https://github.com/domoticz/domoticz/pull/2424
11101101 - www.machinon.com

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests