Page 1 of 1

Switch command not send!, Hardware device disabled or not found!

Posted: Monday 13 April 2020 10:32
by Varazir
Hello,

I have a script that I can't get to work with one zigbee lamp bulb device.
Works to manually turn it off and on byt the script output this error:

Code: Select all

Switch command not send!, Hardware device disabled or not found!
Script and logs:

https://gist.github.com/varazir/11b54bd ... c2b1bdd957

Code: Select all

Version: 2020.1 (build 11930)
Build Hash: 423448b7e
Compile Date: 2020-04-10 06:53:38
dzVents Version: 3.0.2
Python Version: 3.7.3 (default, Dec 20 2019, 18:57:59) [GCC 8.3.0]

Uptime: 2 Days, 23 Hours, 37 Minutes, 25 Seconds

Need anymore info let me know

TIA
Daniel

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Monday 13 April 2020 13:32
by waaren
Varazir wrote: Monday 13 April 2020 10:32 I have a script that I can't get to work with one zigbee lamp bulb device.
dz.utils.dumpTable(currentDevice)
Can you insert at line 147 (directly after elseif action == 'toggle' then )

Code: Select all

dz.utils.dumpTable(currentDevice)
dz.utils.dumpTable(attributes)

And tell us what you see in the log ?

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Monday 13 April 2020 14:29
by Varazir
waaren wrote: Monday 13 April 2020 13:32
Varazir wrote: Monday 13 April 2020 10:32 I have a script that I can't get to work with one zigbee lamp bulb device.
dz.utils.dumpTable(currentDevice)
Can you insert at line 147 (directly after elseif action == 'toggle' then )

Code: Select all

dz.utils.dumpTable(currentDevice)
dz.utils.dumpTable(attributes)

And tell us what you see in the log ?
Updated the gist with the dump

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Monday 13 April 2020 15:00
by waaren
Varazir wrote: Monday 13 April 2020 14:29 Updated the gist with the dump
Please post the information here in code windows. Over time the information on external sides will be updated or removed and then the posts on this forum does no longer make sense for other members if they search for solutions for their problems. Thx !

I looked at your dump but it only shows a limited number of lines. If you log to an os file you can grab all.

It looks like dzVents is sending the right command to domoticz but domoticz cannot identify any active hardware for the device. No idea why and can be many things.

You could try to send a switchOff when the state == 'On' and vice vesrsa. Maybe that will help you identifying what is happening.

Other things you can try is switch on debug mode in dzVents and domoticz. For dzVents you can do that inside the GUI. For domoticz wide in /etc/init.d/domoticz,sh

The domoticz logfile location and other settings are defined in /etc/init.d/domoticz.sh
the relevant settings are in set to the DAEMON_ARGS var.

with an editor of choice

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log" # or any other OS file 
DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error, debug" # debug disabled for now 
#DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error" # these loglevels will make it to the logfile
DAEMON_ARGS="$DAEMON_ARGS -debuglevel normal,hardware,received,webserver,eventsystem,python,thread_id"

sudo systemctl daemon-reload
sudo service domoticz stop
sudo service domoticz start
sudo tail -f  /var/log/domoticz.log

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Monday 13 April 2020 15:16
by Varazir
waaren wrote: Monday 13 April 2020 15:00
Varazir wrote: Monday 13 April 2020 14:29 Updated the gist with the dump
Please post the information here in code windows. Over time the information on external sides will be updated or removed and then the posts on this forum does no longer make sense for other members if they search for solutions for their problems. Thx !

I looked at your dump but it only shows a limited number of lines. If you log to an os file you can grab all.

It looks like dzVents is sending the right command to domoticz but domoticz cannot identify any active hardware for the device. No idea why and can be many things.

You could try to send a switchOff when the state == 'On' and vice vesrsa. Maybe that will help you identifying what is happening.

Other things you can try is switch on debug mode in dzVents and domoticz. For dzVents you can do that inside the GUI. For domoticz wide in /etc/init.d/domoticz,sh

The domoticz logfile location and other settings are defined in /etc/init.d/domoticz.sh
the relevant settings are in set to the DAEMON_ARGS var.

with an editor of choice

Code: Select all

DAEMON_ARGS="$DAEMON_ARGS -log /var/log/domoticz.log" # or any other OS file 
DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error, debug" # debug disabled for now 
#DAEMON_ARGS="$DAEMON_ARGS -loglevel  normal,status,error" # these loglevels will make it to the logfile
DAEMON_ARGS="$DAEMON_ARGS -debuglevel normal,hardware,received,webserver,eventsystem,python,thread_id"

sudo systemctl daemon-reload
sudo service domoticz stop
sudo service domoticz start
sudo tail -f  /var/log/domoticz.log
Ya I can add it here just that posta gets so long to edit.

With dzVent debug enable I get this, going to enable debug on domoticz as well.
Spoiler: show

Code: Select all

