diff --git a/docs/service-send-message/eep-params.md b/docs/service-send-message/eep-params.md index 29fa9546..7b747b11 100644 --- a/docs/service-send-message/eep-params.md +++ b/docs/service-send-message/eep-params.md @@ -1,27 +1,27 @@ # Paramters for EEPs in Send Message Events -(This file was auto-generated by using [eltako14bus library](https://github.com/grimmpp/eltako14bus/blob/master/eltakobus/eep.py) in [version 0.0.49](https://pypi.org/project/eltako14bus/).) +(This file was auto-generated by using [eltako14bus library](https://github.com/grimmpp/eltako14bus/blob/master/eltakobus/eep.py) in [version 0.0.49](https://pypi.org/project/eltako14bus/) from unit-test `TestSendMessageService` in file `./tests/test_send_message_service.py`). ## Not Supported EEPs -* A5-09-0C -* A5-38-08 +* `A5-09-0C` +* `A5-38-08` ## Parameters for events -* A5-04-01: humidity, learn_button, temp_availability, temperature -* A5-04-02: humidity, learn_button, temperature -* A5-04-03: humidity, learn_button, telegram_type, temperature -* A5-06-01: day_light, illumination, twilight -* A5-07-01: learn_button, pir_status, pir_status_on, support_volrage_availability, support_voltage -* A5-08-01: illumination, learn_button, occupancy_button, pir_status, supply_voltage, temperature -* A5-10-06: current_temp, mode, stand_by, target_temp -* A5-10-12: current_temperature, humidity, target_temperature -* A5-12-01: data_type, divisor, learn_button, measurement_channel, meter_reading -* A5-12-02: data_type, divisor, learn_button, measurement_channel, meter_reading -* A5-12-03: data_type, divisor, learn_button, measurement_channel, meter_reading -* A5-13-01: dawn_sensor, day_night, hemisphere, identifier, learn_button, rain_indication, sun_east, sun_south, sun_west, temperature, wind_speed -* D5-00-01: contact, learn_button -* F6-02-01: energy_bow, rocker_first_action, rocker_second_action, second_action -* F6-02-02: energy_bow, rocker_first_action, rocker_second_action, second_action -* F6-10-00: handle_position, movement -* G5-3F-7F: direction, state, time -* H5-3F-7F: command, learn_button, time -* M5-38-08: state +* `A5-04-01`: humidity, learn_button, temp_availability, temperature +* `A5-04-02`: humidity, learn_button, temperature +* `A5-04-03`: humidity, learn_button, telegram_type, temperature +* `A5-06-01`: day_light, illumination, twilight +* `A5-07-01`: learn_button, pir_status, pir_status_on, support_volrage_availability, support_voltage +* `A5-08-01`: illumination, learn_button, occupancy_button, pir_status, supply_voltage, temperature +* `A5-10-06`: current_temp, mode, stand_by, target_temp +* `A5-10-12`: current_temperature, humidity, target_temperature +* `A5-12-01`: data_type, divisor, learn_button, measurement_channel, meter_reading +* `A5-12-02`: data_type, divisor, learn_button, measurement_channel, meter_reading +* `A5-12-03`: data_type, divisor, learn_button, measurement_channel, meter_reading +* `A5-13-01`: dawn_sensor, day_night, hemisphere, identifier, learn_button, rain_indication, sun_east, sun_south, sun_west, temperature, wind_speed +* `D5-00-01`: contact, learn_button +* `F6-02-01`: energy_bow, rocker_first_action, rocker_second_action, second_action +* `F6-02-02`: energy_bow, rocker_first_action, rocker_second_action, second_action +* `F6-10-00`: handle_position, movement +* `G5-3F-7F`: direction, state, time +* `H5-3F-7F`: command, learn_button, time +* `M5-38-08`: state diff --git a/tests/test_send_message_service.py b/tests/test_send_message_service.py index 35d5f06c..70d35d58 100644 --- a/tests/test_send_message_service.py +++ b/tests/test_send_message_service.py @@ -56,12 +56,14 @@ async def test_write_eep_params_to_docs_file(self): eltakobus_version = MetadataTest().get_version_of_installed_eltako14bus() text += f'(This file was auto-generated by using [eltako14bus library](https://github.com/grimmpp/eltako14bus/blob/master/eltakobus/eep.py) ' - text += f'in [version {eltakobus_version}](https://pypi.org/project/eltako14bus/).)\n' + text += f'in [version {eltakobus_version}](https://pypi.org/project/eltako14bus/) ' + rel_filename = '.'+__file__.replace(os.getcwd(), "").replace("\\", "/") + text += f'from unit-test `{type(self).__name__}` in file `{rel_filename}`). \n' text += '\n' text += "## Not Supported EEPs \n" for eep_name in self.NOT_SUPPORTED_EEPS: - text += f"* {eep_name}\n" + text += f"* `{eep_name}`\n" text += '\n' text += '## Parameters for events \n' @@ -73,7 +75,7 @@ async def test_write_eep_params_to_docs_file(self): sig = inspect.signature(EEP.find(eep_name).__init__) eep_init_args = sorted([param.name for param in sig.parameters.values() if param.kind == param.POSITIONAL_OR_KEYWORD and param.name != 'self']) - text += f"* {eep_name}: {', '.join(eep_init_args)}\n" + text += f"* `{eep_name}`: {', '.join(eep_init_args)}\n" file='./docs/service-send-message/eep-params.md' with open(file, 'w') as filetowrite: