dzVents - possible to get text of a text device?

Easy to use, 100% Lua-based event scripting framework.
Post Reply
Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

dzVents - possible to get text of a text device?

Post by Quax1507 » Thursday 18 January 2018 20:25

Hi,

I want to trigger on the change of a text device in dzvents and read the text.
I cannot find a function for that in dzvents.

Quaxx1507

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

Re: dzVents - possible to get text of a text device?

Post by waaren » Thursday 18 January 2018 20:44

Like this

Code: Select all

if string.find(string.lower( domoticz.devices('name of text device').text),"string to search in lower case" ) ~= nil then
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave , dzVents 2.4.n, Amazon echo

User avatar
emme
Posts: 798
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: dzVents - possible to get text of a text device?

Post by emme » Friday 19 January 2018 10:30

Code: Select all

return {
	on = {
		devices = {
			'myTextDeviceName'
		}
	},
	execute = function(domoticz, device)
		domoticz.log('Device ' .. device.name .. ' was changed to: '..device.text, domoticz.LOG_INFO)
	end
}
That's one small step for a programmer, one giant leap for me!
- - - - -
Raspberry Pi3 + AeonStick G5 + RFXCOMM433 + iRTrans Server + NodeJS
There's no stress in the mess!!

Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: dzVents - possible to get text of a text device?

Post by Quax1507 » Friday 19 January 2018 15:14

@emme

already tried that without success.

It says:

Code: Select all

Error: dzVents: Error: ...icz/scripts/dzVents/generated_scripts/_Sauger Status.lua:12: attempt to concatenate field 'text' (a nil value)

Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: dzVents - possible to get text of a text device?

Post by Quax1507 » Friday 19 January 2018 15:20

I just saw the device type is:

Type: Lightning 2
SubType: AC

Perhaps that's the reason...

User avatar
emme
Posts: 798
Joined: Monday 27 June 2016 11:02
Target OS: Raspberry Pi
Domoticz version: latest
Location: Milano, Italy
Contact:

Re: dzVents - possible to get text of a text device?

Post by emme » Friday 19 January 2018 15:39

that does NOT provide a .text as a function...

try with .whActual
That's one small step for a programmer, one giant leap for me!
- - - - -
Raspberry Pi3 + AeonStick G5 + RFXCOMM433 + iRTrans Server + NodeJS
There's no stress in the mess!!

Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: dzVents - possible to get text of a text device?

Post by Quax1507 » Friday 19 January 2018 15:52

Doesn't work either :(

Code: Select all

Error: dzVents: Error: ...icz/scripts/dzVents/generated_scripts/_Sauger Status.lua:12: attempt to concatenate field 'WhActual' (a nil value)

Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: dzVents - possible to get text of a text device?

Post by Quax1507 » Friday 19 January 2018 16:14

Here is the complete output of json call.

Status is under "Data", querying device.data gives my "nil"...

Code: Select all

{
   "ActTime" : 1516370289,
   "AstrTwilightEnd" : "18:53",
   "AstrTwilightStart" : "06:19",
   "CivTwilightEnd" : "17:36",
   "CivTwilightStart" : "07:37",
   "DayLength" : "08:48",
   "NautTwilightEnd" : "18:15",
   "NautTwilightStart" : "06:57",
   "ServerTime" : "2018-01-19 14:58:09",
   "SunAtSouth" : "12:36",
   "Sunrise" : "08:12",
   "Sunset" : "17:00",
   "result" : [
      {
         "AddjMulti" : 1.0,
         "AddjMulti2" : 1.0,
         "AddjValue" : 0.0,
         "AddjValue2" : 0.0,
         "BatteryLevel" : 255,
         "CustomImage" : 135,
         "Data" : "Cleaning",
         "Description" : "",
         "Favorite" : 0,
         "HardwareID" : 11,
         "HardwareName" : "Sauger",
         "HardwareType" : "Xiaomi Mi Robot Vacuum",
         "HardwareTypeVal" : 94,
         "HaveDimmer" : true,
         "HaveGroupCmd" : true,
         "HaveTimeout" : false,
         "ID" : "000B0001",
         "Image" : "xiaomi-mi-robot-vacuum-icon",
         "IsSubDevice" : false,
         "LastUpdate" : "2018-01-19 14:48:23",
         "Level" : 0,
         "LevelInt" : 0,
         "MaxDimLevel" : 15,
         "Name" : "Sauger - Status",
         "Notifications" : "false",
         "PlanID" : "20",
         "PlanIDs" : [ 20 ],
         "Protected" : false,
         "ShowNotifications" : true,
         "SignalLevel" : "-",
         "Status" : "On",
         "StrParam1" : "",
         "StrParam2" : "",
         "SubType" : "AC",
         "SwitchType" : "Media Player",
         "SwitchTypeVal" : 17,
         "Timers" : "false",
         "Type" : "Lighting 2",
         "TypeImg" : "Media",
         "Unit" : 1,
         "Used" : 1,
         "UsedByCamera" : false,
         "XOffset" : "0",
         "YOffset" : "0",
         "idx" : "1401"
      }
   ],
   "status" : "OK",
   "title" : "Devices"
}

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

