Dear friend,
The problem is related with my old post about vibration sensor ,
viewtopic.php?f=6&t=31134
I have managed to configure the a notification for the vibration sensor using domoticz.devices('myvibrationsensor'). state == 'Vibration' , the notification works correctly, but as I commented in my previous post to which no one responded, when a vibration occurs physical vibration sensor the notification does not arrive, it is only shown in the general log of domoticz.
2020-05-03 23:48:44.171 (zigbe2mqtt) MQTT message: zigbee2mqtt/0x00158d0002a51c0a {'battery': 100, 'voltage': 3025, 'linkquality': 115, 'angle': 5, 'angle_x': 9, 'angle_y': -68, 'angle_z': 20, 'angle_x_absolute': 81, 'angle_y_absolute': 158, 'strength': 24}
The vibration is not registered in the individual registry of domoticz. I only get the notification to work by pressing the vibration sensor on domoticz by selecting vibration, this notification if it is marked as admin within the individual domoticz record:
2020-05-03 23:45:06 Vibration Admin
2020-05-03 23:45:02 Off Admin
2020-05-03 23:44:18 Vibration Admin
2020-05-03 23:44:03 Off Admin
A physical vibration not is recorded in the individual log, i have 20 devices zigbe2mqtt and this device only have individual log problem, The log works correctly in other sensors, I have tried everything, empty cache and cockies of browser, unpair and re-pair ... etc but the problem persist.
as you commented in your previous answer this is the result of --> domoticz.devices('vibration sensor name').dump() . with this information i can see thet this sensor is a selector switch, i can not see the strenght value.
- Spoiler: show
-
Code: Select all
2020-05-03 23:50:55.525 Status: dzVents: > levelActions:
2020-05-03 23:50:55.525 Status: dzVents: > updateWetness()
2020-05-03 23:50:55.525 Status: dzVents: > usedByCamera: false
2020-05-03 23:50:55.525 Status: dzVents: > kodiSetVolume()
2020-05-03 23:50:55.525 Status: dzVents: > baseType: device
2020-05-03 23:50:55.525 Status: dzVents: > switchType: Selector
2020-05-03 23:50:55.525 Status: dzVents: > deviceSubType: Selector Switch
2020-05-03 23:50:55.525 Status: dzVents: > isScene: false
2020-05-03 23:50:55.525 Status: dzVents: > incrementCounter()
2020-05-03 23:50:55.525 Status: dzVents: > lastLevel: 10
2020-05-03 23:50:55.525 Status: dzVents: > setHue()
2020-05-03 23:50:55.525 Status: dzVents: > protected: false
2020-05-03 23:50:55.525 Status: dzVents: > disarm()
2020-05-03 23:50:55.525 Status: dzVents: > dimTo()
2020-05-03 23:50:55.525 Status: dzVents: > open()
2020-05-03 23:50:55.525 Status: dzVents: > protectionOn()
2020-05-03 23:50:55.525 Status: dzVents: > switchOn()
2020-05-03 23:50:55.525 Status: dzVents: > toggleSwitch()
2020-05-03 23:50:55.525 Status: dzVents: > quietOff()
2020-05-03 23:50:55.525 Status: dzVents: > switchTypeValue: 18
2020-05-03 23:50:55.525 Status: dzVents: > state: Vibration
2020-05-03 23:50:55.525 Status: dzVents: > kodiExecuteAddOn()
2020-05-03 23:50:55.525 Status: dzVents: > kodiPlayFavorites()
2020-05-03 23:50:55.525 Status: dzVents: > active: false
2020-05-03 23:50:55.525 Status: dzVents: > deviceType: Light/Switch
2020-05-03 23:50:55.525 Status: dzVents: > setHotWater()
2020-05-03 23:50:55.525 Status: dzVents: > updateAlertSensor()
2020-05-03 23:50:55.525 Status: dzVents: > updateTemperature()
2020-05-03 23:50:55.525 Status: dzVents: > updateElectricity()
2020-05-03 23:50:55.525 Status: dzVents: > kodiStop()
2020-05-03 23:50:55.525 Status: dzVents: > updateWaterflow()
2020-05-03 23:50:55.525 Status: dzVents: > cancelQueuedCommands()
2020-05-03 23:50:55.525 Status: dzVents: > levelNames:
2020-05-03 23:50:55.525 Status: dzVents: > 1: Off
2020-05-03 23:50:55.525 Status: dzVents: > 2: Vibration
2020-05-03 23:50:55.525 Status: dzVents: > 3: Drop
2020-05-03 23:50:55.525 Status: dzVents: > 4: Tilt
2020-05-03 23:50:55.525 Status: dzVents: > updateText()
2020-05-03 23:50:55.525 Status: dzVents: > hardwareName: zigbe2mqtt
2020-05-03 23:50:55.525 Status: dzVents: > pause()
2020-05-03 23:50:55.525 Status: dzVents: > isVariable: false
2020-05-03 23:50:55.525 Status: dzVents: > levelOffHidden: false
2020-05-03 23:50:55.525 Status: dzVents: > updateGas()
2020-05-03 23:50:55.525 Status: dzVents: > onkyoEISCPCommand()
2020-05-03 23:50:55.525 Status: dzVents: > updateVoltage()
2020-05-03 23:50:55.525 Status: dzVents: > hardwareId: 22
2020-05-03 23:50:55.525 Status: dzVents: > timedOut: false
2020-05-03 23:50:55.525 Status: dzVents: > _data:
2020-05-03 23:50:55.525 Status: dzVents: > id: xxx
2020-05-03 23:50:55.525 Status: dzVents: > baseType: device
2020-05-03 23:50:55.526 Status: dzVents: > switchTypeValue: 18
2020-05-03 23:50:55.526 Status: dzVents: > signalLevel: 12
2020-05-03 23:50:55.526 Status: dzVents: > rawData:
2020-05-03 23:50:55.526 Status: dzVents: > 1: 10
2020-05-03 23:50:55.526 Status: dzVents: > changed: false
2020-05-03 23:50:55.526 Status: dzVents: > lastUpdate: 2020-05-03 23:45:06
2020-05-03 23:50:55.526 Status: dzVents: > subType: Selector Switch
2020-05-03 23:50:55.526 Status: dzVents: > timedOut: false
2020-05-03 23:50:55.526 Status: dzVents: > protected: false
2020-05-03 23:50:55.526 Status: dzVents: > deviceID: 0x0xxxxxx..._action
2020-05-03 23:50:55.526 Status: dzVents: > description:
2020-05-03 23:50:55.526 Status: dzVents: > batteryLevel: 255
2020-05-03 23:50:55.526 Status: dzVents: > name: sensor vibra
2020-05-03 23:50:55.526 Status: dzVents: > data:
2020-05-03 23:50:55.526 Status: dzVents: > hardwareType: Zigbee2MQTT
2020-05-03 23:50:55.526 Status: dzVents: > hardwareID: 22
2020-05-03 23:50:55.526 Status: dzVents: > levelActions:
2020-05-03 23:50:55.526 Status: dzVents: > protected: false
2020-05-03 23:50:55.526 Status: dzVents: > levelVal: 10
2020-05-03 23:50:55.526 Status: dzVents: > _state: Vibration
2020-05-03 23:50:55.526 Status: dzVents: > hardwareName: zigbe2mqtt
2020-05-03 23:50:55.526 Status: dzVents: > _nValue: 1
2020-05-03 23:50:55.526 Status: dzVents: > hardwareTypeValue: 94
2020-05-03 23:50:55.526 Status: dzVents: > unit: 64
2020-05-03 23:50:55.526 Status: dzVents: > maxDimLevel: 100
2020-05-03 23:50:55.526 Status: dzVents: > levelOffHidden: false
2020-05-03 23:50:55.526 Status: dzVents: > icon: Light
2020-05-03 23:50:55.526 Status: dzVents: > levelNames: Off|Vibration|Drop|Tilt
2020-05-03 23:50:55.526 Status: dzVents: > usedByCamera: false
2020-05-03 23:50:55.526 Status: dzVents: > switchType: Selector
2020-05-03 23:50:55.526 Status: dzVents: > lastLevel: 10
2020-05-03 23:50:55.526 Status: dzVents: > deviceType: Light/Switch
2020-05-03 23:50:55.526 Status: dzVents: > updateSoundLevel()
2020-05-03 23:50:55.526 Status: dzVents: > armAway()
2020-05-03 23:50:55.526 Status: dzVents: > updatePercentage()
2020-05-03 23:50:55.526 Status: dzVents: > updateWeight()
2020-05-03 23:50:55.526 Status: dzVents: > updateBarometer()
2020-05-03 23:50:55.526 Status: dzVents: > setColorBrightness()
2020-05-03 23:50:55.526 Status: dzVents: > dump()
2020-05-03 23:50:55.526 Status: dzVents: > updateCustomSensor()
2020-05-03 23:50:55.526 Status: dzVents: > setIcon()
2020-05-03 23:50:55.526 Status: dzVents: > _adapters:
2020-05-03 23:50:55.526 Status: dzVents: > 1: Switch device adapter
2020-05-03 23:50:55.526 Status: dzVents: > maxDimLevel: 100
2020-05-03 23:50:55.526 Status: dzVents: > updateHumidity()
2020-05-03 23:50:55.526 Status: dzVents: > isSecurity: false
2020-05-03 23:50:55.526 Status: dzVents: Info: ------ Finished test domoticz
I was talking to the developer of zigbee2mqtt and thanks to @koenkk I got him to help me and included the strenght information in the sensor information to be able to close my awnings when the wind blows to the desired value. I still don't know if this could be done already I don't see this information in the log and exist problems with the individual record.
I've been asking to include the value of strenght for almost 1 year (
https://github.com/domoticz/domoticz/issues/3300). @gizmocuz answered to the request.
I'm not sure if this post should move to the bugs and problems section.
Thanks in advance and for your work, receive a coridal greeting