2020-04-13 15:12:36.244 (RaZberry) General/Voltage (3D printer Voltage)
2020-04-13 15:12:36.511 (RaZberry) Current (3D printer Amp)
2020-04-13 15:12:36.843 (zigbee2mqtt) MQTT message: zigbee2mqtt/0x90fd9ffffee8004b {'battery': 87, 'linkquality': 49, 'update_available': True, 'action': 'toggle'}
2020-04-13 15:12:37.163 (Dummy) Light/Switch (IKEA Remote Groups)
2020-04-13 15:12:37.119 Status: dzVents: > subType: Switch
2020-04-13 15:12:37.119 Status: dzVents: > changed: false
2020-04-13 15:12:37.119 Status: dzVents: > signalLevel: 2
2020-04-13 15:12:37.119 Status: dzVents: > switchTypeValue: 7
2020-04-13 15:12:37.119 Status: dzVents: > unit: 2
2020-04-13 15:12:37.119 Status: dzVents: > reset()
2020-04-13 15:12:37.119 Status: dzVents: > name: IKEA - Taklampa Sovrum
2020-04-13 15:12:37.119 Status: dzVents: > close()
2020-04-13 15:12:37.119 Status: dzVents: > updateMode()
2020-04-13 15:12:37.119 Status: dzVents: > updateRadiation()
2020-04-13 15:12:37.119 Status: dzVents: > updateCounter()
2020-04-13 15:12:37.119 Status: dzVents: > rename()
2020-04-13 15:12:37.119 Status: dzVents: > isHTTPResponse: false
2020-04-13 15:12:37.119 Status: dzVents: > updateVisibility()
2020-04-13 15:12:37.119 Status: dzVents: > idx: 73
2020-04-13 15:12:37.119 Status: dzVents: > signalLevel: 2
2020-04-13 15:12:37.119 Status: dzVents: > deviceId: 0x000d6ffffe44f161_light
2020-04-13 15:12:37.119 Status: dzVents: > timedOut: true
2020-04-13 15:12:37.119 Status: dzVents: > kodiPlayPlaylist()
2020-04-13 15:12:37.119 Status: dzVents: > setValues()
2020-04-13 15:12:37.119 Status: dzVents: > setMode()
2020-04-13 15:12:37.120 Status: dzVents: > quietOn()
2020-04-13 15:12:37.120 Status: dzVents: > updateSoilMoisture()
2020-04-13 15:12:37.120 Status: dzVents: > protectionOff()
2020-04-13 15:12:37.120 Status: dzVents: > updateText()
2020-04-13 15:12:37.120 Status: dzVents: > setKelvin()
2020-04-13 15:12:37.120 Status: dzVents: > updateYouless()
2020-04-13 15:12:37.120 Status: dzVents: > decreaseBrightness()
2020-04-13 15:12:37.120 Status: dzVents: > switchSelector()
2020-04-13 15:12:37.120 Status: dzVents: > setColor()
2020-04-13 15:12:37.120 Status: dzVents: > deviceType: Light/Switch
2020-04-13 15:12:37.120 Status: dzVents: > kodiExecuteAddOn()
2020-04-13 15:12:37.120 Status: dzVents: > setHue()
2020-04-13 15:12:37.120 Status: dzVents: > setLevel()
2020-04-13 15:12:37.120 Status: dzVents: > dimTo()
2020-04-13 15:12:37.120 Status: dzVents: > hardwareName: zigbee2mqtt
2020-04-13 15:12:37.120 Status: dzVents: > updateCustomSensor()
2020-04-13 15:12:37.120 Status: dzVents: > open()
2020-04-13 15:12:37.120 Status: dzVents: > setColorBrightness()
2020-04-13 15:12:37.120 Status: dzVents: > switchOn()
2020-04-13 15:12:37.120 Status: dzVents: > isTimer: false
2020-04-13 15:12:37.120 Status: dzVents: > setVolume()
2020-04-13 15:12:37.120 Status: dzVents: > lastLevel: 9
2020-04-13 15:12:37.120 Status: dzVents: > updateWeight()
2020-04-13 15:12:37.121 Status: dzVents: > setNightMode()
2020-04-13 15:12:37.121 Status: dzVents: > armHome()
2020-04-13 15:12:37.121 Status: dzVents: > updatePercentage()
2020-04-13 15:12:37.121 Status: dzVents: > updateWind()
2020-04-13 15:12:37.121 Status: dzVents: > setDiscoMode()
2020-04-13 15:12:37.121 Status: dzVents: > increaseBrightness()
2020-04-13 15:12:37.121 Status: dzVents: > updateDistance()
2020-04-13 15:12:37.121 Status: dzVents: > kodiPause()
2020-04-13 15:12:37.121 Status: dzVents: > kodiPlay()
2020-04-13 15:12:37.121 Status: dzVents: > kodiStop()
2020-04-13 15:12:37.121 Status: dzVents: > setHotWater()
2020-04-13 15:12:37.121 Status: dzVents: > updateTempHumBaro()
2020-04-13 15:12:37.121 Status: dzVents: > updateSetPoint()
2020-04-13 15:12:37.121 Status: dzVents: > updateTempHum()
2020-04-13 15:12:37.121 Status: dzVents: > kodiSwitchOff()
2020-04-13 15:12:37.121 Status: dzVents: > updateTemperature()
2020-04-13 15:12:37.121 Status: dzVents: > updateWaterflow()
2020-04-13 15:12:37.121 Status: dzVents: > id: 73
2020-04-13 15:12:37.121 Status: dzVents: > isDevice: true
2020-04-13 15:12:37.121 Status: dzVents: > levelVal: 9
2020-04-13 15:12:37.121 Status: dzVents: > isGroup: false
2020-04-13 15:12:37.121 Status: dzVents: > startPlaylist()
2020-04-13 15:12:37.121 Status: dzVents: > setIcon()
2020-04-13 15:12:37.122 Status: dzVents: > update()
2020-04-13 15:12:37.122 Status: dzVents: > setRGB()
2020-04-13 15:12:37.122 Status: dzVents: > setWhiteMode()
2020-04-13 15:12:37.122 Status: dzVents: > updatePressure()
2020-04-13 15:12:37.122 Status: dzVents: > isSecurity: false
2020-04-13 15:12:37.122 Status: dzVents: > switchOff()
2020-04-13 15:12:37.122 Status: dzVents: > updateBarometer()
2020-04-13 15:12:37.122 Status: dzVents: > incrementCounter()
2020-04-13 15:12:37.122 Status: dzVents: > switchType: Dimmer
2020-04-13 15:12:37.122 Status: dzVents: > dimmer: true
2020-04-13 15:12:37.122 Status: dzVents: > idx: 73
2020-04-13 15:12:37.122 Status: dzVents: > toggle: true
2020-04-13 15:12:37.122 Status: dzVents: > blink: true
2020-04-13 15:12:37.122 Status: dzVents: Debug: IKEARemote: Constructed timed-command: On
2020-04-13 15:12:37.122 Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-13 15:12:37.124 Status: dzVents: Info: IKEARemote: ------ Finished IKEARemote
2020-04-13 15:12:37.124 Status: dzVents: Debug: Commands sent to Domoticz:
2020-04-13 15:12:37.124 Status: dzVents: Debug: - IKEA Remote Groups = Set Level 10 NOTRIGGER
2020-04-13 15:12:37.124 Status: dzVents: Debug: - IKEA - Taklampa Sovrum = On
2020-04-13 15:12:37.124 Status: dzVents: Debug: =====================================================
2020-04-13 15:12:37.127 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-04-13 15:12:37.174 Error: Switch command not send!, Hardware device disabled or not found!
Domotiz can turn it off and on with no problem.
And it's only that device as well.

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Monday 13 April 2020 15:49
by Varazir
New Dump