Re: dzVents - possible to get text of a text device?

Post by waaren » Saturday 20 January 2018 0:38

Try domoticz.devices('devicename').dump() this will dump everything what is known in dzVents about your device.

Example output in logfile:

Code: Select all

dzVents: > pause()
dzVents: > isTimer: false
dzVents: > icon: motion
dzVents: > updateLux()
dzVents: > kodiPlayPlaylist()
dzVents: > setDiscoMode()
dzVents: > armAway()
dzVents: > updateTempHum()
dzVents: > updateSoundLevel()
dzVents: > isGroup: false
dzVents: > usedByCamera: false
dzVents: > deviceType: Lighting 2
dzVents: > active: false
dzVents: > increaseBrightness()
dzVents: > deviceId: 00090043
dzVents: > switchSelector()
dzVents: > switchTypeValue: 8
dzVents: > updateUV()
dzVents: > close()
dzVents: > switchOn()
dzVents: > updateDistance()
dzVents: > toggleSwitch()
dzVents: > nValue: 0
dzVents: > isHTTPResponse: false
dzVents: > updateWetness()
dzVents: > level: 0
dzVents: > changed: false
dzVents: > setState()
dzVents: > lastLevel: 0
dzVents: > updateBarometer()
dzVents: > updateP1()
dzVents: > _state: Off
dzVents: > kodiExecuteAddOn()
dzVents: > deviceSubType: AC
dzVents: > unit: 67
dzVents: > kodiSetVolume()
dzVents: > kodiStop()
dzVents: > kodiPause()
dzVents: > kodiPlay()
dzVents: > kodiSwitchOff()
dzVents: > updateMode()
dzVents: > state: Off
dzVents: > update()
dzVents: > updateWind()
dzVents: > description:
dzVents: > updateAlertSensor()
dzVents: > startPlaylist()
dzVents: > isDevice: true
dzVents: > updateTempBaro()
dzVents: > levelVal: 0
dzVents: > idx: 122
dzVents: > updateVisibility()
dzVents: > name: Homewizard - Zoldertrap33
dzVents: > open()
dzVents: > updateTemperature()
dzVents: > maxDimLevel: 15
dzVents: > updateTempHumBaro()
dzVents: > updateText()
dzVents: > bState: false
dzVents: > timedOut: false
dzVents: > hardwareTypeValue: 94
dzVents: > updateElectricity()
dzVents: > id: 122
dzVents: > setRGB()
dzVents: > updateSoilMoisture()
dzVents: > switchOff()
dzVents: > hardwareId: 9
dzVents: > hardwareType: Homewizard
dzVents: > playFavorites()
dzVents: > updateRadiation()
dzVents: > cancelQueuedCommands()
dzVents: > isScene: false
dzVents: > hardwareID: 9
dzVents: > updateRain()
dzVents: > lastUpdate:
dzVents: >     utils:
dzVents: >         fromJSON()
dzVents: >         osExecute()
dzVents: >         LOG_ERROR: 1
dzVents: >         LOG_MODULE_EXEC_INFO: 2
dzVents: >         rgbToHSB()
dzVents: >         LOG_FORCE: 0.5
dzVents: >         toJSON()
dzVents: >         LOG_INFO: 3
dzVents: >         LOG_DEBUG: 4
dzVents: >         log()
dzVents: >         urlEncode()
dzVents: >         fileExists()
dzVents: >         print()
dzVents: >     ruleMatchesBetweenRange()
dzVents: >     ruleIsInWeek()
dzVents: >     min: 37
dzVents: >     ruleIsAtSunrise()
dzVents: >     ruleIsAtSunset()
dzVents: >     rawTime: 22:37:12
dzVents: >     sec: 12
dzVents: >     secondsSinceMidnight: 81432
dzVents: >     compare()
dzVents: >     month: 1
dzVents: >     ruleIsAtDayTime()
dzVents: >     millisecondsAgo: 3408251
dzVents: >     week: 3
dzVents: >     ruleIsAtNight()
dzVents: >     ruleIsOnDate()
dzVents: >     getISO()
dzVents: >     dDate: 1516397832
dzVents: >     matchesRule()
dzVents: >     hour: 22
dzVents: >     isToday: true
dzVents: >     seconds: 12
dzVents: >     ruleMatchesTime()
dzVents: >     ruleMatchesHourSpecification()
dzVents: >     milliSeconds: 0
dzVents: >     ruleMatchesMinuteSpecification()
dzVents: >     isdst: false
dzVents: >     ruleIsBeforeSunrise()
dzVents: >     ruleIsBeforeSunset()
dzVents: >     current:
dzVents: >         sec: 0
dzVents: >         hour: 23
dzVents: >         min: 34
dzVents: >         isdst: false
dzVents: >         yday: 19
dzVents: >         wday: 6
dzVents: >         day: 19
dzVents: >         month: 1
dzVents: >         year: 2018
dzVents: >     msAgo: 3408251
dzVents: >     minutes: 37
dzVents: >     yday: 19
dzVents: >     isUTC: false
dzVents: >     ruleIsOnDay()
dzVents: >     hoursAgo: 0
dzVents: >     dayAbbrOfWeek: fri
dzVents: >     ruleMatchesTimeRange()
dzVents: >     wday: 6
dzVents: >     ruleIsAfterSunrise()
dzVents: >     daysAgo: 0
dzVents: >     day: 19
dzVents: >     raw: 2018-01-19 22:37:12
dzVents: >     rawDate: 2018-1-19
dzVents: >     milliseconds: 0
dzVents: >     ruleIsAfterSunset()
dzVents: >     secondsAgo: 3408
dzVents: >     minutesAgo: 56
dzVents: >     year: 2018
dzVents: > updateHumidity()
dzVents: > hardwareName: Homewizard
dzVents: > armHome()
dzVents: > isVariable: false
dzVents: > isSecurity: false
dzVents: > dump()
dzVents: > setNightMode()
dzVents: > decreaseBrightness()
dzVents: > dimTo()
dzVents: > setWhiteMode()
dzVents: > updateCustomSensor()
dzVents: > _data:
dzVents: >     data:
dzVents: >         _state: Off
dzVents: >         levelVal: 0
dzVents: >         hardwareType: Homewizard
dzVents: >         usedByCamera: false
dzVents: >         _nValue: 0
dzVents: >         maxDimLevel: 15
dzVents: >         hardwareID: 9
dzVents: >         protected: false
dzVents: >         unit: 67
dzVents: >         icon: motion
dzVents: >         hardwareTypeValue: 94
dzVents: >         hardwareName: Homewizard
dzVents: >     batteryLevel: 255
dzVents: >     description:
dzVents: >     lastLevel: 0
dzVents: >     subType: AC
dzVents: >     changed: false
dzVents: >     timedOut: false
dzVents: >     deviceID: 00090043
dzVents: >     id: 122
dzVents: >     rawData:
dzVents: >     signalLevel: 12
dzVents: >     switchTypeValue: 8
dzVents: >     deviceType: Lighting 2
dzVents: >     lastUpdate: 2018-01-19 22:37:12
dzVents: >     name: Homewizard - Zoldertrap33
dzVents: >     baseType: device
dzVents: >     switchType: Motion Sensor
dzVents: > setKelvin()
dzVents: > updatePressure()
dzVents: > updatePercentage()
dzVents: > _adapters:
dzVents: >     1: Switch device adapter
dzVents: > disarm()
dzVents: > protected: false
dzVents: > updateWaterflow()
dzVents: > onkyoEISCPCommand()
dzVents: > stop()
dzVents: > setVolume()
dzVents: > signalLevel: 12
dzVents: > updateCounter()
dzVents: > updateVoltage()
dzVents: > updateGas()
dzVents: > rawData:
dzVents: > kodiPlayFavorites()
dzVents: > switchType: Motion Sensor
dzVents: > updateAirQuality()
dzVents: > updateWeight()
dzVents: > play()
dzVents: > updateSetPoint()
dzVents: > baseType: device
dzVents: > _nValue: 0
Armed with that information you can decide on with what attribute you want to control the flow in your program.
Raspberry (debian stretch via berryboot on Synology DS916+) , Domoticz (almost) latest Beta, RFLink, RFXtrx433e, P1, Youless, Harmony, Hue, Yeelight, Xiaomi, HomeWizard, Zwave , dzVents 2.4.n, Amazon echo

Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: dzVents - possible to get text of a text device?

