Hi (@waaren)
I finally finished my alarmproject. dump of my code and images are coming soon.
My last device i bought was a neo zwave plus siren alarm, indoor.
This works perfect with my script and the security panel that @lonkonli recently styled..
This alarm has a number of zwave properties, that i can manulally change with the zwave panel.
Is it possible to change these properties with dzvents?
Does this work the same way as other properties, so i can script these myself, or does this device has to be supported by domoticz switchtypes?
zwave properties and dzvents [Solved]
Moderator: leecollings
-
pvklink
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
zwave properties and dzvents
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: zwave properties and dzvents [Solved]
Probably not direct but either with dz.openURL (if get or post will do) or with io.popen(curl) (when put is required) should be possible.pvklink wrote: Tuesday 26 November 2019 19:47 My last device i bought was a neo zwave plus siren alarm, indoor.
This alarm has a number of zwave properties, that i can manulally change with the zwave panel.
Is it possible to change these properties with dzvents?
Start with a device.dump() to get all available dzVents methods and attributes.
If that does not seem to give enough options the next step is to identify the url calls send from the zwave panel.
You can do this by activating the developer window in a chrome brower (CTRL shift I) and choosing the network tab.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
pvklink
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
Re: zwave properties and dzvents
ok, i did a dump. Lot of info, but i dont see the info i see on my zwave tab
i will try the f12 method
dump
i will try the f12 method
dump
Code: Select all
2019-11-26 22:13:07.379 (dummydevices) Light/Switch (test)
2019-11-26 22:13:07.543 Status: dzVents: > updatePressure()
2019-11-26 22:13:07.543 Status: dzVents: > state: On
2019-11-26 22:13:07.543 Status: dzVents: > updateRain()
2019-11-26 22:13:07.543 Status: dzVents: > isVariable: false
2019-11-26 22:13:07.543 Status: dzVents: > setWhiteMode()
2019-11-26 22:13:07.543 Status: dzVents: > kodiStop()
2019-11-26 22:13:07.543 Status: dzVents: > bState: true
2019-11-26 22:13:07.543 Status: dzVents: > volumeDown()
2019-11-26 22:13:07.543 Status: dzVents: > rename()
2019-11-26 22:13:07.543 Status: dzVents: > _data:
2019-11-26 22:13:07.544 Status: dzVents: > changed: false
2019-11-26 22:13:07.544 Status: dzVents: > batteryLevel: 255
2019-11-26 22:13:07.544 Status: dzVents: > name: binnenalarm
2019-11-26 22:13:07.544 Status: dzVents: > timedOut: false
2019-11-26 22:13:07.544 Status: dzVents: > rawData:
2019-11-26 22:13:07.544 Status: dzVents: > 1: 255
2019-11-26 22:13:07.544 Status: dzVents: > signalLevel: 12
2019-11-26 22:13:07.544 Status: dzVents: > deviceID: 00000F01
2019-11-26 22:13:07.544 Status: dzVents: > subType: Switch
2019-11-26 22:13:07.544 Status: dzVents: > description:
2019-11-26 22:13:07.544 Status: dzVents: > deviceType: Light/Switch
2019-11-26 22:13:07.544 Status: dzVents: > protected: false
2019-11-26 22:13:07.544 Status: dzVents: > data:
2019-11-26 22:13:07.544 Status: dzVents: > maxDimLevel: 100
2019-11-26 22:13:07.544 Status: dzVents: > _state: On
2019-11-26 22:13:07.544 Status: dzVents: > protected: false
2019-11-26 22:13:07.544 Status: dzVents: > icon: lightbulb
2019-11-26 22:13:07.544 Status: dzVents: > levelVal: 255
2019-11-26 22:13:07.544 Status: dzVents: > usedByCamera: false
2019-11-26 22:13:07.544 Status: dzVents: > hardwareName: zwavepluspvk
2019-11-26 22:13:07.544 Status: dzVents: > unit: 1
2019-11-26 22:13:07.544 Status: dzVents: > hardwareType: OpenZWave USB
2019-11-26 22:13:07.544 Status: dzVents: > hardwareID: 10
2019-11-26 22:13:07.544 Status: dzVents: > _nValue: 1
2019-11-26 22:13:07.544 Status: dzVents: > hardwareTypeValue: 21
2019-11-26 22:13:07.544 Status: dzVents: > baseType: device
2019-11-26 22:13:07.544 Status: dzVents: > switchType: On/Off
2019-11-26 22:13:07.545 Status: dzVents: > lastLevel: 0
2019-11-26 22:13:07.545 Status: dzVents: > id: 1965
2019-11-26 22:13:07.545 Status: dzVents: > lastUpdate: 2019-11-26 22:09:55
2019-11-26 22:13:07.545 Status: dzVents: > switchTypeValue: 0
2019-11-26 22:13:07.545 Status: dzVents: > increaseBrightness()
2019-11-26 22:13:07.545 Status: dzVents: > updateP1()
2019-11-26 22:13:07.545 Status: dzVents: > lastUpdate:
2019-11-26 22:13:07.545 Status: dzVents: > secondsAgo: 192
2019-11-26 22:13:07.545 Status: dzVents: > matchesRule()
2019-11-26 22:13:07.545 Status: dzVents: > ruleIsAfterSunset()
2019-11-26 22:13:07.545 Status: dzVents: > isdst: false
2019-11-26 22:13:07.545 Status: dzVents: > ruleIsOnDay()
2019-11-26 22:13:07.545 Status: dzVents: > utils:
2019-11-26 22:13:07.545 Status: dzVents: > deviceExists()
2019-11-26 22:13:07.545 Status: dzVents: > rightPad()
2019-11-26 22:13:07.545 Status: dzVents: > dumpTable()
2019-11-26 22:13:07.545 Status: dzVents: > sceneExists()
2019-11-26 22:13:07.545 Status: dzVents: > LOG_MODULE_EXEC_INFO: 2
2019-11-26 22:13:07.545 Status: dzVents: > leftPad()
2019-11-26 22:13:07.545 Status: dzVents: > hsbToRGB()
2019-11-26 22:13:07.545 Status: dzVents: > DZVERSION: 2.5.0
2019-11-26 22:13:07.545 Status: dzVents: > osExecute()
2019-11-26 22:13:07.545 Status: dzVents: > leadingZeros()
2019-11-26 22:13:07.545 Status: dzVents: > rgbToHSB()
2019-11-26 22:13:07.545 Status: dzVents: > cameraExists()
2019-11-26 22:13:07.545 Status: dzVents: > toJSON()
2019-11-26 22:13:07.545 Status: dzVents: > variableExists()
2019-11-26 22:13:07.545 Status: dzVents: > centerPad()
2019-11-26 22:13:07.545 Status: dzVents: > log()
2019-11-26 22:13:07.545 Status: dzVents: > fromJSON()
2019-11-26 22:13:07.545 Status: dzVents: > toCelsius()
2019-11-26 22:13:07.546 Status: dzVents: > LOG_ERROR: 1
2019-11-26 22:13:07.546 Status: dzVents: > print()
2019-11-26 22:13:07.546 Status: dzVents: > urlDecode()
2019-11-26 22:13:07.546 Status: dzVents: > LOG_FORCE: 0.5
2019-11-26 22:13:07.546 Status: dzVents: > groupExists()
2019-11-26 22:13:07.546 Status: dzVents: > urlEncode()
2019-11-26 22:13:07.546 Status: dzVents: > inTable()
2019-11-26 22:13:07.546 Status: dzVents: > round()
2019-11-26 22:13:07.546 Status: dzVents: > LOG_INFO: 3
2019-11-26 22:13:07.546 Status: dzVents: > stringSplit()
2019-11-26 22:13:07.546 Status: dzVents: > numDecimals()
2019-11-26 22:13:07.546 Status: dzVents: > LOG_DEBUG: 4
2019-11-26 22:13:07.546 Status: dzVents: > fileExists()
2019-11-26 22:13:07.546 Status: dzVents: > current:
2019-11-26 22:13:07.546 Status: dzVents: > hour: 22
2019-11-26 22:13:07.546 Status: dzVents: > min: 13
2019-11-26 22:13:07.546 Status: dzVents: > yday: 330
2019-11-26 22:13:07.546 Status: dzVents: > sec: 7
2019-11-26 22:13:07.546 Status: dzVents: > isdst: false
2019-11-26 22:13:07.546 Status: dzVents: > wday: 3
2019-11-26 22:13:07.546 Status: dzVents: > year: 2019
2019-11-26 22:13:07.546 Status: dzVents: > month: 11
2019-11-26 22:13:07.546 Status: dzVents: > day: 26
2019-11-26 22:13:07.546 Status: dzVents: > ruleMatchesTimeRange()
2019-11-26 22:13:07.546 Status: dzVents: > ruleIsOnDate()
2019-11-26 22:13:07.546 Status: dzVents: > ruleMatchesTime()
2019-11-26 22:13:07.546 Status: dzVents: > wday: 3
2019-11-26 22:13:07.546 Status: dzVents: > daysAgo: 0
2019-11-26 22:13:07.546 Status: dzVents: > ruleMatchesHourSpecification()
2019-11-26 22:13:07.547 Status: dzVents: > compare()
2019-11-26 22:13:07.547 Status: dzVents: > min: 9
2019-11-26 22:13:07.547 Status: dzVents: > dayAbbrOfWeek: tue
2019-11-26 22:13:07.547 Status: dzVents: > yday: 330
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsAfterCivilTwilightEnd()
2019-11-26 22:13:07.547 Status: dzVents: > raw: 2019-11-26 22:09:55
2019-11-26 22:13:07.547 Status: dzVents: > minutes: 9
2019-11-26 22:13:07.547 Status: dzVents: > hoursAgo: 0
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsBeforeSunset()
2019-11-26 22:13:07.547 Status: dzVents: > rawDateTime: 2019-11-26 22:09:55
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsAtSunset()
2019-11-26 22:13:07.547 Status: dzVents: > minutesAgo: 3
2019-11-26 22:13:07.547 Status: dzVents: > msAgo: 192390
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsAfterCivilTwilightStart()
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsAtDayTime()
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsAtNight()
2019-11-26 22:13:07.547 Status: dzVents: > ruleMatchesBetweenRange()
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsAtCivilNightTime()
2019-11-26 22:13:07.547 Status: dzVents: > millisecondsAgo: 192390
2019-11-26 22:13:07.547 Status: dzVents: > getISO()
2019-11-26 22:13:07.547 Status: dzVents: > seconds: 55
2019-11-26 22:13:07.547 Status: dzVents: > ruleMatchesMinuteSpecification()
2019-11-26 22:13:07.547 Status: dzVents: > week: 48
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsAfterSunrise()
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsAtCivilDayTime()
2019-11-26 22:13:07.547 Status: dzVents: > milliSeconds: 0
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsBeforeCivilTwilightStart()
2019-11-26 22:13:07.547 Status: dzVents: > ruleIsBeforeCivilTwilightEnd()
2019-11-26 22:13:07.547 Status: dzVents: > day: 26
2019-11-26 22:13:07.547 Status: dzVents: > year: 2019
2019-11-26 22:13:07.548 Status: dzVents: > ruleIsAtSunrise()
2019-11-26 22:13:07.548 Status: dzVents: > milliseconds: 0
2019-11-26 22:13:07.548 Status: dzVents: > ruleIsAtCivilTwilightStart()
2019-11-26 22:13:07.548 Status: dzVents: > ruleIsInWeek()
2019-11-26 22:13:07.548 Status: dzVents: > isToday: true
2019-11-26 22:13:07.548 Status: dzVents: > isUTC: false
2019-11-26 22:13:07.548 Status: dzVents: > rawTime: 22:09:55
2019-11-26 22:13:07.548 Status: dzVents: > sec: 55
2019-11-26 22:13:07.548 Status: dzVents: > rawDate: 2019-11-26
2019-11-26 22:13:07.548 Status: dzVents: > ruleIsBeforeSunrise()
2019-11-26 22:13:07.548 Status: dzVents: > secondsSinceMidnight: 79795
2019-11-26 22:13:07.548 Status: dzVents: > dDate: 1574802595
2019-11-26 22:13:07.548 Status: dzVents: > hour: 22
2019-11-26 22:13:07.548 Status: dzVents: > month: 11
2019-11-26 22:13:07.548 Status: dzVents: > ruleIsAtCivilTwilightEnd()
2019-11-26 22:13:07.548 Status: dzVents: > toggleSwitch()
2019-11-26 22:13:07.548 Status: dzVents: > changed: false
2019-11-26 22:13:07.548 Status: dzVents: > _nValue: 1
2019-11-26 22:13:07.548 Status: dzVents: > sValue: On
2019-11-26 22:13:07.548 Status: dzVents: > updateElectricity()
2019-11-26 22:13:07.548 Status: dzVents: > updateCustomSensor()
2019-11-26 22:13:07.548 Status: dzVents: > hardwareTypeValue: 21
2019-11-26 22:13:07.548 Status: dzVents: > updateTemperature()
2019-11-26 22:13:07.548 Status: dzVents: > updateCounter()
2019-11-26 22:13:07.548 Status: dzVents: > updateWeight()
2019-11-26 22:13:07.548 Status: dzVents: > updateLux()
2019-11-26 22:13:07.548 Status: dzVents: > nValue: 1
2019-11-26 22:13:07.548 Status: dzVents: > pause()
2019-11-26 22:13:07.548 Status: dzVents: > protectionOn()
2019-11-26 22:13:07.549 Status: dzVents: > updateHumidity()
2019-11-26 22:13:07.549 Status: dzVents: > kodiPlayPlaylist()
2019-11-26 22:13:07.549 Status: dzVents: > volumeUp()
2019-11-26 22:13:07.549 Status: dzVents: > hardwareType: OpenZWave USB
2019-11-26 22:13:07.549 Status: dzVents: > updateSetPoint()
2019-11-26 22:13:07.549 Status: dzVents: > protected: false
2019-11-26 22:13:07.549 Status: dzVents: > play()
2019-11-26 22:13:07.549 Status: dzVents: > disarm()
2019-11-26 22:13:07.549 Status: dzVents: > setIcon()
2019-11-26 22:13:07.549 Status: dzVents: > close()
2019-11-26 22:13:07.549 Status: dzVents: > name: binnenalarm
2019-11-26 22:13:07.549 Status: dzVents: > icon: lightbulb
2019-11-26 22:13:07.549 Status: dzVents: > cancelQueuedCommands()
2019-11-26 22:13:07.549 Status: dzVents: > kodiSetVolume()
2019-11-26 22:13:07.549 Status: dzVents: > idx: 1965
2019-11-26 22:13:07.549 Status: dzVents: > switchType: On/Off
2019-11-26 22:13:07.549 Status: dzVents: > hardwareID: 10
2019-11-26 22:13:07.549 Status: dzVents: > switchOff()
2019-11-26 22:13:07.549 Status: dzVents: > setHex()
2019-11-26 22:13:07.549 Status: dzVents: > updatePercentage()
2019-11-26 22:13:07.549 Status: dzVents: > rawData:
2019-11-26 22:13:07.549 Status: dzVents: > 1: 255
2019-11-26 22:13:07.549 Status: dzVents: > switchSelector()
2019-11-26 22:13:07.549 Status: dzVents: > updateTempHum()
2019-11-26 22:13:07.549 Status: dzVents: > deviceType: Light/Switch
2019-11-26 22:13:07.549 Status: dzVents: > setLevel()
2019-11-26 22:13:07.549 Status: dzVents: > updateMode()
2019-11-26 22:13:07.549 Status: dzVents: > updateTempBaro()
2019-11-26 22:13:07.549 Status: dzVents: > setColorBrightness()
2019-11-26 22:13:07.549 Status: dzVents: > activate()
2019-11-26 22:13:07.549 Status: dzVents: > kodiPlayFavorites()
2019-11-26 22:13:07.550 Status: dzVents: > switchTypeValue: 0
2019-11-26 22:13:07.550 Status: dzVents: > updateDistance()
2019-11-26 22:13:07.550 Status: dzVents: > isDevice: true
2019-11-26 22:13:07.550 Status: dzVents: > kodiExecuteAddOn()
2019-11-26 22:13:07.550 Status: dzVents: > updateYouless()
2019-11-26 22:13:07.550 Status: dzVents: > updateVoltage()
2019-11-26 22:13:07.550 Status: dzVents: > startPlaylist()
2019-11-26 22:13:07.550 Status: dzVents: > armAway()
2019-11-26 22:13:07.550 Status: dzVents: > updateTempHumBaro()
2019-11-26 22:13:07.550 Status: dzVents: > usedByCamera: false
2019-11-26 22:13:07.550 Status: dzVents: > playFavorites()
2019-11-26 22:13:07.550 Status: dzVents: > open()
2019-11-26 22:13:07.550 Status: dzVents: > active: true
2019-11-26 22:13:07.550 Status: dzVents: > getColor()
2019-11-26 22:13:07.550 Status: dzVents: > updateRadiation()
2019-11-26 22:13:07.550 Status: dzVents: > updateWaterflow()
2019-11-26 22:13:07.550 Status: dzVents: > switchOn()
2019-11-26 22:13:07.550 Status: dzVents: > timedOut: false
2019-11-26 22:13:07.550 Status: dzVents: > maxDimLevel: 100
2019-11-26 22:13:07.550 Status: dzVents: > isTimer: false
2019-11-26 22:13:07.550 Status: dzVents: > quietOff()
2019-11-26 22:13:07.550 Status: dzVents: > description:
2019-11-26 22:13:07.550 Status: dzVents: > setRGB()
2019-11-26 22:13:07.550 Status: dzVents: > updateWetness()
2019-11-26 22:13:07.550 Status: dzVents: > deviceId: 00000F01
2019-11-26 22:13:07.550 Status: dzVents: > unit: 1
2019-11-26 22:13:07.550 Status: dzVents: > updateVisibility()
2019-11-26 22:13:07.550 Status: dzVents: > lastLevel: 0
2019-11-26 22:13:07.550 Status: dzVents: > isScene: false
2019-11-26 22:13:07.550 Status: dzVents: > setDescription()
2019-11-26 22:13:07.550 Status: dzVents: > updateGas()
2019-11-26 22:13:07.551 Status: dzVents: > _adapters:
2019-11-26 22:13:07.551 Status: dzVents: > 1: Switch device adapter
2019-11-26 22:13:07.551 Status: dzVents: > updateUV()
2019-11-26 22:13:07.551 Status: dzVents: > _state: On
2019-11-26 22:13:07.551 Status: dzVents: > updateBarometer()
2019-11-26 22:13:07.551 Status: dzVents: > kodiPlay()
2019-11-26 22:13:07.551 Status: dzVents: > setDiscoMode()
2019-11-26 22:13:07.551 Status: dzVents: > hardwareName: zwavepluspvk
2019-11-26 22:13:07.551 Status: dzVents: > kodiPause()
2019-11-26 22:13:07.551 Status: dzVents: > dimTo()
2019-11-26 22:13:07.551 Status: dzVents: > updateAirQuality()
2019-11-26 22:13:07.551 Status: dzVents: > setColor()
2019-11-26 22:13:07.551 Status: dzVents: > stop()
2019-11-26 22:13:07.551 Status: dzVents: > onkyoEISCPCommand()
2019-11-26 22:13:07.551 Status: dzVents: > kodiSwitchOff()
2019-11-26 22:13:07.551 Status: dzVents: > updateWind()
2019-11-26 22:13:07.551 Status: dzVents: > deviceSubType: Switch
2019-11-26 22:13:07.551 Status: dzVents: > isSecurity: false
2019-11-26 22:13:07.551 Status: dzVents: > signalLevel: 12
2019-11-26 22:13:07.551 Status: dzVents: > updateSoundLevel()
2019-11-26 22:13:07.551 Status: dzVents: > setVolume()
2019-11-26 22:13:07.551 Status: dzVents: > updateText()
2019-11-26 22:13:07.551 Status: dzVents: > reset()
2019-11-26 22:13:07.551 Status: dzVents: > baseType: device
2019-11-26 22:13:07.551 Status: dzVents: > update()
2019-11-26 22:13:07.551 Status: dzVents: > setValues()
2019-11-26 22:13:07.551 Status: dzVents: > incrementCounter()
2019-11-26 22:13:07.551 Status: dzVents: > id: 1965
2019-11-26 22:13:07.551 Status: dzVents: > setKelvin()
2019-11-26 22:13:07.552 Status: dzVents: > decreaseBrightness()
2019-11-26 22:13:07.552 Status: dzVents: > setHue()
2019-11-26 22:13:07.552 Status: dzVents: > setState()
2019-11-26 22:13:07.552 Status: dzVents: > armHome()
2019-11-26 22:13:07.552 Status: dzVents: > setNightMode()
2019-11-26 22:13:07.552 Status: dzVents: > protectionOff()
2019-11-26 22:13:07.552 Status: dzVents: > hardwareId: 10
2019-11-26 22:13:07.552 Status: dzVents: > levelVal: 255
2019-11-26 22:13:07.552 Status: dzVents: > isHTTPResponse: false
2019-11-26 22:13:07.552 Status: dzVents: > setHotWater()
2019-11-26 22:13:07.552 Status: dzVents: > dump()
2019-11-26 22:13:07.552 Status: dzVents: > isGroup: false
2019-11-26 22:13:07.552 Status: dzVents: > level: 255
2019-11-26 22:13:07.552 Status: dzVents: > setMode()
2019-11-26 22:13:07.552 Status: dzVents: > updateAlertSensor()
2019-11-26 22:13:07.552 Status: dzVents: > quietOn()
2019-11-26 22:13:07.552 Status: dzVents: > updateSoilMoisture()
Last edited by pvklink on Tuesday 26 November 2019 22:15, edited 1 time in total.
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
-
pvklink
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
Re: zwave properties and dzvents
This is when i do a commit, looks swahilish... 
am i gonna try this my self, after all youre education...
I think i have do send this http call and check the response, read the json and if status is OK then do my thing...
http://192.168.20.35:82/json.htm?type=c ... JsZQ%3D%3D_
{
"status" : "OK",
"title" : "ApplyZWaveNodeConfig"
}
am i gonna try this my self, after all youre education...
I think i have do send this http call and check the response, read the json and if status is OK then do my thing...
http://192.168.20.35:82/json.htm?type=c ... JsZQ%3D%3D_
{
"status" : "OK",
"title" : "ApplyZWaveNodeConfig"
}
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
-
pvklink
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
Re: zwave properties and dzvents
Think this could work...the zwave settings changes!
My script, does this look ok?
My script, does this look ok?
Code: Select all
local scriptVar = 'zwaveresponce'
-- test is alarm siren
-- test2 is doorbell ring
-- url's afvangen met f12 network in zwave panel door beide settings alarm en doorbell af te vangen en te knippen en plakken
return
{
on = {devices = {'test','test2'}},
httpResponses = {scriptVar},
logging = {level = domoticz.LOG_DEBUG},
execute = function(dz, item)
_G.logMarker = _G.moduleLabel
if item.isDevice then
if item.name == 'test' then
zwaveURL = 'http://192.168.20.35:82/json.htm?type=command¶m=applyzwavenodeconfig&idx=11&valuelist=3_NQ%3D%3D_1_SGlnaA%3D%3D_2_MzAgc2Vjb25k_4_SGlnaA%3D%3D_5_UG9saWNlIFNpcmVu_6_UG9saWNlIFNpcmVu_7_QWxhcm0gbXVzaWM%3D_8_RW5hYmxl_9_RGlzYWJsZQ%3D%3D_'
else
zwaveURL = 'http://192.168.20.35:82/json.htm?type=command¶m=applyzwavenodeconfig&idx=11&valuelist=3_MQ%3D%3D_1_TG93_2_MzAgc2Vjb25k_4_TG93_5_UG9saWNlIFNpcmVu_6_RG9vcmJlbGwgRXh0ZW5kZWQ%3D_7_RG9vciBiZWxsIG11c2lj_8_RGlzYWJsZQ%3D%3D_9_RGlzYWJsZQ%3D%3D_'
end
dz.openURL({url = zwaveURL, callback = scriptVar})
elseif item.isHTTPResponse and item.ok then -- do i need item.ok ???
if not(item.isJSON) then item.json = dz.utils.fromJSON(item.data) end
rt = item.json
if rt.status == 'OK' then
-- hier switch aanzetten en log met data bekijken dit hele script moet een global functie worden
else
dz.log('There was a problem 1 handling the request; response is ' .. item.data, dz.LOG_ERROR)
end
else
dz.log('There was a problem 2 handling the request; response is ' .. item.data, dz.LOG_ERROR)
end
end
}
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: zwave properties and dzvents
Yes looks OK.pvklink wrote: Tuesday 26 November 2019 23:10 Think this could work...the zwave settings changes!
My script, does this look ok?
I recognize a couple of words
High
30 second
Police Siren
Alarm music
Enable
Disable
Low
Doorbell Extended
Door bell music
strings are Base64 encoded. Will have a look if that's something that can be implemented in dzVents.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
pvklink
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
Re: zwave properties and dzvents
unbelievable .. gonna google that.
Perhaps i can help a little bit?
Finally, i think i make a function in global_data when calling it , it sets the zwave with the given parameters and after responce OK it activates the given switch_id (the id of the siren)
The siren has two functions: doorbell and alarm which you have to select (nr 7) before activation....
So there are two sets of settings for those two functions.
7 defines alarm or doorbell
Alarm uses: 1,2,5,8
Doorbell uses: 3,4,6,9
Datavalues, use by id, and codes are:
dataset for id=1 or id=4
High (SGlnaA%3D%3D)
Low (, TG93)
Middle (TWlkZGxl)
Dataset for id=2
Off (T2Zm)
30 second (MzAgc2Vjb25k)
1 minute(MSBtaW51dGU%3D)
5 minute (NSBtaW51dGU%3D)
Always on (QWx3YXlzIG9u)
Dataset for id=3
1 NQ%3D%3D
2 Mg%3D%3D
3 Mw3D%3D
4 NA3D%3D
5 MQ%3D%3D
Dataset for id=5 and 6
Doorbell (RG9vcmJlbGw%3D)
Fur Elise (RnVyIEVsaXNl)
Doorbell Extended (RG9vcmJlbGwgRXh0ZW5kZWQ%3D)
Alert (QWxlcnQ%3D)
William Tell (V2lsbGlhbSBUZWxs)
Ronda Alla Turca (Um9uZGEgQWxsYSBUdXJjYQ%3D%3D)
Police Siren (UG9saWNlIFNpcmVu)
Evacuation (RXZhY3VhdGlvbg%3D%3D)
Beep Beep (QmVlcCBCZWVw)
Beep (QmVlcA%3d%3D)
Dataset for id=7
Alarm music (QWxhcm0gbXVzaWM%3D)
Door bell music (RG9vciBiZWxsIG11c2lj)
Dataset for id=8 and 9
Enable (RW5hYmxl)
Disable (RGlzYWJsZQ%3D%3)
Perhaps i can help a little bit?
Finally, i think i make a function in global_data when calling it , it sets the zwave with the given parameters and after responce OK it activates the given switch_id (the id of the siren)
The siren has two functions: doorbell and alarm which you have to select (nr 7) before activation....
So there are two sets of settings for those two functions.
7 defines alarm or doorbell
Alarm uses: 1,2,5,8
Doorbell uses: 3,4,6,9
Datavalues, use by id, and codes are:
dataset for id=1 or id=4
High (SGlnaA%3D%3D)
Low (, TG93)
Middle (TWlkZGxl)
Dataset for id=2
Off (T2Zm)
30 second (MzAgc2Vjb25k)
1 minute(MSBtaW51dGU%3D)
5 minute (NSBtaW51dGU%3D)
Always on (QWx3YXlzIG9u)
Dataset for id=3
1 NQ%3D%3D
2 Mg%3D%3D
3 Mw3D%3D
4 NA3D%3D
5 MQ%3D%3D
Dataset for id=5 and 6
Doorbell (RG9vcmJlbGw%3D)
Fur Elise (RnVyIEVsaXNl)
Doorbell Extended (RG9vcmJlbGwgRXh0ZW5kZWQ%3D)
Alert (QWxlcnQ%3D)
William Tell (V2lsbGlhbSBUZWxs)
Ronda Alla Turca (Um9uZGEgQWxsYSBUdXJjYQ%3D%3D)
Police Siren (UG9saWNlIFNpcmVu)
Evacuation (RXZhY3VhdGlvbg%3D%3D)
Beep Beep (QmVlcCBCZWVw)
Beep (QmVlcA%3d%3D)
Dataset for id=7
Alarm music (QWxhcm0gbXVzaWM%3D)
Door bell music (RG9vciBiZWxsIG11c2lj)
Dataset for id=8 and 9
Enable (RW5hYmxl)
Disable (RGlzYWJsZQ%3D%3)
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
-
pvklink
- Posts: 822
- Joined: Wednesday 12 November 2014 15:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest b
- Contact:
Re: zwave properties and dzvents
Tried a first concept with one parameter (based on what i learned from you the last couple of months
Only thing i dont know is how to use a default value in a function
- when a call for example zet_zwave_alarm(alarm_type,) and when there is a second value needed in the function and is NOT specifiek in the function call...is it possible to use a default value instead ?, some thing like
local zwaveURL = zwaveURL_start .. zwaveURL_begin .. second_types[second_type] OR second_types['default_value'] .. zwaveURL_end
Only thing i dont know is how to use a default value in a function
- when a call for example zet_zwave_alarm(alarm_type,) and when there is a second value needed in the function and is NOT specifiek in the function call...is it possible to use a default value instead ?, some thing like
local zwaveURL = zwaveURL_start .. zwaveURL_begin .. second_types[second_type] OR second_types['default_value'] .. zwaveURL_end
Code: Select all
local scriptVar = 'zwaveresponce'
-- test is alarm siren
-- test2 is doorbell ring
-- url's afvangen met f12 network in zwave panel door beide settings alarm en doorbell af te vangen en te knippen en plakken
-- https://www.base64encode.org/ (encode/decode base = moet %3D zijn
return
{
on = {devices = {'test','test2'}},
httpResponses = {scriptVar},
logging = {level = domoticz.LOG_DEBUG},
execute = function(dz, item)
_G.logMarker = _G.moduleLabel
local function zet_zwave_alarm(alarm_type)
local zwaveURL_start = 'http://192.168.20.35:82/json.htm?type=command¶m=applyzwavenodeconfig&idx=11&valuelist='
local zwaveURL_begin = '3_MQ%3D%3D_1_SGlnaA%3D%3D_2_MSBtaW51dGU%3D_4_SGlnaA%3D%3D_5_UG9saWNlIFNpcmVu_6_UG9saWNlIFNpcmVu_7_'
local zwaveURL_end = '_8_RGlzYWJsZQ%3D%3D_9_RGlzYWJsZQ%3D%3D_'
local alarm_types = { alarm = 'QWxhcm0gbXVzaWM%3D', doorbell = 'RG9vciBiZWxsIG11c2lj',}
local zwaveURL = zwaveURL_start .. zwaveURL_begin .. alarm_types[alarm_type] .. zwaveURL_end -- only nr 7 is changed, rest is for so far hard coded
dz.openURL({url = zwaveURL, callback = scriptVar})
end
if item.isDevice then
if item.name == 'test' then
zet_zwave_alarm('alarm')
else
zet_zwave_alarm('doorbell')
end
elseif item.isHTTPResponse and item.ok then -- do i need item.ok ???
if not(item.isJSON) then item.json = dz.utils.fromJSON(item.data) end
rt = item.json
if rt.status == 'OK' then
-- hier switch aanzetten en log met data bekijken dit hele script moet een global functie worden
else
dz.log('There was a problem 1 handling the request; response is ' .. item.data, dz.LOG_ERROR)
end
else
dz.log('There was a problem 2 handling the request; response is ' .. item.data, dz.LOG_ERROR)
end
end
}
Raspberry (raspbian on rpi 3) , Domoticz Beta, dzVents , RFXtrx433e, P1, Hue, Yeelight, Zwave+, X10, ESP(easy), MQTT,Weather Underground, System Alive Checker, Domoticz Remote Server to RPI with Google Assistant,
Jablotron connection, Ikea
Jablotron connection, Ikea
Who is online
Users browsing this forum: No registered users and 1 guest