Code: Select all

2020-04-13 15:45:28.764  Status: dzVents: Debug: Dumping domoticz data to /home/pi/domoticz/scripts/dzVents/domoticzData.lua
2020-04-13 15:45:28.848  Status: dzVents: Debug: Processing device-adapter for IKEA Remote: Switch device adapter
2020-04-13 15:45:28.849  Status: dzVents: Debug: dzVents version: 3.0.2
2020-04-13 15:45:28.849  Status: dzVents: Debug: Event triggers:
2020-04-13 15:45:28.850  Status: dzVents: Debug: - Device: IKEA Remote
2020-04-13 15:45:28.898  Status: dzVents: Info: Handling events for: "IKEA Remote", value: "On"
2020-04-13 15:45:28.898  Status: dzVents: Info: IKEARemote: ------ Start internal script: IKEARemote: Device: "IKEA Remote (zigbee2mqtt)", Index: 77
2020-04-13 15:45:28.901  Status: dzVents: Debug: IKEARemote: Processing device-adapter for RemoteDummyDimmer: Switch device adapter
2020-04-13 15:45:28.902  Status: dzVents: Debug: IKEARemote: 10 Current group number........1
2020-04-13 15:45:28.902  Status: dzVents: Debug: IKEARemote: 11 Current selected group is...group1
2020-04-13 15:45:28.903  Status: dzVents: Debug: IKEARemote: 12 Selected Control Group is a.table
2020-04-13 15:45:28.903  Status: dzVents: Debug: IKEARemote: 13 Selected switchSelectorGroupNumber 10
2020-04-13 15:45:28.905  Status: dzVents: Debug: IKEARemote: Processing device-adapter for IKEA Remote Groups: Switch device adapter
2020-04-13 15:45:28.906  Status: dzVents: Debug: IKEARemote: Constructed timed-command: Set Level 10
2020-04-13 15:45:28.906  Status: dzVents: Debug: IKEARemote: Constructed timed-command: Set Level 10 NOTRIGGER
2020-04-13 15:45:28.907  Status: dzVents: Debug: IKEARemote: 20 Current device is.........IKEAlamp
2020-04-13 15:45:28.907  Status: dzVents: Debug: IKEARemote: 21 Attribute type is.........table
2020-04-13 15:45:28.907  Status: dzVents: Debug: IKEARemote: 22 IDX is....................73
2020-04-13 15:45:28.910  Status: dzVents: Debug: IKEARemote: Processing device-adapter for IKEA - Taklampa Sovrum: Switch device adapter
2020-04-13 15:45:28.910  Status: dzVents: Debug: IKEARemote: 25 Current Device is device......IKEA - Taklampa Sovrum
2020-04-13 15:45:28.911  Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-13 15:45:28.911  Status: dzVents: Debug: IKEARemote: 31 Current acction is......toggle
2020-04-13 15:45:28.911  Status: dzVents: > cancelQueuedCommands()
2020-04-13 15:45:28.911  Status: dzVents: > updateRadiation()
2020-04-13 15:45:28.911  Status: dzVents: > _state: Off
2020-04-13 15:45:28.912  Status: dzVents: > setValues()
2020-04-13 15:45:28.912  Status: dzVents: > levelVal: 9
2020-04-13 15:45:28.912  Status: dzVents: > updateVisibility()
2020-04-13 15:45:28.912  Status: dzVents: > baseType: device
2020-04-13 15:45:28.912  Status: dzVents: > description: Controlicz: Taklampa Sovrum
2020-04-13 15:45:28.913  Status: dzVents: > setVolume()
2020-04-13 15:45:28.913  Status: dzVents: > lastUpdate:
2020-04-13 15:45:28.913  Status: dzVents: >     ruleIsAfterCivilTwilightStart()
2020-04-13 15:45:28.913  Status: dzVents: >     hour: 10
2020-04-13 15:45:28.914  Status: dzVents: >     addHours()
2020-04-13 15:45:28.914  Status: dzVents: >     year: 2020
2020-04-13 15:45:28.914  Status: dzVents: >     ruleMatchesMinuteSpecification()
2020-04-13 15:45:28.914  Status: dzVents: >     milliseconds: 0
2020-04-13 15:45:28.914  Status: dzVents: >     dDate: 1586767664
2020-04-13 15:45:28.915  Status: dzVents: >     ruleIsBeforeCivilTwilightStart()
2020-04-13 15:45:28.915  Status: dzVents: >     ruleIsBeforeCivilTwilightStart()
2020-04-13 15:45:28.915  Status: dzVents: >     ruleIsAtCivilTwilightEnd()
2020-04-13 15:45:28.915  Status: dzVents: >     secondsAgo: 17864
2020-04-13 15:45:28.915  Status: dzVents: >     ruleIsAtNight()
2020-04-13 15:45:28.915  Status: dzVents: >     hoursAgo: 4
2020-04-13 15:45:28.916  Status: dzVents: >     ruleIsAfterSunrise()
2020-04-13 15:45:28.916  Status: dzVents: >     secondsSinceMidnight: 38864
2020-04-13 15:45:28.916  Status: dzVents: >     daysAgo: 0
2020-04-13 15:45:28.916  Status: dzVents: >     rawDate: 2020-04-13
2020-04-13 15:45:28.916  Status: dzVents: >     ruleMatchesBetweenRange()
2020-04-13 15:45:28.917  Status: dzVents: >     min: 47
2020-04-13 15:45:28.917  Status: dzVents: >     msAgo: 17864678
2020-04-13 15:45:28.917  Status: dzVents: >     isdst: true
2020-04-13 15:45:28.917  Status: dzVents: >     addDays()
2020-04-13 15:45:28.917  Status: dzVents: >     dayName: Monday
2020-04-13 15:45:28.918  Status: dzVents: >     matchesRule()
2020-04-13 15:45:28.918  Status: dzVents: >     millisecondsAgo: 17864678
2020-04-13 15:45:28.918  Status: dzVents: >     minutes: 47
2020-04-13 15:45:28.918  Status: dzVents: >     getISO()
2020-04-13 15:45:28.918  Status: dzVents: >     rawDateTime: 2020-04-13 10:47:44
2020-04-13 15:45:28.919  Status: dzVents: >     day: 13
2020-04-13 15:45:28.919  Status: dzVents: >     utils:
2020-04-13 15:45:28.919  Status: dzVents: >             leftPad()
2020-04-13 15:45:28.919  Status: dzVents: >             toBase64()
2020-04-13 15:45:28.919  Status: dzVents: >             fromJSON()
2020-04-13 15:45:28.920  Status: dzVents: >             cameraExists()
2020-04-13 15:45:28.920  Status: dzVents: >             rightPad()
2020-04-13 15:45:28.920  Status: dzVents: >             osExecute()
2020-04-13 15:45:28.920  Status: dzVents: >             groupExists()
2020-04-13 15:45:28.920  Status: dzVents: >             urlDecode()
2020-04-13 15:45:28.920  Status: dzVents: >             variableExists()
2020-04-13 15:45:28.921  Status: dzVents: >             LOG_MODULE_EXEC_INFO: 2
2020-04-13 15:45:28.921  Status: dzVents: >             log()
2020-04-13 15:45:28.921  Status: dzVents: >             leadingZeros()
2020-04-13 15:45:28.921  Status: dzVents: >             LOG_ERROR: 1
2020-04-13 15:45:28.921  Status: dzVents: >             numDecimals()
2020-04-13 15:45:28.922  Status: dzVents: >             fileExists()
2020-04-13 15:45:28.922  Status: dzVents: >             urlEncode()
2020-04-13 15:45:28.922  Status: dzVents: >             dumpTable()
2020-04-13 15:45:28.922  Status: dzVents: >             deviceExists()
2020-04-13 15:45:28.922  Status: dzVents: >             setLogMarker()
2020-04-13 15:45:28.923  Status: dzVents: >             centerPad()
2020-04-13 15:45:28.923  Status: dzVents: >             inTable()
2020-04-13 15:45:28.923  Status: dzVents: >             LOG_INFO: 3
2020-04-13 15:45:28.923  Status: dzVents: >             stringToSeconds()
2020-04-13 15:45:28.924  Status: dzVents: >             sceneExists()
2020-04-13 15:45:28.924  Status: dzVents: >             fromBase64()
2020-04-13 15:45:28.924  Status: dzVents: >             stringSplit()
2020-04-13 15:45:28.924  Status: dzVents: >             hsbToRGB()
2020-04-13 15:45:28.925  Status: dzVents: >             toXML()
2020-04-13 15:45:28.925  Status: dzVents: >             print()
2020-04-13 15:45:28.925  Status: dzVents: >             LOG_FORCE: 0.5
2020-04-13 15:45:28.925  Status: dzVents: >             DZVERSION: 3.0.2
2020-04-13 15:45:28.925  Status: dzVents: >             LOG_DEBUG: 4
2020-04-13 15:45:28.926  Status: dzVents: >             toJSON()
2020-04-13 15:45:28.926  Status: dzVents: >             toCelsius()
2020-04-13 15:45:28.926  Status: dzVents: >             rgbToHSB()
2020-04-13 15:45:28.926  Status: dzVents: >             round()
2020-04-13 15:45:28.926  Status: dzVents: >             fromXML()
2020-04-13 15:45:28.927  Status: dzVents: >     ruleIsBeforeSunset()
2020-04-13 15:45:28.927  Status: dzVents: >     isUTC: false
2020-04-13 15:45:28.927  Status: dzVents: >     ruleIsAtDayTime()
2020-04-13 15:45:28.927  Status: dzVents: >     minutesAgo: 297
2020-04-13 15:45:28.927  Status: dzVents: >     minutesSinceMidnight: 647
2020-04-13 15:45:28.928  Status: dzVents: >     addSeconds()
2020-04-13 15:45:28.928  Status: dzVents: >     month: 4
2020-04-13 15:45:28.928  Status: dzVents: >     ruleIsOnDate()
2020-04-13 15:45:28.928  Status: dzVents: >     ruleIsAtCivilNightTime()
2020-04-13 15:45:28.928  Status: dzVents: >     seconds: 44
2020-04-13 15:45:28.929  Status: dzVents: >     makeTime()
2020-04-13 15:45:28.929  Status: dzVents: >     ruleMatchesTimeRange()
2020-04-13 15:45:28.929  Status: dzVents: >     ruleMatchesTime()
2020-04-13 15:45:28.929  Status: dzVents: >     milliSeconds: 0
2020-04-13 15:45:28.929  Status: dzVents: >     raw: 2020-04-13 10:47:44
2020-04-13 15:45:28.930  Status: dzVents: >     ruleMatchesHourSpecification()
2020-04-13 15:45:28.930  Status: dzVents: >     dayAbbrOfWeek: mon
2020-04-13 15:45:28.930  Status: dzVents: >     ruleIsAfterSunset()
2020-04-13 15:45:28.930  Status: dzVents: >     ruleIsAtCivilTwilightStart()
2020-04-13 15:45:28.930  Status: dzVents: >     ruleIsBeforeSunrise()
2020-04-13 15:45:28.931  Status: dzVents: >     week: 16
2020-04-13 15:45:28.931  Status: dzVents: >     compare()
2020-04-13 15:45:28.931  Status: dzVents: >     time: 10:47
2020-04-13 15:45:28.931  Status: dzVents: >     ruleIsInWeek()
2020-04-13 15:45:28.931  Status: dzVents: >     isToday: true
2020-04-13 15:45:28.931  Status: dzVents: >     monthAbbrName: apr
2020-04-13 15:45:28.932  Status: dzVents: >     current:
2020-04-13 15:45:28.932  Status: dzVents: >             min: 45
2020-04-13 15:45:28.932  Status: dzVents: >             hour: 15
2020-04-13 15:45:28.932  Status: dzVents: >             sec: 28
2020-04-13 15:45:28.932  Status: dzVents: >             year: 2020
2020-04-13 15:45:28.933  Status: dzVents: >             yday: 104
2020-04-13 15:45:28.933  Status: dzVents: >             day: 13
2020-04-13 15:45:28.933  Status: dzVents: >             wday: 2
2020-04-13 15:45:28.933  Status: dzVents: >             month: 4
2020-04-13 15:45:28.933  Status: dzVents: >             isdst: true
2020-04-13 15:45:28.934  Status: dzVents: >     yday: 104
2020-04-13 15:45:28.934  Status: dzVents: >     ruleIsAtSunset()
2020-04-13 15:45:28.934  Status: dzVents: >     wday: 2
2020-04-13 15:45:28.934  Status: dzVents: >     addMinutes()
2020-04-13 15:45:28.935  Status: dzVents: >     ruleIsAtCivilDayTime()
2020-04-13 15:45:28.935  Status: dzVents: >     rawTime: 10:47:44
2020-04-13 15:45:28.935  Status: dzVents: >     sec: 44
2020-04-13 15:45:28.935  Status: dzVents: >     monthName: April
2020-04-13 15:45:28.935  Status: dzVents: >     ruleIsAtSunrise()
2020-04-13 15:45:28.935  Status: dzVents: >     ruleIsBeforeCivilTwilightEnd()
2020-04-13 15:45:28.936  Status: dzVents: >     ruleIsOnDay()
2020-04-13 15:45:28.936  Status: dzVents: >     ruleIsAfterCivilTwilightEnd()
2020-04-13 15:45:28.936  Status: dzVents: > isVariable: false
2020-04-13 15:45:28.936  Status: dzVents: > updateTempHum()
2020-04-13 15:45:28.936  Status: dzVents: > startPlaylist()
2020-04-13 15:45:28.937  Status: dzVents: > setDescription()
2020-04-13 15:45:28.937  Status: dzVents: > deviceSubType: Switch
2020-04-13 15:45:28.937  Status: dzVents: > updateVoltage()
2020-04-13 15:45:28.937  Status: dzVents: > sValue: Off
2020-04-13 15:45:28.937  Status: dzVents: > updateCustomSensor()
2020-04-13 15:45:28.938  Status: dzVents: > open()
2020-04-13 15:45:28.938  Status: dzVents: > nValue: 0
2020-04-13 15:45:28.938  Status: dzVents: > bState: false
2020-04-13 15:45:28.938  Status: dzVents: > changed: false
2020-04-13 15:45:28.938  Status: dzVents: > dump()
2020-04-13 15:45:28.939  Status: dzVents: > playFavorites()
2020-04-13 15:45:28.939  Status: dzVents: > isGroup: false
2020-04-13 15:45:28.939  Status: dzVents: > onkyoEISCPCommand()
2020-04-13 15:45:28.939  Status: dzVents: > disarm()
2020-04-13 15:45:28.939  Status: dzVents: > updateTempBaro()
2020-04-13 15:45:28.939  Status: dzVents: > volumeDown()
2020-04-13 15:45:28.940  Status: dzVents: > updateGas()
2020-04-13 15:45:28.940  Status: dzVents: > hardwareId: 8
2020-04-13 15:45:28.940  Status: dzVents: > switchTypeValue: 7
2020-04-13 15:45:28.940  Status: dzVents: > hardwareName: zigbee2mqtt
2020-04-13 15:45:28.940  Status: dzVents: > switchSelector()
2020-04-13 15:45:28.941  Status: dzVents: > updateTemperature()
2020-04-13 15:45:28.941  Status: dzVents: > quietOn()
2020-04-13 15:45:28.941  Status: dzVents: > updateWetness()
2020-04-13 15:45:28.941  Status: dzVents: > setState()
2020-04-13 15:45:28.941  Status: dzVents: > setNightMode()
2020-04-13 15:45:28.941  Status: dzVents: > switchOn()
2020-04-13 15:45:28.942  Status: dzVents: > updateWind()
2020-04-13 15:45:28.942  Status: dzVents: > toggleSwitch()
2020-04-13 15:45:28.942  Status: dzVents: > updateElectricity()
2020-04-13 15:45:28.942  Status: dzVents: > pause()
2020-04-13 15:45:28.942  Status: dzVents: > setIcon()
2020-04-13 15:45:28.943  Status: dzVents: > name: IKEA - Taklampa Sovrum
2020-04-13 15:45:28.943  Status: dzVents: > activate()
2020-04-13 15:45:28.943  Status: dzVents: > updateSoilMoisture()
2020-04-13 15:45:28.943  Status: dzVents: > _data:
2020-04-13 15:45:28.943  Status: dzVents: >     switchTypeValue: 7
2020-04-13 15:45:28.944  Status: dzVents: >     id: 73
2020-04-13 15:45:28.944  Status: dzVents: >     name: IKEA - Taklampa Sovrum
2020-04-13 15:45:28.944  Status: dzVents: >     rawData:
2020-04-13 15:45:28.944  Status: dzVents: >             1: 0
2020-04-13 15:45:28.944  Status: dzVents: >     deviceID: 0x000d6ffffe44f161_light
2020-04-13 15:45:28.945  Status: dzVents: >     batteryLevel: 255
2020-04-13 15:45:28.945  Status: dzVents: >     changed: false
2020-04-13 15:45:28.945  Status: dzVents: >     baseType: device
2020-04-13 15:45:28.945  Status: dzVents: >     description: Controlicz: Taklampa Sovrum
2020-04-13 15:45:28.945  Status: dzVents: >     subType: Switch
2020-04-13 15:45:28.946  Status: dzVents: >     lastLevel: 9
2020-04-13 15:45:28.946  Status: dzVents: >     switchType: Dimmer
2020-04-13 15:45:28.946  Status: dzVents: >     lastUpdate: 2020-04-13 10:47:44
2020-04-13 15:45:28.946  Status: dzVents: >     protected: false
2020-04-13 15:45:28.946  Status: dzVents: >     data:
2020-04-13 15:45:28.946  Status: dzVents: >             icon: dimmer
2020-04-13 15:45:28.947  Status: dzVents: >             hardwareType: Zigbee2MQTT
2020-04-13 15:45:28.947  Status: dzVents: >             usedByCamera: false
2020-04-13 15:45:28.947  Status: dzVents: >             maxDimLevel: 100
2020-04-13 15:45:28.947  Status: dzVents: >             hardwareTypeValue: 94
2020-04-13 15:45:28.947  Status: dzVents: >             protected: false
2020-04-13 15:45:28.948  Status: dzVents: >             _nValue: 0
2020-04-13 15:45:28.948  Status: dzVents: >             unit: 2
2020-04-13 15:45:28.948  Status: dzVents: >             levelVal: 9
2020-04-13 15:45:28.948  Status: dzVents: >             hardwareName: zigbee2mqtt
2020-04-13 15:45:28.948  Status: dzVents: >             hardwareID: 8
2020-04-13 15:45:28.949  Status: dzVents: >             _state: Off
2020-04-13 15:45:28.949  Status: dzVents: >     deviceType: Light/Switch
2020-04-13 15:45:28.949  Status: dzVents: >     timedOut: true
2020-04-13 15:45:28.949  Status: dzVents: >     signalLevel: 2
2020-04-13 15:45:28.949  Status: dzVents: > updateTempHumBaro()
2020-04-13 15:45:28.949  Status: dzVents: > updateLux()
2020-04-13 15:45:28.950  Status: dzVents: > idx: 73
2020-04-13 15:45:28.950  Status: dzVents: > switchOff()
2020-04-13 15:45:28.950  Status: dzVents: > setRGB()
2020-04-13 15:45:28.950  Status: dzVents: > active: false
2020-04-13 15:45:28.950  Status: dzVents: > setColorBrightness()
2020-04-13 15:45:28.951  Status: dzVents: > unit: 2
2020-04-13 15:45:28.951  Status: dzVents: > updateCounter()
2020-04-13 15:45:28.951  Status: dzVents: > kodiStop()
2020-04-13 15:45:28.951  Status: dzVents: > setColor()
2020-04-13 15:45:28.951  Status: dzVents: > incrementCounter()
2020-04-13 15:45:28.952  Status: dzVents: > protectionOff()
2020-04-13 15:45:28.952  Status: dzVents: > setWhiteMode()
2020-04-13 15:45:28.952  Status: dzVents: > updateAlertSensor()
2020-04-13 15:45:28.952  Status: dzVents: > setKelvin()
2020-04-13 15:45:28.952  Status: dzVents: > id: 73
2020-04-13 15:45:28.952  Status: dzVents: > updateWeight()
2020-04-13 15:45:28.953  Status: dzVents: > hardwareType: Zigbee2MQTT
2020-04-13 15:45:28.953  Status: dzVents: > setHex()
2020-04-13 15:45:28.953  Status: dzVents: > usedByCamera: false
2020-04-13 15:45:28.953  Status: dzVents: > updateRain()
2020-04-13 15:45:28.953  Status: dzVents: > deviceId: 0x000d6ffffe44f161_light
2020-04-13 15:45:28.954  Status: dzVents: > lastLevel: 9
2020-04-13 15:45:28.954  Status: dzVents: > kodiPlayFavorites()
2020-04-13 15:45:28.954  Status: dzVents: > decreaseBrightness()
2020-04-13 15:45:28.954  Status: dzVents: > armHome()
2020-04-13 15:45:28.954  Status: dzVents: > _nValue: 0
2020-04-13 15:45:28.955  Status: dzVents: > updateDistance()
2020-04-13 15:45:28.955  Status: dzVents: > reset()
2020-04-13 15:45:28.955  Status: dzVents: > timedOut: true
2020-04-13 15:45:28.955  Status: dzVents: > updateAirQuality()
2020-04-13 15:45:28.955  Status: dzVents: > kodiPause()
2020-04-13 15:45:28.955  Status: dzVents: > updatePercentage()
2020-04-13 15:45:28.956  Status: dzVents: > update()
2020-04-13 15:45:28.956  Status: dzVents: > isDevice: true
2020-04-13 15:45:28.956  Status: dzVents: > updateSetPoint()
2020-04-13 15:45:28.956  Status: dzVents: > setMode()
2020-04-13 15:45:28.956  Status: dzVents: > updateMode()
2020-04-13 15:45:28.956  Status: dzVents: > setLevel()
2020-04-13 15:45:28.957  Status: dzVents: > level: 0
2020-04-13 15:45:28.957  Status: dzVents: > updateYouless()
2020-04-13 15:45:28.957  Status: dzVents: > increaseBrightness()
2020-04-13 15:45:28.957  Status: dzVents: > close()
2020-04-13 15:45:28.957  Status: dzVents: > dimTo()
2020-04-13 15:45:28.958  Status: dzVents: > isHTTPResponse: false
2020-04-13 15:45:28.958  Status: dzVents: > quietOff()
2020-04-13 15:45:28.958  Status: dzVents: > isScene: false
2020-04-13 15:45:28.958  Status: dzVents: > getColor()
2020-04-13 15:45:28.958  Status: dzVents: > setHue()
2020-04-13 15:45:28.958  Status: dzVents: > _adapters:
2020-04-13 15:45:28.959  Status: dzVents: >     1: Switch device adapter
2020-04-13 15:45:28.959  Status: dzVents: > kodiExecuteAddOn()
2020-04-13 15:45:28.959  Status: dzVents: > icon: dimmer
2020-04-13 15:45:28.959  Status: dzVents: > kodiSetVolume()
2020-04-13 15:45:28.959  Status: dzVents: > kodiSwitchOff()
2020-04-13 15:45:28.960  Status: dzVents: > updateUV()
2020-04-13 15:45:28.960  Status: dzVents: > rename()
2020-04-13 15:45:28.960  Status: dzVents: > rawData:
2020-04-13 15:45:28.960  Status: dzVents: >     1: 0
2020-04-13 15:45:28.960  Status: dzVents: > setHotWater()
2020-04-13 15:45:28.960  Status: dzVents: > updateP1()
2020-04-13 15:45:28.961  Status: dzVents: > hardwareTypeValue: 94
2020-04-13 15:45:28.961  Status: dzVents: > protectionOn()
2020-04-13 15:45:28.961  Status: dzVents: > updateWaterflow()
2020-04-13 15:45:28.961  Status: dzVents: > kodiPlay()
2020-04-13 15:45:28.961  Status: dzVents: > maxDimLevel: 100
2020-04-13 15:45:28.962  Status: dzVents: > isSecurity: false
2020-04-13 15:45:28.962  Status: dzVents: > hardwareID: 8
2020-04-13 15:45:28.962  Status: dzVents: > isTimer: false
2020-04-13 15:45:28.962  Status: dzVents: > updateText()
2020-04-13 15:45:28.962  Status: dzVents: > play()
2020-04-13 15:45:28.962  Status: dzVents: > updateHumidity()
2020-04-13 15:45:28.963  Status: dzVents: > setDiscoMode()
2020-04-13 15:45:28.963  Status: dzVents: > signalLevel: 2
2020-04-13 15:45:28.963  Status: dzVents: > deviceType: Light/Switch
2020-04-13 15:45:28.963  Status: dzVents: > updateSoundLevel()
2020-04-13 15:45:28.964  Status: dzVents: > armAway()
2020-04-13 15:45:28.964  Status: dzVents: > updateBarometer()
2020-04-13 15:45:28.964  Status: dzVents: > protected: false
2020-04-13 15:45:28.964  Status: dzVents: > switchType: Dimmer
2020-04-13 15:45:28.964  Status: dzVents: > state: Off
2020-04-13 15:45:28.965  Status: dzVents: > updatePressure()
2020-04-13 15:45:28.965  Status: dzVents: > volumeUp()
2020-04-13 15:45:28.965  Status: dzVents: > stop()
2020-04-13 15:45:28.965  Status: dzVents: > kodiPlayPlaylist()
2020-04-13 15:45:28.965  Status: dzVents: > toggle: true
2020-04-13 15:45:28.965  Status: dzVents: > dimmer: true
2020-04-13 15:45:28.966  Status: dzVents: > blink: true
2020-04-13 15:45:28.966  Status: dzVents: > idx: 73
2020-04-13 15:45:28.966  Status: dzVents: Debug: IKEARemote: Constructed timed-command: On
2020-04-13 15:45:28.967  Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-13 15:45:28.967  Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-13 15:45:28.967  Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-13 15:45:28.968  Status: dzVents: Info: IKEARemote: ------ Finished IKEARemote
2020-04-13 15:45:28.969  Status: dzVents: Debug: Commands sent to Domoticz:
2020-04-13 15:45:28.969  Status: dzVents: Debug: - IKEA Remote Groups = Set Level 10 NOTRIGGER
2020-04-13 15:45:28.969  Status: dzVents: Debug: - IKEA - Taklampa Sovrum = On
2020-04-13 15:45:28.970  Status: dzVents: Debug: =====================================================
2020-04-13 15:45:28.972  Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-04-13 15:45:29.018  (Dummy) Light/Switch (IKEA Remote Groups)
2020-04-13 15:45:29.030  Error: Switch command not send!, Hardware device disabled or not found!

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Monday 13 April 2020 16:01
by waaren
And are the commands send by dzVents to domoticz as expected ?