Post by Quax1507 » Saturday 20 January 2018 11:13

@waaren

Thank You! That finally helped me out.

I have to use domoticz.devices(devicename).rawdata[1]

Quaxx1507

dannybloe
Posts: 1405
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: dzVents - possible to get text of a text device?

Post by dannybloe » Saturday 20 January 2018 17:05

Actually, you should not have to revert to using rawData. Can you post the dump() results here?
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: dzVents - possible to get text of a text device?

Post by Quax1507 » Saturday 20 January 2018 17:13

@dannybloe

Sure! Her it is...

Code: Select all

2018-01-20 16:09:20.223  dzVents: > switchTypeValue: 17
2018-01-20 16:09:20.224  dzVents: > updateTempHum()
2018-01-20 16:09:20.224  dzVents: > description:
2018-01-20 16:09:20.224  dzVents: > kodiSwitchOff()
2018-01-20 16:09:20.224  dzVents: > deviceSubType: AC
2018-01-20 16:09:20.224  dzVents: > idx: 1401
2018-01-20 16:09:20.225  dzVents: > armHome()
2018-01-20 16:09:20.225  dzVents: > updateCounter()
2018-01-20 16:09:20.225  dzVents: > updateWind()
2018-01-20 16:09:20.225  dzVents: > usedByCamera: false
2018-01-20 16:09:20.225  dzVents: > timedOut: false
2018-01-20 16:09:20.226  dzVents: > protected: false
2018-01-20 16:09:20.226  dzVents: > rawData:
2018-01-20 16:09:20.226  dzVents: >     1: Cleaning
2018-01-20 16:09:20.226  dzVents: > updatePressure()
2018-01-20 16:09:20.226  dzVents: > updateSetPoint()
2018-01-20 16:09:20.226  dzVents: > setState()
2018-01-20 16:09:20.227  dzVents: > updateAlertSensor()
2018-01-20 16:09:20.227  dzVents: > baseType: device
2018-01-20 16:09:20.227  dzVents: > kodiExecuteAddOn()
2018-01-20 16:09:20.227  dzVents: > updateTempHumBaro()
2018-01-20 16:09:20.227  dzVents: > updateText()
2018-01-20 16:09:20.227  dzVents: > updateRain()
2018-01-20 16:09:20.228  dzVents: > name: Sauger - Status
2018-01-20 16:09:20.228  dzVents: > updateSoundLevel()
2018-01-20 16:09:20.228  dzVents: > updateSoilMoisture()
2018-01-20 16:09:20.228  dzVents: > icon: Media
2018-01-20 16:09:20.228  dzVents: > hardwareId: 11
2018-01-20 16:09:20.229  dzVents: > updateTempBaro()
2018-01-20 16:09:20.229  dzVents: > switchType: Media Player
2018-01-20 16:09:20.229  dzVents: > dimTo()
2018-01-20 16:09:20.229  dzVents: > unit: 1
2018-01-20 16:09:20.229  dzVents: > lastUpdate:
2018-01-20 16:09:20.230  dzVents: >     year: 2018
2018-01-20 16:09:20.230  dzVents: >     daysAgo: 0
2018-01-20 16:09:20.230  dzVents: >     dDate: 1516457557
2018-01-20 16:09:20.230  dzVents: >     ruleIsAfterSunrise()
2018-01-20 16:09:20.230  dzVents: >     secondsSinceMidnight: 54757
2018-01-20 16:09:20.230  dzVents: >     raw: 2018-01-20 15:12:37
2018-01-20 16:09:20.230  dzVents: >     ruleMatchesMinuteSpecification()
2018-01-20 16:09:20.231  dzVents: >     month: 1
2018-01-20 16:09:20.231  dzVents: >     rawTime: 15:12:37
2018-01-20 16:09:20.231  dzVents: >     min: 12
2018-01-20 16:09:20.231  dzVents: >     minutesAgo: 56
2018-01-20 16:09:20.231  dzVents: >     milliSeconds: 0
2018-01-20 16:09:20.232  dzVents: >     compare()
2018-01-20 16:09:20.232  dzVents: >     utils:
2018-01-20 16:09:20.232  dzVents: >         LOG_DEBUG: 4
2018-01-20 16:09:20.232  dzVents: >         LOG_FORCE: 0.5
2018-01-20 16:09:20.232  dzVents: >         log()
2018-01-20 16:09:20.232  dzVents: >         LOG_ERROR: 1
2018-01-20 16:09:20.233  dzVents: >         LOG_MODULE_EXEC_INFO: 2
2018-01-20 16:09:20.233  dzVents: >         print()
2018-01-20 16:09:20.233  dzVents: >         osExecute()
2018-01-20 16:09:20.233  dzVents: >         fileExists()
2018-01-20 16:09:20.233  dzVents: >         LOG_INFO: 3
2018-01-20 16:09:20.233  dzVents: >         urlEncode()
2018-01-20 16:09:20.234  dzVents: >     isdst: false
2018-01-20 16:09:20.234  dzVents: >     day: 20
2018-01-20 16:09:20.234  dzVents: >     msAgo: 3403098
2018-01-20 16:09:20.234  dzVents: >     ruleIsAfterSunset()
2018-01-20 16:09:20.234  dzVents: >     current:
2018-01-20 16:09:20.235  dzVents: >         day: 20
2018-01-20 16:09:20.235  dzVents: >         month: 1
2018-01-20 16:09:20.235  dzVents: >         year: 2018
2018-01-20 16:09:20.235  dzVents: >         min: 9
2018-01-20 16:09:20.235  dzVents: >         yday: 20
2018-01-20 16:09:20.235  dzVents: >         wday: 7
2018-01-20 16:09:20.236  dzVents: >         sec: 20
2018-01-20 16:09:20.236  dzVents: >         hour: 16
2018-01-20 16:09:20.236  dzVents: >         isdst: false
2018-01-20 16:09:20.236  dzVents: >     isUTC: false
2018-01-20 16:09:20.236  dzVents: >     ruleMatchesHourSpecification()
2018-01-20 16:09:20.236  dzVents: >     matchesRule()
2018-01-20 16:09:20.237  dzVents: >     ruleMatchesTime()
2018-01-20 16:09:20.237  dzVents: >     sec: 37
2018-01-20 16:09:20.237  dzVents: >     ruleMatchesTimeRange()
2018-01-20 16:09:20.237  dzVents: >     ruleMatchesBetweenRange()
2018-01-20 16:09:20.237  dzVents: >     ruleIsAtDayTime()
2018-01-20 16:09:20.237  dzVents: >     ruleIsAtNight()
2018-01-20 16:09:20.238  dzVents: >     dayAbbrOfWeek: sat
2018-01-20 16:09:20.238  dzVents: >     ruleIsAtSunset()
2018-01-20 16:09:20.238  dzVents: >     secondsAgo: 3403
2018-01-20 16:09:20.238  dzVents: >     ruleIsAtSunrise()
2018-01-20 16:09:20.238  dzVents: >     ruleIsBeforeSunset()
2018-01-20 16:09:20.238  dzVents: >     ruleIsBeforeSunrise()
2018-01-20 16:09:20.239  dzVents: >     isToday: true
2018-01-20 16:09:20.239  dzVents: >     rawDate: 2018-1-20
2018-01-20 16:09:20.239  dzVents: >     ruleIsOnDay()
2018-01-20 16:09:20.239  dzVents: >     yday: 20
2018-01-20 16:09:20.239  dzVents: >     wday: 7
2018-01-20 16:09:20.239  dzVents: >     getISO()
2018-01-20 16:09:20.240  dzVents: >     hour: 15
2018-01-20 16:09:20.240  dzVents: >     hoursAgo: 0
2018-01-20 16:09:20.240  dzVents: > deviceType: Lighting 2
2018-01-20 16:09:20.240  dzVents: > _adapters:
2018-01-20 16:09:20.240  dzVents: >     1: Switch device adapter
2018-01-20 16:09:20.241  dzVents: > updateDistance()
2018-01-20 16:09:20.241  dzVents: > hardwareTypeValue: 94
2018-01-20 16:09:20.241  dzVents: > switchOn()
2018-01-20 16:09:20.241  dzVents: > hardwareName: Sauger
2018-01-20 16:09:20.241  dzVents: > updateCustomSensor()
2018-01-20 16:09:20.241  dzVents: > kodiPlayFavorites()
2018-01-20 16:09:20.241  dzVents: > switchSelector()
2018-01-20 16:09:20.242  dzVents: > close()
2018-01-20 16:09:20.242  dzVents: > hardwareID: 11
2018-01-20 16:09:20.242  dzVents: > toggleSwitch()
2018-01-20 16:09:20.242  dzVents: > updateP1()
2018-01-20 16:09:20.242  dzVents: > updatePercentage()
2018-01-20 16:09:20.242  dzVents: > switchOff()
2018-01-20 16:09:20.242  dzVents: > open()
2018-01-20 16:09:20.243  dzVents: > updateRadiation()
2018-01-20 16:09:20.243  dzVents: > lastLevel: 0
2018-01-20 16:09:20.243  dzVents: > updateLux()
2018-01-20 16:09:20.243  dzVents: > state: On
2018-01-20 16:09:20.243  dzVents: > updateVoltage()
2018-01-20 16:09:20.243  dzVents: > updateUV()
2018-01-20 16:09:20.244  dzVents: > kodiSetVolume()
2018-01-20 16:09:20.244  dzVents: > changed: true
2018-01-20 16:09:20.244  dzVents: > stop()
2018-01-20 16:09:20.244  dzVents: > kodiStop()
2018-01-20 16:09:20.244  dzVents: > nValue: 1
2018-01-20 16:09:20.244  dzVents: > levelVal: 0
2018-01-20 16:09:20.245  dzVents: > signalLevel: 12
2018-01-20 16:09:20.245  dzVents: > kodiPlay()
2018-01-20 16:09:20.245  dzVents: > updateMode()
2018-01-20 16:09:20.245  dzVents: > updateWaterflow()
2018-01-20 16:09:20.245  dzVents: > updateVisibility()
2018-01-20 16:09:20.245  dzVents: > armAway()
2018-01-20 16:09:20.246  dzVents: > kodiPlayPlaylist()
2018-01-20 16:09:20.246  dzVents: > hardwareType: Xiaomi Mi Robot Vacuum
2018-01-20 16:09:20.246  dzVents: > _nValue: 1
2018-01-20 16:09:20.246  dzVents: > _data:
2018-01-20 16:09:20.246  dzVents: >     switchTypeValue: 17
2018-01-20 16:09:20.246  dzVents: >     baseType: device
2018-01-20 16:09:20.247  dzVents: >     description:
2018-01-20 16:09:20.247  dzVents: >     name: Sauger - Status
2018-01-20 16:09:20.247  dzVents: >     data:
2018-01-20 16:09:20.247  dzVents: >         _nValue: 1
2018-01-20 16:09:20.247  dzVents: >         maxDimLevel: 15
2018-01-20 16:09:20.247  dzVents: >         icon: Media
2018-01-20 16:09:20.248  dzVents: >         levelVal: 0
2018-01-20 16:09:20.248  dzVents: >         hardwareTypeValue: 94
2018-01-20 16:09:20.248  dzVents: >         usedByCamera: false
2018-01-20 16:09:20.248  dzVents: >         hardwareName: Sauger
2018-01-20 16:09:20.248  dzVents: >         hardwareType: Xiaomi Mi Robot Vacuum
2018-01-20 16:09:20.249  dzVents: >         protected: false
2018-01-20 16:09:20.249  dzVents: >         unit: 1
2018-01-20 16:09:20.249  dzVents: >         _state: On
2018-01-20 16:09:20.249  dzVents: >         hardwareID: 11
2018-01-20 16:09:20.249  dzVents: >     batteryLevel: 255
2018-01-20 16:09:20.250  dzVents: >     lastLevel: 0
2018-01-20 16:09:20.250  dzVents: >     id: 1401
2018-01-20 16:09:20.250  dzVents: >     timedOut: false
2018-01-20 16:09:20.250  dzVents: >     rawData:
2018-01-20 16:09:20.250  dzVents: >         1: Cleaning
2018-01-20 16:09:20.250  dzVents: >     switchType: Media Player
2018-01-20 16:09:20.250  dzVents: >     deviceType: Lighting 2
2018-01-20 16:09:20.251  dzVents: >     signalLevel: 12
2018-01-20 16:09:20.251  dzVents: >     lastUpdate: 2018-01-20 15:12:37
2018-01-20 16:09:20.251  dzVents: >     deviceID: 000B0001
2018-01-20 16:09:20.251  dzVents: >     changed: true
2018-01-20 16:09:20.251  dzVents: >     subType: AC
2018-01-20 16:09:20.251  dzVents: > updateGas()
2018-01-20 16:09:20.252  dzVents: > updateTemperature()
2018-01-20 16:09:20.252  dzVents: > _state: On
2018-01-20 16:09:20.252  dzVents: > maxDimLevel: 15
2018-01-20 16:09:20.252  dzVents: > deviceId: 000B0001
2018-01-20 16:09:20.252  dzVents: > active: true
2018-01-20 16:09:20.252  dzVents: > updateElectricity()
2018-01-20 16:09:20.253  dzVents: > bState: true
2018-01-20 16:09:20.253  dzVents: > disarm()
2018-01-20 16:09:20.253  dzVents: > id: 1401
2018-01-20 16:09:20.253  dzVents: > updateWeight()
2018-01-20 16:09:20.253  dzVents: > updateWetness()
2018-01-20 16:09:20.253  dzVents: > updateBarometer()
2018-01-20 16:09:20.254  dzVents: > updateHumidity()
2018-01-20 16:09:20.254  dzVents: > kodiPause()
2018-01-20 16:09:20.254  dzVents: > dump()
2018-01-20 16:09:20.254  dzVents: > updateAirQuality()
2018-01-20 16:09:20.254  dzVents: > update()

