esphome icon indicating copy to clipboard operation
esphome copied to clipboard

Jablotron JA-121T Integration

Open juliekoubova opened this issue 3 years ago • 3 comments

Hey everyone, this might be too niche for general consumption, but since I wrote it and it seems to work, I figured why not send a PR. Please let me know if you're interested & please review the code thoroughly, I haven't written anything for an embedded device before, and I haven't really used ESPHome before, so there might be questionable design choices that don't really mesh with how things are supposed to be done around here.

Jablotron is a brand of home security systems. They offer a component (JA-121T) that provides UART access to the system. This integration adds sensors to expose motion detectors, door sensors, and report state (armed, leaving, entering, etc.) of individual sections in the system.

Types of changes

  • [ ] Bugfix (non-breaking change which fixes an issue)
  • [x] New feature (non-breaking change which adds functionality)
  • [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • [ ] Other

Pull request in esphome-docs with documentation (if applicable): esphome/esphome-docs#<esphome-docs PR number goes here> Will write if there is any interest in merging this.

Test Environment

  • [x] ESP32
  • [ ] ESP32 IDF
  • [ ] ESP8266

Example entry for config.yaml:


uart:
  id: uart_bus
  tx_pin: D1
  rx_pin: D2
  baud_rate: 9600

jablotron:
  flow_control_pin: D4
    
binary_sensor:
  - { platform: jablotron_peripheral, index: 1,   name: 'Gallery motion', device_class: motion }
  - { platform: jablotron_peripheral, index: 2,   name: 'Entryway motion', device_class: motion }
  - { platform: jablotron_peripheral, index: 16,  name: 'Dining room motion', device_class: motion }
  - { platform: jablotron_peripheral, index: 17,  name: 'Front door', device_class: door }
  - { platform: jablotron_section_flag, index: 1, flag: ENTRY, name: 'Alarm entry delay' }
    
text_sensor:
  - { platform: jablotron_info, name: 'Jablotron Info' }
  - { platform: jablotron_section, index: 1, name: 'Alarm' }

Checklist:

  • [x] The code change is tested and works locally.
  • [ ] Tests have been added to verify that the new code works (under tests/ folder).

If user exposed functionality or configuration variables are added/changed:

juliekoubova avatar Sep 19 '22 20:09 juliekoubova

Hey there @juliekoubova, Thanks for submitting this pull request! Can you add yourself as a codeowner for this integration? This way we can notify you if a bug report for this integration is reported. In __init__.py of the integration, please add:

CODEOWNERS = ["@juliekoubova"]

And run script/build_codeowners.py

(message by NeedsCodeownersLabel)

probot-esphome[bot] avatar Sep 19 '22 20:09 probot-esphome[bot]

Cool - seems like I need to get a JA-121T, although it's relatively expensive. My control panel is currently hooked via USB to Home Assistant which works great as well.

Does it also allow arming and disarming of sections?

andyboeh avatar Sep 20 '22 20:09 andyboeh

Cool - seems like I need to get a JA-121T, although it's relatively expensive. My control panel is currently hooked via USB to Home Assistant which works great as well.

we chose to splurge on JA-121T because we didn't wanna connect the Jablotron device directly to our Home Assistant machine. and the JA-121T UART API is documented, the USB protocol is only reverse engineered, if I'm not mistaken.

Does it also allow arming and disarming of sections?

the integration doesn't support that right now, but the JA-121T API does, so it could be easily added.

juliekoubova avatar Sep 20 '22 20:09 juliekoubova

Is the flow control required @juliekoubova ?

lhoracek avatar Oct 01 '22 12:10 lhoracek

Is the flow control required @juliekoubova ?

@lhoracek not sure if it’s always needed. We are using this RS485 transreceiver to connect to JA-121T, and it needs a pin set to send. It should be possible to leave the pin unconfigured if you have automatic flow control in hardware. I stole this pattern from the modbus integration.

juliekoubova avatar Oct 01 '22 13:10 juliekoubova

Is the flow control required @juliekoubova ?

@lhoracek not sure if it’s always needed. We are using this RS485 transreceiver to connect to JA-121T, and it needs a pin set to send. It should be possible to leave the pin unconfigured if you have automatic flow control in hardware. I stole this pattern from the modbus integration.

Can we make it optional? I have these complete modules: https://www.aliexpress.com/item/1005001633335336.html and they probably handle this internally. Do you create your own board for this?

lhoracek avatar Oct 01 '22 13:10 lhoracek

Oh, it’s required in the schema 🤦🏻‍♀️ I’ll make it optional next week when I come back from my vacation.

We’re currently running it on some ESP dev kit on a breadboard, but @the-ress is building a custom board for it.

juliekoubova avatar Oct 01 '22 14:10 juliekoubova

I'm having issues compiling. Usage of string_view requires newer gcc than the one available in platformio tooling for ESP32 :-(

Only way I got it to work was removing all string_view and changing to to this:

esp32:
  board: esp32-poe
  framework:
    type: arduino
    version: dev
    platform_version: 5.2.0

Otherwise strtol and div functions are not defined in the toolkit for ESP32 But then my LAN8720 ethernet stops compiling :-D

lhoracek avatar Oct 02 '22 10:10 lhoracek

And one more funny obstacle after making it work on esp32. I'm probably looking into the same documentation, but responses I'm getting are not by the configuration :-D

[16:09:49][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:09:49][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:49][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:49][D][jablotron:082]: Sending request 'PRFSTATE'
[16:09:49][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:49][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:49][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 21.75600 s with 0 decimals of accuracy
[16:09:50][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:09:50][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:09:50][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:50][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:50][D][jablotron:026]: Received line: 'OK'
[16:09:50][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:50][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:50][D][jablotron:026]: Received line: 'STATE:'
[16:09:50][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:09:50][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:09:50][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:09:50][E][jablotron:029]: Unknown message: 'STATE 2 OFF'
[16:09:50][D][jablotron:026]: Received line: 'STATE 3 OFF'
[16:09:50][E][jablotron-handler:126]: Not handled' 'STATE 3 OFF'
[16:09:50][E][jablotron:029]: Unknown message: 'STATE 3 OFF'
[16:09:50][D][jablotron:026]: Received line: 'STATE 4 OFF'
[16:09:50][E][jablotron-handler:126]: Not handled' 'STATE 4 OFF'
[16:09:50][E][jablotron:029]: Unknown message: 'STATE 4 OFF'
[16:09:50][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:50][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:50][D][jablotron:026]: Received line: 'STATE 5 OFF'
[16:09:50][E][jablotron-handler:126]: Not handled' 'STATE 5 OFF'
[16:09:50][E][jablotron:029]: Unknown message: 'STATE 5 OFF'
[16:09:50][D][jablotron:026]: Received line: 'STATE 6 OFF'
[16:09:50][E][jablotron-handler:126]: Not handled' 'STATE 6 OFF'
[16:09:50][E][jablotron:029]: Unknown message: 'STATE 6 OFF'
[16:09:50][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 22.75400 s with 0 decimals of accuracy
[16:09:50][D][jablotron:026]: Received line: 'STATE 7 OFF'
[16:09:50][E][jablotron-handler:126]: Not handled' 'STATE 7 OFF'
[16:09:50][E][jablotron:029]: Unknown message: 'STATE 7 OFF'
[16:09:51][D][jablotron:026]: Received line: 'STATE 8 OFF'
[16:09:51][E][jablotron-handler:126]: Not handled' 'STATE 8 OFF'
[16:09:51][E][jablotron:029]: Unknown message: 'STATE 8 OFF'
[16:09:51][D][jablotron:026]: Received line: 'STATE 9 OFF'
[16:09:51][E][jablotron-handler:126]: Not handled' 'STATE 9 OFF'
[16:09:51][E][jablotron:029]: Unknown message: 'STATE 9 OFF'
[16:09:51][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:51][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:51][D][jablotron:026]: Received line: 'STATE 10 OFF'
[16:09:51][E][jablotron-handler:126]: Not handled' 'STATE 10 OFF'
[16:09:51][E][jablotron:029]: Unknown message: 'STATE 10 OFF'
[16:09:51][D][jablotron:026]: Received line: 'STATE 11 OFF'
[16:09:51][E][jablotron-handler:126]: Not handled' 'STATE 11 OFF'
[16:09:51][E][jablotron:029]: Unknown message: 'STATE 11 OFF'
[16:09:51][D][jablotron:026]: Received line: 'STATE 12 OFF'
[16:09:51][E][jablotron-handler:126]: Not handled' 'STATE 12 OFF'
[16:09:51][E][jablotron:029]: Unknown message: 'STATE 12 OFF'
[16:09:51][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:51][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:51][D][jablotron:026]: Received line: 'STATE 13 OFF'
[16:09:51][E][jablotron-handler:126]: Not handled' 'STATE 13 OFF'
[16:09:51][E][jablotron:029]: Unknown message: 'STATE 13 OFF'
[16:09:51][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 23.76100 s with 0 decimals of accuracy
[16:09:51][D][jablotron:026]: Received line: 'STATE 14 OFF'
[16:09:51][E][jablotron-handler:126]: Not handled' 'STATE 14 OFF'
[16:09:51][E][jablotron:029]: Unknown message: 'STATE 14 OFF'
[16:09:52][D][jablotron:026]: Received line: 'STATE 15 OFF'
[16:09:52][E][jablotron-handler:126]: Not handled' 'STATE 15 OFF'
[16:09:52][E][jablotron:029]: Unknown message: 'STATE 15 OFF'
[16:09:52][D][jablotron:026]: Received line: 'OK'
[16:09:52][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:52][D][jablotron:082]: Sending request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:52][D][jablotron:026]: Received line: 'OK'
[16:09:52][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:52][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:52][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:52][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:09:52][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:52][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:52][D][jablotron:082]: Sending request 'PRFSTATE'
[16:09:52][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:52][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:52][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:09:52][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:09:52][D][jablotron:026]: Received line: 'OK'
[16:09:52][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:52][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:52][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 24.75400 s with 0 decimals of accuracy
[16:09:52][D][jablotron:026]: Received line: 'STATE:'
[16:09:52][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:09:53][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 2 OFF'
[16:09:53][D][jablotron:026]: Received line: 'STATE 3 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 3 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 3 OFF'
[16:09:53][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:53][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:53][D][jablotron:026]: Received line: 'STATE 4 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 4 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 4 OFF'
[16:09:53][D][jablotron:026]: Received line: 'STATE 5 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 5 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 5 OFF'
[16:09:53][D][jablotron:026]: Received line: 'STATE 6 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 6 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 6 OFF'
[16:09:53][D][jablotron:026]: Received line: 'STATE 7 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 7 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 7 OFF'
[16:09:53][D][jablotron:026]: Received line: 'STATE 8 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 8 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 8 OFF'
[16:09:53][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:53][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:53][D][jablotron:026]: Received line: 'STATE 9 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 9 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 9 OFF'
[16:09:53][D][jablotron:026]: Received line: 'STATE 10 OFF'
[16:09:53][E][jablotron-handler:126]: Not handled' 'STATE 10 OFF'
[16:09:53][E][jablotron:029]: Unknown message: 'STATE 10 OFF'
[16:09:53][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 25.75400 s with 0 decimals of accuracy
[16:09:54][D][jablotron:026]: Received line: 'STATE 11 OFF'
[16:09:54][E][jablotron-handler:126]: Not handled' 'STATE 11 OFF'
[16:09:54][E][jablotron:029]: Unknown message: 'STATE 11 OFF'
[16:09:54][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:54][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:54][D][jablotron:026]: Received line: 'STATE 12 OFF'
[16:09:54][E][jablotron-handler:126]: Not handled' 'STATE 12 OFF'
[16:09:54][E][jablotron:029]: Unknown message: 'STATE 12 OFF'
[16:09:54][D][jablotron:026]: Received line: 'STATE 13 OFF'
[16:09:54][E][jablotron-handler:126]: Not handled' 'STATE 13 OFF'
[16:09:54][E][jablotron:029]: Unknown message: 'STATE 13 OFF'
[16:09:54][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:54][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:54][D][jablotron:026]: Received line: 'STATE 14 OFF'
[16:09:54][E][jablotron-handler:126]: Not handled' 'STATE 14 OFF'
[16:09:54][E][jablotron:029]: Unknown message: 'STATE 14 OFF'
[16:09:54][D][jablotron:026]: Received line: 'STATE 15 OFF'
[16:09:54][E][jablotron-handler:126]: Not handled' 'STATE 15 OFF'
[16:09:54][E][jablotron:029]: Unknown message: 'STATE 15 OFF'
[16:09:54][D][jablotron:026]: Received line: 'OK'
[16:09:54][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:54][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 26.75400 s with 0 decimals of accuracy
[16:09:54][D][jablotron:082]: Sending request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:54][D][jablotron:026]: Received line: 'OK'
[16:09:54][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:54][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:09:54][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:54][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:54][D][jablotron:082]: Sending request 'PRFSTATE'
[16:09:55][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:55][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:55][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:09:55][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:09:55][D][jablotron:026]: Received line: 'OK'
[16:09:55][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:55][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:55][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:55][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:55][D][jablotron:026]: Received line: 'STATE:'
[16:09:55][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:09:55][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:09:55][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:09:55][E][jablotron:029]: Unknown message: 'STATE 2 OFF'
[16:09:55][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 27.75400 s with 0 decimals of accuracy
[16:09:55][D][jablotron:026]: Received line: 'STATE 3 OFF'
[16:09:55][E][jablotron-handler:126]: Not handled' 'STATE 3 OFF'
[16:09:55][E][jablotron:029]: Unknown message: 'STATE 3 OFF'
[16:09:56][D][jablotron:026]: Received line: 'STATE 4 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 4 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 4 OFF'
[16:09:56][D][jablotron:026]: Received line: 'STATE 5 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 5 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 5 OFF'
[16:09:56][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:56][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:56][D][jablotron:026]: Received line: 'STATE 6 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 6 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 6 OFF'
[16:09:56][D][jablotron:026]: Received line: 'STATE 7 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 7 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 7 OFF'
[16:09:56][D][jablotron:026]: Received line: 'STATE 8 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 8 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 8 OFF'
[16:09:56][D][jablotron:026]: Received line: 'STATE 9 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 9 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 9 OFF'
[16:09:56][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:56][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:56][D][jablotron:026]: Received line: 'STATE 10 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 10 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 10 OFF'
[16:09:56][D][jablotron:026]: Received line: 'STATE 11 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 11 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 11 OFF'
[16:09:56][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 28.76000 s with 0 decimals of accuracy
[16:09:56][D][jablotron:026]: Received line: 'STATE 12 OFF'
[16:09:56][E][jablotron-handler:126]: Not handled' 'STATE 12 OFF'
[16:09:56][E][jablotron:029]: Unknown message: 'STATE 12 OFF'
[16:09:57][D][jablotron:026]: Received line: 'STATE 13 OFF'
[16:09:57][E][jablotron-handler:126]: Not handled' 'STATE 13 OFF'
[16:09:57][E][jablotron:029]: Unknown message: 'STATE 13 OFF'
[16:09:57][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:57][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:57][D][jablotron:026]: Received line: 'STATE 14 OFF'
[16:09:57][E][jablotron-handler:126]: Not handled' 'STATE 14 OFF'
[16:09:57][E][jablotron:029]: Unknown message: 'STATE 14 OFF'
[16:09:57][D][jablotron:026]: Received line: 'STATE 15 OFF'
[16:09:57][E][jablotron-handler:126]: Not handled' 'STATE 15 OFF'
[16:09:57][E][jablotron:029]: Unknown message: 'STATE 15 OFF'
[16:09:57][D][jablotron:026]: Received line: 'OK'
[16:09:57][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:57][D][jablotron:082]: Sending request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:57][D][jablotron:026]: Received line: 'OK'
[16:09:57][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:57][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:09:57][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:57][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:57][D][jablotron:082]: Sending request 'PRFSTATE'
[16:09:57][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:57][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:57][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 29.75400 s with 0 decimals of accuracy
[16:09:58][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:58][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:58][D][climate:385]: 'Kidsroom One climate' - Sending state:
[16:09:58][D][climate:388]:   Mode: HEAT
[16:09:58][D][climate:390]:   Action: IDLE
[16:09:58][D][climate:399]:   Preset: HOME
[16:09:58][D][climate:408]:   Current Temperature: 19.50°C
[16:09:58][D][climate:414]:   Target Temperature: 19.00°C
[16:09:58][D][climate:385]: 'Kidsroom two climate' - Sending state:
[16:09:58][D][climate:388]:   Mode: HEAT
[16:09:58][D][climate:390]:   Action: IDLE
[16:09:58][D][climate:399]:   Preset: HOME
[16:09:58][D][climate:408]:   Current Temperature: 18.43°C
[16:09:58][D][climate:414]:   Target Temperature: 17.50°C
[16:09:58][D][climate:385]: 'Bedroom climate' - Sending state:
[16:09:58][D][climate:388]:   Mode: HEAT
[16:09:58][D][climate:390]:   Action: IDLE
[16:09:58][D][climate:399]:   Preset: HOME
[16:09:58][D][climate:408]:   Current Temperature: 18.93°C
[16:09:58][D][climate:414]:   Target Temperature: 19.00°C
[16:09:58][D][climate:385]: 'Bathroom climate' - Sending state:
[16:09:58][D][climate:388]:   Mode: HEAT
[16:09:58][D][climate:390]:   Action: IDLE
[16:09:58][D][climate:399]:   Preset: HOME
[16:09:58][D][climate:408]:   Current Temperature: 21.93°C
[16:09:58][D][climate:414]:   Target Temperature: 22.00°C
[16:09:58][D][climate:385]: 'Livingroom climate' - Sending state:
[16:09:58][D][climate:388]:   Mode: HEAT
[16:09:58][D][climate:390]:   Action: IDLE
[16:09:58][D][climate:399]:   Preset: HOME
[16:09:58][D][climate:408]:   Current Temperature: 21.43°C
[16:09:58][D][climate:414]:   Target Temperature: 21.50°C
[16:09:58][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:09:58][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:09:58][D][jablotron:026]: Received line: 'OK'
[16:09:58][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:09:58][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:09:58][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:58][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:58][D][jablotron:026]: Received line: 'STATE:'
[16:09:58][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:09:58][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 30.75500 s with 0 decimals of accuracy
[16:09:58][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:09:58][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:09:58][E][jablotron:029]: Unknown message: 'STATE 2 OFF'
[16:09:59][D][jablotron:026]: Received line: 'STATE 3 OFF'
[16:09:59][E][jablotron-handler:126]: Not handled' 'STATE 3 OFF'
[16:09:59][E][jablotron:029]: Unknown message: 'STATE 3 OFF'
[16:09:59][D][jablotron:026]: Received line: 'STATE 4 OFF'
[16:09:59][E][jablotron-handler:126]: Not handled' 'STATE 4 OFF'
[16:09:59][E][jablotron:029]: Unknown message: 'STATE 4 OFF'
[16:09:59][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:59][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:59][D][jablotron:026]: Received line: 'STATE 5 OFF'
[16:09:59][E][jablotron-handler:126]: Not handled' 'STATE 5 OFF'
[16:09:59][E][jablotron:029]: Unknown message: 'STATE 5 OFF'
[16:09:59][D][jablotron:026]: Received line: 'STATE 6 OFF'
[16:09:59][E][jablotron-handler:126]: Not handled' 'STATE 6 OFF'
[16:09:59][E][jablotron:029]: Unknown message: 'STATE 6 OFF'
[16:09:59][D][jablotron:026]: Received line: 'STATE 7 OFF'
[16:09:59][E][jablotron-handler:126]: Not handled' 'STATE 7 OFF'
[16:09:59][E][jablotron:029]: Unknown message: 'STATE 7 OFF'
[16:09:59][D][jablotron:026]: Received line: 'STATE 8 OFF'
[16:09:59][E][jablotron-handler:126]: Not handled' 'STATE 8 OFF'
[16:09:59][E][jablotron:029]: Unknown message: 'STATE 8 OFF'
[16:09:59][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:09:59][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:09:59][D][jablotron:026]: Received line: 'STATE 9 OFF'
[16:09:59][E][jablotron-handler:126]: Not handled' 'STATE 9 OFF'
[16:09:59][E][jablotron:029]: Unknown message: 'STATE 9 OFF'
[16:09:59][D][jablotron:026]: Received line: 'STATE 10 OFF'
[16:09:59][E][jablotron-handler:126]: Not handled' 'STATE 10 OFF'
[16:09:59][E][jablotron:029]: Unknown message: 'STATE 10 OFF'
[16:09:59][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 31.75400 s with 0 decimals of accuracy
[16:10:00][D][jablotron:026]: Received line: 'STATE 11 OFF'
[16:10:00][E][jablotron-handler:126]: Not handled' 'STATE 11 OFF'
[16:10:00][E][jablotron:029]: Unknown message: 'STATE 11 OFF'
[16:10:00][D][jablotron:026]: Received line: 'STATE 12 OFF'
[16:10:00][E][jablotron-handler:126]: Not handled' 'STATE 12 OFF'
[16:10:00][E][jablotron:029]: Unknown message: 'STATE 12 OFF'
[16:10:00][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:00][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:00][D][jablotron:026]: Received line: 'STATE 13 OFF'
[16:10:00][E][jablotron-handler:126]: Not handled' 'STATE 13 OFF'
[16:10:00][E][jablotron:029]: Unknown message: 'STATE 13 OFF'
[16:10:00][D][jablotron:026]: Received line: 'STATE 14 OFF'
[16:10:00][E][jablotron-handler:126]: Not handled' 'STATE 14 OFF'
[16:10:00][E][jablotron:029]: Unknown message: 'STATE 14 OFF'
[16:10:00][D][modbus_controller.sensor:025]: Sensor new state: 2256.00
[16:10:00][D][sensor:127]: 'Hallway Temperature': Sending state 22.56000 °C with 1 decimals of accuracy
[16:10:00][D][climate:385]: 'Hallway climate' - Sending state:
[16:10:00][D][climate:388]:   Mode: OFF
[16:10:00][D][climate:390]:   Action: OFF
[16:10:00][D][climate:399]:   Preset: HOME
[16:10:00][D][climate:408]:   Current Temperature: 22.56°C
[16:10:00][D][climate:414]:   Target Temperature: 20.00°C
[16:10:00][D][modbus_controller.sensor:025]: Sensor new state: 2187.00
[16:10:00][D][sensor:127]: 'Bathroom Temperature': Sending state 21.87000 °C with 1 decimals of accuracy
[16:10:00][D][climate:385]: 'Bathroom climate' - Sending state:
[16:10:00][D][climate:388]:   Mode: HEAT
[16:10:00][D][climate:390]:   Action: IDLE
[16:10:00][D][climate:399]:   Preset: HOME
[16:10:00][D][climate:408]:   Current Temperature: 21.87°C
[16:10:00][D][climate:414]:   Target Temperature: 22.00°C
[16:10:00][D][modbus_controller.sensor:025]: Sensor new state: 1843.00
[16:10:00][D][sensor:127]: 'Kidsroom (Garden) Temperature': Sending state 18.43000 °C with 1 decimals of accuracy
[16:10:00][D][climate:385]: 'Kidsroom two climate' - Sending state:
[16:10:00][D][climate:388]:   Mode: HEAT
[16:10:00][D][climate:390]:   Action: IDLE
[16:10:00][D][climate:399]:   Preset: HOME
[16:10:00][D][climate:408]:   Current Temperature: 18.43°C
[16:10:00][D][climate:414]:   Target Temperature: 17.50°C
[16:10:00][D][modbus_controller.sensor:025]: Sensor new state: 2256.00
[16:10:00][D][sensor:127]: 'Kids Bathroom Temperature': Sending state 22.56000 °C with 1 decimals of accuracy
[16:10:00][D][climate:385]: 'Kids bathroom climate' - Sending state:
[16:10:00][D][climate:388]:   Mode: OFF
[16:10:00][D][climate:390]:   Action: OFF
[16:10:00][D][climate:399]:   Preset: HOME
[16:10:00][D][climate:408]:   Current Temperature: 22.56°C
[16:10:00][D][climate:414]:   Target Temperature: 22.00°C
[16:10:00][D][modbus_controller.sensor:025]: Sensor new state: 1893.00
[16:10:00][D][sensor:127]: 'Bedroom Temperature': Sending state 18.93000 °C with 1 decimals of accuracy
[16:10:00][D][climate:385]: 'Bedroom climate' - Sending state:
[16:10:00][D][climate:388]:   Mode: HEAT
[16:10:00][D][climate:390]:   Action: IDLE
[16:10:00][D][climate:399]:   Preset: HOME
[16:10:00][D][climate:408]:   Current Temperature: 18.93°C
[16:10:00][D][climate:414]:   Target Temperature: 19.00°C
[16:10:00][D][modbus_controller.sensor:025]: Sensor new state: 1950.00
[16:10:00][D][sensor:127]: 'Kidsroom (Road) Temperature': Sending state 19.50000 °C with 1 decimals of accuracy
[16:10:00][D][climate:385]: 'Kidsroom One climate' - Sending state:
[16:10:00][D][climate:388]:   Mode: HEAT
[16:10:00][D][climate:390]:   Action: IDLE
[16:10:00][D][climate:399]:   Preset: HOME
[16:10:00][D][climate:408]:   Current Temperature: 19.50°C
[16:10:00][D][climate:414]:   Target Temperature: 19.00°C
[16:10:00][D][modbus_controller.sensor:025]: Sensor new state: 2137.00
[16:10:00][D][sensor:127]: 'Livingroom & Kitchen Temperature': Sending state 21.37000 °C with 1 decimals of accuracy
[16:10:00][D][climate:385]: 'Livingroom climate' - Sending state:
[16:10:00][D][climate:388]:   Mode: HEAT
[16:10:00][D][climate:390]:   Action: IDLE
[16:10:00][D][climate:399]:   Preset: HOME
[16:10:00][D][climate:408]:   Current Temperature: 21.37°C
[16:10:00][D][climate:414]:   Target Temperature: 21.50°C
[16:10:00][D][jablotron:026]: Received line: 'STATE 15 OFF'
[16:10:00][E][jablotron-handler:126]: Not handled' 'STATE 15 OFF'
[16:10:00][E][jablotron:029]: Unknown message: 'STATE 15 OFF'
[16:10:00][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:00][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:00][D][jablotron:026]: Received line: 'OK'
[16:10:00][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:00][D][jablotron:082]: Sending request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:00][D][jablotron:026]: Received line: 'OK'
[16:10:00][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:00][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:10:00][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:00][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:00][D][jablotron:082]: Sending request 'PRFSTATE'
[16:10:00][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 32.75400 s with 0 decimals of accuracy
[16:10:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:01][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:01][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:01][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:01][D][jablotron:026]: Received line: 'OK'
[16:10:01][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:01][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:01][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 33.75400 s with 0 decimals of accuracy
[16:10:01][D][jablotron:026]: Received line: 'STATE:'
[16:10:01][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:10:02][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:10:02][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:10:02][E][jablotron:029]: Unknown message: 'STATE 2 OFF'
[16:10:02][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:02][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:02][D][jablotron:026]: Received line: 'STATE 3 OFF'
[16:10:02][E][jablotron-handler:126]: Not handled' 'STATE 3 OFF'
[16:10:02][E][jablotron:029]: Unknown message: 'STATE 3 OFF'
[16:10:02][D][jablotron:026]: Received line: 'STATE 4 OFF'
[16:10:02][E][jablotron-handler:126]: Not handled' 'STATE 4 OFF'
[16:10:02][E][jablotron:029]: Unknown message: 'STATE 4 OFF'
[16:10:02][D][jablotron:026]: Received line: 'STATE 5 OFF'
[16:10:02][E][jablotron-handler:126]: Not handled' 'STATE 5 OFF'
[16:10:02][E][jablotron:029]: Unknown message: 'STATE 5 OFF'
[16:10:02][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:02][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:02][D][jablotron:026]: Received line: 'STATE 6 OFF'
[16:10:02][E][jablotron-handler:126]: Not handled' 'STATE 6 OFF'
[16:10:02][E][jablotron:029]: Unknown message: 'STATE 6 OFF'
[16:10:02][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 34.76000 s with 0 decimals of accuracy
[16:10:02][D][jablotron:026]: Received line: 'STATE 7 OFF'
[16:10:02][E][jablotron-handler:126]: Not handled' 'STATE 7 OFF'
[16:10:02][E][jablotron:029]: Unknown message: 'STATE 7 OFF'
[16:10:03][D][jablotron:026]: Received line: 'STATE 8 OFF'
[16:10:03][E][jablotron-handler:126]: Not handled' 'STATE 8 OFF'
[16:10:03][E][jablotron:029]: Unknown message: 'STATE 8 OFF'
[16:10:03][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:03][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:03][D][jablotron:026]: Received line: 'STATE 9 OFF'
[16:10:03][E][jablotron-handler:126]: Not handled' 'STATE 9 OFF'
[16:10:03][E][jablotron:029]: Unknown message: 'STATE 9 OFF'
[16:10:03][D][jablotron:026]: Received line: 'STATE 10 OFF'
[16:10:03][E][jablotron-handler:126]: Not handled' 'STATE 10 OFF'
[16:10:03][E][jablotron:029]: Unknown message: 'STATE 10 OFF'
[16:10:03][D][jablotron:026]: Received line: 'STATE 11 OFF'
[16:10:03][E][jablotron-handler:126]: Not handled' 'STATE 11 OFF'
[16:10:03][E][jablotron:029]: Unknown message: 'STATE 11 OFF'
[16:10:03][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:03][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:03][D][jablotron:026]: Received line: 'STATE 12 OFF'
[16:10:03][E][jablotron-handler:126]: Not handled' 'STATE 12 OFF'
[16:10:03][E][jablotron:029]: Unknown message: 'STATE 12 OFF'
[16:10:03][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 35.75500 s with 0 decimals of accuracy
[16:10:03][D][jablotron:026]: Received line: 'STATE 13 OFF'
[16:10:03][E][jablotron-handler:126]: Not handled' 'STATE 13 OFF'
[16:10:03][E][jablotron:029]: Unknown message: 'STATE 13 OFF'
[16:10:04][D][jablotron:026]: Received line: 'STATE 14 OFF'
[16:10:04][E][jablotron-handler:126]: Not handled' 'STATE 14 OFF'
[16:10:04][E][jablotron:029]: Unknown message: 'STATE 14 OFF'
[16:10:04][D][jablotron:026]: Received line: 'STATE 15 OFF'
[16:10:04][E][jablotron-handler:126]: Not handled' 'STATE 15 OFF'
[16:10:04][E][jablotron:029]: Unknown message: 'STATE 15 OFF'
[16:10:04][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:04][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:04][D][jablotron:026]: Received line: 'OK'
[16:10:04][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:04][D][jablotron:082]: Sending request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:04][D][jablotron:026]: Received line: 'OK'
[16:10:04][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:04][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:10:04][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:04][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:04][D][jablotron:082]: Sending request 'PRFSTATE'
[16:10:04][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:04][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:04][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 36.75400 s with 0 decimals of accuracy
[16:10:05][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:05][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:05][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:05][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:05][D][jablotron:026]: Received line: 'OK'
[16:10:05][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:05][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:05][D][jablotron:026]: Received line: 'STATE:'
[16:10:05][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:10:05][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:05][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:05][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:10:05][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:10:05][E][jablotron:029]: Unknown message: 'STATE 2 OFF'
[16:10:05][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 37.76000 s with 0 decimals of accuracy
[16:10:05][D][jablotron:026]: Received line: 'STATE 3 OFF'
[16:10:05][E][jablotron-handler:126]: Not handled' 'STATE 3 OFF'
[16:10:05][E][jablotron:029]: Unknown message: 'STATE 3 OFF'
[16:10:06][D][jablotron:026]: Received line: 'STATE 4 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 4 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 4 OFF'
[16:10:06][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:06][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:06][D][jablotron:026]: Received line: 'STATE 5 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 5 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 5 OFF'
[16:10:06][D][jablotron:026]: Received line: 'STATE 6 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 6 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 6 OFF'
[16:10:06][D][modbus_controller:032]: Modbus command to device=1 register=0x05 countdown=0 no response received - removed from send queue
[16:10:06][D][jablotron:026]: Received line: 'STATE 7 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 7 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 7 OFF'
[16:10:06][D][jablotron:026]: Received line: 'STATE 8 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 8 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 8 OFF'
[16:10:06][D][jablotron:026]: Received line: 'STATE 9 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 9 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 9 OFF'
[16:10:06][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:06][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:06][D][jablotron:026]: Received line: 'STATE 10 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 10 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 10 OFF'
[16:10:06][D][jablotron:026]: Received line: 'STATE 11 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 11 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 11 OFF'
[16:10:06][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 38.76100 s with 0 decimals of accuracy
[16:10:06][D][jablotron:026]: Received line: 'STATE 12 OFF'
[16:10:06][E][jablotron-handler:126]: Not handled' 'STATE 12 OFF'
[16:10:06][E][jablotron:029]: Unknown message: 'STATE 12 OFF'
[16:10:07][D][jablotron:026]: Received line: 'STATE 13 OFF'
[16:10:07][E][jablotron-handler:126]: Not handled' 'STATE 13 OFF'
[16:10:07][E][jablotron:029]: Unknown message: 'STATE 13 OFF'
[16:10:07][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:07][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:07][D][jablotron:026]: Received line: 'STATE 14 OFF'
[16:10:07][E][jablotron-handler:126]: Not handled' 'STATE 14 OFF'
[16:10:07][E][jablotron:029]: Unknown message: 'STATE 14 OFF'
[16:10:07][D][jablotron:026]: Received line: 'STATE 15 OFF'
[16:10:07][E][jablotron-handler:126]: Not handled' 'STATE 15 OFF'
[16:10:07][E][jablotron:029]: Unknown message: 'STATE 15 OFF'
[16:10:07][D][jablotron:026]: Received line: 'OK'
[16:10:07][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:07][D][jablotron:082]: Sending request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:07][D][jablotron:026]: Received line: 'OK'
[16:10:07][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:07][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:10:07][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:07][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:07][D][jablotron:082]: Sending request 'PRFSTATE'
[16:10:07][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:07][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:07][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 39.75700 s with 0 decimals of accuracy
[16:10:08][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:08][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:08][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:08][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:08][D][jablotron:026]: Received line: 'OK'
[16:10:08][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:08][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:08][D][jablotron:026]: Received line: 'STATE:'
[16:10:08][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:10:08][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:10:08][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:10:08][E][jablotron:029]: Unknown message: 'STATE 2 OFF'
[16:10:08][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:08][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:08][D][jablotron:026]: Received line: 'STATE 3 OFF'
[16:10:08][E][jablotron-handler:126]: Not handled' 'STATE 3 OFF'
[16:10:08][E][jablotron:029]: Unknown message: 'STATE 3 OFF'
[16:10:08][D][jablotron:026]: Received line: 'STATE 4 OFF'
[16:10:08][E][jablotron-handler:126]: Not handled' 'STATE 4 OFF'
[16:10:08][E][jablotron:029]: Unknown message: 'STATE 4 OFF'
[16:10:08][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 40.75500 s with 0 decimals of accuracy
[16:10:08][D][jablotron:026]: Received line: 'STATE 5 OFF'
[16:10:08][E][jablotron-handler:126]: Not handled' 'STATE 5 OFF'
[16:10:08][E][jablotron:029]: Unknown message: 'STATE 5 OFF'
[16:10:09][D][jablotron:026]: Received line: 'STATE 6 OFF'
[16:10:09][E][jablotron-handler:126]: Not handled' 'STATE 6 OFF'
[16:10:09][E][jablotron:029]: Unknown message: 'STATE 6 OFF'
[16:10:09][D][jablotron:026]: Received line: 'STATE 7 OFF'
[16:10:09][E][jablotron-handler:126]: Not handled' 'STATE 7 OFF'
[16:10:09][E][jablotron:029]: Unknown message: 'STATE 7 OFF'
[16:10:09][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:09][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:09][D][jablotron:026]: Received line: 'STATE 8 OFF'
[16:10:09][E][jablotron-handler:126]: Not handled' 'STATE 8 OFF'
[16:10:09][E][jablotron:029]: Unknown message: 'STATE 8 OFF'
[16:10:09][D][jablotron:026]: Received line: 'STATE 9 OFF'
[16:10:09][E][jablotron-handler:126]: Not handled' 'STATE 9 OFF'
[16:10:09][E][jablotron:029]: Unknown message: 'STATE 9 OFF'
[16:10:09][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:09][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:09][D][jablotron:026]: Received line: 'STATE 10 OFF'
[16:10:09][E][jablotron-handler:126]: Not handled' 'STATE 10 OFF'
[16:10:09][E][jablotron:029]: Unknown message: 'STATE 10 OFF'
[16:10:09][D][jablotron:026]: Received line: 'STATE 11 OFF'
[16:10:09][E][jablotron-handler:126]: Not handled' 'STATE 11 OFF'
[16:10:09][E][jablotron:029]: Unknown message: 'STATE 11 OFF'
[16:10:09][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 41.75400 s with 0 decimals of accuracy
[16:10:09][D][jablotron:026]: Received line: 'STATE 12 OFF'
[16:10:09][E][jablotron-handler:126]: Not handled' 'STATE 12 OFF'
[16:10:09][E][jablotron:029]: Unknown message: 'STATE 12 OFF'
[16:10:10][D][jablotron:026]: Received line: 'STATE 13 OFF'
[16:10:10][E][jablotron-handler:126]: Not handled' 'STATE 13 OFF'
[16:10:10][E][jablotron:029]: Unknown message: 'STATE 13 OFF'
[16:10:10][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:10][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:10][D][jablotron:026]: Received line: 'STATE 14 OFF'
[16:10:10][E][jablotron-handler:126]: Not handled' 'STATE 14 OFF'
[16:10:10][E][jablotron:029]: Unknown message: 'STATE 14 OFF'
[16:10:10][D][jablotron:026]: Received line: 'STATE 15 OFF'
[16:10:10][E][jablotron-handler:126]: Not handled' 'STATE 15 OFF'
[16:10:10][E][jablotron:029]: Unknown message: 'STATE 15 OFF'
[16:10:10][D][jablotron:026]: Received line: 'OK'
[16:10:10][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:10][D][jablotron:082]: Sending request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:10][D][jablotron:026]: Received line: 'OK'
[16:10:10][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:10][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:10:10][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:10][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:10][D][jablotron:082]: Sending request 'PRFSTATE'
[16:10:10][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:10][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:10][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 42.75400 s with 0 decimals of accuracy
[16:10:11][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:11][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:11][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:11][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:11][D][jablotron:026]: Received line: 'OK'
[16:10:11][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:11][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:11][D][jablotron:026]: Received line: 'STATE:'
[16:10:11][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:10:11][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:10:11][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:10:11][E][jablotron:029]: Unknown message: 'STATE 2 OFF'
[16:10:11][D][jablotron:026]: Received line: 'STATE 3 OFF'
[16:10:11][E][jablotron-handler:126]: Not handled' 'STATE 3 OFF'
[16:10:11][E][jablotron:029]: Unknown message: 'STATE 3 OFF'
[16:10:11][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:11][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:11][D][jablotron:026]: Received line: 'STATE 4 OFF'
[16:10:11][E][jablotron-handler:126]: Not handled' 'STATE 4 OFF'
[16:10:11][E][jablotron:029]: Unknown message: 'STATE 4 OFF'
[16:10:11][D][esp32.preferences:113]: Saving 7 preferences to flash...
[16:10:11][D][esp32.preferences:142]: Saving 7 preferences to flash: 7 cached, 0 written, 0 failed
[16:10:11][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 43.76100 s with 0 decimals of accuracy
[16:10:11][D][jablotron:026]: Received line: 'STATE 5 OFF'
[16:10:11][E][jablotron-handler:126]: Not handled' 'STATE 5 OFF'
[16:10:11][E][jablotron:029]: Unknown message: 'STATE 5 OFF'
[16:10:12][D][jablotron:026]: Received line: 'STATE 6 OFF'
[16:10:12][E][jablotron-handler:126]: Not handled' 'STATE 6 OFF'
[16:10:12][E][jablotron:029]: Unknown message: 'STATE 6 OFF'
[16:10:12][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:12][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:12][D][jablotron:026]: Received line: 'STATE 7 OFF'
[16:10:12][E][jablotron-handler:126]: Not handled' 'STATE 7 OFF'
[16:10:12][E][jablotron:029]: Unknown message: 'STATE 7 OFF'
[16:10:12][D][jablotron:026]: Received line: 'STATE 8 OFF'
[16:10:12][E][jablotron-handler:126]: Not handled' 'STATE 8 OFF'
[16:10:12][E][jablotron:029]: Unknown message: 'STATE 8 OFF'
[16:10:12][D][jablotron:026]: Received line: 'STATE 9 OFF'
[16:10:12][E][jablotron-handler:126]: Not handled' 'STATE 9 OFF'
[16:10:12][E][jablotron:029]: Unknown message: 'STATE 9 OFF'
[16:10:12][D][jablotron:026]: Received line: 'STATE 10 OFF'
[16:10:12][E][jablotron-handler:126]: Not handled' 'STATE 10 OFF'
[16:10:12][E][jablotron:029]: Unknown message: 'STATE 10 OFF'
[16:10:12][D][jablotron:026]: Received line: 'STATE 11 OFF'
[16:10:12][E][jablotron-handler:126]: Not handled' 'STATE 11 OFF'
[16:10:12][E][jablotron:029]: Unknown message: 'STATE 11 OFF'
[16:10:12][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:12][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:12][D][jablotron:026]: Received line: 'STATE 12 OFF'
[16:10:12][E][jablotron-handler:126]: Not handled' 'STATE 12 OFF'
[16:10:12][E][jablotron:029]: Unknown message: 'STATE 12 OFF'
[16:10:12][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 44.75500 s with 0 decimals of accuracy
[16:10:12][D][jablotron:026]: Received line: 'STATE 13 OFF'
[16:10:12][E][jablotron-handler:126]: Not handled' 'STATE 13 OFF'
[16:10:12][E][jablotron:029]: Unknown message: 'STATE 13 OFF'
[16:10:13][D][jablotron:026]: Received line: 'STATE 14 OFF'
[16:10:13][E][jablotron-handler:126]: Not handled' 'STATE 14 OFF'
[16:10:13][E][jablotron:029]: Unknown message: 'STATE 14 OFF'
[16:10:13][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:13][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:13][D][jablotron:026]: Received line: 'STATE 15 OFF'
[16:10:13][E][jablotron-handler:126]: Not handled' 'STATE 15 OFF'
[16:10:13][E][jablotron:029]: Unknown message: 'STATE 15 OFF'
[16:10:13][D][jablotron:026]: Received line: 'OK'
[16:10:13][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:13][D][jablotron:082]: Sending request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:13][D][jablotron:026]: Received line: 'OK'
[16:10:13][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:13][D][jablotron:077]: Queueing request 'PRFSTATE'
[16:10:13][D][jablotron:077]: Queueing request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:13][D][jablotron:077]: Queueing request 'FLAGS 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:13][D][jablotron:082]: Sending request 'PRFSTATE'
[16:10:13][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:13][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:13][D][sensor:127]: 'EasyX PLC 1 Uptime': Sending state 45.75700 s with 0 decimals of accuracy
[16:10:14][D][jablotron:026]: Received line: 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:14][E][jablotron-handler:108]: Handled by 'PRFSTATE' 'PRFSTATE C00741110000000000000000000000000000000000000000000000000000'
[16:10:14][D][jablotron:026]: Received line: 'OK'
[16:10:14][E][jablotron-handler:114]: Handled by 'OK' 'OK'
[16:10:14][D][jablotron:082]: Sending request 'STATE 2 3 4 5 6 7 8 9 10 11 12 13 14 15'
[16:10:14][W][modbus_controller:113]: Duplicate modbus command found: type=0x1 address=0 count=7
[16:10:14][W][modbus_controller:113]: Duplicate modbus command found: type=0x2 address=1 count=7
[16:10:14][D][jablotron:026]: Received line: 'STATE:'
[16:10:14][E][jablotron-handler:111]: Handled by 'STATE' 'STATE:'
[16:10:14][D][jablotron:026]: Received line: 'STATE 2 OFF'
[16:10:14][E][jablotron-handler:126]: Not handled' 'STATE 2 OFF'
[16:10:14][E][jablotron:029]: Unknown message: 'STATE 2 OFF'

I'll try to contribute to your branch ;-)

lhoracek avatar Oct 11 '22 14:10 lhoracek

I have fixed all the tidy and format issues; the flow_control_pin section should be optional now.

@lhoracek would you please try the latest version? it should hopefully build on ESP32 without any changes now

juliekoubova avatar Oct 24 '22 17:10 juliekoubova

@juliekoubova compiles fine and works fine as well 👍 Already playing with modifying to allow setting peripherals and arming through this component.

lhoracek avatar Nov 03 '22 08:11 lhoracek

Hey everyone, added some more features: there's a new Section Select component which allows you to arm/disarm/partially arm the alarm, and a PG Switch component that controls a PG. The docs have been updated.

What else needs to be done to merge this? The "needs-tests" tag has come back for some reason, why is that? The new integrations should be covered in the tests, I had to add a couple of new files because the existing ones became too big.

juliekoubova avatar Nov 11 '22 23:11 juliekoubova

@juliekoubova started failing again for esp32. Sorry for that :-)

src/esphome/components/jablotron/jablotron_device.cpp: In member function 'void esphome::jablotron::IndexedDevice::set_index(int)':
src/esphome/components/jablotron/jablotron_device.cpp:34:37: error: 'to_string' was not declared in this scope
   this->index_str_ = to_string(value);

Don't get it since all the tests are passing. Tried raspian and macOS. Both having the same issue. Using esphome 2022.11.1

Configuration
esphome:
  name: testboard
  build_path: ./.build/testboard
  platform: ESP32
  board: eap32_poe

wifi:
  ssid: MyHomeNetwork
  password: VerySafePassword

ota:
  password: "VerySafePassword"
# Enable Home Assistant API
api:
  password: 'VerySafePassword'

external_components:
  - source: github://pr#3825
    components: ["jablotron_info", "jablotron_section","jablotron_peripheral", "jablotron_section_flag", "jablotron", "jablotron_pg"]
    refresh: 0s

# Enable logging
logger:
  level: DEBUG
  hardware_uart: UART0
  baud_rate: 0  # Disable logging via UART

uart:
  - tx_pin: GPIO13
    rx_pin: GPIO36
    baud_rate: 9600
    id: uart_jab

jablotron: 
    
binary_sensor:
  - { platform: jablotron_peripheral, index: 1,   name: 'Gallery motion', device_class: motion }
  - { platform: jablotron_peripheral, index: 2,   name: 'Entryway motion', device_class: motion }
  - { platform: jablotron_peripheral, index: 16,  name: 'Dining room motion', device_class: motion }
  - { platform: jablotron_peripheral, index: 17,  name: 'Front door', device_class: door }
  - { platform: jablotron_section_flag, index: 1, flag: ENTRY, name: 'Alarm entry delay' }
    
text_sensor:
  - { platform: jablotron_info, name: 'Jablotron Info' }
  - { platform: jablotron_section, index: 1, name: 'Alarm' }

select:
  - { platform: jablotron_section, index: 1,  name: 'Section select test' }
  

lhoracek avatar Nov 20 '22 22:11 lhoracek

There hasn't been any activity on this pull request recently. This pull request has been automatically marked as stale because of that and will be closed if no further activity occurs within 7 days. Thank you for your contributions.

github-actions[bot] avatar Feb 19 '23 00:02 github-actions[bot]

Actually after testing the last build on newer version of esphome and with newer Arduino everything works like a charm and my issues with the component were bad configuration (mixing peripheral and PG inputs because of bad documentation of jablotron config on our side)

👍

lhoracek avatar Feb 27 '23 23:02 lhoracek