Code: Select all

20-04-13 15:45:28.969  Status: dzVents: Debug: Commands sent to Domoticz:
2020-04-13 15:45:28.969  Status: dzVents: Debug: - IKEA Remote Groups = Set Level 10 NOTRIGGER
2020-04-13 15:45:28.969  Status: dzVents: Debug: - IKEA - Taklampa Sovrum = On

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Monday 13 April 2020 17:08
by Varazir
waaren wrote: Monday 13 April 2020 16:01 And are the commands send by dzVents to domoticz as expected ?

Code: Select all

20-04-13 15:45:28.969  Status: dzVents: Debug: Commands sent to Domoticz:
2020-04-13 15:45:28.969  Status: dzVents: Debug: - IKEA Remote Groups = Set Level 10 NOTRIGGER
2020-04-13 15:45:28.969  Status: dzVents: Debug: - IKEA - Taklampa Sovrum = On
Well I hade another device called the same name. if it's using the name I guess it could go wrong somewhere.

If I select IDx 115 it works fine

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Tuesday 14 April 2020 22:03
by Varazir
Anyone have a idea ?

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Tuesday 14 April 2020 22:18
by waaren
Varazir wrote: Tuesday 14 April 2020 22:03 Anyone have a idea ?
My suggestion is to try this with another dimmer device. There are quite a number of posts on the forum about zigbee2mqtt connected devices are not reacting to some commands as you might expect and if it works with another device you could contact the developer / maintainer of zigbee2mqtt plugin to see if it can be solved.

