I love what you guys have acheived with the World Tides! I am on a small island in the Bahamas (Little Hog Cay), and have been battling to get it working. So I just tried to use the exact code you have in the example - and it just displays “unknown” for each entity. I am definitely doing something wrong - but I am stumped for 3 days now.
Hello wreuvers,
Please can you tell me if you see “royan_tides” sensor (the value is something different than unknown.
Other sensors have no sense without this one.
Please can you see in your configuration directory/custom_components if the worldtidesinfocustom directory exists
Hello Wayne,
Please can you in menu “development tools”, see the tab where you have all states:
look if you find sensor.XXXX_tideXXX (it’s the name you have put in configuration file)
do you have something ?
To start in a known point in the analysis, you can restart your HA
Sorry for the delay - I had to deal with a few power issues and a new desalination (RO watermaker) unit, so I have been unable to look at this until now.
I am still having the problem so I will add an issue.
Two things that I discovered that may help others - I am using a Raspberry PI 4B for Home Assistant
Make sure you create the www folder below your config folder - without this the sensor will not appear
And I could not get the Image to work using the recommended settings, so I played around and found this to work well and refreshes too
## CAMERA
camera:
- platform: local_file
name: green_turtle_tides_curve
file_path: "/config/www/green_turtle_tides.png"
Does anyone know how to change the metrics to feet (yup, sadly I am in the US where Imperial is still a thing). When I change the unit of measurement to ft, it just shows ft after the metre amount. So I multiplied it by the 3.28 factor but my graph is still showing metres.
tide_green_turtle_current_height:
unique_id: 'tidesGTCcurrentHeight'
value_template: "{{ state_attr('sensor.green_turtle_tides','current_height') * 3.28084 }}"
friendly_name: "Tide Current Height"
unit_of_measurement: ft
And I will get round to formatting the decimals too
As I (sometimes / often) live on an island in the Bahamas, this is a huge benefit for me!!
Three very useful variables would be
TideState - Rising / Falling
HighTideIn - the number of Hr::min until the next High Tide
LowTideIn - the number of Hr:min until the next Low Tide
And if it was possible, to draw the graph from “now” to hours in the future. This would allow one to easily plan “aah, it’s 4hrs to slack, got some time to get finish my chores before getting the fishing rods out”
Hello,
Thanks a lot for your feed back.
As the source code has became important, I have done some modication in order to better organize it ! (V3.0.0) My next aim is to use config flow.
I will add Tide State, HighTideIn, LowTideIn. (V3.1.0)
Unfortunately , I’ve tried to draw from current time the plot curve, but it is the same picture with blank on left side …