Closed minix1234 closed 3 years ago
This is actually taken care of in the base structure of the sensor.py, one just needs to add a scan_interval: ##
entry into the sensor definition as per below.
- platform: opcua
scan_interval: 10
nodes:
- name: Sensor1
hub: WAGO_OPC_UA
nodeid: "ns=4;s=|var|WAGO 750-8101 PFC100 2ETH.Application.Publish_NativeMQTT.dwMyCounter"
unit_of_measurement: degrees
the current basic sensor does not allow for setting the generic SCAN_INTERVAL settings. it appears that we should be able to pull it out from the YAML configuration and input it into the entity setup in a similar fashion to the generic sensor platform .