Eldat Easywave RXR09 Script
Moderator: leecollings
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
My mistake you also need to put the ip on the line
python /home/aisenhuth/project/python_programs/rx09.py /dev/ttyUSB0 5331 127.0.0.1
regards
python /home/aisenhuth/project/python_programs/rx09.py /dev/ttyUSB0 5331 127.0.0.1
regards
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
My old Raspberry 2 hangs up every day. To be on the safe side, I reinstalled a Raspberry today, but I still can't get the plugin to work. I have the 64 switches (I use as roller shutters) with the latest Raspian OS and Raspberry 4. When I click a switch, the following message appears.
2024-11-11 16:03:06.930 Status: Domoticz V2024.7 (c)2012-2024 GizMoCuz
2024-11-11 16:03:06.930 Status: Build Hash: b317cfab1, Date: 2024-07-13 16:59:31
2024-11-11 16:03:06.930 Status: Startup Path: /home/aeisenhuth/domoticz/
2024-11-11 16:03:07.208 Status: PluginSystem: Started, Python version '3.11.2', 2 plugin definitions loaded.
2024-11-11 16:03:07.223 Status: WebServer(HTTP) started on address: :: with port 8088
2024-11-11 16:03:07.278 Status: WebServer(SSL) started on address: :: with port 4438
2024-11-11 16:03:07.281 Status: TCPServer: shared server started...
2024-11-11 16:03:07.281 Status: RxQueue: queue worker started...
2024-11-11 16:03:09.282 Status: Eldat_Easywave: Started.
2024-11-11 16:03:09.282 Status: Eldat_Easywave: Entering work loop.
2024-11-11 16:03:09.282 Status: NotificationSystem: thread started...
2024-11-11 16:03:09.284 Status: EventSystem: reset all events...
2024-11-11 16:03:09.286 Status: EventSystem: reset all device statuses...
2024-11-11 16:03:09.350 Status: Python EventSystem: Initializing event module.
2024-11-11 16:03:09.351 Status: EventSystem: Started
2024-11-11 16:03:09.351 Status: EventSystem: Queue thread started...
2024-11-11 16:03:09.416 Status: Eldat_Easywave: Initialized version 0.4.0, author 'WimR'
2024-11-11 16:03:09.553 Status: PluginSystem: 1 plugins started.
2024-11-11 16:03:29.019 Eldat_Easywave: Pushing 'onHeartbeatCallback' on to queue
2024-11-11 16:03:29.069 Eldat_Easywave: Processing 'onHeartbeatCallback' message
2024-11-11 16:03:29.069 Eldat_Easywave: Acquiring GIL for 'onHeartbeatCallback'
2024-11-11 16:06:11.120 Eldat_Easywave: onMessage called using socket params: 127.0.0.1 5331
2024-11-11 16:06:11.120 Error: Eldat_Easywave: Call to function 'onCommand' failed, exception details:
2024-11-11 16:06:11.196 Error: Eldat_Easywave: Traceback (most recent call last):
2024-11-11 16:06:11.196 Error: Eldat_Easywave: File "/home/aeisenhuth/domoticz/plugins/Eldat_Easywave/plugin.py", line 114, in onCommand
2024-11-11 16:06:11.196 Error: Eldat_Easywave: sock.connect(server_address)
2024-11-11 16:06:11.196 Error: Eldat_Easywave: ConnectionRefusedError: [Errno 111] Connection refused
2024-11-11 16:06:11.196 Eldat_Easywave: Local context:
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Devices' '{1: <Domoticz.Device object at 0x7fa071c3f0>, 2: <Domoticz.Device object at 0x7fa0658990>, 3: <Domoticz.Device object at 0x7fa0658a30>, 4: <Domoticz.Device object at 0x7fa0658ad0>, 5: <Domoticz.Device object at 0x7fa0658b70>, 6: <Domoticz.Device object at 0x7fa0658c10>, 7: <Domoticz.Device object at 0x7fa0784030>, 8: <Domoticz.Device object at 0x7fa0658cb0>, 9: <Domoticz.Device object at 0x7fa0658d50>, 10: <Domoticz.Device object at 0x7fa0658df0>, 11: <Domoticz.Device object at 0x7fa0658e90>, 12: <Domoticz.Device object at 0x7fa0658f30>, 13: <Domoticz.Device object at 0x7fa0658fd0>, 14: <Domoticz.Device object at 0x7fa0659070>, 15: <Domoticz.Device object at 0x7fa0659110>, 16: <Domoticz.Device object at 0x7fa06591b0>, 17: <Domoticz.Device object at 0x7fa0659250>, 18: <Domoticz.Device object at 0x7fa06592f0>, 19: <Domoticz.Device object at 0x7fa0659390>, 20: <Domoticz.Device object at 0x7fa0659430>, 21: <Domoticz.Device object at 0x7fa06594d0>, 22: <Domoticz.Device object at 0x7fa0659570>, 23: <Domoticz.Device object at 0x7fa0659610>, 24: <Domoticz.Device object at 0x7fa06596b0>, 25: <Domoticz.Device object at 0x7fa0659750>, 26: <Domoticz.Device object at 0x7fa06597f0>, 27: <Domoticz.Device object at 0x7fa0659890>, 28: <Domoticz.Device object at 0x7fa0659930>, 29: <Domoticz.Device object at 0x7fa06599d0>, 30: <Domoticz.Device object at 0x7fa0659a70>, 31: <Domoticz.Device object at 0x7fa0659b10>, 32: <Domoticz.Device object at 0x7fa0659bb0>, 33: <Domoticz.Device object at 0x7fa0659c50>, 34: <Domoticz.Device object at 0x7fa0659cf0>, 35: <Domoticz.Device object at 0x7fa0659d90>, 36: <Domoticz.Device object at 0x7fa0659e30>, 37: <Domoticz.Device object at 0x7fa0659ed0>, 38: <Domoticz.Device object at 0x7fa0659f70>, 39: <Domoticz.Device object at 0x7fa065a010>, 40: <Domoticz.Device object at 0x7fa065a0b0>, 41: <Domoticz.Device object at 0x7fa065a150>, 42: <Domoticz.Device object at 0x7fa065a1f0>, 43: <Domoticz.Device object at 0x7fa065a290>, 44: <Domoticz.Device object at 0x7fa065a330>, 45: <Domoticz.Device object at 0x7fa065a3d0>, 46: <Domoticz.Device object at 0x7fa065a470>, 47: <Domoticz.Device object at 0x7fa065a510>, 48: <Domoticz.Device object at 0x7fa065a5b0>, 49: <Domoticz.Device object at 0x7fa065a650>, 50: <Domoticz.Device object at 0x7fa065a6f0>, 51: <Domoticz.Device object at 0x7fa065a790>, 52: <Domoticz.Device object at 0x7fa065a830>, 53: <Domoticz.Device object at 0x7fa065a8d0>, 54: <Domoticz.Device object at 0x7fa065a970>, 55: <Domoticz.Device object at 0x7fa065aa10>, 56: <Domoticz.Device object at 0x7fa065aab0>, 57: <Domoticz.Device object at 0x7fa065ab50>, 58: <Domoticz.Device object at 0x7fa065abf0>, 59: <Domoticz.Device object at 0x7fa065ac90>, 60: <Domoticz.Device object at 0x7fa065ad30>, 61: <Domoticz.Device object at 0x7fa065add0>, 62: <Domoticz.Device object at 0x7fa065ae70>, 63: <Domoticz.Device object at 0x7fa065af10>, 64: <Domoticz.Device object at 0x7fa065afb0>}'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Domoticz' '<module 'Domoticz' (built-in)>'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Images' '{}'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Parameters' '{'HardwareID': 2, 'HomeFolder': '/home/aeisenhuth/domoticz/plugins/Eldat_Easywave/', 'StartupFolder': '/home/aeisenhuth/domoticz/', 'UserDataFolder': '/home/aeisenhuth/domoticz/', 'WebRoot': '', 'Database': '/home/aeisenhuth/domoticz/domoticz.db', 'Language': 'en', 'Version': '0.4.0', 'Author': 'WimR', 'Name': 'Eldat_Easywave', 'Address': '', 'Port': '0', 'SerialPort': '', 'Username': '', 'Password': '', 'Key': 'Easywave', 'Mode1': '64', 'Mode2': '127.0.0.1', 'Mode3': '5331', 'Mode4': '', 'Mode5': '', 'Mode6': 'Debug', 'DomoticzVersion': '2024.7', 'DomoticzHash': 'b317cfab1', 'DomoticzBuildTime': '2024-07-13 16:59:31'}'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Settings' '{'DB_Version': '169', 'Title': 'Domoticz', 'Unique_ID': '98d50795-3dfc-4995-9e32-547ab9e732f3', 'LightHistoryDays': '30', 'MeterDividerEnergy': '1000', 'MeterDividerGas': '100', 'MeterDividerWater': '100', 'RandomTimerFrame': '15', 'ElectricVoltage': '230', 'CM113DisplayType': '0', '5MinuteHistoryDays': '1', 'SensorTimeout': '60', 'SensorTimeoutNotification': '0', 'UseAutoUpdate': '1', 'UseAutoBackup': '0', 'CostEnergy': '2149', 'CostEnergyT2': '2149', 'CostEnergyR1': '800', 'CostEnergyR2': '800', 'CostGas': '6218', 'CostWater': '16473', 'UseEmailInNotifications': '1', 'SendErrorNotifications': '0', 'EmailPort': '25', 'EmailAsAttachment': '0', 'DoorbellCommand': '0', 'NotificationSensorInterval': '43200', 'NotificationSwitchInterval': '0', 'RemoteSharedPort': '6144', 'Language': 'en', 'DashboardType': '0', 'MobileType': '0', 'WindUnit': '0', 'TempUnit': '0', 'WeightUnit': '0', 'SecStatus': '0', 'SecOnDelay': '30', 'ReleaseChannel': '0', 'RaspCamParams': '-w 800 -h 600 -t 1', 'UVCParams': '-S80 -B128 -C128 -G80 -x800 -y600 -q100', 'AcceptNewHardware': '1', 'BatteryLowNotification': '0', 'AllowWidgetOrdering': '1', 'ActiveTimerPlan': '0', 'HideDisabledHardwareSensors': '1', 'EnableEventScriptSystem': '1', 'EventSystemLogFullURL': '1', 'DisableDzVentsSystem': '0', 'DzVentsLogLevel': '3', 'LogEventScriptTrigger': '1', 'WebTheme': 'default', 'FloorplanPopupDelay': '750', 'FloorplanFullscreenMode': '0', 'FloorplanAnimateZoom': '1', 'FloorplanShowSensorValues': '1', 'FloorplanShowSwitchValues': '0', 'FloorplanShowSceneNames': '1', 'FloorplanRoomColour': 'Blue', 'FloorplanActiveOpacity': '25', 'FloorplanInactiveOpacity': '5', 'TempHome': '20', 'TempAway': '15', 'TempComfort': '22.0', 'DegreeDaysBaseTemperature': '18.0', 'HTTPURL': 'aHR0cHM6Ly93d3cuc29tZWdhdGV3YXkuY29tL3B1c2h1cmwucGhwP3VzZXJuYW1lPSNGSUVMRDEmcGFzc3dvcmQ9I0ZJRUxEMiZhcGlrZXk9I0ZJRUxEMyZmcm9tPSNGSUVMRDQmdG89I1RPJm1lc3NhZ2U9I01FU1NBR0U=', 'HTTPPostContentType': 'YXBwbGljYXRpb24vanNvbg==', 'ShowUpdateEffect': '0', 'ShortLogInterval': '5', 'ShortLogAddOnlyNewValues': '0', 'SendErrorsAsNotification': '0', 'IFTTTEnabled': '0', 'EmailEnabled': '1', 'MaxElectricPower': '6000', 'HourIdxElectricityDevice': '0', 'HourIdxGasDevice': '0', 'Currency': '€', 'P1DisplayType': '0', 'Domoticz_Version': '2024.7'}'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'socket' '<module 'socket' from '/usr/lib/python3.11/socket.py'>'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'sys' '<module 'sys' (built-in)>'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'time' '<module 'time' (built-in)>'
2024-11-11 16:06:11.197 Eldat_Easywave: Acquiring GIL for 'onCommandCallback'
2024-11-11 16:06:19.016 Eldat_Easywave: Pushing 'onHeartbeatCallback' on to queue
2024-11-11 16:06:19.067 Eldat_Easywave: Processing 'onHeartbeatCallback' message
2024-11-11 16:06:19.067 Eldat_Easywave: Acquiring GIL for 'onHeartbeatCallback'
Nothing happens except for the message in the log
Maybe you have a solution Wim R??? Best regards
2024-11-11 16:03:06.930 Status: Domoticz V2024.7 (c)2012-2024 GizMoCuz
2024-11-11 16:03:06.930 Status: Build Hash: b317cfab1, Date: 2024-07-13 16:59:31
2024-11-11 16:03:06.930 Status: Startup Path: /home/aeisenhuth/domoticz/
2024-11-11 16:03:07.208 Status: PluginSystem: Started, Python version '3.11.2', 2 plugin definitions loaded.
2024-11-11 16:03:07.223 Status: WebServer(HTTP) started on address: :: with port 8088
2024-11-11 16:03:07.278 Status: WebServer(SSL) started on address: :: with port 4438
2024-11-11 16:03:07.281 Status: TCPServer: shared server started...
2024-11-11 16:03:07.281 Status: RxQueue: queue worker started...
2024-11-11 16:03:09.282 Status: Eldat_Easywave: Started.
2024-11-11 16:03:09.282 Status: Eldat_Easywave: Entering work loop.
2024-11-11 16:03:09.282 Status: NotificationSystem: thread started...
2024-11-11 16:03:09.284 Status: EventSystem: reset all events...
2024-11-11 16:03:09.286 Status: EventSystem: reset all device statuses...
2024-11-11 16:03:09.350 Status: Python EventSystem: Initializing event module.
2024-11-11 16:03:09.351 Status: EventSystem: Started
2024-11-11 16:03:09.351 Status: EventSystem: Queue thread started...
2024-11-11 16:03:09.416 Status: Eldat_Easywave: Initialized version 0.4.0, author 'WimR'
2024-11-11 16:03:09.553 Status: PluginSystem: 1 plugins started.
2024-11-11 16:03:29.019 Eldat_Easywave: Pushing 'onHeartbeatCallback' on to queue
2024-11-11 16:03:29.069 Eldat_Easywave: Processing 'onHeartbeatCallback' message
2024-11-11 16:03:29.069 Eldat_Easywave: Acquiring GIL for 'onHeartbeatCallback'
2024-11-11 16:06:11.120 Eldat_Easywave: onMessage called using socket params: 127.0.0.1 5331
2024-11-11 16:06:11.120 Error: Eldat_Easywave: Call to function 'onCommand' failed, exception details:
2024-11-11 16:06:11.196 Error: Eldat_Easywave: Traceback (most recent call last):
2024-11-11 16:06:11.196 Error: Eldat_Easywave: File "/home/aeisenhuth/domoticz/plugins/Eldat_Easywave/plugin.py", line 114, in onCommand
2024-11-11 16:06:11.196 Error: Eldat_Easywave: sock.connect(server_address)
2024-11-11 16:06:11.196 Error: Eldat_Easywave: ConnectionRefusedError: [Errno 111] Connection refused
2024-11-11 16:06:11.196 Eldat_Easywave: Local context:
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Devices' '{1: <Domoticz.Device object at 0x7fa071c3f0>, 2: <Domoticz.Device object at 0x7fa0658990>, 3: <Domoticz.Device object at 0x7fa0658a30>, 4: <Domoticz.Device object at 0x7fa0658ad0>, 5: <Domoticz.Device object at 0x7fa0658b70>, 6: <Domoticz.Device object at 0x7fa0658c10>, 7: <Domoticz.Device object at 0x7fa0784030>, 8: <Domoticz.Device object at 0x7fa0658cb0>, 9: <Domoticz.Device object at 0x7fa0658d50>, 10: <Domoticz.Device object at 0x7fa0658df0>, 11: <Domoticz.Device object at 0x7fa0658e90>, 12: <Domoticz.Device object at 0x7fa0658f30>, 13: <Domoticz.Device object at 0x7fa0658fd0>, 14: <Domoticz.Device object at 0x7fa0659070>, 15: <Domoticz.Device object at 0x7fa0659110>, 16: <Domoticz.Device object at 0x7fa06591b0>, 17: <Domoticz.Device object at 0x7fa0659250>, 18: <Domoticz.Device object at 0x7fa06592f0>, 19: <Domoticz.Device object at 0x7fa0659390>, 20: <Domoticz.Device object at 0x7fa0659430>, 21: <Domoticz.Device object at 0x7fa06594d0>, 22: <Domoticz.Device object at 0x7fa0659570>, 23: <Domoticz.Device object at 0x7fa0659610>, 24: <Domoticz.Device object at 0x7fa06596b0>, 25: <Domoticz.Device object at 0x7fa0659750>, 26: <Domoticz.Device object at 0x7fa06597f0>, 27: <Domoticz.Device object at 0x7fa0659890>, 28: <Domoticz.Device object at 0x7fa0659930>, 29: <Domoticz.Device object at 0x7fa06599d0>, 30: <Domoticz.Device object at 0x7fa0659a70>, 31: <Domoticz.Device object at 0x7fa0659b10>, 32: <Domoticz.Device object at 0x7fa0659bb0>, 33: <Domoticz.Device object at 0x7fa0659c50>, 34: <Domoticz.Device object at 0x7fa0659cf0>, 35: <Domoticz.Device object at 0x7fa0659d90>, 36: <Domoticz.Device object at 0x7fa0659e30>, 37: <Domoticz.Device object at 0x7fa0659ed0>, 38: <Domoticz.Device object at 0x7fa0659f70>, 39: <Domoticz.Device object at 0x7fa065a010>, 40: <Domoticz.Device object at 0x7fa065a0b0>, 41: <Domoticz.Device object at 0x7fa065a150>, 42: <Domoticz.Device object at 0x7fa065a1f0>, 43: <Domoticz.Device object at 0x7fa065a290>, 44: <Domoticz.Device object at 0x7fa065a330>, 45: <Domoticz.Device object at 0x7fa065a3d0>, 46: <Domoticz.Device object at 0x7fa065a470>, 47: <Domoticz.Device object at 0x7fa065a510>, 48: <Domoticz.Device object at 0x7fa065a5b0>, 49: <Domoticz.Device object at 0x7fa065a650>, 50: <Domoticz.Device object at 0x7fa065a6f0>, 51: <Domoticz.Device object at 0x7fa065a790>, 52: <Domoticz.Device object at 0x7fa065a830>, 53: <Domoticz.Device object at 0x7fa065a8d0>, 54: <Domoticz.Device object at 0x7fa065a970>, 55: <Domoticz.Device object at 0x7fa065aa10>, 56: <Domoticz.Device object at 0x7fa065aab0>, 57: <Domoticz.Device object at 0x7fa065ab50>, 58: <Domoticz.Device object at 0x7fa065abf0>, 59: <Domoticz.Device object at 0x7fa065ac90>, 60: <Domoticz.Device object at 0x7fa065ad30>, 61: <Domoticz.Device object at 0x7fa065add0>, 62: <Domoticz.Device object at 0x7fa065ae70>, 63: <Domoticz.Device object at 0x7fa065af10>, 64: <Domoticz.Device object at 0x7fa065afb0>}'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Domoticz' '<module 'Domoticz' (built-in)>'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Images' '{}'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Parameters' '{'HardwareID': 2, 'HomeFolder': '/home/aeisenhuth/domoticz/plugins/Eldat_Easywave/', 'StartupFolder': '/home/aeisenhuth/domoticz/', 'UserDataFolder': '/home/aeisenhuth/domoticz/', 'WebRoot': '', 'Database': '/home/aeisenhuth/domoticz/domoticz.db', 'Language': 'en', 'Version': '0.4.0', 'Author': 'WimR', 'Name': 'Eldat_Easywave', 'Address': '', 'Port': '0', 'SerialPort': '', 'Username': '', 'Password': '', 'Key': 'Easywave', 'Mode1': '64', 'Mode2': '127.0.0.1', 'Mode3': '5331', 'Mode4': '', 'Mode5': '', 'Mode6': 'Debug', 'DomoticzVersion': '2024.7', 'DomoticzHash': 'b317cfab1', 'DomoticzBuildTime': '2024-07-13 16:59:31'}'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'Settings' '{'DB_Version': '169', 'Title': 'Domoticz', 'Unique_ID': '98d50795-3dfc-4995-9e32-547ab9e732f3', 'LightHistoryDays': '30', 'MeterDividerEnergy': '1000', 'MeterDividerGas': '100', 'MeterDividerWater': '100', 'RandomTimerFrame': '15', 'ElectricVoltage': '230', 'CM113DisplayType': '0', '5MinuteHistoryDays': '1', 'SensorTimeout': '60', 'SensorTimeoutNotification': '0', 'UseAutoUpdate': '1', 'UseAutoBackup': '0', 'CostEnergy': '2149', 'CostEnergyT2': '2149', 'CostEnergyR1': '800', 'CostEnergyR2': '800', 'CostGas': '6218', 'CostWater': '16473', 'UseEmailInNotifications': '1', 'SendErrorNotifications': '0', 'EmailPort': '25', 'EmailAsAttachment': '0', 'DoorbellCommand': '0', 'NotificationSensorInterval': '43200', 'NotificationSwitchInterval': '0', 'RemoteSharedPort': '6144', 'Language': 'en', 'DashboardType': '0', 'MobileType': '0', 'WindUnit': '0', 'TempUnit': '0', 'WeightUnit': '0', 'SecStatus': '0', 'SecOnDelay': '30', 'ReleaseChannel': '0', 'RaspCamParams': '-w 800 -h 600 -t 1', 'UVCParams': '-S80 -B128 -C128 -G80 -x800 -y600 -q100', 'AcceptNewHardware': '1', 'BatteryLowNotification': '0', 'AllowWidgetOrdering': '1', 'ActiveTimerPlan': '0', 'HideDisabledHardwareSensors': '1', 'EnableEventScriptSystem': '1', 'EventSystemLogFullURL': '1', 'DisableDzVentsSystem': '0', 'DzVentsLogLevel': '3', 'LogEventScriptTrigger': '1', 'WebTheme': 'default', 'FloorplanPopupDelay': '750', 'FloorplanFullscreenMode': '0', 'FloorplanAnimateZoom': '1', 'FloorplanShowSensorValues': '1', 'FloorplanShowSwitchValues': '0', 'FloorplanShowSceneNames': '1', 'FloorplanRoomColour': 'Blue', 'FloorplanActiveOpacity': '25', 'FloorplanInactiveOpacity': '5', 'TempHome': '20', 'TempAway': '15', 'TempComfort': '22.0', 'DegreeDaysBaseTemperature': '18.0', 'HTTPURL': 'aHR0cHM6Ly93d3cuc29tZWdhdGV3YXkuY29tL3B1c2h1cmwucGhwP3VzZXJuYW1lPSNGSUVMRDEmcGFzc3dvcmQ9I0ZJRUxEMiZhcGlrZXk9I0ZJRUxEMyZmcm9tPSNGSUVMRDQmdG89I1RPJm1lc3NhZ2U9I01FU1NBR0U=', 'HTTPPostContentType': 'YXBwbGljYXRpb24vanNvbg==', 'ShowUpdateEffect': '0', 'ShortLogInterval': '5', 'ShortLogAddOnlyNewValues': '0', 'SendErrorsAsNotification': '0', 'IFTTTEnabled': '0', 'EmailEnabled': '1', 'MaxElectricPower': '6000', 'HourIdxElectricityDevice': '0', 'HourIdxGasDevice': '0', 'Currency': '€', 'P1DisplayType': '0', 'Domoticz_Version': '2024.7'}'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'socket' '<module 'socket' from '/usr/lib/python3.11/socket.py'>'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'sys' '<module 'sys' (built-in)>'
2024-11-11 16:06:11.197 Eldat_Easywave: ----> 'time' '<module 'time' (built-in)>'
2024-11-11 16:06:11.197 Eldat_Easywave: Acquiring GIL for 'onCommandCallback'
2024-11-11 16:06:19.016 Eldat_Easywave: Pushing 'onHeartbeatCallback' on to queue
2024-11-11 16:06:19.067 Eldat_Easywave: Processing 'onHeartbeatCallback' message
2024-11-11 16:06:19.067 Eldat_Easywave: Acquiring GIL for 'onHeartbeatCallback'
Nothing happens except for the message in the log
Maybe you have a solution Wim R??? Best regards
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
Hi,
seems 127.0.0.1 5331 is not responding.
Does the serproxy runs?
regards
seems 127.0.0.1 5331 is not responding.
Does the serproxy runs?
regards
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
Hör i Can Test of the serproxy Works? Or how i Can activate it.
Best regards
Best regards
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
Hi,
if on the Pi you type:
rx09.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8080 /home/pi/project/python_programs/devices.csv
the /home/pi/project/python_programs/devices.csv pointing to the data file with the links between the senders and the corresponding idx of the devices in Domoticz
it should yield info on the proxy being able to start
and in/tmp you should find serialPid : a file with the process number of the proxy
and also in /tmp you should find a log file
regards
if on the Pi you type:
rx09.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8080 /home/pi/project/python_programs/devices.csv
the /home/pi/project/python_programs/devices.csv pointing to the data file with the links between the senders and the corresponding idx of the devices in Domoticz
it should yield info on the proxy being able to start
and in/tmp you should find serialPid : a file with the process number of the proxy
and also in /tmp you should find a log file
regards
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
The SerialProxy.Log should be siomething like this:
/tmp $ cat SerProxy.Log
2024-11-10 11:04:12,688 INFO:Serial Device: /dev/ttyUSB0
2024-11-10 11:04:12,689 INFO:Port: 5331
2024-11-10 11:04:12,689 INFO:Domoticz IP: 127.0.0.1
2024-11-10 11:04:12,697 INFO:waiting for connection
2024-11-10 11:04:12,701 INFO:Serial port opened Serial<id=0x765d55f0, open=True>(port='/dev/ttyUSB0', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)
2024-11-10 11:04:12,702 INFO:Device table being loaded in dictionnary.
2024-11-10 11:04:12,702 INFO:Device table being opened.
2024-11-10 11:04:12,713 INFO:Device table being closed.
2024-11-10 11:04:12,713 INFO:Device table loaded in dictionnary. Number of devices loaded: 8
2024-11-10 15:16:01,965 INFO:connected from: ('127.0.0.1', 49855)
2024-11-10 15:16:02,019 INFO:Message received: TXP,09,A
2024-11-10 15:16:02,024 INFO:Serial respons : OK
/tmp $ cat SerProxy.Log
2024-11-10 11:04:12,688 INFO:Serial Device: /dev/ttyUSB0
2024-11-10 11:04:12,689 INFO:Port: 5331
2024-11-10 11:04:12,689 INFO:Domoticz IP: 127.0.0.1
2024-11-10 11:04:12,697 INFO:waiting for connection
2024-11-10 11:04:12,701 INFO:Serial port opened Serial<id=0x765d55f0, open=True>(port='/dev/ttyUSB0', baudrate=57600, bytesize=8, parity='N', stopbits=1, timeout=None, xonxoff=False, rtscts=False, dsrdtr=False)
2024-11-10 11:04:12,702 INFO:Device table being loaded in dictionnary.
2024-11-10 11:04:12,702 INFO:Device table being opened.
2024-11-10 11:04:12,713 INFO:Device table being closed.
2024-11-10 11:04:12,713 INFO:Device table loaded in dictionnary. Number of devices loaded: 8
2024-11-10 15:16:01,965 INFO:connected from: ('127.0.0.1', 49855)
2024-11-10 15:16:02,019 INFO:Message received: TXP,09,A
2024-11-10 15:16:02,024 INFO:Serial respons : OK
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
Unfortunately, I get the message: Command not found
- Attachments
-
- terminal.jpg (33.4 KiB) Viewed 1967 times
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
Hi,
did you copy the rx09.py from your old pi to the new one in dir /home/pi/project/python_programs?
than
python /home/pi/project/python_programs/rx09.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8080 /home/pi/project/python_programs/devices.csv
shoudl startup the proxy
regards
did you copy the rx09.py from your old pi to the new one in dir /home/pi/project/python_programs?
than
python /home/pi/project/python_programs/rx09.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8080 /home/pi/project/python_programs/devices.csv
shoudl startup the proxy
regards
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
left my new PI, right my old PI
- Attachments
-
- terminal2.jpg (149.63 KiB) Viewed 1963 times
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
Yes i copy it. On the Old PI it works, but the old PI hangs up every day 