dannybloe
Posts: 1405
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: dzVents - possible to get text of a text device?

Post by dannybloe » Saturday 20 January 2018 18:01

What kind of device is this? How did it end up in Domoticz?
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: dzVents - possible to get text of a text device?

Post by Quax1507 » Saturday 20 January 2018 18:03

It was created by the Mirobo python plugin for status display:

https://github.com/mrin/domoticz-mirobot-plugin

dannybloe
Posts: 1405
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: dzVents - possible to get text of a text device?

Post by dannybloe » Saturday 20 January 2018 18:08

Ah. That explains. There is no adapter for thus device in dzVents. Is it a read-only device that only show the current state in Dimoticz or can you also control it? If so, how? (from script)
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Quax1507
Posts: 120
Joined: Tuesday 07 April 2015 21:29
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: dzVents - possible to get text of a text device?

Post by Quax1507 » Saturday 20 January 2018 18:11

You can switch it on/off but it has no effect!
It is used only for status display by the plugin.

dannybloe
Posts: 1405
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi
Domoticz version:
Location: Ermelo
Contact:

Re: dzVents - possible to get text of a text device?

Post by dannybloe » Saturday 20 January 2018 18:16

Then the plugin creates a wrong device. It shouldn’t be a switch but a text device or a custom device.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests