Thanks. Due to some bad dupont cable connection the program was not entering the void loop() and not printing to the console. Was not aware about a hardware serial print. It is stable now.
peerv
@peerv
Best posts made by peerv
-
RE: 💬 Distance Sensor
-
RE: Low power Distance Sensor - Hardware issues
@qqlapraline Just use a 5V pro mini and get rid of level converter and mosfet!
Power the 5V HC-SR04 sonar with a pro mini digital pin.
Switch on the sonar for doing a measurement and then switch off again and put the promini to sleep till the next measurement. -
RE: help needed for getting started with arduino based sensor and Domoticz
Thanks guys, that makes it clear for me...
-
RE: Serial gateway and NRF24 and repeater mode
@mfalkvidd Thanks for confirming about the BC message being normal protocol.
I have used the log parser (great!) and the trouble shooting flowchart (great!).
I am currently powering thru USB but as the comms problem is intermittend I need some further investigation. -
New 2.2.0 Signal report function
How can I implement the new 2.2.0 function
#define MY_SIGNAL_REPORT_ENABLED
Should it be defined in the node and/or the gateway?
Can it be used with NRF24?
How is the RSSI value reported?
Could not find a writeup on this new function.
Latest posts made by peerv
-
RE: sendBatteryLevel not showing up in HA dasboard
@mvader Thanks, got it working. Your explanation and the right indentions ( ) did it!
-
RE: sendBatteryLevel not showing up in HA dasboard
@mvader Thanks, have a problem translating you example to my situation
This is the card were I want to add the battery_level:
- type: entities title: Levelmeter breed show_header_toggle: false entities: - entity: sensor.n60breed_20_54 name: Battery (V) icon: mdi:battery - entity: sensor.n60breed_20_50 name: Temperature icon: mdi:temperature-celsius - entity: sensor.n60breed_20_51 name: Humidity icon: mdi:water-percent - entity: sensor.n60breed_20_52 name: Bar - entity: sensor.n60breed_20_53 name: Waterlevel (cm)
I played around with the following entry in configuration.yaml
sensor: - platform: template sensors: n60breed_20_55: entity_id: sensor.n60breed_20_53 value_template: "{{ states.sensor.n60breed_20_53.attributes.battery_level }}" unit_of_measurement: '%'
but could not get it to work! Did not find any docs on platform Template.
Please advice -
RE: sendBatteryLevel not showing up in HA dasboard
@mfalkvidd
Thanks, yes your solution could work. Also a voltage divider with a seperate child-id could work.But my point is that the Arduino battery_level value is already available in the mysensors.json in Home Assistant.
"type": 17, "sketch_name": "N60Breed", "sketch_version": "1.0", "battery_level": 91, "protocol_version": "2.3.1", "heartbeat": 0
I just don't know how to get the battery_level value presented in the HA UI.
-
RE: sendBatteryLevel not showing up in HA dasboard
@alaskadiy No solution still.... I doubt if it has been implemented in the interface
-
RE: sendBatteryLevel not showing up in HA dasboard
Can anybody help my with how to display the MySensors sendBatteryLevel percentage on the HA user interface.
The percentage appears correctly in Home Assistant Developertools - States- Attrributes.
how to get this attribute displayed on the UI? -
RE: sendBatteryLevel not showing up in HA dasboard
@mfalkvidd I had seen that discussion on the mysensors forum.
I my case the battery level % shows up correctly in the HA entities list attributes.
It just does not show up on the HA Console.
Have never seen it on the HA Console. What should I expect to see? -
sendBatteryLevel not showing up in HA dasboard
Need help on how to present Batterypct in the HA dashboard.
Is there a configuration setting needed for this? -
RE: Invalid configuration on hassio
HASSIO 0.70 on RPi with serial gateway attached still having configuration check problem with mysensors when executing
hassio ha check
This is what I did to try to solve:
-
Deleted the configuration.yaml and the mysensors.json
-
Restarted the RPi and hassio installed the default configuration.yaml
-
Added the following mysensors configuration to the default configuration.yaml
mysensors: gateways: - device: '/dev/ttyUSB0' persistence_file: 'mysensors.json' persistence: true retain: true version: '2.2'
-
Restarted the Rpi and checked that hassio had installed the mysensors.json in the /config directory
All my sensors were added to the mysensors.json -
The whole system seems to work OK!
-
However when I run "hassio ha check" on the RPi I get the following error:
core-ssh:~# hassio ha check ERROR Testing configuration at /config Failed config mysensors: - Invalid config for [mysensors]: /config directory does not exist or is not writeable for dictionary value @ data['mysensors']['gateways'][0]['persistence_ file']. Got 'mysensors.json' not a valid value for dictionary value @ data['mysensors']['gateways'][0]['devic e']. Got '/dev/ttyUSB0'. (See /config/configuration.yaml, line 59). Please check the docs at https://home-assistant.io/components/mysensors/ - config: ? frontend: ? javascript_version: auto group: ? history: ? exclude: ? include: ? use_include_order: False http: ? introduction: ? logbook: ? logger: [source /config/configuration.yaml:52] default: info logs: [source /config/configuration.yaml:54] homeassistant.components.mysensors: debug mysensors: debug mysensors: [source /config/configuration.yaml:59] gateways: [source /config/configuration.yaml:60] - device: /dev/ttyUSB0 persistence_file: mysensors.json persistence: True retain: True version: 2.2 script: ? updater: ? include_used_components: False reporting: True Successful config (partial) mysensors
-
There are no errors in the system log! According to the log the system is reading and writing fine to and from the mysensors.json
-
The secondary annoyance from this problem is the fact that I cannot reload the configuration file after a change. The only way to reload the configuration file is by powering off/on the RPi
-
I added an issue on github: https://github.com/home-assistant/hassio/issues/478
Any help appreciated
-
-
RE: Invalid configuration on hassio
I am now at 0.69.1 HASS on Rpi and still having configuration check problem.
This is my configuration:
mysensors: gateways: - device: '/dev/ttyUSB0' persistence_file: '/config/mysensors.json' baud_rate: 115200 optimistic: false persistence: true retain: true version: '2.0'
And this is the configuration check ERROR:
core-ssh:~# hassio ha check ERROR starting version 3.2.4 Testing configuration at /config Failed config mysensors: - Invalid config for [mysensors]: /config directory does not exist or is not writeable for dictionary value @ data['mysensors']['gateways'][0]['persistence_ file']. Got /config/mysensors.json' not a valid value for dictionary value @ data['mysensors']['gateways'][0]['device']. Got '/dev/ttyUSB0'. (See /config/configuration.yaml, line 85). Please check the docs at https://home-assistant.io/components/mysensors/
A secondary result of this error is the restarting the Rpi does NOT load a new configuration!
The only way to load a new configuration file is to power off/on the Rpi.However all the rest seems to funtion well !?
Really need help with this.