- Attachments
-
- terminal3.jpg (25.93 KiB) Viewed 1958 times
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
I use port 8088 and the user aeisenhuth. When I enter the command in the console:
python /home/aeisenhuth/project/python_programs/rx09.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8088 /home/aeisenhuth/project/python_programs/devices.csv
Then I get the following output:
Traceback (most recent call last):
File "/home/aeisenhuth/project/python_programs/rx09.py", line 18, in <module>
import json, urllib, urllib2
ModuleNotFoundError: No module named 'urllib2'
Unfortunately I'm not as proficient in Linux as you are, thank you very much for your support WimR
python /home/aeisenhuth/project/python_programs/rx09.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8088 /home/aeisenhuth/project/python_programs/devices.csv
Then I get the following output:
Traceback (most recent call last):
File "/home/aeisenhuth/project/python_programs/rx09.py", line 18, in <module>
import json, urllib, urllib2
ModuleNotFoundError: No module named 'urllib2'
Unfortunately I'm not as proficient in Linux as you are, thank you very much for your support WimR
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
What Python version is running on your Pi 4?
just type python -V
and could you check the python modules installed:
pip list
regards
just type python -V
and could you check the python modules installed:
pip list
regards
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
Good Morning. Python 3.11.2
pip-list:
asgiref
astroid
asttokens
attrs
av
Babel
beautifulsoup4
blinker
certifi
chardet
charset-normalizer
click
colorama
colorzero
cryptography
cupshelpers
dbus-python
dill
distro
docutils
Flask
gpiozero
html5lib
idna
importlib-metadata
isort
istdangerous
jedi
Jinja2
jsonpointer
jsonschema
lazy-object-proxy
lqpio
libarchive-c
libevev
logilab-common
lxml
MarkupSafe
mccabe
meson
more-itertools
mypy
mypy-extensions
numpy
oauthlib
olefile
parso
pexpect
pgzero
picamera2
pidng
pixeif
pigpio
Pillow
pip
platformdirs
psutil
ptyprocess
pycairo
pycryptodomex
pycups
pygame
Pygments
PyGObject
pyinotify
PyJWT
pylint
PyOpenGL
pyOpenSSL
PyQt5
PyQt5-sip
pyrsistent
pyserial
pysmbc
python-apt
python-dotenv
python-prctl
pytz
pyudev
eportlab
requests
requests-oauthlib
responses
rfc3987
roman
rpi-lgpio
RTIMULib
Send2Trash
sense-hat
setuptools
simplejpeg
simplejson
six
smbus2
soupsive
spidev
ssh-import-id
thonny
toml
tomlkit
tqdm
twython
uritemplate
urllib3
v412-python3
webcolors
webencodings
Werkzeug
wheel
wrapt
zipp
pip-list:
asgiref
astroid
asttokens
attrs
av
Babel
beautifulsoup4
blinker
certifi
chardet
charset-normalizer
click
colorama
colorzero
cryptography
cupshelpers
dbus-python
dill
distro
docutils
Flask
gpiozero
html5lib
idna
importlib-metadata
isort
istdangerous
jedi
Jinja2
jsonpointer
jsonschema
lazy-object-proxy
lqpio
libarchive-c
libevev
logilab-common
lxml
MarkupSafe
mccabe
meson
more-itertools
mypy
mypy-extensions
numpy
oauthlib
olefile
parso
pexpect
pgzero
picamera2
pidng
pixeif
pigpio
Pillow
pip
platformdirs
psutil
ptyprocess
pycairo
pycryptodomex
pycups
pygame
Pygments
PyGObject
pyinotify
PyJWT
pylint
PyOpenGL
pyOpenSSL
PyQt5
PyQt5-sip
pyrsistent
pyserial
pysmbc
python-apt
python-dotenv
python-prctl
pytz
pyudev
eportlab
requests
requests-oauthlib
responses
rfc3987
roman
rpi-lgpio
RTIMULib
Send2Trash
sense-hat
setuptools
simplejpeg
simplejson
six
smbus2
soupsive
spidev
ssh-import-id
thonny
toml
tomlkit
tqdm
twython
uritemplate
urllib3
v412-python3
webcolors
webencodings
Werkzeug
wheel
wrapt
zipp
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
Hi,
haven't got time to test it yet but here's code that doesn't use the urllib2 module but the urllib3 module instead.
save the code under rx09b.py
rx09b.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8080 /home/pi/project/python_programs/devices.csv
I'll try some testing this evening
regards
haven't got time to test it yet but here's code that doesn't use the urllib2 module but the urllib3 module instead.
save the code under rx09b.py
rx09b.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8080 /home/pi/project/python_programs/devices.csv
Code: Select all
# based upon: https://github.com/richardkchapman/serproxy/blob/master/serproxy.py
#
# Python version of serproxy for Easywave (RX09) v20241112
#
# Python 3.5.1
# Windows 10, Pi 4.59. V7+
#
# Accept requests by socket (TCP/IP Raw) and forward to Serial Port
# Return Serial response to socket
#
# Original Author: Richard K Chapman
# Adaptations: WimR
#
# Date: 2018 01 12 Original version
# 2018 02 28 Added read csv with link: switch id TO domoticz idx
# Read serial line and add to log as 'respons'
# 2018 03 16 Added 'C' telegram mapped to 'Stop' (for devices Venitian Blinds EU)
# 19 Added Dict for Commands
# Made path to devices.csv relative
# Added counter for devices table
# 2024 11 12 Adapted skip usage urllib2
# Added Domoticz port as parameter
#
from socket import *
from threading import Thread
import logging
import serial
import time
import sys
import os
import csv
import json, urllib3
ser = None
allClients = []
BUFSIZ = 1024
serialDevice = None
def serialReader():
global ser
global allClients
global serialDevice
global domoticzIP
global domoticzPort
line = []
oldLine = ''
oldTime = time.time()
allDevices = {}
CommandMap = {'A':'On','B':'Off','C':'Stop','D':'Off'}
http = urllib3.PoolManager()
while 1:
try:
# configure the serial connections (the parameters differs on the device you are connecting to)
ser = serial.Serial(
port=serialDevice,
baudrate=57600,
parity=serial.PARITY_NONE,
stopbits=serial.STOPBITS_ONE,
bytesize=serial.EIGHTBITS
)
# ser.open() # Doesn't seem to be needed
ser.isOpen()
logging.info('Serial port opened %s', ser)
# load device table from csv file
logging.info('Device table being loaded in dictionnary.')
# ifile = open('./devices.csv', "rU")
ifile = open('/home/pi/project/python_programs/devices.csv', "rU")
logging.info('Device table being opened.')
reader = csv.reader(ifile, delimiter=";")
allDevices = dict([(row[0],row[1]) for row in reader])
ifile.close()
logging.info('Device table being closed.')
logging.info('Device table loaded in dictionnary. Number of devices loaded: %d ' % len(allDevices))
# main listener loop
while 1:
out = ser.read(1)
line.append(out)
# wait till '\r' as end of line char
if out == '\r':
myLine = ''.join(line)
myTime = time.time()
logging.info('Serial respons : %s', myLine)
# if myLine starts with REC :split line use second part as key in dict and lauch json call
if myLine[0:3] == 'REC':
if allDevices.get(myLine[4:10]) is None:
# transmitter not in devices.csv
logging.info('Warning : unknown physical RF transmitter: %s Please add to device table with corresponding idx', myLine[4:10])
else:
# known physical RF transmitter
if CommandMap.get(myLine[11]) is None:
logging.info('Warning : unknown Command from physical transmitter: ' + myLine[11])
else:
myCommand = CommandMap.get(myLine[11])
logging.info('Key : ' + myLine[4:10] + ' Mapped to : ' + allDevices.get(myLine[4:10]) + ' Telegram : ' + myLine[11] + ' mapped to Command : ' + myCommand)
# switches may bounce and emit rapidly 2 to 5 times the same command: debounce by comparing content and time lapse (more than 1 sec apart)
if myLine != oldLine or myTime - oldTime > 1:
# transfer received command to Domoticz
# response = http.request('GET', url)
result_load = json.load(http.request('GET', "http://%s:%s/json.htm?type=command¶m=switchlight&idx=%s&switchcmd=%s&level=0" % (domoticzIP, domoticzPort ,allDevices.get(myLine[4:10]), myCommand), timeout=5))
logging.info('Respons domoticz : %s', str(result_load))
# arm debounce mechanism
oldTime = myTime
oldLine = myLine
else:
# respons is not from physical switch
# write line to all clients
for elem in line:
for client in allClients:
client.send(elem)
# Clear line
line = []
except:
# Wait a while then try again
logging.debug('Error on serial port')
if ser is not None:
ser.close()
ser = None
time.sleep(10)
def handler(clientsock,addr):
global ser
global allClients
logging.info('connected from: %s', addr)
allClients.append(clientsock)
while 1:
data = clientsock.recv(BUFSIZ)
if not data:
break
if not (ser is None):
ser.write(data)
logging.info('Message received: %s ', data)
logging.info('disconnected from: %s', addr)
allClients.remove(clientsock)
clientsock.close()
def mainProgram():
global serialDevice
global port
global domoticzIP
if len(sys.argv)>=6 and sys.argv[1] == '-p':
writePidFile(sys.argv[2])
del sys.argv[2]
del sys.argv[1]
if len(sys.argv) != 5:
print ('usage: ' + sys.argv[0] + ' device port domoticzIP domoticzPort')
exit()
print ('Logfile: SerProxy.Log')
logging.basicConfig(filename='/tmp/SerProxy.Log', filemode='w', format='%(asctime)s %(levelname)s:%(message)s', level=logging.DEBUG)
serialDevice=sys.argv[1]
port=int(sys.argv[2])
domoticzIP=sys.argv[3]
domoticzPort=sys.argv[4]
print ('Serial Device: ' + sys.argv[1])
print ('Port: ' + sys.argv[2])
print ('Domoticz IP: ' + sys.argv[3])
logging.info('Serial Device: ' + sys.argv[1])
logging.info('Port: ' + sys.argv[2])
logging.info('Domoticz IP: ' + sys.argv[3])
Thread(target=serialReader).start()
ser = None
allClients = []
listenAddr = ('', port)
try:
serversock = socket(AF_INET, SOCK_STREAM)
serversock.bind(listenAddr)
serversock.listen(2)
logging.info('waiting for connection')
while 1:
clientsock, addr = serversock.accept()
Thread(target=handler, args=(clientsock, addr)).start()
except KeyboardInterrupt:
if not ser is None:
ser.close()
os._exit(0)
def writePidFile(pidfile):
pid = str(os.getpid())
f = open(pidfile, 'w')
f.write(pid)
f.close()
if __name__=='__main__':
mainProgram()
regards
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
I saved it as a rx09b.py. The rclocal also adds the line, but DOmoticz reports an error in the log. What a pity. But thank you in advance
2024-11-13 10:48:36.464 Status: Login successful from 192.168.178.201 for user 'aeisenhuth'
2024-11-13 10:48:36.464 Status: [web:8088] Incoming connection from: 192.168.178.201
2024-11-13 10:48:42.084 Status: User: aeisenhuth (IP: 192.168.178.201) initiated a switch command (1/Beschattung_Arbeitszimmer_gr_EG/Open)
2024-11-13 10:48:42.094 Eldat_Easywave: onMessage called using socket params: 127.0.0.1 5331
2024-11-13 10:48:42.094 Error: Eldat_Easywave: Call to function 'onCommand' failed, exception details:
2024-11-13 10:48:42.096 Error: Eldat_Easywave: Traceback (most recent call last):
2024-11-13 10:48:42.096 Error: Eldat_Easywave: File "/home/aeisenhuth/domoticz/plugins/Eldat_Easywave/plugin.py", line 114, in onCommand
2024-11-13 10:48:42.096 Error: Eldat_Easywave: sock.connect(server_address)
2024-11-13 10:48:42.096 Error: Eldat_Easywave: ConnectionRefusedError: [Errno 111] Connection refused
Best regards
2024-11-13 10:48:36.464 Status: Login successful from 192.168.178.201 for user 'aeisenhuth'
2024-11-13 10:48:36.464 Status: [web:8088] Incoming connection from: 192.168.178.201
2024-11-13 10:48:42.084 Status: User: aeisenhuth (IP: 192.168.178.201) initiated a switch command (1/Beschattung_Arbeitszimmer_gr_EG/Open)
2024-11-13 10:48:42.094 Eldat_Easywave: onMessage called using socket params: 127.0.0.1 5331
2024-11-13 10:48:42.094 Error: Eldat_Easywave: Call to function 'onCommand' failed, exception details:
2024-11-13 10:48:42.096 Error: Eldat_Easywave: Traceback (most recent call last):
2024-11-13 10:48:42.096 Error: Eldat_Easywave: File "/home/aeisenhuth/domoticz/plugins/Eldat_Easywave/plugin.py", line 114, in onCommand
2024-11-13 10:48:42.096 Error: Eldat_Easywave: sock.connect(server_address)
2024-11-13 10:48:42.096 Error: Eldat_Easywave: ConnectionRefusedError: [Errno 111] Connection refused
Best regards
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
I'll test on my Pi this evening.
could you see what's reported when:
python /home/aeisenhuth/project/python_programs/rx09b.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8088 /home/aeisenhuth/project/python_programs/devices.csv
could you see what's reported when:
python /home/aeisenhuth/project/python_programs/rx09b.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8088 /home/aeisenhuth/project/python_programs/devices.csv
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
Thank you, this happens:
aeisenhuth@raspberrypi:~ $ python /home/aeisenhuth/project/python_programs/rx09b.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8088 /home/aeisenhuth/project/python_programs/devices.csv
Traceback (most recent call last):
File "/home/aeisenhuth/project/python_programs/rx09b.py", line 200, in <module>
mainProgram()
File "/home/aeisenhuth/project/python_programs/rx09b.py", line 151, in mainProgram
writePidFile(sys.argv[2])
File "/home/aeisenhuth/project/python_programs/rx09b.py", line 195, in writePidFile
f = open(pidfile, 'w')
^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/tmp/serialPid'
aeisenhuth@raspberrypi:~ $
aeisenhuth@raspberrypi:~ $ python /home/aeisenhuth/project/python_programs/rx09b.py -p /tmp/serialPid /dev/ttyUSB0 5331 127.0.0.1 8088 /home/aeisenhuth/project/python_programs/devices.csv
Traceback (most recent call last):
File "/home/aeisenhuth/project/python_programs/rx09b.py", line 200, in <module>
mainProgram()
File "/home/aeisenhuth/project/python_programs/rx09b.py", line 151, in mainProgram
writePidFile(sys.argv[2])
File "/home/aeisenhuth/project/python_programs/rx09b.py", line 195, in writePidFile
f = open(pidfile, 'w')
^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: '/tmp/serialPid'
aeisenhuth@raspberrypi:~ $
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Saturday 03 February 2018 17:18
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Belgium
- Contact:
Re: Eldat Easywave RXR09 Script
seems the account your using hasn't sufficient rights on the /tmp dir or the file exists already.
Could you try to replace the /tmp with /home/aeisenhuth in the call and retry?
Could you try to replace the /tmp with /home/aeisenhuth in the call and retry?
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
Changing the path did something. I don't get any errors anymore. Let's see if I can control the shutter from Domoticz. Thank you very much
- Attachments
-
- Screenshot 2024-11-14 122950.jpg (30.55 KiB) Viewed 1808 times
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
-
- Posts: 46
- Joined: Thursday 26 January 2017 21:07
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Homberg, Hessen, Germany
- Contact:
Re: Eldat Easywave RXR09 Script
Domoticz does not control the shutter and there is an error message in the LOG
After a Reboot Domoticz log:
2024-11-14 12:34:18.721 Status: Domoticz V2024.7 (c)2012-2024 GizMoCuz
2024-11-14 12:34:18.721 Status: Build Hash: b317cfab1, Date: 2024-07-13 16:59:31
2024-11-14 12:34:18.721 Status: Startup Path: /home/aeisenhuth/domoticz/
2024-11-14 12:34:19.332 Status: PluginSystem: Started, Python version '3.11.2', 2 plugin definitions loaded.
2024-11-14 12:34:19.337 Active notification Subsystems: fcm, http (2/13)
2024-11-14 12:34:19.353 Status: WebServer(HTTP) started on address: :: with port 8088
2024-11-14 12:34:19.479 Status: WebServer(SSL) started on address: :: with port 4438
2024-11-14 12:34:19.481 Starting shared server on: :::6144
2024-11-14 12:34:19.481 Status: TCPServer: shared server started...
2024-11-14 12:34:19.482 Status: RxQueue: queue worker started...
2024-11-14 12:34:21.484 Eldat_Easywave: Worker thread started.
2024-11-14 12:34:21.484 Status: Eldat_Easywave: Started.
2024-11-14 12:34:21.484 Status: Eldat_Easywave: Entering work loop.
2024-11-14 12:34:21.485 Status: NotificationSystem: thread started...
2024-11-14 12:34:21.487 Status: EventSystem: reset all events...
2024-11-14 12:34:21.489 Status: EventSystem: reset all device statuses...
2024-11-14 12:34:21.587 Status: Python EventSystem: Initializing event module.
2024-11-14 12:34:21.588 Status: EventSystem: Started
2024-11-14 12:34:21.588 Status: EventSystem: Queue thread started...
2024-11-14 12:34:21.658 Status: Eldat_Easywave: Initialized version 0.4.0, author 'WimR'
2024-11-14 12:34:21.685 Eldat_Easywave: onStart called
2024-11-14 12:34:21.685 Eldat_Easywave: Plugin has 64 devices associated with it.
2024-11-14 12:34:21.982 Status: PluginSystem: 1 plugins started.
2024-11-14 12:36:48.753 Status: User: aeisenhuth (IP: 192.168.178.134) initiated a switch command (1/Beschattung_Arbeitszimmer_gr_EG/Close)
2024-11-14 12:36:48.792 Eldat_Easywave: onMessage called using socket params: 127.0.0.1 5331
2024-11-14 12:36:48.793 Error: Eldat_Easywave: Call to function 'onCommand' failed, exception details:
2024-11-14 12:36:48.830 Error: Eldat_Easywave: Traceback (most recent call last):
2024-11-14 12:36:48.830 Error: Eldat_Easywave: File "/home/aeisenhuth/domoticz/plugins/Eldat_Easywave/plugin.py", line 114, in onCommand
2024-11-14 12:36:48.830 Error: Eldat_Easywave: sock.connect(server_address)
2024-11-14 12:36:48.830 Error: Eldat_Easywave: ConnectionRefusedError: [Errno 111] Connection refused
After a Reboot Domoticz log:
2024-11-14 12:34:18.721 Status: Domoticz V2024.7 (c)2012-2024 GizMoCuz
2024-11-14 12:34:18.721 Status: Build Hash: b317cfab1, Date: 2024-07-13 16:59:31
2024-11-14 12:34:18.721 Status: Startup Path: /home/aeisenhuth/domoticz/
2024-11-14 12:34:19.332 Status: PluginSystem: Started, Python version '3.11.2', 2 plugin definitions loaded.
2024-11-14 12:34:19.337 Active notification Subsystems: fcm, http (2/13)
2024-11-14 12:34:19.353 Status: WebServer(HTTP) started on address: :: with port 8088
2024-11-14 12:34:19.479 Status: WebServer(SSL) started on address: :: with port 4438
2024-11-14 12:34:19.481 Starting shared server on: :::6144
2024-11-14 12:34:19.481 Status: TCPServer: shared server started...
2024-11-14 12:34:19.482 Status: RxQueue: queue worker started...
2024-11-14 12:34:21.484 Eldat_Easywave: Worker thread started.
2024-11-14 12:34:21.484 Status: Eldat_Easywave: Started.
2024-11-14 12:34:21.484 Status: Eldat_Easywave: Entering work loop.
2024-11-14 12:34:21.485 Status: NotificationSystem: thread started...
2024-11-14 12:34:21.487 Status: EventSystem: reset all events...
2024-11-14 12:34:21.489 Status: EventSystem: reset all device statuses...
2024-11-14 12:34:21.587 Status: Python EventSystem: Initializing event module.
2024-11-14 12:34:21.588 Status: EventSystem: Started
2024-11-14 12:34:21.588 Status: EventSystem: Queue thread started...
2024-11-14 12:34:21.658 Status: Eldat_Easywave: Initialized version 0.4.0, author 'WimR'
2024-11-14 12:34:21.685 Eldat_Easywave: onStart called
2024-11-14 12:34:21.685 Eldat_Easywave: Plugin has 64 devices associated with it.
2024-11-14 12:34:21.982 Status: PluginSystem: 1 plugins started.
2024-11-14 12:36:48.753 Status: User: aeisenhuth (IP: 192.168.178.134) initiated a switch command (1/Beschattung_Arbeitszimmer_gr_EG/Close)
2024-11-14 12:36:48.792 Eldat_Easywave: onMessage called using socket params: 127.0.0.1 5331
2024-11-14 12:36:48.793 Error: Eldat_Easywave: Call to function 'onCommand' failed, exception details:
2024-11-14 12:36:48.830 Error: Eldat_Easywave: Traceback (most recent call last):
2024-11-14 12:36:48.830 Error: Eldat_Easywave: File "/home/aeisenhuth/domoticz/plugins/Eldat_Easywave/plugin.py", line 114, in onCommand
2024-11-14 12:36:48.830 Error: Eldat_Easywave: sock.connect(server_address)
2024-11-14 12:36:48.830 Error: Eldat_Easywave: ConnectionRefusedError: [Errno 111] Connection refused
Last edited by aeisenhuth on Thursday 14 November 2024 12:43, edited 1 time in total.
RaspberryPI Home Assistant with -> AppleHome, HUE, Osram, Ikea, Aqara, Xiaomi, Worx, SmartLife, AlphaESS, Meross, Viessmann, PhillipsTV, Shelly
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
RaspberryPI3 Domoticz -> EldatEasywave, Wunderground, MagicLight
Who is online
Users browsing this forum: No registered users and 1 guest