@mvader Thanks, got it working. Your explanation and the right indentions ( ) did it!
Posts made by peerv
-
RE: sendBatteryLevel not showing up in HA dasboard
-
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.
-
RE: Invalid configuration on hassio
@iteafreely When I make a configuration change, this change is not gone thru after a restart. I have to power off/on the RPi to activate the configuration change.
So, you think this is also because of this configuration error -
RE: Invalid configuration on hassio
On the latest HASSIO release now and still not solved Can someone help with this problem?
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/
The mysensors.json and configuration.yaml are in the same config directory.
Despite the above problem the system seems to work fine.Is this a fake error?
-
hassio saving database size
How can I prevent all the "state_changed" events being written in the hassio database.
It is taken up a lot of dataspace and has no historic meaning.
The Recorder component does not seem to support excluding "events" . The recorder component seems to support only the exclusion of "entities" and "domains".
Any suggestions welcome. -
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. -
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: 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. -
Serial gateway and NRF24 and repeater mode
I have a serial gateway with one nodeid=20 running for some time with no problems.
Getting comms problems with a second nodeid=22 when added to the same gateway.Below is the debug log from nodeid=22 with the communication problems.
On the 4th line is a READ from nodeid=20. I don't have REPEATER MODE defined!
There is also a broadcast message MSG:BCWhat could be wrong here?
124187 !TSF:SND:TNR 124194 MCO:SLP:MS=6000,SMS=0,I1=255,M1=255,I2=255,M2=255 124199 !MCO:SLP:TNR 124436 TSF:MSG:READ,20-20-255,s=255,c=3,t=7,pt=0,l=0,sg=0: 124441 TSF:MSG:BC 124585 TSF:MSG:READ,0-0-22,s=255,c=3,t=8,pt=1,l=1,sg=0:0 124591 TSF:MSG:FPAR OK,ID=0,D=1 126053 TSM:FPAR:OK 126054 TSM:ID 126056 TSM:ID:OK 126057 TSM:UPL 126095 !TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=0,st=NACK:1 126220 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0: 126225 TSF:MSG:BC 126537 !TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=21,pt=1,l=1,sg=0,ft=1,st=NACK:0 126647 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0: 126652 TSF:MSG:BC 127391 !TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=21,pt=1,l=1,sg=0,ft=2,st=NACK:0 128102 TSM:UPL 128139 !TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=3,st=NACK:1 128690 TSF:MSG:READ,0-0-255,s=255,c=3,t=20,pt=0,l=0,sg=0: 128695 TSF:MSG:BC 129430 !TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=21,pt=1,l=1,sg=0,ft=4,st=NACK:0 130147 TSM:UPL 130184 !TSF:MSG:SEND,22-22-0-0,s=255,c=3,t=24,pt=1,l=1,sg=0,ft=5,st=NACK:1```
-
RE: 💬 Distance Sensor
Found a new distance sensor HC-SR04P .
De spec shows that the input voltage of this model is 3-5V. So this model can be used with a 3.3V arduino.
https://www.aliexpress.com/snapshot/0.html?spm=a2g0s.9042647.6.2.1AslKf&orderId=89862296499774&productId=32711959780 -
RE: Invalid configuration on hassio
The mysensors.json is in the same directory as the configuration.yaml.
The first ERROR line in the log above says " unable to setup error log. But in my config directory is also a "home-assistant.log".
Despite the errors in the config check the system seems to works as far as I can see.
-
Invalid configuration on hassio
HASSIO 0.62.1 on RPI with serial gateway attached
I get "invalid configuration" when running "hassio homeassistant check"When running configuration validation in the UI I get "valid configuration"
What am I missing?
Error on homeassistant/check: starting version 3.2.4 Testing configuration at /config 2018-02-09 16:40:18 ERROR (MainThread) [homeassistant.bootstrap] Unable to setup error log /config/home-assistant.log (access denied) 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up logger 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up introduction 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up recorder 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up http 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain logger took 0.0 seconds. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain introduction took 0.0 seconds. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain recorder took 0.0 seconds. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain http took 0.0 seconds. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up history 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up system_log 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up websocket_api 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up api 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain history took 0.0 seconds. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain system_log took 0.0 seconds. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain websocket_api took 0.0 seconds. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain api took 0.0 seconds. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up frontend 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setup of domain frontend took 0.0 seconds. 2018-02-09 16:40:19 ERROR (MainThread) [homeassistant.config] Invalid config for [mysensors]: /config directory does not exist or is not writetable for dictionary value @ data['mysensors']['gateways'][0]['persistence_file']. Got 'mysensors.json' not a valid value for dictionary value @ data['mysensors']['gateways'][0]['device']. Got '/dev/ttyUSB0'. (See /config/configuration.yaml, line 52). Please check the docs at https://home-assistant.io/components/mysensors/ 2018-02-09 16:40:19 ERROR (MainThread) [homeassistant.setup] Setup failed for mysensors: Invalid config. 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up sun 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up group 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up map 2018-02-09 16:40:19 INFO (MainThread) [homeassistant.setup] Setting up discovery 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up thethingsnetwork 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up updater 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up sensor 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain sun took 0.3 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain group took 0.3 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain map took 0.3 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain discovery took 0.2 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain thethingsnetwork took 0.2 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain updater took 0.1 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain sensor took 0.1 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up history_graph 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up logbook 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up config 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up cloud 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up conversation 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up automation 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setting up script 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain history_graph took 0.0 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain logbook took 0.0 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain config took 0.0 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain cloud took 0.0 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain conversation took 0.0 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain automation took 0.0 seconds. 2018-02-09 16:40:20 INFO (MainThread) [homeassistant.setup] Setup of domain script took 0.0 seconds. Failed config mysensors: gateways: [source /config/configuration.yaml:53] - baud_rate: 115200 device: /dev/ttyUSB0 persistence_file: mysensors.json optimistic: False persistence: True retain: True version: 2.0 General Errors: - Setup failed for mysensors: Invalid config. Successful config (partial) mysensors: core-ssh:~#
-
Removing sensors from mysensors.json
I am running hassio 0.62.1 on a Pi with serial gateway
All running fine.
When I remove a sensor from Mysensors.json and save the file the sensor reappears after opening the file again!
Can't get it removed permanently.
I am using the hassio samba share to edit the mysensors.json file in the windows editor.The sensor I want to remove is NOT connected to the gateway.
Any tip?
-
RE: Newbie PCB and battery on RAW Voltage measurement
@gohan I managed to get it down to 40 microamp in sleep mode now.
I also read somewhere to set all unused pins to INPUT.
I am going to try that too. -
RE: Newbie PCB and battery on RAW Voltage measurement
@gohan I am using the sonar distance sensor to measure water level.
The measurement is only taking once every minute.
So the sensor is sleeping most of the time.
To save power I power the sonar from a digital pin.
Before going to sleep I switch off the sonar.
In sleep mode my sensor draws only 200 micro amps!
Thanks @gohan for the link tip.
I will see how long the battery last in this application. -
RE: Need help understanding Openhab, Battery powered sensors and arduino sketches .
Have a look at youtube and look for Paul McWhorter. He has 25 excellent newbie Arduine lessons.
-
Newbie PCB and battery on RAW Voltage measurement
Re:
Easy/Newbie PCB for MySensors
I am building my first Newbie PCB sensor. I am powering with 9V battery on RAW and let the onboard pro mini regulator supply 5V. I am not using a booster.
I would like to use the battery measurer voltage divider. I recalculated the resistor values to 5M/680K.
Looking at the schematic of Newbie PCB I see that when the BAT and REG jumpers are NOT connected and also the REG power input is NOT connected I could use the unused booster pin 1 as input for the Voltage divider.
I would think when jumpering the RAW pin to the not used pin 1 (Vin) of the booster connection I could measure my RAW battery voltage.
Just looking for confirmation.
Thanks -
hassio "sendBatteryLevel" value not on user interface
Installed latest version of hassio on a Pi with a serial gateway attached.
send(voltMsg.set(Vbat, 1)) is working fine and the value appears on the HA UI.sendBatteryLevel with battery percent of 93 is not appearing on the HA UI.
Sketch console log shows correct battery level of "93" send.HA persistance file entry for the node also shows "battery_level": 93
Protocol version is 2.1.1Any ideas why battery level is not showing up on the HA console?
Do I need to put some node entry in the config file? -
RE: Serial.print and battery powered pro mini
Thanks.
I am using a 5V pro mini with a "red" FTDI adapter.
After disconnecting VCC between FTDI and 5V pro mini and the FTDI not (yet) connected to PC when connecting the battery to RAW also the power light on the FTDI adapter is lit.
So the power led on the FTDI gets power from the battery.
Is this not conflicting when I connect the FTDI to the PC USB? -
Serial.print and battery powered pro mini
I want to test my battery powered pro mini sensor.
Is there a way to hook up the pro mini to the USB port and not using the USB power.
It is just for seeing the debug prints. -
"Related Content" not showing up in Firefox
Hi guys,
Do you know that the "Related Content" chapter content is not showing up in Firefox.
It is empty both on Windows and MacOS in Firefox.
It is ok in Chrome, Safari and Edge. -
RE: [SOLVED] BME280 power consumtion
@mickecarlsson What BME280 library are you using?
-
RE: Power consumption NRF24L01+
Just replace the chinese clone with a real Nordic Semiconductor module and all problems are gone!
-
RE: [SOLVED] BME280 power consumtion
@rozpruwacz Thanks, very impressive solution!
-
RE: [SOLVED] BME280 power consumtion
@rozpruwacz
Hi,
Could you please share with me how you managed to get the power consumption of the BME280 down.
Can this also be done with the Adafruit library? -
RE: 💬 Connecting the Radio
Hi ricorico94,
If you are interested in LoRa and how to connect the radio have a look at www.thethingsnetwork.org -
RE: How to power 5V sensor?
Thanks, but..... need to power it with batteries!
What is the best approach to get 5V for the Distance Sensor? -
How to power 5V sensor?
Re: Easy/Newbie PCB for MySensors
Hi all,
Can somebody give me a tip on how to get 5V for the Distance Sensor on the Rev9 EasyPCB with 3.3V Arduino with battery power.
Use power booster? -
RE: 💬 Distance Sensor
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.
-
RE: 💬 Distance Sensor
I am using a Nano V3.
Apart from the above lines I didn't change anything in the sketch.
Before the change I only got debug messages and no Serial.print lines!Is the SoftwareSerial.h included in one of the other libraries?
-
RE: 💬 Distance Sensor
I had to add some lines to the sample sketch to get console printouts:
#include <SoftwareSerial.h>
and in the void setup():
Serial.begin(115200);Is everybody so specialized that they see immediately this omission?
-
RE: help needed for getting started with arduino based sensor and Domoticz
Thanks guys, that makes it clear for me...
-
help needed for getting started with arduino based sensor and Domoticz
I am a newby getting confused with all the new terminology on this site.
In my house I have a network with Domoticz and RFXcom433.
I want to add now my own arduino based sensor to the RFXcom433/Domoticz.What protocol is supported in the mysensors library to talk to the RFXCOM433?
In other words what is the protocol setting for the RFXCOM433 in Domoticz config?
Can I communicate directly from the arduino with RF module to the RFXCOM433?Thanks