Re: Switch command not send!, Hardware device disabled or not found!

Posted: Tuesday 14 April 2020 22:37
by Varazir
waaren wrote: Tuesday 14 April 2020 22:18
Varazir wrote: Tuesday 14 April 2020 22:03 Anyone have a idea ?
My suggestion is to try this with another dimmer device. There are quite a number of posts on the forum about zigbee2mqtt connected devices are not reacting to some commands as you might expect and if it works with another device you could contact the developer / maintainer of zigbee2mqtt plugin to see if it can be solved.
This is another zigbee device

Code: Select all

2020-04-14 22:34:18.995 (zigbee2mqtt) MQTT message: zigbee2mqtt/0x90fd9ffffee8004b {'battery': 87, 'linkquality': 57, 'update_available': True, 'action': 'arrow_left_click'}
2020-04-14 22:34:19.220 Notification sent (browser) => Success
2020-04-14 22:34:19.220 Kodi Notification (elite.varazir.wtf:9777, TTL 5): Aktuell grupp, Taklampa Datorrum, Icon /home/pi/domoticz/www/images/logo.png
2020-04-14 22:34:19.221 (zigbee2mqtt) MqttClient::ping
2020-04-14 22:34:19.221 (zigbee2mqtt) onCommand: Off, level (0) Color:
2020-04-14 22:34:19.222 (zigbee2mqtt) Command "Off (0)" from device "IKEA Remote Left"
2020-04-14 22:34:19.240 (Dummy) Light/Switch (IKEA Remote Groups)
2020-04-14 22:34:19.299 (zigbee2mqtt) onCommand: On, level (29) Color:
2020-04-14 22:34:19.300 (zigbee2mqtt) MqttClient::publish zigbee2mqtt/0x90fd9ffffe1ef606/set ({"state": "ON"})
2020-04-14 22:34:19.451 Notification sent (kodi) => Success
2020-04-14 22:34:19.702 (zigbee2mqtt) onCommand: Off, level (0) Color:
2020-04-14 22:34:19.703 (zigbee2mqtt) MqttClient::publish zigbee2mqtt/0x90fd9ffffe1ef606/set ({"state": "OFF"})
2020-04-14 22:34:19.705 (zigbee2mqtt) MQTT message: zigbee2mqtt/0x90fd9ffffe1ef606 {'update_available': False, 'state': 'ON', 'brightness': 76}
2020-04-14 22:34:19.857 (zigbee2mqtt) MQTT message: zigbee2mqtt/0x90fd9ffffe1ef606 {'update_available': False, 'state': 'OFF', 'brightness': 76}
2020-04-14 22:34:19.175 Status: dzVents: Info: IKEARemote: ------ Start internal script: IKEARemote: Device: "IKEA Remote Left (zigbee2mqtt)", Index: 78
2020-04-14 22:34:19.178 Status: dzVents: Debug: IKEARemote: Processing device-adapter for RemoteDummyDimmer: Switch device adapter
2020-04-14 22:34:19.178 Status: dzVents: Debug: IKEARemote: Constructed timed-command: Off
2020-04-14 22:34:19.178 Status: dzVents: Debug: IKEARemote: Constructed timed-command: Off NOTRIGGER
2020-04-14 22:34:19.179 Status: dzVents: Debug: IKEARemote: 10 Current group number........4
2020-04-14 22:34:19.179 Status: dzVents: Debug: IKEARemote: 11 Current selected group is...group4
2020-04-14 22:34:19.179 Status: dzVents: Debug: IKEARemote: 12 Selected Control Group is a.table
2020-04-14 22:34:19.179 Status: dzVents: Debug: IKEARemote: 13 Selected switchSelectorGroupNumber 40
2020-04-14 22:34:19.181 Status: dzVents: Debug: IKEARemote: Processing device-adapter for IKEA Remote Groups: Switch device adapter
2020-04-14 22:34:19.181 Status: dzVents: Debug: IKEARemote: Constructed timed-command: Set Level 40
2020-04-14 22:34:19.181 Status: dzVents: Debug: IKEARemote: Constructed timed-command: Set Level 40 NOTRIGGER
2020-04-14 22:34:19.181 Status: dzVents: Debug: IKEARemote: 20 Current device is.........IKEAlamp
2020-04-14 22:34:19.181 Status: dzVents: Debug: IKEARemote: 21 Attribute type is.........table
2020-04-14 22:34:19.181 Status: dzVents: Debug: IKEARemote: 22 IDX is....................115
2020-04-14 22:34:19.183 Status: dzVents: Debug: IKEARemote: Processing device-adapter for IKEA - Taklampa Datorrum: Switch device adapter
2020-04-14 22:34:19.183 Status: dzVents: Debug: IKEARemote: 25 Current Device is device......IKEA - Taklampa Datorrum
2020-04-14 22:34:19.183 Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-14 22:34:19.184 Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-14 22:34:19.184 Status: dzVents: Debug: IKEARemote: 31 Current acction is......blink
2020-04-14 22:34:19.184 Status: dzVents: Debug: IKEARemote: Device IKEA - Taklampa Datorrum will blink
2020-04-14 22:34:19.184 Status: dzVents: Debug: IKEARemote: Constructed timed-command: On
2020-04-14 22:34:19.184 Status: dzVents: Debug: IKEARemote: Constructed timed-command: Off
2020-04-14 22:34:19.184 Status: dzVents: Debug: IKEARemote: Constructed timed-command: Off AFTER 0.5 SECONDS
2020-04-14 22:34:19.184 Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-14 22:34:19.184 Status: dzVents: Debug: IKEARemote: 30 Current attribute is......IKEAlamp
2020-04-14 22:34:19.186 Status: dzVents: Info: IKEARemote: ------ Finished IKEARemote
2020-04-14 22:34:19.190 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2020-04-14 22:34:19.218 Status: Notification: Aktuell grupp
2020-04-14 22:34:20.185 Notification sent (http) => Success
And this is when I use the web GUI to switch off the device the script can't control

Code: Select all

2020-04-14 22:38:05.819 (zigbee2mqtt) onCommand: Off, level (9) Color:
2020-04-14 22:38:05.820 (zigbee2mqtt) MqttClient::publish zigbee2mqtt/0x000d6ffffe44f161/set ({"state": "OFF"})
2020-04-14 22:38:05.795 Status: User: zedde initiated a switch command (73/IKEA - Taklampa Sovrum/Off)
2020-04-14 22:38:06.327 (zigbee2mqtt) MQTT message: zigbee2mqtt/0x000d6ffffe44f161 {'state': 'OFF', 'linkquality': 55, 'brightness': 25, 'update_available': False}

Re: Switch command not send!, Hardware device disabled or not found!  [Solved]

Posted: Tuesday 21 April 2020 18:16
by Varazir
I swapped the bulb with a another that I don't use that often